@moticless
Latest commit c0d7226 Oct 27, 2022 History
…redis#11098)

Renamed from "Pause Clients" to "Pause Actions" since the mechanism can pause
several actions in redis, not just clients (e.g. eviction, expiration).

Previously each pause purpose (which has a timeout that's tracked separately from others purposes),
also implicitly dictated what it pauses (reads, writes, eviction, etc). Now it is explicit, and
the actions that are paused (bit flags) are defined separately from the purpose.

- Previously, when using feature pause-client it also implicitly means to make the server static:
  - Pause replica traffic
  - Pauses eviction processing
  - Pauses expire processing

Making the server static is used also for failover and shutdown. This PR internally rebrand
pause-client API to become pause-action API. It also Simplifies pauseClients structure
by replacing pointers array with static array.

The context of this PR is to add another trigger to pause-client which will activated in case
of OOM as throttling mechanism ([see here](redis#10907)).
In this case we want only to pause client, and eviction actions.
16 contributors

Users who have contributed to this file

@antirez @oranagra @soloestoy @ShooterIT @MeirShpilraien @huangzhw @guybe7 @enjoy-binbin @zintrepid @z0s0 @zuiderkwast @moticless