9.2.2. 为 HA 部署 3scale 的新安装
使用以下字段创建
backend-redis
和system-redis
secret:backend-redis
Copy to Clipboard Copied! Toggle word wrap Toggle overflow system-redis
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 当使用 sendinels 为 Redis 配置时,
backend-redis
和system-redis
中的对应URL
字段以redis://[:redis-password@]redis-group[/db]'
格式引用 Redis 组,其中 [x] 表示可选元素 x,redis-password
、redis-group
和db
是变量。示例
redis://:redispwd@mymaster/5
redis://:redispwd@mymaster/5
Copy to Clipboard Copied! Toggle word wrap Toggle overflow SENTINEL_HOSTS
字段采用以下格式以逗号分隔:redis://:sentinel-password@sentinel-hostname-or-ip:port
redis://:sentinel-password@sentinel-hostname-or-ip:port
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 对于列表的每个元素,[x] 表示可选元素 x,
sendinel-password
、finel-hostname-or-ip
,port
是相应地替换的变量:示例
:sentinelpwd@123.45.67.009:2711,:sentinelpwd@other-sentinel:2722
:sentinelpwd@123.45.67.009:2711,:sentinelpwd@other-sentinel:2722
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
SENTINEL_ROLE
字段为master
或slave
字段。
使用最新版本模板,部署 3scale,如 OpenShift 在 OpenShift 上部署 3scale 所示。
-
忽略因为
backend-redis
和system-redis
已存在的错误。
-
忽略因为