summaryrefslogtreecommitdiff
path: root/src/cluster.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-02-04 15:52:09 +0100
committerantirez <antirez@gmail.com>2014-02-04 16:16:09 +0100
commit4919a13f503ab4ac5ad5611987996c4432c8de08 (patch)
tree7065636719cc015e547fb22de73ff1fdd39d4689 /src/cluster.h
parentb089ba98cc9f638d79895535c6ae6aed25651a03 (diff)
downloadredis-4919a13f503ab4ac5ad5611987996c4432c8de08.tar.gz
CLIENT PAUSE and related API implemented.
The API is one of the bulding blocks of CLUSTER FAILOVER command that executes a manual failover in Redis Cluster. However exposed as a command that the user can call directly, it makes much simpler to upgrade a standalone Redis instance using a slave in a safer way. The commands works like that: CLIENT PAUSE <milliesconds> All the clients that are not slaves and not in MONITOR state are paused for the specified number of milliesconds. This means that slaves are normally served in the meantime. At the end of the specified amount of time all the clients are unblocked and will continue operations normally. This command has no effects on the population of the slow log, since clients are not blocked in the middle of operations but only when there is to process new data. Note that while the clients are unblocked, still new commands are accepted and queued in the client buffer, so clients will likely not block while writing to the server while the pause is active.
Diffstat (limited to 'src/cluster.h')
0 files changed, 0 insertions, 0 deletions