application-prod.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #测试环境配置文件
  2. spring:
  3. datasource:
  4. url: jdbc:oracle:thin:@172.16.90.197:1521/ATTMS
  5. password: gxmestest
  6. username: gxmestest
  7. driver-class-name: oracle.jdbc.OracleDriver
  8. druid:
  9. max-active: 50
  10. initial-size: 10
  11. min-idle: 10
  12. max-wait: 3000
  13. # Oracle专属优化参数
  14. validation-query: SELECT 1 FROM DUAL # Oracle的验证查询
  15. test-while-idle: true
  16. test-on-borrow: false
  17. test-on-return: false
  18. time-between-eviction-runs-millis: 300000 # 空闲连接检测间隔
  19. remove-abandoned: true
  20. remove-abandoned-timeout: 600
  21. application:
  22. name: antai-wltms-api
  23. mvc:
  24. async:
  25. request-timeout: 15000
  26. # redis:
  27. # # Redis本地服务器地址,注意要开启redis服务,即那个redis-server.exe
  28. # host: 127.0.0.1
  29. # # Redis服务器端口,默认为6379.若有改动按改动后的来
  30. # port: 6379
  31. # #Redis服务器连接密码,默认为空,若有设置按设置的来
  32. # password:
  33. # jedis:
  34. # pool:
  35. # # 连接池最大连接数,若为负数则表示没有任何限制
  36. # max-active: 8
  37. # # 连接池最大阻塞等待时间,若为负数则表示没有任何限制
  38. # max-wait: -1
  39. # # 连接池中的最大空闲连接
  40. # max-idle: 8
  41. server:
  42. port: 8098
  43. tomcat:
  44. max-threads: 1000
  45. accept-count: 800
  46. eureka:
  47. client:
  48. registerWithEureka: false
  49. fetchRegistry: false
  50. openfeign:
  51. ColumnDataFeign:
  52. url: ${COLUMNDATAFEIGN_URL:172.16.90.202:80}
  53. AmsFeign:
  54. url: ${AMSFEIGN_URL:172.16.90.202:8079}
  55. WmsFeign:
  56. url: ${WMSFEIGN_URL:172.16.90.202:80}
  57. # url: ${WMSFEIGN_URL:localhost:8093}
  58. RmsFeign:
  59. url: ${RMSFEIGN_URL:172.16.90.202:80}
  60. EmsFeign:
  61. url: ${EMSFEIGN_URL:172.16.90.202:8096}
  62. WebSocketFeign:
  63. url: ${WEBSOCKETFEIGN_URL:172.16.90.214:80}
  64. # url: ${WEBSOCKETFEIGN_URL:localhost:8000}
  65. DzFeign:
  66. url: ${DZFEIGN_URL:172.16.90.202:8056}
  67. # url: ${DZFEIGN_URL:localhost:8056}
  68. REPORTFeign:
  69. url: ${REPORTFEIGN_URL:172.16.90.202:8055}
  70. TmiFeigh:
  71. url: ${TMI_URL:172.16.90.202:8018}
  72. # url: ${TMI_URL:localhost:8018}
  73. #远程调用
  74. feign:
  75. hystrix:
  76. enabled: false #开启熔断,熔断时间和feign超时时间必须一致,否则时间短的生效
  77. client:
  78. config:
  79. default: #默认配置,连接时间要短,读取时间要长
  80. connectTimeout: 3000 #单位毫秒
  81. readTimeout: 10000 #单位毫秒
  82. #熔断器
  83. hystrix:
  84. command:
  85. default:
  86. execution:
  87. timeout:
  88. enabled: true
  89. isolation:
  90. strategy: THREAD
  91. thread:
  92. timeoutInMilliseconds: 60000
  93. circuitBreaker:
  94. requestVolumeThreshold: 20
  95. sleepWindowInMilliseconds: 5000
  96. errorThresholdPercentage: 50
  97. metrics:
  98. rollingStats:
  99. timeInMilliseconds: 10000
  100. numBuckets: 10
  101. yourSpecificCommandKey: # 可以为特定命令单独配置
  102. execution:
  103. isolation:
  104. thread:
  105. timeoutInMilliseconds: 30000
  106. threadpool:
  107. default:
  108. coreSize: 20
  109. maximumSize: 50
  110. maxQueueSize: 1000
  111. queueSizeRejectionThreshold: 800
  112. allowMaximumSizeToDivergeFromCoreSize: true