Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING overcommit_memory is set to 0 #14

Closed
nimf opened this issue Oct 28, 2014 · 5 comments
Closed

WARNING overcommit_memory is set to 0 #14

nimf opened this issue Oct 28, 2014 · 5 comments

Comments

@nimf
Copy link

nimf commented Oct 28, 2014

When I start container, I see this in logs:

WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

I want data to be persistent. Should I worry about it?

@yosifkit
Copy link
Contributor

Not being a big redis user I am not sure on the implications of this setting, but you can provide your own redis.conf (see the redis doc on the Docker hub).

@abunimeh
Copy link

The short answer to your question is No.

If you think you application is going to use a lot of memory. i.e. more than your RAM then set this to 1.
You cannot set this using redis.conf like @yosifkit said.

@nimf
Copy link
Author

nimf commented Nov 26, 2014

Ok, thank you.

@bkuhl
Copy link

bkuhl commented Feb 21, 2018

This isn't a "run a container to solve a problem" kind of thing, but I appreciate there being containers running as part of a stack to help serve as documentation for what's been done to the host. That said, I believe some folks may find https://github.com/bkuhl/redis-overcommit-on-host useful.

@adhil-bit

This comment was marked as off-topic.

@redis redis locked as resolved and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants