Skip to content
Snippets Groups Projects
consumer_config.yml 2.75 KiB
Newer Older
fangyincheng's avatar
fangyincheng committed
# dubbo client yaml configure file

fangyincheng's avatar
fangyincheng committed
filter: ""

fangyincheng's avatar
fangyincheng committed
# client
request_timeout : "100ms"
# connect timeout
connect_timeout : "100ms"
check: true
# application config
application:
fangyincheng's avatar
fangyincheng committed
  organization : "ikurento.com"
  name  : "BDTService"
  module : "dubbogo user-info client"
  version : "0.0.1"
  owner : "ZX"
  environment : "dev"

registries :
    protocol: "zookeeper"
    timeout	: "3s"
    address: "127.0.0.1:2181"
    username: ""
    password: ""
    protocol: "zookeeper"
    timeout	: "3s"
    address: "127.0.0.1:2182"
    username: ""
    password: ""
fangyincheng's avatar
fangyincheng committed

references:
    registry: "hangzhouzk,shanghaizk"
    version: "1.0"
    group: "as"
    interface : "com.ikurento.user.UserProvider"
    url: "dubbo://127.0.0.1:20000/UserProvider"
pantianying's avatar
pantianying committed
    timeout: "3s"
vito.he's avatar
vito.he committed
        retries: "3"
pantianying's avatar
pantianying committed
        timeout: "5s"
    params:
      "serviceid":
        "soa.com.ikurento.user.UserProvider"
xujianhai666's avatar
xujianhai666 committed
      "forks": 5
fangyincheng's avatar
fangyincheng committed

Ming Deng's avatar
Ming Deng committed
shutdown_conf:
  timeout: 60s
  step_timeout: 10s

fangyincheng's avatar
fangyincheng committed
protocol_conf:
pantianying's avatar
pantianying committed
  # when you choose the Dubbo protocol, the following configuration takes effect
fangyincheng's avatar
fangyincheng committed
  dubbo:
    reconnect_interval: 0
pantianying's avatar
pantianying committed
    # reconnect_interval is the actual number of connections a session can use
fangyincheng's avatar
fangyincheng committed
    connection_number: 2
pantianying's avatar
pantianying committed
    # heartbeat_period is heartbeat interval between server and client connection.
    # Effective by client configuration
    heartbeat_period: "30s"
    # when the session is inactive for more than session_timeout, the session may be closed
    session_timeout: "30s"
    # a reference has the size of the session connection pool
    # that is the maximum number of sessions it may have
    pool_size: 4
    # dubbo-go uses getty as the network connection library.
    # The following is the relevant configuration of getty
fangyincheng's avatar
fangyincheng committed
    pool_ttl: 600
fangyincheng's avatar
fangyincheng committed
    # gr_pool_size is recommended to be set to [cpu core number] * 100
    gr_pool_size: 1200
    # queue_len is recommended to be set to 64 or 128
    queue_len: 64
    # queue_number is recommended to be set to gr_pool_size / 20
    queue_number: 60
pantianying's avatar
pantianying committed
    # dubbo-go uses getty as the network connection library.
    # The following is the relevant configuration of getty
fangyincheng's avatar
fangyincheng committed
    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
      pkg_wq_size: 512
      tcp_read_timeout: "1s"
      tcp_write_timeout: "5s"
      wait_timeout: "1s"
pantianying's avatar
pantianying committed
      # maximum len of data per request
      # this refers to the total amount of data requested or returned
      max_msg_len: 102400
fangyincheng's avatar
fangyincheng committed
      session_name: "client"