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
Update active expire doc to remove the potentially ambiguous - (#367)
There is a `-` in ACTIVE_EXPIRE_CYCLE_KEYS_PER_LOOP, which is a typo i
guess, and is a bit misleading.
The others are `–` i belive are ok, but it is still a bit misleading in
this number context, people might think it is a mathematical symbol.
Signed-off-by: Binbin <[email protected]>
Copy file name to clipboardExpand all lines: commands/expire.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,10 +152,10 @@ If the number of expired keys remains high after the slow cycle, the active expi
152
152
153
153
You can modify the active expire key effort with the `active-expire-effort` parameter in the configuration file up to the maximum value of `10`. The default `active-expire-effort` value is `1`, and it is described by the following base values:
154
154
155
-
*`ACTIVE_EXPIRE_CYCLE_KEYS_PER_LOOP`= 20 - The number of keys for each DB loop.
156
-
*`ACTIVE_EXPIRE_CYCLE_FAST_DURATION`= 1000 – The maximum duration of the fast cycle in microseconds.
157
-
*`ACTIVE_EXPIRE_CYCLE_SLOW_TIME_PERC`= 25 – The maximum % of CPU to use during the slow cycle.
158
-
*`ACTIVE_EXPIRE_CYCLE_ACCEPTABLE_STALE`= 10 – The maximum % of expired keys to tolerate in memory.
155
+
*`ACTIVE_EXPIRE_CYCLE_KEYS_PER_LOOP`has a base value of 20. The number of keys for each DB loop.
156
+
*`ACTIVE_EXPIRE_CYCLE_FAST_DURATION`has a base value of 1000. The maximum duration of the fast cycle in microseconds.
157
+
*`ACTIVE_EXPIRE_CYCLE_SLOW_TIME_PERC`has a base value of 25. The maximum % of CPU to use during the slow cycle.
158
+
*`ACTIVE_EXPIRE_CYCLE_ACCEPTABLE_STALE`has a base value of 10. The maximum % of expired keys to tolerate in memory.
159
159
160
160
Changing the `active-expire-effort` value results in a lower percentage of expired keys tolerated in memory. However, it will lead to longer cycles and increased CPU usage, which may introduce latency.
0 commit comments