svr-redis.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. hystrix:
  2. threadpool:
  3. default:
  4. coreSize: 60 #并发执行的最大线程数,默认10
  5. maxQueueSize: 100 #LinkedBlockingQueue的最大队列数,默认-1,使用SynchronousQueue
  6. #queueSizeRejectionThreshold: 50 #配置该值后,即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
  7. spring:
  8. # REDIS
  9. redis:
  10. database: 0 # Database index used by the connection factory.
  11. #password: # Login password of the redis server.
  12. timeout: 0 # Connection timeout in milliseconds.
  13. #sentinel:
  14. # master: # Name of Redis server.
  15. # nodes: # Comma-separated list of host:port pairs.
  16. pool:
  17. max-active: 8 # Max number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
  18. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  19. max-wait: -1 # Maximum amount of time (in milliseconds) a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
  20. min-idle: 1 # Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
  21. datasource:
  22. driver-class-name: com.mysql.jdbc.Driver
  23. max-active: 20
  24. max-idle: 8
  25. min-idle: 8
  26. validation-query: SELECT 1
  27. test-on-borrow: true
  28. ---
  29. spring:
  30. profiles: dev
  31. datasource:
  32. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  33. username: weifuwu
  34. password: weifuwu
  35. redis:
  36. host: 172.19.103.47
  37. port: 6379
  38. password: redis!@456
  39. ehr-redis:
  40. mq:
  41. pubsub:
  42. publisherAppId: svr-redis
  43. responseTimeChannel: redis.cache.reponse-time
  44. ---
  45. spring:
  46. profiles: test
  47. datasource:
  48. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  49. username: weifuwu
  50. password: weifuwu
  51. redis:
  52. host: 172.19.103.47
  53. port: 6379
  54. password: redis!@456
  55. ehr-redis:
  56. mq:
  57. pubsub:
  58. publisherAppId: svr-redis
  59. responseTimeChannel: redis.cache.reponse-time
  60. ---
  61. spring:
  62. profiles: prod_fz
  63. datasource:
  64. url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  65. username: healthcloud
  66. password: GP8Qz4qU
  67. redis:
  68. host: 11.1.2.22
  69. port: 6390
  70. password: Kb6wKDQP1W4
  71. ehr-redis:
  72. mq:
  73. pubsub:
  74. publisherAppId: svr-redis
  75. responseTimeChannel: redis.cache.reponse-time
  76. ---
  77. spring:
  78. profiles: prod_sr
  79. datasource:
  80. url: jdbc:mysql://10.176.97.9:3310/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  81. username: healthcloud
  82. password: GP8Qz4qU
  83. redis:
  84. host: 10.176.97.5
  85. port: 6390
  86. password: q4YaQemf
  87. ehr-redis:
  88. mq:
  89. pubsub:
  90. publisherAppId: svr-redis
  91. responseTimeChannel: redis.cache.reponse-time
  92. ---
  93. spring:
  94. profiles: prod_fzzy
  95. datasource:
  96. url: jdbc:mysql://100.100.1.159:3310/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  97. username: healthcloud
  98. password: GP8Qz4qU
  99. redis:
  100. host: 100.100.1.161
  101. port: 6390
  102. password: q4YaQemf
  103. ehr-redis:
  104. mq:
  105. pubsub:
  106. publisherAppId: svr-redis
  107. responseTimeChannel: redis.cache.reponse-time
  108. ---
  109. spring:
  110. profiles: prod_srformal
  111. datasource:
  112. url: jdbc:mysql://192.168.210.3:3310/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  113. username: healthcloud
  114. password: GP8Qz4qU
  115. redis:
  116. host: 192.168.50.82
  117. port: 6379
  118. password: q4YaQemf
  119. ehr-redis:
  120. mq:
  121. pubsub:
  122. publisherAppId: svr-redis
  123. responseTimeChannel: redis.cache.reponse-time