Skip to content

Commit b1edacb

Browse files
authored
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]>
1 parent 806a16a commit b1edacb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commands/expire.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ If the number of expired keys remains high after the slow cycle, the active expi
152152

153153
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:
154154

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.
159159

160160
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.
161161

0 commit comments

Comments
 (0)