svr-redis.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. logging:
  2. level:
  3. com:
  4. netflix: INFO
  5. org:
  6. springframework:
  7. web: INFO
  8. hibernate: ERROR
  9. spring:
  10. # REDIS
  11. redis:
  12. database: 0 # Database index used by the connection factory.
  13. port: 6379 # Redis server port.
  14. #password: # Login password of the redis server.
  15. timeout: 0 # Connection timeout in milliseconds.
  16. #sentinel:
  17. # master: # Name of Redis server.
  18. # nodes: # Comma-separated list of host:port pairs.
  19. pool:
  20. 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.
  21. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  22. 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.
  23. 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.
  24. datasource:
  25. driver-class-name: com.mysql.jdbc.Driver
  26. max-active: 20
  27. max-idle: 8
  28. min-idle: 8
  29. validation-query: SELECT 1
  30. test-on-borrow: true
  31. fast-dfs:
  32. pool:
  33. init-size: 5
  34. max-size: 20
  35. wait-time: 500
  36. connect-timeout: 2
  37. network-timeout: 30
  38. charset: ISO8859-1
  39. http:
  40. tracker-http-port: 80
  41. anti-steal-token: no
  42. secret-key: FastDFS1234567890
  43. ---
  44. spring:
  45. profiles: dev
  46. datasource:
  47. url: jdbc:mysql://192.168.1.220:3306/xmehr?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  48. username: xmehr
  49. password: xmehr
  50. redis:
  51. host: 172.19.103.47 # Redis server host.
  52. port: 6379
  53. password: redis!@456
  54. fast-dfs:
  55. tracker-server: 172.19.103.13:22122
  56. public-server: http://172.19.103.52:80
  57. password: ha
  58. ehr-redis:
  59. mq:
  60. pubsub:
  61. publisherAppId: svr-redis
  62. responseTimeChannel: redis.cache.reponse-time
  63. cache:
  64. memory:
  65. rdbFilePath: /usr/local/bin/dump.rdb
  66. outFilePath: /usr/local/ehr/redisReport/memory.csv
  67. # 由于生产环境服务器维护通过堡垒机管理,不允许代码直接通过SSH访问远程服务器。
  68. # 暂时注释,寻求别的方法再去掉。
  69. # server:
  70. # host: 172.19.103.47
  71. # username: root
  72. # password: jkzl
  73. # ssh-port: 22
  74. ---
  75. spring:
  76. profiles: alpha
  77. datasource:
  78. url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  79. username: ha
  80. password: ha
  81. redis:
  82. host: 192.168.1.220 # Redis server host.
  83. password: # Login password of the redis server.
  84. fast-dfs:
  85. tracker-server: 172.19.103.54:22122
  86. public-server: http://172.19.103.54:22122
  87. ehr-redis:
  88. mq:
  89. pubsub:
  90. publisherAppId: svr-redis
  91. responseTimeChannel: redis.cache.reponse-time
  92. cache:
  93. memory:
  94. rdbFilePath: /usr/local/bin/dump.rdb
  95. outFilePath: /usr/local/ehr/redisReport/memory.csv
  96. # server:
  97. # host: 172.19.103.47
  98. # username: root
  99. # password: jkzl
  100. # ssh-port: 22
  101. ---
  102. spring:
  103. profiles: test
  104. datasource:
  105. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  106. username: weifuwu
  107. password: weifuwu
  108. redis:
  109. host: 172.19.103.47 # Redis server host.
  110. password: # Login password of the redis server.
  111. fast-dfs:
  112. tracker-server: 172.19.103.13:22122
  113. public-server: http://172.19.103.52:80
  114. ehr-redis:
  115. mq:
  116. pubsub:
  117. publisherAppId: svr-redis
  118. responseTimeChannel: redis.cache.reponse-time
  119. cache:
  120. memory:
  121. rdbFilePath: /usr/local/bin/dump.rdb
  122. outFilePath: /usr/local/ehr/redisReport/memory.csv
  123. # server:
  124. # host: 172.19.103.47
  125. # username: root
  126. # password: jkzl
  127. # ssh-port: 22
  128. ---
  129. spring:
  130. profiles: prod
  131. redis:
  132. host: 11.1.2.20 # Redis server host.
  133. password: # Login password of the redis server.
  134. datasource:
  135. url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  136. username: ha
  137. password: jkzlxm
  138. fast-dfs:
  139. tracker-server: 11.1.2.9:22122
  140. public-server: http://ds.ehr.yihu.com:22122
  141. ehr-redis:
  142. mq:
  143. pubsub:
  144. publisherAppId: svr-redis
  145. responseTimeChannel: redis.cache.reponse-time
  146. cache:
  147. memory:
  148. rdbFilePath: /usr/local/bin/dump.rdb
  149. outFilePath: /usr/local/ehr/redisReport/memory.csv
  150. # server:
  151. # host: 172.19.103.47
  152. # username: root
  153. # password: jkzl
  154. # ssh-port: 22
  155. ---
  156. spring:
  157. profiles: prod_fz
  158. datasource:
  159. url: jdbc:mysql://11.1.2.5:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  160. username: healthcloud
  161. password: GP8Qz4qU
  162. redis:
  163. host: 11.1.2.22 # Redis server host.
  164. port: 6390
  165. password: Kb6wKDQP1W4
  166. fast-dfs:
  167. tracker-server: 11.1.2.9:22122
  168. public-server: http://11.1.2.9:80
  169. ehr-redis:
  170. mq:
  171. pubsub:
  172. publisherAppId: svr-redis
  173. responseTimeChannel: redis.cache.reponse-time
  174. cache:
  175. memory:
  176. rdbFilePath: /usr/local/bin/dump.rdb
  177. outFilePath: /usr/local/ehr/redisReport/memory.csv
  178. # server:
  179. # host: 172.19.103.47
  180. # username: root
  181. # password: jkzl
  182. # ssh-port: 22
  183. ---
  184. spring:
  185. profiles: prod_sr
  186. datasource:
  187. url: jdbc:mysql://10.176.97.9:3310/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  188. username: healthcloud
  189. password: GP8Qz4qU
  190. redis:
  191. host: 10.176.97.5 # Redis server host.
  192. port: 6390
  193. password: q4YaQemf
  194. fast-dfs:
  195. tracker-server: 10.176.97.5:22122
  196. public-server: http://10.176.97.5:8888
  197. ehr-redis:
  198. mq:
  199. pubsub:
  200. publisherAppId: svr-redis
  201. responseTimeChannel: redis.cache.reponse-time
  202. cache:
  203. memory:
  204. rdbFilePath: /usr/local/bin/dump.rdb
  205. outFilePath: /usr/local/ehr/redisReport/memory.csv
  206. # server:
  207. # host: 172.19.103.47
  208. # username: root
  209. # password: jkzl
  210. # ssh-port: 22