application-predev.yml 3.06 KB
Newer Older
Administrator committed
1 2 3 4 5 6
#加密配置
jasypt:
  encryptor:
    password: techhero
spring:
  redis:
7
    database: 5
Administrator committed
8
    remote: false        #cachecloud 获取
9 10
    host: 119.96.87.17
    hostName: 119.96.87.17 #183.95.190.112
Administrator committed
11
    port: 6379
12
    password: techhero
Administrator committed
13 14 15 16 17 18
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0
19 20 21 22 23
  redisMac:
    remote: false        #cachecloud 获取
    host: 81.70.218.156
    hostName: 81.70.218.156 #183.95.190.112
    port: 6379
24
    password: fcd258Kf
25 26 27 28 29 30 31
    timeout: 0
    pool:
      max-active: 8
      max-wait: -1
      max-idle: 8
      min-idle: 0

Administrator committed
32
  rabbitmq:
33
    host: 119.96.87.17
Administrator committed
34 35 36
    port: 5672
    username: rabbit
    password: rabbit-techhero
37
    virtual-host: /local
Administrator committed
38 39
    listener:
      simple:
40
        acknowledge-mode: auto
41 42 43 44 45 46 47 48
        retry:
          enabled: true
          max-attempts: 5
    #消息确认配置项
    #确认消息已发送到交换机(Exchange)
    publisher-confirms: true
    #确认消息已发送到队列(Queue)
    publisher-returns: true
49 50 51
  sleuth:
    sampler:
      percentage: 1.0    
52 53 54 55 56 57
  http:
    multipart:
      enabled: true
      file-size-threshold: 1000Mb
      max-file-size: 2048Mb
      max-request-size: 2048Mb
58 59 60 61
  boot:
    admin:
      auto-registration: true
      #url: http://119.96.87.17:10422
62 63 64
      #url: http://127.0.0.1:10422
      client:
        service-base-url: 127.0.0.1:10422
65
      api-path: instances
CnNoter committed
66

67

Administrator committed
68 69 70 71 72 73 74 75 76 77
cache:
  redis:
    expires:
      entity:30;account:30;

ribbon:
  eureka:
    enabled: true
  eager-load:
    enabled: true
78
    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
Administrator committed
79 80 81 82
  Httpclient:
    enabled: false
  OkHttp:
    enabled: true
83 84
  ReadTimeout: 100000
  ConnectTimeout: 100000
CnNoter committed
85

Administrator committed
86 87 88 89 90 91 92 93 94 95
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
96 97
        connectTimeout: 100000
        readTimeout: 100000
Administrator committed
98 99 100 101 102
  compression:
    request:
      enabled: true
    response:
      enabled: true
CnNoter committed
103

Administrator committed
104 105 106 107 108 109 110 111 112 113 114 115 116
hystrix:
  threadpool:
    default:
      coreSize: 10
      maxQueueSize: 1000
      queueSizeRejectionThreshold: 800
    circuitBreaker:
      requestVolumeThreshold: 100 #熔断失败个数 超过既发生短路 默认20个
  command:
    default:
      execution:
        isolation:
          thread:
117
            timeoutInMilliseconds: 400000
Administrator committed
118 119 120 121
    fallback:
      isolation:
        semaphore:
          maxConcurrentRequests: 50 #回退线程数量
CnNoter committed
122
tomcat:
Administrator committed
123 124 125 126 127
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
  accept-count: 10

128

129

130 131
rabbitmq:
  czlsLog:
132 133
    exchange: topicCzlsLogExchangeLocal
    queue: topic.czlsLog.local
134
  incidentReporting:
135 136
    exchange: topic-local-incident-reporting-exchange
    queue: topic.local.incidentReporting.queue
137
  alarmMessage:
138 139
    exchange: alarm-message-local
    queue: Alarm-Event-Msg-local