Redis中cluster命令详解

CLUSTER ADDSLOTS slot [slot ...]

summary: Assign new hash slots to receiving node

since: 3.0.0

CLUSTER BUMPEPOCH -

summary: Advance the cluster config epoch

since: 3.0.0

CLUSTER COUNT-FAILURE-REPORTS node-id

summary: Return the number of failure reports active for a given node

since: 3.0.0

CLUSTER COUNTKEYSINSLOT slot

summary: Return the number of local keys in the specified hash slot

since: 3.0.0

CLUSTER DELSLOTS slot [slot ...]

summary: Set hash slots as unbound in receiving node

since: 3.0.0

CLUSTER FAILOVER [FORCE|TAKEOVER]

summary: Forces a replica to perform a manual failover of its master.

since: 3.0.0

CLUSTER FLUSHSLOTS -

summary: Delete a node's own slots information

since: 3.0.0

CLUSTER FORGET node-id

summary: Remove a node from the nodes table

since: 3.0.0

CLUSTER GETKEYSINSLOT slot count

summary: Return local key names in the specified hash slot

since: 3.0.0

CLUSTER INFO -

summary: Provides info about Redis Cluster node state

since: 3.0.0

CLUSTER KEYSLOT key

summary: Returns the hash slot of the specified key

since: 3.0.0

CLUSTER MEET ip port

summary: Force a node cluster to handshake with another node

since: 3.0.0

CLUSTER MYID -

summary: Return the node id

since: 3.0.0

CLUSTER NODES -

summary: Get Cluster config for the node

since: 3.0.0

CLUSTER REPLICAS node-id

summary: List replica nodes of the specified master node

since: 5.0.0

CLUSTER REPLICATE node-id

summary: Reconfigure a node as a replica of the specified master node

since: 3.0.0

CLUSTER RESET [HARD|SOFT]

summary: Reset a Redis Cluster node

since: 3.0.0

CLUSTER SAVECONFIG -

summary: Forces the node to save cluster state on disk

since: 3.0.0

CLUSTER SET-CONFIG-EPOCH config-epoch

summary: Set the configuration epoch in a new node

since: 3.0.0

CLUSTER SETSLOT slot IMPORTING|MIGRATING|STABLE|NODE [node-id]

summary: Bind a hash slot to a specific node

since: 3.0.0

CLUSTER SLAVES node-id

summary: List replica nodes of the specified master node

since: 3.0.0

CLUSTER SLOTS -

summary: Get array of Cluster slot to node mappings

since: 3.0.0

READONLY -

summary: Enables read queries for a connection to a cluster replica node

since: 3.0.0

READWRITE -

summary: Disables read queries for a connection to a cluster replica node

since: 3.0.0

相关推荐
互联网搬砖老肖33 分钟前
运维打铁: MongoDB 数据库集群搭建与管理
运维·数据库·mongodb
典学长编程1 小时前
数据库Oracle从入门到精通!第四天(并发、锁、视图)
数据库·oracle
积跬步,慕至千里2 小时前
clickhouse数据库表和doris数据库表迁移starrocks数据库时建表注意事项总结
数据库·clickhouse
极限实验室2 小时前
搭建持久化的 INFINI Console 与 Easysearch 容器环境
数据库
白仑色3 小时前
Oracle PL/SQL 编程基础详解(从块结构到游标操作)
数据库·oracle·数据库开发·存储过程·plsql编程
程序猿小D4 小时前
[附源码+数据库+毕业论文]基于Spring+MyBatis+MySQL+Maven+jsp实现的个人财务管理系统,推荐!
java·数据库·mysql·spring·毕业论文·ssm框架·个人财务管理系统
钢铁男儿5 小时前
C# 接口(什么是接口)
java·数据库·c#
__风__6 小时前
PostgreSQL kv(jsonb)存储
数据库·postgresql
轩情吖6 小时前
Qt的第一个程序(2)
服务器·数据库·qt·qt creator·qlineedit·hello world·编辑框
Databend6 小时前
Databend 产品月报(2025年6月)
数据库