svr-redis.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. info:
  2. app:
  3. name: SVR-REDIS
  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. #password: # Login password of the redis server.
  11. timeout: 0 # Connection timeout in milliseconds.
  12. #sentinel:
  13. # master: # Name of Redis server.
  14. # nodes: # Comma-separated list of host:port pairs.
  15. pool:
  16. 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.
  17. max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
  18. 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.
  19. 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.
  20. datasource:
  21. driver-class-name: com.mysql.jdbc.Driver
  22. max-active: 20
  23. max-idle: 8
  24. min-idle: 8
  25. validation-query: SELECT 1
  26. test-on-borrow: true
  27. hystrix:
  28. threadpool:
  29. default:
  30. coreSize: 60 #并发执行的最大线程数,默认10
  31. maxQueueSize: 100 #LinkedBlockingQueue的最大队列数,默认-1,使用SynchronousQueue
  32. #queueSizeRejectionThreshold: 50 #配置该值后,即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝
  33. ---
  34. spring:
  35. profiles: dev
  36. datasource:
  37. url: jdbc:mysql://172.26.0.104:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  38. username: ssgg
  39. password: ssgg@jkzl2019
  40. redis:
  41. host: 172.26.0.108
  42. port: 6390
  43. password:
  44. ehr-redis:
  45. mq:
  46. pubsub:
  47. publisherAppId: svr-redis
  48. responseTimeChannel: redis.cache.reponse-time
  49. ---
  50. spring:
  51. profiles: prod
  52. datasource:
  53. url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  54. username: weifuwu
  55. password: weifuwu
  56. redis:
  57. host: 172.19.103.47
  58. port: 6379
  59. password: redis!@456
  60. ehr-redis:
  61. mq:
  62. pubsub:
  63. publisherAppId: svr-redis
  64. responseTimeChannel: redis.cache.reponse-time