Commit fd0c4c02 authored by zhaozhao.zz's avatar zhaozhao.zz
Browse files

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

parent 54cae05e
...@@ -1193,6 +1193,12 @@ hz 10 ...@@ -1193,6 +1193,12 @@ hz 10
# big latency spikes. # big latency spikes.
aof-rewrite-incremental-fsync yes 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 # 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 # 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 # how to improve the performances and how the keys LFU change over time, which
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment