• antirez's avatar
    CLIENT PAUSE and related API implemented. · 4919a13f
    antirez authored
    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.
    4919a13f
networking.c 56.4 KB