summaryrefslogtreecommitdiff
path: root/redis.conf
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2018-02-18 17:15:22 +0200
committerOran Agra <oran@redislabs.com>2018-03-12 15:07:43 +0200
commitbe1b4aa9aa76d15bb57b7159cb559a8b9dde5513 (patch)
tree78f1c4c0f5dfe02ab244fbc794f7aa622f82e3b4 /redis.conf
parentaa57481d8ce69938b20a2a7ea8ba06daadbc2dcd (diff)
downloadredis-be1b4aa9aa76d15bb57b7159cb559a8b9dde5513.tar.gz
active defrag v2
- big keys are not defragged in one go from within the dict scan instead they are scanned in parts after the main dict hash bucket is done. - add latency monitor sample for defrag - change default active-defrag-cycle-min to induce lower latency - make active defrag start a new scan right away if needed, so it's easier (for the test suite) to detect when it's done - make active defrag quick the current cycle after each db / big key - defrag some non key long term global allocations - some refactoring for smaller functions and more reusable code - during dict rehashing, one scan iteration of the dict, can end up scanning one bucket in the smaller dict and many many buckets in the larger dict. so waiting for 16 scan iterations before checking the time, may be much too long.
Diffstat (limited to 'redis.conf')
-rw-r--r--redis.conf6
1 files changed, 5 insertions, 1 deletions
diff --git a/redis.conf b/redis.conf
index 1e1f5313f..dbe5b588f 100644
--- a/redis.conf
+++ b/redis.conf
@@ -1302,8 +1302,12 @@ aof-rewrite-incremental-fsync yes
# active-defrag-threshold-upper 100
# Minimal effort for defrag in CPU percentage
-# active-defrag-cycle-min 25
+# active-defrag-cycle-min 5
# Maximal effort for defrag in CPU percentage
# active-defrag-cycle-max 75
+# Maximum number of set/hash/zset/list fields that will be processed from
+# the main dictionary scan
+# active-defrag-max-scan-fields 1000
+