Skip to content
Snippets Groups Projects
provider_config.yml 2.16 KiB
Newer Older
fangyincheng's avatar
fangyincheng committed
# dubbo server yaml configure file

fangyincheng's avatar
fangyincheng committed
filter: ""
fangyincheng's avatar
fangyincheng committed
# application config
application:
fangyincheng's avatar
fangyincheng committed
  organization : "ikurento.com"
  name : "BDTService"
  module : "dubbogo user-info server"
  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


services:
    registry: "hangzhouzk,shanghaizk"
    # the name of limiter
    tps.limiter: "default"
    # the time unit of interval is ms
    tps.limit.interval: 60000
    tps.limit.rate: 200
    # the name of strategy
    tps.limit.strategy: "slidingWindow"
    # the name of RejectedExecutionHandler
    tps.limit.rejected.handler: "default"
    protocol : "dubbo"
    # equivalent to interface of dubbo.xml
    interface : "com.ikurento.user.UserProvider"
fangyincheng's avatar
fangyincheng committed
    loadbalance: "random"
    version: "1.0"
    group: "as"
    warmup: "100"
    cluster: "failover"
    methods:
      - name: "GetUser"
        retries: 1
        loadbalance: "random"
fangyincheng's avatar
fangyincheng committed

protocols:
      # while using dubbo protocol, ip cannot is 127.0.0.1, because client of java-dubbo will get 'connection refuse'
      ip : "127.0.0.1"
      port : 20000
  #-   name: "jsonrpc"
  #    ip: "127.0.0.1"
  #    port: 20001
fangyincheng's avatar
fangyincheng committed

protocol_conf:
  dubbo:
    session_number: 700
    session_timeout: "20s"
fangyincheng's avatar
fangyincheng committed
    # gr_pool_size is recommended to be set to [cpu core number] * 10
    gr_pool_size: 120
    # 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: 6
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"
      max_msg_len: 1024
      session_name: "server"