application-local.yml 1.38 KB
Newer Older
Administrator committed
1 2 3 4 5
spring:
  http:
    multipart:
      enabled: true
      max-file-size: 300MB
6
      max-request-size: 300MB
7 8 9 10 11 12 13 14 15 16 17
      
feign:
  hystrix:
    enabled: true
  okhttp:
    enabled: true
  httpclient:
    enabled: false
  client:
    config:
      feignName:
18 19
        connectTimeout: 10000
        readTimeout: 10000
20 21 22 23 24
  compression:
    request:
      enabled: true
    response:
      enabled: true
25 26

ribbon:
27 28
  ReadTimeout: 3000
  ConnectTimeout: 3000
29 30
  #MaxAutoRetries: 3
  #MaxAutoRetriesNextServer: 1
31
  eureka:
32
    enabled: true
33 34 35 36
  Httpclient:
    enabled: false
  OkHttp:
    enabled: true
37 38
  eager-load:
    enabled: true
39
    clients: techhero-framework-config,techhero-framework-eureka,techhero-framework-auth,techhero-platform-exam,techhero-platform-system,techhero-business-track,techhero-business-command,techhero-business-transdata
40 41

hystrix:
42 43 44 45 46 47 48
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
49
            timeoutInMilliseconds: 3000
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
  threadpool:
    default:
      coreSize: 10
      maxQueueSize: 1000
      queueSizeRejectionThreshold: 800
    circuitBreaker:
      requestVolumeThreshold: 100 #熔断失败个数 超过既发生短路 默认20个
    fallback:
      isolation:
        semaphore:
          maxConcurrentRequests: 50 #回退线程数量
tomcat:
  max-connections: 500
  max-threads: 30
  min-spare-threads: 3
65 66
  accept-count: 10

67