svr-redis-memory.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. spring:
  2. # REDIS
  3. redis:
  4. database: 0 # Database index used by the connection factory.
  5. timeout: 0 # Connection timeout in milliseconds.
  6. #sentinel:
  7. # master: # Name of Redis server.
  8. # nodes: # Comma-separated list of host:port pairs.
  9. pool:
  10. 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.
  11. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  12. 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.
  13. 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.
  14. datasource:
  15. driver-class-name: com.mysql.jdbc.Driver
  16. max-active: 20
  17. max-idle: 8
  18. min-idle: 8
  19. validation-query: SELECT 1
  20. test-on-borrow: true
  21. ---
  22. spring:
  23. profiles: dev
  24. datasource:
  25. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  26. username: chenweishan
  27. password: chenweishan
  28. redis:
  29. host: 172.19.103.47
  30. port: 6379
  31. password: redis!@456
  32. ehr-redis:
  33. cache:
  34. memory:
  35. rdbFilePath: /usr/local/bin/dump.rdb
  36. outFilePath: /home/ehr/redisReport/memory.csv
  37. ---
  38. spring:
  39. profiles: prod
  40. datasource:
  41. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  42. username: weifuwu
  43. password: weifuwu
  44. redis:
  45. host: 172.19.103.47 # Redis server host.
  46. ehr-redis:
  47. cache:
  48. memory:
  49. rdbFilePath: /usr/local/bin/dump.rdb
  50. outFilePath: /home/ehr/redisReport/memory.csv