Skip to content
Snippets Groups Projects
Commit 5dd2bd0d authored by 高辛格's avatar 高辛格
Browse files

modify yaml

parent 21d7b15a
No related branches found
No related tags found
No related merge requests found
# dubbo client yaml configure file
check: true
# client
request_timeout : "3s"
# connect timeout
connect_timeout : "3s"
# application config
application_config: application_config:
organization : "ikurento.com" organization : "ikurento.com"
name : "BDTService" name : "BDTService"
...@@ -17,7 +7,7 @@ application_config: ...@@ -17,7 +7,7 @@ application_config:
environment : "test" environment : "test"
registries : registries :
"hangzhouzk": "consul":
protocol: "consul" protocol: "consul"
timeout : "3s" timeout : "3s"
address: "127.0.0.1:8500" address: "127.0.0.1:8500"
...@@ -56,3 +46,7 @@ protocol_conf: ...@@ -56,3 +46,7 @@ protocol_conf:
wait_timeout: "1s" wait_timeout: "1s"
max_msg_len: 10240 max_msg_len: 10240
session_name: "client" session_name: "client"
check: true
request_timeout : "3s"
connect_timeout : "3s"
# dubbo server yaml configure file
# application config
application_config: application_config:
organization : "ikurento.com" organization : "ikurento.com"
name : "BDTService" name : "BDTService"
...@@ -11,7 +7,7 @@ application_config: ...@@ -11,7 +7,7 @@ application_config:
environment : "test" environment : "test"
registries : registries :
"hangzhouzk": "consul":
protocol: "consul" protocol: "consul"
timeout : "3s" timeout : "3s"
address: "127.0.0.1:8500" address: "127.0.0.1:8500"
...@@ -33,10 +29,8 @@ services: ...@@ -33,10 +29,8 @@ services:
protocols: protocols:
"dubbo1": "dubbo1":
name: "dubbo" name: "dubbo"
# ip : "127.0.0.1"
port: 20000 port: 20000
protocol_conf: protocol_conf:
dubbo: dubbo:
session_number: 700 session_number: 700
......
...@@ -94,8 +94,8 @@ func newConsulListener(registryUrl common.URL, consumerUrl common.URL) (*consulL ...@@ -94,8 +94,8 @@ func newConsulListener(registryUrl common.URL, consumerUrl common.URL) (*consulL
consumerUrl: consumerUrl, consumerUrl: consumerUrl,
plan: plan, plan: plan,
urls: make([]common.URL, 0, 8), urls: make([]common.URL, 0, 8),
eventCh: make(chan *registry.ServiceEvent), eventCh: make(chan *registry.ServiceEvent, 32),
errCh: make(chan error), errCh: make(chan error, 32),
done: make(chan struct{}), done: make(chan struct{}),
} }
......
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