123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #logging:
- # level:
- # org.springframework.security: INFO
- hystrix:
- threadpool:
- default:
- coreSize: 200 #并发执行的最大线程数,默认10
- maxQueueSize: 200 #BlockingQueue的最大队列数
- queueSizeRejectionThreshold: 50 #即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
- command:
- default:
- execution:
- timeout:
- enabled: true
- isolation:
- strategy: SEMAPHORE
- semaphore:
- maxConcurrentRequests: 2000
- thread:
- timeoutInMilliseconds: 20000
- ribbon:
- ReadTimeout: 20000
- ConnectTimeout: 20000
- MaxAutoRetries: 0
- MaxAutoRetriesNextServer: 1
- feign:
- hystrix:
- enabled: true
- #开启Feign请求压缩
- compression:
- response:
- enabled: true
- httpclient:
- enabled: false
- okhttp:
- enabled: true
- max-connections: 1000 # 默认值
- max-connections-per-route: 250 # 默认值
- eureka:
- instance:
- prefer-ip-address: true #使用IP注册
- instance-id: ${spring.cloud.client.ip-address}:${server.port}
- leaseRenewalIntervalInSeconds: 10
- health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
- client:
- registryFetchIntervalSeconds: 5
- # serviceUrl:
- # defaultZone: http://localhost:8761/eureka/
- #endpoints:
- # health:
- # sensitive: false
- # enabled: true
- # actuator:
- # enabled: true
- # sensitive: false
- # beans:
- # sensitive: false
- # enabled: true
- management:
- endpoints:
- web:
- exposure:
- include: bus-refresh,health,info,hystrix.stream
- cors:
- allowed-origins: "*"
- allowed-methods: "*"
- endpoint:
- health:
- show-details: always
- spring:
- #消息总线
- cloud:
- bus:
- enabled: true
- trace:
- enabled: true
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- server:
- max-http-header-size: 10MB
- swagger:
- enable: true
- syslog:
- enable: false
- bilog:
- enable: false
- crypt:
- enable: true
- mrqc:
- server:
- address: http://173.18.12.192:5858
|