dubbo.apache.org/dubbo-go/v3@v3.1.1/config/testdata/provider_config_withoutProtocol.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 # equivalent to interface of dubbo.xml 33 interface : "com.ikurento.user.UserProvider" 34 loadbalance: "random" 35 version: "1.0" 36 group: "as" 37 warmup: "100" 38 cluster: "failover" 39 methods: 40 - name: "GetUser" 41 retries: 1 42 loadbalance: "random" 43 44 protocols: 45 "dubbo": 46 name: "dubbo" 47 # while using dubbo protocol, ip cannot is 127.0.0.1, because client of java-dubbo will get 'connection refuse' 48 ip : "127.0.0.1" 49 port : 20000 50 #- name: "jsonrpc" 51 # ip: "127.0.0.1" 52 # port: 20001 53 54 shutdown_conf: 55 timeout: 60s 56 step-timeout: 10s 57 58 protocol_conf: 59 dubbo: 60 session_number: 700 61 session_timeout: "20s" 62 # gr_pool_size is recommended to be set to [cpu core number] * 10 63 gr_pool_size: 120 64 # queue_len is recommended to be set to 64 or 128 65 queue_len: 64 66 # queue_number is recommended to be set to gr_pool_size / 20 67 queue_number: 6 68 getty_session_param: 69 compress_encoding: false 70 tcp_no_delay: true 71 tcp_keep_alive: true 72 keep_alive_period: "120s" 73 tcp_r_buf_size: 262144 74 tcp_w_buf_size: 65536 75 tcp_read_timeout: "1s" 76 tcp_write_timeout: "5s" 77 wait_timeout: "1s" 78 max_msg_len: 16498688 79 session_name: "server"