Source: zaynkorai.medium.com

Redis for DevOps Engineers
At least once in DevOps/SRE career you may have deployed Redis or worked on it. Redis is open source key-value store and it is mostly used for Cache but Redis is much more than a cache. It has in-memory data structure store, used as a database, cache, and message broker.

If you are using Redis version lower than 4.0 consider upgrading it to higher.Disable Swap CompletelyIf an operating system has SWAP configured — it can dump some Redis’ data to the disk and later when Redis will try to access them — it can take a long time to read them back to the memory.sysctl -w vm.swappiness=0More Cores != Better++Redis is a single threaded process and will, at most, consume two cores if you have persistence enabled.

Redis Cluster allows you to break apart keys amongst sets of given masters/slaves based on key ranges.If clustering is not an option, consider namespacing and distributing your keys among multiple instances.An amazing write-up on partitioning your data can be found on the redis.io website here.

Related Articles