bootstrap.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. server:
  2. port: 18083
  3. spring:
  4. application:
  5. name: consumer-demo
  6. feign:
  7. tsf:
  8. enabled: true
  9. #本地测试时打开
  10. tsf_namespace_id: default_namespace
  11. #方便本地自测调试
  12. tsf:
  13. circuit-breaker:
  14. rules:
  15. - targetServiceName: provider-demo
  16. isolationLevel: SERVICE
  17. targetNamespaceId: "default_namespace"
  18. strategyList:
  19. - slidingWindowSize: 10
  20. minimumNumberOfCalls: 10
  21. failureRateThreshold: 40
  22. waitDurationInOpenState: 5
  23. maxEjectionPercent: 51
  24. slowCallDurationThreshold: 800
  25. slowCallRateThreshold: 50
  26. apiList:
  27. - method: GET
  28. path: "/echo/{param}"
  29. - method: GET
  30. path: "/echo2/{str}"
  31. ribbon:
  32. MaxAutoRetries: 0
  33. # 同一个微服务其他实例的最大重试次数,不包括第一次调用的实例。默认值为1
  34. MaxAutoRetriesNextServer: 0
  35. # 是否所有操作(GET、POST等)都允许重试。默认值为false
  36. OkToRetryOnAllOperations: false
  37. ReadTimeout: 10000