You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLIENT PAUSE is a connections control command able to suspend all the Dragonfly clients for the specified amount of time (in milliseconds).
19
+
20
+
The command performs the following actions:
21
+
22
+
It stops processing all the pending commands from normal and pub/sub clients for the given mode. However interactions with replicas will continue normally. Note that clients are formally paused when they try to execute a command, so no work is taken on the server side for inactive clients.
23
+
However it returns `OK` to the caller as soon as possible, so the `CLIENT PAUSE` command execution is not paused by itself.
24
+
When the specified amount of time has elapsed, all the clients are unblocked: this will trigger the processing of all the commands accumulated in the query buffer of every client during the pause.
25
+
Client pause currently supports two modes:
26
+
27
+
* ALL: This is the default mode. All client commands are blocked.
28
+
* WRITE: Clients are only blocked if they attempt to execute a write command.
29
+
30
+
## Return
31
+
Simple string reply: OK or an error if the timeout is invalid.
0 commit comments