svr-redis-memory.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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: prod
  24. redis:
  25. host: 192.168.50.82
  26. port: 6379
  27. password: q4YaQemf
  28. datasource:
  29. url: jdbc:mysql://192.168.210.3:3310/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  30. username: healthcloud
  31. password: GP8Qz4qU
  32. ehr-redis:
  33. cache:
  34. memory:
  35. rdbFilePath: /usr/local/bin/dump.rdb
  36. outFilePath: /home/ehr/redisReport/memory.csv