Bläddra i källkod

adjust param for redis

Sand Wen 9 år sedan
förälder
incheckning
36324c101c
1 ändrade filer med 26 tillägg och 0 borttagningar
  1. 26 0
      svr-pack-mgr.yml

+ 26 - 0
svr-pack-mgr.yml

@ -27,10 +27,30 @@ fast-dfs:
    anti-steal-token: no
    secret-key: FastDFS1234567890
spring:
  # REDIS
  redis:
    database: 0 # Database index used by the connection factory.
    port: 6379 # Redis server port.
    password: # Login password of the redis server.
    timeout: 0 # Connection timeout in milliseconds.
    #sentinel:
    #  master: # Name of Redis server.
    #  nodes: # Comma-separated list of host:port pairs.
    
    pool:
      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.
      max-idle: 8 # Max number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
      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.
      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.
---
spring:
  profiles: dev
  redis:
    host: 192.168.1.220 # Redis server host.
data-source:
  url: jdbc:mysql://192.168.1.220:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: ha
@ -44,6 +64,9 @@ fast-dfs:
spring:
  profiles: test
  redis:
    host: 172.19.103.47 # Redis server host.
data-source:
  url: jdbc:mysql://172.19.103.50:3306/healtharchive?useUnicode=true&characterEncoding=UTF-8
  user-name: weifuwu
@ -56,6 +79,9 @@ fast-dfs:
spring:
  profiles: prod
  redis:
    host: 11.1.2.20 # Redis server host.
fast-dfs:
  tracker-server: 11.1.2.9:22122