Commit 461acd976bc6411766128717ff3b5800ac223a9c
1 parent
9d215ca3
Gateway 集成 redis
Showing
1 changed file
with
42 additions
and
0 deletions
gateway.yml
| @@ -16,6 +16,20 @@ endpoints: | @@ -16,6 +16,20 @@ endpoints: | ||
| 16 | health: | 16 | health: |
| 17 | sensitive: false | 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 | zuul: | 33 | zuul: |
| 20 | host: | 34 | host: |
| 21 | connect-timeout-millis: 10000 | 35 | connect-timeout-millis: 10000 |
| @@ -104,6 +118,20 @@ endpoints: | @@ -104,6 +118,20 @@ endpoints: | ||
| 104 | health: | 118 | health: |
| 105 | sensitive: false | 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 | zuul: | 135 | zuul: |
| 108 | routes: | 136 | routes: |
| 109 | users: | 137 | users: |
| @@ -180,6 +208,20 @@ endpoints: | @@ -180,6 +208,20 @@ endpoints: | ||
| 180 | health: | 208 | health: |
| 181 | sensitive: false | 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 | zuul: | 225 | zuul: |
| 184 | routes: | 226 | routes: |
| 185 | users: | 227 | users: |