| 配置 | cluster-enabled yes |
|---|---|
| 状态 | CLUSTER INFO 的 cluster_state |
| 数据 | 集群模式使用单库(不支持 SELECT 多库) |
示例
示例
port 7000
cluster-enabled yes
cluster-config-file nodes-7000.conf
cluster-node-timeout 15000集群模式不支持多数据库:SELECT 非 0 会报错,依赖多库的应用要先改造。
cluster-enabled yes 打开集群模式,实例启动后进入集群状态;未加入任何节点的实例处于「集群状态不可用」但可执行 CLUSTER MEET 加入。
| 配置 | cluster-enabled yes |
|---|---|
| 状态 | CLUSTER INFO 的 cluster_state |
| 数据 | 集群模式使用单库(不支持 SELECT 多库) |
port 7000
cluster-enabled yes
cluster-config-file nodes-7000.conf
cluster-node-timeout 15000