add rdb-save-incremental-fsync option in redis.conf

This commit is contained in:
zhaozhao.zz 2018-03-16 00:48:59 +08:00
parent 54cae05ea7
commit fd0c4c0277

View File

@ -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