#加密配置
jasypt:
  encryptor:
    password: techhero
spring:
  redis:
    remote: false        #cachecloud 获取
    host: 192.168.50.249
    #host: 127.0.0.1
    hostName: 192.168.50.249 #183.95.190.112
    #hostName: 127.0.0.1
    port: 6379
    password: jwEMRUIuJSN2c6M
    #password: 123456
    timeout: 0
    database: 3
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
  redisMac:
    remote: false        #cachecloud 获取
    host: 81.70.218.156
    hostName: 81.70.218.156 #183.95.190.112
    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
    virtual-host: /local
    listener:
      simple:
        acknowledge-mode: auto
        retry:
          enabled: true
          max-attempts: 5
    #消息确认配置项
    #确认消息已发送到交换机(Exchange)
    publisher-confirms: true
    #确认消息已发送到队列(Queue)
    publisher-returns: true
  #sleuth:
  #  sampler:
  #    percentage: 1.0    
  http:
    multipart:
      enabled: true
      file-size-threshold: 1000Mb
      max-file-size: 2048Mb
      max-request-size: 2048Mb
  boot:
    admin:
      auto-registration: true
      #url: http://119.96.87.17:10422
      #url: http://127.0.0.1:10422
      client:
        service-base-url: 127.0.0.1:10422
      api-path: instances


cache:
  redis:
    expires:
      entity:30;account:30;

ribbon:
  eureka:
    enabled: true
  eager-load:
    enabled: true
    clients: techhero-auth,techhero-base-system,techhero-base-exam,techhero-base-transdata,techhero-project-theme,techhero-project-emergencycommand,techhero-project-track,techhero-project-visualization,techhero-preventioncheat,techhero-component-task,techhero-component-oss,techhero-component-websocket,techhero-component-message,techhero-component-workflow,techhero-component-xy
  Httpclient:
    enabled: false
  OkHttp:
    enabled: true
  ReadTimeout: 100000
  ConnectTimeout: 100000

feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
        connectTimeout: 100000
        readTimeout: 100000
  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: 400000
    fallback:
      isolation:
        semaphore:
          maxConcurrentRequests: 50 #回退线程数量
tomcat:
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
  accept-count: 10



rabbitmq:
  czlsLog:
    exchange: topicCzlsLogExchangeLocal
    queue: topic.czlsLog.local
    exchange2: topicCzlsLogExchangeLocal2
    queue2: topic.czlsLog.local2
  incidentReporting:
    exchange: topic-local-incident-reporting-exchange
    queue: topic.local.incidentReporting.queue
  alarmMessage:
    exchange: alarm-message-local
    queue: Alarm-Event-Msg-local
  parametersMessage:
    exchange: parameters-message-test
    queue: parameters-Event-message-test


s3:
  endpoint: "http://119.96.87.17:30107"
  accessKey: jxTmLD0YcODFdPRv
  secretKey: hLZ4fN8P3BfTjbnwKbN35SacSXgLgwg7
  bucketName: dev