| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- server:
- port: 18083
- spring:
- application:
- name: consumer-demo
- feign:
- tsf:
- enabled: true
- #本地测试时打开
- tsf_namespace_id: default_namespace
- #方便本地自测调试
- tsf:
- circuit-breaker:
- rules:
- - targetServiceName: provider-demo
- isolationLevel: SERVICE
- targetNamespaceId: "default_namespace"
- strategyList:
- - slidingWindowSize: 10
- minimumNumberOfCalls: 10
- failureRateThreshold: 40
- waitDurationInOpenState: 5
- maxEjectionPercent: 51
- slowCallDurationThreshold: 800
- slowCallRateThreshold: 50
- apiList:
- - method: GET
- path: "/echo/{param}"
- - method: GET
- path: "/echo2/{str}"
- ribbon:
- MaxAutoRetries: 0
- # 同一个微服务其他实例的最大重试次数,不包括第一次调用的实例。默认值为1
- MaxAutoRetriesNextServer: 0
- # 是否所有操作(GET、POST等)都允许重试。默认值为false
- OkToRetryOnAllOperations: false
- ReadTimeout: 10000
|