Commit 07a5ef20896194b5e9b6d9da131669c1fc50fa0a
1 parent
8e7e6ba3
调整redis配置
Showing
1 changed file
with
6 additions
and
7 deletions
training-service.yml
| ... | ... | @@ -25,25 +25,24 @@ spring: |
| 25 | 25 | test-while-idle: true |
| 26 | 26 | redis: |
| 27 | 27 | pool: |
| 28 | - max-idle: 100 | |
| 29 | - min-idle: 10 | |
| 30 | - max-active: 1000 | |
| 31 | - max-wait: 100000 | |
| 28 | + max-idle: 20 | |
| 29 | + min-idle: 0 | |
| 30 | + max-active: 30 | |
| 31 | + max-wait: -1 | |
| 32 | 32 | |
| 33 | 33 | redis1: |
| 34 | 34 | database: 0 |
| 35 | 35 | host: 192.168.30.100 |
| 36 | 36 | port: 6379 |
| 37 | 37 | password: 123456 |
| 38 | + timeout: 1 | |
| 38 | 39 | |
| 39 | 40 | redis2: |
| 40 | 41 | database: 0 |
| 41 | 42 | host: 192.168.30.100 |
| 42 | 43 | port: 6380 |
| 43 | 44 | password: 123456 |
| 44 | - #sentinel: | |
| 45 | - #master: mymaster1 | |
| 46 | - #nodes: redis-server:16379,redis-server:16379 | |
| 45 | + timeout: 1 | |
| 47 | 46 | |
| 48 | 47 | activemq: |
| 49 | 48 | broker-url: failover:(tcp://192.168.30.100:61616)?initialReconnectDelay=100 #ActiveMQ use static transport for broker clusters. multicast discovery for broker clusters, JmsListener cannot auto receive messages from some ActiveMQ servers | ... | ... |