redis / docker-library-redis

Docker Official Image packaging for Redis

Home Page:http://redis.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

overcommit_memory for Kubernetes

idan3 opened this issue · comments

Redis recommends in the docs to set vm.overcommit_memory = 1.
That's fine but what can I do when I run Redis on a Kubernetes pod? I do not want to enable it on the node because there are more pods running on this node.
Is there a solution for that?

#298 (comment):

This value is not namespaced and so must be set on the host as the container cannot set it.

The only solution is to set it on the host.

So is there a best practice for 'how to set Redis on Kubernetes cluster'?

Unfortunately, if you want to set this upstream-recommended setting you'll have to do it cluster-wide on your k8s host systems (the scope of doing that successfully is going to vary wildly across different ways of deploying k8s, so is not really something that could be documented in a "standard" way).