Commit 5e362ea2240bc79e768b66746812acfd8f39cb2e
Merge branch 'master' into 'master'
Gateway 集成 redis See merge request !25
Showing
1 changed file
with
42 additions
and
0 deletions
gateway.yml
| ... | ... | @@ -16,6 +16,20 @@ endpoints: |
| 16 | 16 | health: |
| 17 | 17 | sensitive: false |
| 18 | 18 | |
| 19 | +redis: | |
| 20 | + database: 0 | |
| 21 | + host: redis-server | |
| 22 | + port: 6379 | |
| 23 | + password: 123456 | |
| 24 | + pool: | |
| 25 | + max-idle: 100 | |
| 26 | + min-idle: 10 | |
| 27 | + max-active: 1000 | |
| 28 | + max-wait: 100000 | |
| 29 | + sentinel: | |
| 30 | + master: mymaster1 | |
| 31 | + nodes: redis-server:16379,redis-server:16379 | |
| 32 | + | |
| 19 | 33 | zuul: |
| 20 | 34 | host: |
| 21 | 35 | connect-timeout-millis: 10000 |
| ... | ... | @@ -104,6 +118,20 @@ endpoints: |
| 104 | 118 | health: |
| 105 | 119 | sensitive: false |
| 106 | 120 | |
| 121 | +redis: | |
| 122 | + database: 0 | |
| 123 | + host: redis-server | |
| 124 | + port: 6379 | |
| 125 | + password: 123456 | |
| 126 | + pool: | |
| 127 | + max-idle: 100 | |
| 128 | + min-idle: 10 | |
| 129 | + max-active: 1000 | |
| 130 | + max-wait: 100000 | |
| 131 | + sentinel: | |
| 132 | + master: mymaster1 | |
| 133 | + nodes: redis-server:16379,redis-server:16379 | |
| 134 | + | |
| 107 | 135 | zuul: |
| 108 | 136 | routes: |
| 109 | 137 | users: |
| ... | ... | @@ -180,6 +208,20 @@ endpoints: |
| 180 | 208 | health: |
| 181 | 209 | sensitive: false |
| 182 | 210 | |
| 211 | +redis: | |
| 212 | + database: 0 | |
| 213 | + host: redis1 | |
| 214 | + port: 6379 | |
| 215 | + password: 6cxbJLDsHU%^QG^qJwpT7ow | |
| 216 | + pool: | |
| 217 | + max-idle: 100 | |
| 218 | + min-idle: 10 | |
| 219 | + max-active: 1000 | |
| 220 | + max-wait: 100000 | |
| 221 | + sentinel: | |
| 222 | + master: mymaster1 | |
| 223 | + nodes: redis1:16379,redis2:16379 | |
| 224 | + | |
| 183 | 225 | zuul: |
| 184 | 226 | routes: |
| 185 | 227 | users: | ... | ... |