February 2018
Intermediate to advanced
382 pages
11h 33m
English
We will go through each setting or parameter mentioned in the previous section. The first setting we tweaked is overcommit_memory. As described in Chapter 6, Persistence, Redis takes advantage of copy-on-write (COW) when starting a background save. That means there is no need to have as much free RAM as the size of dataset in Redis. However, Linux, by default, may have the chance to check if there is enough free RAM to duplicate all the parent processes' memory pages. It may lead to the risk of getting a process OOM-killed. If that happens, you will find the save failure in the Redis running log as follows:
[1524] 24 Sep 10:00:56.037 # Can't save in background: fork: Cannot allocate memory
In fact, when you encounter such ...
Read now
Unlock full access