application-local.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #logging:
  2. # level:
  3. # org.springframework.security: INFO
  4. hystrix:
  5. threadpool:
  6. default:
  7. coreSize: 200 #并发执行的最大线程数,默认10
  8. maxQueueSize: 200 #BlockingQueue的最大队列数
  9. queueSizeRejectionThreshold: 50 #即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
  10. command:
  11. default:
  12. execution:
  13. timeout:
  14. enabled: true
  15. isolation:
  16. strategy: SEMAPHORE
  17. semaphore:
  18. maxConcurrentRequests: 2000
  19. thread:
  20. timeoutInMilliseconds: 20000
  21. ribbon:
  22. ReadTimeout: 20000
  23. ConnectTimeout: 20000
  24. MaxAutoRetries: 0
  25. MaxAutoRetriesNextServer: 1
  26. feign:
  27. hystrix:
  28. enabled: true
  29. #开启Feign请求压缩
  30. compression:
  31. response:
  32. enabled: true
  33. httpclient:
  34. enabled: false
  35. okhttp:
  36. enabled: true
  37. max-connections: 1000 # 默认值
  38. max-connections-per-route: 250 # 默认值
  39. eureka:
  40. instance:
  41. prefer-ip-address: true #使用IP注册
  42. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  43. leaseRenewalIntervalInSeconds: 10
  44. health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
  45. client:
  46. registryFetchIntervalSeconds: 5
  47. # serviceUrl:
  48. # defaultZone: http://localhost:8761/eureka/
  49. #endpoints:
  50. # health:
  51. # sensitive: false
  52. # enabled: true
  53. # actuator:
  54. # enabled: true
  55. # sensitive: false
  56. # beans:
  57. # sensitive: false
  58. # enabled: true
  59. management:
  60. endpoints:
  61. web:
  62. exposure:
  63. include: bus-refresh,health,info,hystrix.stream
  64. cors:
  65. allowed-origins: "*"
  66. allowed-methods: "*"
  67. endpoint:
  68. health:
  69. show-details: always
  70. spring:
  71. #消息总线
  72. cloud:
  73. bus:
  74. enabled: true
  75. trace:
  76. enabled: true
  77. jackson:
  78. date-format: yyyy-MM-dd HH:mm:ss
  79. time-zone: GMT+8
  80. server:
  81. max-http-header-size: 10MB
  82. swagger:
  83. enable: true
  84. syslog:
  85. enable: false
  86. bilog:
  87. enable: false
  88. crypt:
  89. enable: true
  90. mrqc:
  91. server:
  92. address: http://173.18.12.192:5858