Commit f35ef203 authored by tufengqi's avatar tufengqi

删除无效配置

parent 4f1388c7
......@@ -30,7 +30,6 @@ class ThriftAsyncServiceFactoryProxy
{
$service_default_protocol = Yii::$app->fpf->getConfig('service_default_protocol', 'thrift_service');
$service_default_hosts = Yii::$app->fpf->getConfig('service_default_hosts', 'thrift_service');
$service_default_failure_policy = Yii::$app->fpf->getConfig('service_default_failure_policy', 'thrift_service');
$service_module_hosts = Yii::$app->fpf->getConfig('service_module_hosts', 'thrift_service');
$check_ret = $this->checkService($class_name);
if (true === $check_ret[BaseConstant::ERROR]) {
......
<?php
$service_domain_name = 'service.local.zhaobi.com';
//$service_domain_name = 'service.local.zhaobi.com';
//$service_domain_name = 'service.zhaobi.com';
$config['service_default_protocol'] = 0; // 0:binary 1:json
$config['service_default_hosts'] = [
[
'host' => $service_domain_name,
'port' => 80,
'timeout' => 10, // ms
'connect_timeout' => 100, // ms
'protocol' => 0
],
];
$config['service_default_failure_policy'] = [
'default_connect_timeout' => 1000, // ms
'default_request_timeout' => 2000, // ms
'descending_factor' => '0.5', // 递减因子 每次重试connect_timeout request_timeout超时时间再默认基础上减半
'failover_retry_times' => 2,
'final_fail_return' => 'false', // false or exception, 返回false或者抛异常
];
$config['service_module_hosts']['market-BaseMarketService'] = $config['service_default_hosts'];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment