#加密配置
jasypt:
  encryptor:
    password: techhero
spring:
  redis:
    remote: false        #cachecloud 获取
    host: 119.96.87.17
    hostName: 119.96.87.17
    port: 6379
    password: fcd258Kf
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  rabbitmq:
    host: 119.96.87.17
    port: 5672
    username: rabbit
    password: rabbit-techhero
    listener:
      simple:
        acknowledge-mode: manual
        
cache:
  redis:
    expires:
      entity:30;account:30;

ribbon:
  eureka:
    enabled: true
  eager-load:
    enabled: true
    clients: techhero-auth,techhero-base-supportplatform,techhero-project-emergencycommand,techhero-permission,techhero-base-basicdata,techhero-preventioncheat
  Httpclient:
    enabled: false
  OkHttp:
    enabled: true
  ReadTimeout: 10000
  ConnectTimeout: 10000
  
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
        connectTimeout: 10000
        readTimeout: 10000
  compression:
    request:
      enabled: true
    response:
      enabled: true
      
hystrix:
  threadpool:
    default:
      coreSize: 10
      maxQueueSize: 1000
      queueSizeRejectionThreshold: 800
    circuitBreaker:
      requestVolumeThreshold: 100 #熔断失败个数 超过既发生短路 默认20个
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 40000
    fallback:
      isolation:
        semaphore:
          maxConcurrentRequests: 50 #回退线程数量

tomcat: 
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
  accept-count: 10