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

相关推荐
努力成为AK大王26 分钟前
并发编程的核心挑战、优化方案与核心知识点总结
java·开发语言·数据库
En^_^Joy1 小时前
Django开发:模板系统入门指南
数据库·django·sqlite
无关86882 小时前
Redis Bitmaps 用户签到系统设计方案
数据库·redis·缓存
江华森2 小时前
FastAPI 极速开发指南 — 从零到生产级 API 实战
数据库·fastapi
小小工匠2 小时前
Redis - 如何使用 Redis 实现分布式锁
redis·性能优化·集群·并发
老纪3 小时前
Redis分布式锁进第九零篇
数据库·redis·分布式
haven-8523 小时前
MySQL事务ACID、隔离级别、MVCC、幻读解决
数据库·mysql
小高学习java3 小时前
事务的边界问题,如何判断数据回滚时机。
java·数据库·后端
迷枫7124 小时前
【无标题】
数据库
TDengine (老段)5 小时前
TDengine 扫描算子 — TableScan、TagScan 与下推优化
大数据·数据库·物联网·时序数据库·tdengine·涛思数据