From fd0c4c027713d1d34a8dd5ef62556b9ac0940d45 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Fri, 16 Mar 2018 00:48:59 +0800 Subject: [PATCH] add rdb-save-incremental-fsync option in redis.conf --- redis.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/redis.conf b/redis.conf index 1e1f5313..427fc7dd 100644 --- a/redis.conf +++ b/redis.conf @@ -1193,6 +1193,12 @@ hz 10 # big latency spikes. aof-rewrite-incremental-fsync yes +# When redis saves RDB file, if the following option is enabled +# the file will be fsync-ed every 32 MB of data generated. This is useful +# in order to commit the file to the disk more incrementally and avoid +# big latency spikes. +rdb-save-incremental-fsync yes + # Redis LFU eviction (see maxmemory setting) can be tuned. However it is a good # idea to start with the default settings and only change them after investigating # how to improve the performances and how the keys LFU change over time, which