summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2019-11-20 10:08:08 +0100
committerGitHub <noreply@github.com>2019-11-20 10:08:08 +0100
commitc697edf4f46c853230dfda2f934631759cd8ea6b (patch)
treefa61690ada04127e357c2f10a09d0cf870c3efa7 /redis.conf
parent808394b77d5b8c42d234e3bc991cd5f9cd29ab34 (diff)
parent0bc3dab0954e481b882a722f768ec0a5a7f725ae (diff)
downloadredis-c697edf4f46c853230dfda2f934631759cd8ea6b.tar.gz
Merge pull request #6559 from oranagra/active_defrag_tunables
Adjustments for active defrag defaults
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf16
1 files changed, 7 insertions, 9 deletions
diff --git a/redis.conf b/redis.conf
index 39e21b5e7..c4bf60222 100644
--- a/redis.conf
+++ b/redis.conf
@@ -1623,10 +1623,6 @@ rdb-save-incremental-fsync yes
########################### ACTIVE DEFRAGMENTATION #######################
#
-# WARNING THIS FEATURE IS EXPERIMENTAL. However it was stress tested
-# even in production and manually tested by multiple engineers for some
-# time.
-#
# What is active defragmentation?
# -------------------------------
#
@@ -1666,7 +1662,7 @@ rdb-save-incremental-fsync yes
# a good idea to leave the defaults untouched.
# Enabled active defragmentation
-# activedefrag yes
+# activedefrag no
# Minimum amount of fragmentation waste to start active defrag
# active-defrag-ignore-bytes 100mb
@@ -1677,11 +1673,13 @@ rdb-save-incremental-fsync yes
# Maximum percentage of fragmentation at which we use maximum effort
# active-defrag-threshold-upper 100
-# Minimal effort for defrag in CPU percentage
-# active-defrag-cycle-min 5
+# Minimal effort for defrag in CPU percentage, to be used when the lower
+# threshold is reached
+# active-defrag-cycle-min 1
-# Maximal effort for defrag in CPU percentage
-# active-defrag-cycle-max 75
+# Maximal effort for defrag in CPU percentage, to be used when the upper
+# threshold is reached
+# active-defrag-cycle-max 25
# Maximum number of set/hash/zset/list fields that will be processed from
# the main dictionary scan