blob: 5724fe7599a0de281f65cb1a08c5f98476adf6fb [file] [log] [blame]
# dubbo client yaml configure file
check: true
# client
request_timeout: "3s"
# connect timeout
connect_timeout: "3s"
# application config
application:
organization: "dubbo.io"
name: "UserInfoClient"
module: "dubbo-go user-info client"
version: "0.0.1"
environment: "dev"
# registry config
registries:
"shanghaiZk":
protocol: "zookeeper"
timeout: "3s"
address: "127.0.0.1:2182"
username: ""
password: ""
zone: shanghai
weight: 50
"hangzhouZk":
protocol: "zookeeper"
timeout: "3s"
address: "127.0.0.1:2183"
zone: hangzhou
weight: 200
# reference config
references:
"UserProvider":
registry: "shanghaiZk,hangzhouZk"
protocol: "dubbo"
interface: "org.apache.dubbo.UserProvider"
cluster: "failover"
methods:
- name: "GetUser"
retries: 3
# protocol config
protocol_conf:
dubbo:
reconnect_interval: 0
connection_number: 1
heartbeat_period: "5s"
session_timeout: "180s"
pool_size: 64
pool_ttl: 600
getty_session_param:
compress_encoding: false
tcp_no_delay: true
tcp_keep_alive: true
keep_alive_period: "120s"
tcp_r_buf_size: 262144
tcp_w_buf_size: 65536
tcp_read_timeout: "1s"
tcp_write_timeout: "5s"
wait_timeout: "1s"
max_msg_len: 1024000
session_name: "client"