完善生产Redis双中心架构文档
This commit is contained in:
@@ -870,6 +870,14 @@ messagehub:
|
||||
- 当前维护机源地址 `192.168.5.163` 已加入 `mysql02` 的 3306 allow 白名单,规则位于 3306 deny 规则之前并已持久化。
|
||||
- 后续新增维护机时只记录源地址、目标主机、端口和验证结果;账号、密码和完整连接命令仍只存放在本机私有敏感总表或 Nacos,不写入仓库文档。
|
||||
|
||||
### 2026-08-24 生产 Redis Sentinel 双中心架构
|
||||
|
||||
- 生产 Redis 已调整为 1 Master + 3 Slave + 5 Sentinel:中心1 `192.168.10.17`、`192.168.10.18`、`192.168.10.19` 为 Redis 数据节点并运行 Sentinel;中心2 `192.168.20.13` 为异地 Redis Slave 并运行 Sentinel;阿里云 newapi 节点 `10.66.0.4` 仅作为 Sentinel 仲裁。
|
||||
- 当前 Redis master 名称为 `mymaster`,当前 Master 为 `192.168.10.17:6379`;中心2 `prod-redis04` 设置 `replica-priority=200`,中心1从库优先参与同中心故障切换,中心1整体不可用时仍保留中心2提升能力。
|
||||
- Redis 开启 AOF,策略为 `appendonly yes`、`appendfsync everysec`;主要用于缓存、Session、Token 和分布式状态,仍按可接受极少量异步复制丢失的缓存类组件管理。
|
||||
- 阿里云 newapi 节点的 Redis Sentinel 使用 `redis-server /etc/redis/sentinel.conf --sentinel` 启动;部分发行包没有独立 `redis-sentinel` 可执行文件,后续重建服务前先检查实际可执行路径。
|
||||
- 验证方式:任一 Sentinel 执行 `SENTINEL get-master-addr-by-name mymaster` 应返回当前 Master;`SENTINEL ckquorum mymaster` 应返回 `OK 5 usable Sentinels`;当前 Master 的 `INFO replication` 应显示 `connected_slaves=3`。
|
||||
|
||||
### 生产 Nacos 命名空间清理与对象存储 bucket 状态
|
||||
|
||||
- 生产运行 namespace 只保留并使用 `jayu-cloud`;旧 `JayuCloud` / `jayuCloud` 不再作为生产配置入口。
|
||||
|
||||
Reference in New Issue
Block a user