Skip to content

Commit

Permalink
Update commands/expire.md
Browse files Browse the repository at this point in the history
Co-authored-by: Viktor Söderqvist <[email protected]>
Signed-off-by: Anastasia Alexandrova <[email protected]>
  • Loading branch information
nastena1606 and zuiderkwast authored Feb 20, 2025
1 parent 619df0f commit 33dd659
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/expire.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ Changing the `active-expire-effort` value results in a lower percentage of expir

To calculate the new values, use the following formulas:

* `ACTIVE_EXPIRE_CYCLE_KEYS_PER_LOOP + (ACTIVE_EXPIRE_CYCLE_KEYS_PER_LOOP / 4 * effort)`
* `ACTIVE_EXPIRE_CYCLE_FAST_DURATION + (ACTIVE_EXPIRE_CYCLE_FAST_DURATION / 4 * effort)`
* `ACTIVE_EXPIRE_CYCLE_SLOW_TIME_PERC + (2 * effort)`
* `ACTIVE_EXPIRE_CYCLE_ACCEPTABLE_STALE - effort`
* `ACTIVE_EXPIRE_CYCLE_KEYS_PER_LOOP + (ACTIVE_EXPIRE_CYCLE_KEYS_PER_LOOP / 4 * (effort - 1))`
* `ACTIVE_EXPIRE_CYCLE_FAST_DURATION + (ACTIVE_EXPIRE_CYCLE_FAST_DURATION / 4 * (effort - 1))`
* `ACTIVE_EXPIRE_CYCLE_SLOW_TIME_PERC + (2 * (effort - 1))`
* `ACTIVE_EXPIRE_CYCLE_ACCEPTABLE_STALE - (effort - 1)`

where `ACTIVE_EXPIRE_CYCLE_KEYS_PER_LOOP`, `ACTIVE_EXPIRE_CYCLE_FAST_DURATION`, `ACTIVE_EXPIRE_CYCLE_SLOW_TIME_PERC`, and `ACTIVE_EXPIRE_CYCLE_ACCEPTABLE_STALE` are the base values, and `effort` is calculated as the specified `active-expire-effort` value minus 1.

Expand Down

0 comments on commit 33dd659

Please sign in to comment.