svr-redis-memory.yml 1.9 KB

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