华夏棋牌

目录 搜索
Cluster cluster addslots(集群 槽位) cluster count failure reports(集群计数掉落败申报) cluster countkeysinslot cluster delslots cluster failover cluster forget cluster getkeysinslot cluster info cluster keyslot(集群键槽) cluster meet cluster nodes(集群节点) cluster replicate(集群复制) cluster reset(集群重置) cluster saveconfig cluster set config epoch cluster setslot cluster slaves cluster slots readonly readwrite Connection auth echo ping quit select swapdb Geo geoadd geodist geohash geopos georadius georadiusbymember Hashes hdel hexists hget hgetall hincrby hincrbyfloat hkeys hlen hmget hmset hscan hset hsetnx hstrlen hvals HyperLogLog pfadd pfcount pfmerge Keys del dump exists expire expireat keys migrate move object persist pexpire pexpireat pttl randomkey rename renamenx restore scan sort touch ttl type unlink wait Lists blpop brpop brpoplpush lindex linsert llen lpop lpush lpushx lrange lrem lset ltrim rpop rpoplpush rpush rpushx Pub/Sub psubscribe publish pubsub punsubscribe subscribe unsubscribe Scripting eval evalsha script debug script exists script flush script kill script load Server bgrewriteaof bgsave client getname client kill client list client pause client reply client setname command command count command getkeys command info config get config resetstat config rewrite config set dbsize debug object debug segfault flushall flushdb info lastsave monitor role save shutdown slaveof slowlog time Sets sadd scard sdiff sdiffstore sinter sinterstore sismember smembers smove spop srandmember srem sscan sunion sunionstore Sorted Sets zadd zcard zcount zincrby zinterstore zlexcount zrange zrangebylex zrangebyscore zrank zrem zremrangebylex zremrangebyrank zremrangebyscore zrevrange zrevrangebylex zrevrangebyscore zrevrank zscan zscore zunionstore Strings append bitcount bitfield bitop bitpos decr decrby get getbit getrange getset incr incrby incrbyfloat mget mset msetnx psetex set setbit setex setnx setrange strlen Transactions discard exec multi unwatch watch
文字

CLUSTER SET-CONFIG-EPOCH config-epoch

自3.0.0起可用。

时间严重年夜度: O(1)

该敕令在新节点中设置特定的装备时代华夏棋牌。它只适用于以下情形:

1. 节点的节点表是空的。

2. 节点以后装备时代为零。

这些先决条件是必须的,由于通常情形下,手动更改节点的装备时代是不安然的,我们欲望确保具有较高装备时代值(即最后一次误差切换)的节点胜过其他节点撒播张扬散列槽一切权。

然则,此规则有一个破例,而且是重新泉源培植新群集的时间。Redis 集群装备时代抵触处置赏罚赏罚算法可以在启动时处置赏罚赏罚一切应用类似装备装备的新节点,然则此历程很慢而且应当是破例,只是为了确保岂论发生甚么情形,两个以上的节点事实总是远离状态具有类似的装备时代。

是以,应用CONFIG SET-CONFIG-EPOCH,在培植新群集时,我们可以在将群集加入到一起之前为每个节点分配一个不合的渐进装备历元。

前往值

质朴的字符串回复:OK假定敕令推行告成,否则前往弱点。

上一篇: 下一篇: