svr-redis.yml 2.2 KB

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