Not planning and configuring the memory properly

The Redis server needs enough memory to perform backups if any strategy is enabled. In the worst-case scenario, redis-server may double the used memory during the backup.

During RDB snapshot creation and AOF rewriting, redis-server needs to duplicate itself (it executes the fork() system call). Chapter 8, Scaling Redis (Beyond a Single Instance), will introduce AOF and RDB, with details.

If the Redis instance is very busy during the fork() call, it is possible that the copy-on-write strategy and overcommitting the memory is not enough. In this case, the child process may need the same amount of memory (or an amount very close to it) as the parent.

Assuming that Linux is the operating system, set the ...

Get Redis Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.