dubbo.apache.org/dubbo-go/v3@v3.1.1/config/testdata/provider_config.yml (about)

     1  # dubbo server yaml configure file
     2  
     3  filter: ""
     4  # application config
     5  application:
     6    organization : "ikurento.com"
     7    name : "BDTService"
     8    module : "dubbogo user-info server"
     9    version : "0.0.1"
    10    owner : "ZX"
    11    environment : "dev"
    12  
    13  registries :
    14    "hangzhouzk":
    15      protocol: "zookeeper"
    16      timeout	: "3s"
    17      address: "127.0.0.1:2181"
    18      username: ""
    19      password: ""
    20    "shanghaizk":
    21      protocol: "zookeeper"
    22      timeout	: "3s"
    23      address: "127.0.0.1:2182"
    24      username: ""
    25      password: ""
    26  
    27  
    28  services:
    29    "UserProvider":
    30      registry-ids: "hangzhouzk,shanghaizk"
    31      filter: ""
    32      # the name of limiter
    33      tps.limiter: "default"
    34      # the time unit of interval is ms
    35      tps.limit.interval: 60000
    36      tps.limit.rate: 200
    37      # the name of strategy
    38      tps.limit.strategy: "slidingWindow"
    39      # the name of RejectedExecutionHandler
    40      tps.limit.rejected.handler: "default"
    41      # the concurrent request limitation of this service
    42      # if the value < 0, it will not be limited.
    43      execute.limit: "200"
    44      # the name of RejectedExecutionHandler
    45      execute.limit.rejected.handler: "default"
    46      protocol : "dubbo"
    47      # equivalent to interface of dubbo.xml
    48      interface : "com.ikurento.user.UserProvider"
    49      loadbalance: "random"
    50      version: "1.0"
    51      group: "as"
    52      warmup: "100"
    53      cluster: "failover"
    54      methods:
    55        - name: "GetUser"
    56          retries: 1
    57          loadbalance: "random"
    58          # the concurrent request limitation of this method
    59          # if the value < 0, it will not be limited.
    60          execute.limit: "200"
    61          # the name of RejectedExecutionHandler
    62          execute.limit.rejected.handler: "default"
    63  
    64  protocols:
    65      "dubbo":
    66        name: "dubbo"
    67        # while using dubbo protocol, ip cannot is 127.0.0.1, because client of java-dubbo will get 'connection refuse'
    68        ip : "127.0.0.1"
    69        port : 20000
    70    #-   name: "jsonrpc"
    71    #    ip: "127.0.0.1"
    72    #    port: 20001
    73  
    74  shutdown_conf:
    75    timeout: 60s
    76    step-timeout: 10s
    77  
    78  protocol_conf:
    79    dubbo:
    80      session_number: 700
    81      session_timeout: "20s"
    82      # gr_pool_size is recommended to be set to [cpu core number] * 10
    83      gr_pool_size: 120
    84      # queue_len is recommended to be set to 64 or 128
    85      queue_len: 64
    86      # queue_number is recommended to be set to gr_pool_size / 20
    87      queue_number: 6
    88      getty_session_param:
    89        compress_encoding: false
    90        tcp_no_delay: true
    91        tcp_keep_alive: true
    92        keep_alive_period: "120s"
    93        tcp_r_buf_size: 262144
    94        tcp_w_buf_size: 65536
    95        tcp_read_timeout: "1s"
    96        tcp_write_timeout: "5s"
    97        wait_timeout: "1s"
    98        max_msg_len: 16498688
    99        session_name: "server"