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

     1  # dubbo client yaml configure file
     2  
     3  filter: ""
     4  
     5  # client
     6  request_timeout : "100ms"
     7  # connect timeout
     8  connect_timeout : "100ms"
     9  check: true
    10  # application config
    11  application:
    12    organization : "ikurento.com"
    13    name  : "BDTService"
    14    module : "dubbogo user-info client"
    15    version : "0.0.1"
    16    owner : "ZX"
    17    environment : "dev"
    18  
    19  registries :
    20  
    21    "hangzhouzk":
    22      protocol: "zookeeper"
    23      timeout	: "3s"
    24      address: "127.0.0.1:2181"
    25      username: ""
    26      password: ""
    27    "shanghaizk":
    28      protocol: "zookeeper"
    29      timeout	: "3s"
    30      address: "127.0.0.1:2182"
    31      username: ""
    32      password: ""
    33  
    34  references:
    35    "UserProvider":
    36      registry-ids: "hangzhouzk,shanghaizk"
    37      filter: ""
    38      protocol : "dubbo"
    39      version: "1.0"
    40      group: "as"
    41      interface : "com.ikurento.user.UserProvider"
    42      url: "dubbo://127.0.0.1:20000/UserProvider"
    43      cluster: "failover"
    44      timeout: "3s"
    45      methods :
    46        - name: "GetUser"
    47          retries: "3"
    48          timeout: "5s"
    49      params:
    50        "serviceid":
    51          "soa.com.ikurento.user.UserProvider"
    52        "forks": 5
    53  
    54  shutdown_conf:
    55    timeout: 60s
    56    step-timeout: 10s
    57  
    58  protocol_conf:
    59    # when you choose the Dubbo protocol, the following configuration takes effect
    60    dubbo:
    61      reconnect_interval: 0
    62      # reconnect_interval is the actual number of connections a session can use
    63      connection_number: 2
    64      # heartbeat_period is heartbeat interval between server and client connection.
    65      # Effective by client configuration
    66      heartbeat_period: "30s"
    67      # when the session is inactive for more than session_timeout, the session may be closed
    68      session_timeout: "30s"
    69      # a reference has the size of the session connection pool
    70      # that is the maximum number of sessions it may have
    71      pool_size: 4
    72      # dubbo-go uses getty as the network connection library.
    73      # The following is the relevant configuration of getty
    74      pool_ttl: 600
    75      # gr_pool_size is recommended to be set to [cpu core number] * 100
    76      gr_pool_size: 1200
    77      # queue_len is recommended to be set to 64 or 128
    78      queue_len: 64
    79      # queue_number is recommended to be set to gr_pool_size / 20
    80      queue_number: 60
    81      # dubbo-go uses getty as the network connection library.
    82      # The following is the relevant configuration of getty
    83      getty_session_param:
    84        compress_encoding: false
    85        tcp_no_delay: true
    86        tcp_keep_alive: true
    87        keep_alive_period: "120s"
    88        tcp_r_buf_size: 262144
    89        tcp_w_buf_size: 65536
    90        tcp_read_timeout: "1s"
    91        tcp_write_timeout: "5s"
    92        wait_timeout: "1s"
    93        # maximum len of data per request
    94        # this refers to the total amount of data requested or returned
    95        max_msg_len: 102400
    96        session_name: "client"