Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
_site-res
system
Commits
6d2a9dfb
Commit
6d2a9dfb
authored
May 03, 2018
by
tufengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish
parent
9e436518
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
service_mapping.php
config/service_mapping.php
+23
-0
No files found.
config/service_mapping.php
0 → 100644
View file @
6d2a9dfb
<?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'
]
=
'binary'
;
// binary json
$config
[
'service_default_hosts'
]
=
[
[
'host'
=>
$service_domain_name
,
'port'
=>
80
,
]
];
$config
[
'service_default_hostname'
]
=
$service_domain_name
;
$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'
]
=
[
[
'host'
=>
$service_domain_name
,
'port'
=>
80
,
'timeout'
=>
10
,
'connect_timeout'
=>
100
,
'request_timeout'
=>
200
]
];
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment