dubbo.apache.org/dubbo-go/v3@v3.1.1/protocol/rest/config/reader/testdata/provider_config.yml (about) 1 # dubbo server yaml configure file 2 3 filter: "" 4 5 config_type: 6 rest: "rest" 7 8 # application config 9 application: 10 organization : "ikurento.com" 11 name : "BDTService" 12 module : "dubbogo user-info server" 13 version : "0.0.1" 14 owner : "ZX" 15 environment : "dev" 16 17 registries : 18 "hangzhouzk": 19 protocol: "zookeeper" 20 timeout : "3s" 21 address: "127.0.0.1:2181" 22 username: "" 23 password: "" 24 "shanghaizk": 25 protocol: "zookeeper" 26 timeout : "3s" 27 address: "127.0.0.1:2182" 28 username: "" 29 password: "" 30 31 rest_server: "go-restful" 32 rest_produces: "*/*" 33 rest_consumes: "*/*" 34 35 services: 36 "UserProvider": 37 registry: "hangzhouzk,shanghaizk" 38 filter: "" 39 # the name of limiter 40 tps.limiter: "default" 41 # the time unit of interval is ms 42 tps.limit.interval: 60000 43 tps.limit.rate: 200 44 # the name of strategy 45 tps.limit.strategy: "slidingWindow" 46 # the name of RejectedExecutionHandler 47 tps.limit.rejected.handler: "default" 48 # the concurrent request limitation of this service 49 # if the value < 0, it will not be limited. 50 execute.limit: "200" 51 # the name of RejectedExecutionHandler 52 execute.limit.rejected.handler: "default" 53 protocol : "rest" 54 # equivalent to interface of dubbo.xml 55 interface : "com.ikurento.user.UserProvider" 56 loadbalance: "random" 57 version: "1.0" 58 group: "as" 59 warmup: "100" 60 cluster: "failover" 61 rest_server: "go-restful1" 62 rest_produces: "*/*" 63 rest_consumes: "*/*" 64 methods: 65 - name: "GetUser" 66 retries: 1 67 loadbalance: "random" 68 # the concurrent request limitation of this method 69 # if the value < 0, it will not be limited. 70 execute.limit: "200" 71 # the name of RejectedExecutionHandler 72 execute.limit.rejected.handler: "default" 73 rest_query_params: "1:userid,2:username" 74 rest_headers: "3:age" 75 rest_path_params: "4:time,2:name" 76 rest_body: 0 77 rest_produces: "application/xml" 78 rest_consumes: "application/xml" 79 80 protocols: 81 "rest": 82 name: "rest" 83 ip : "127.0.0.1" 84 port : 20000 85 86 87 88