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

Redis overcommit_memory #3

Closed
hfagerlund opened this issue Apr 18, 2023 · 1 comment
Closed

Redis overcommit_memory #3

hfagerlund opened this issue Apr 18, 2023 · 1 comment
Assignees

Comments

@hfagerlund
Copy link
Owner

hfagerlund commented Apr 18, 2023

From terminal output of `$ ./vendor/bin/sail up ':

quiz_app-redis-1 
# WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under 
low memory condition. Being disabled, it can can also cause failures without low memory condition, see 
https://github.com/jemalloc/jemalloc/issues/1328. 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.
@hfagerlund hfagerlund converted this from a draft issue Apr 18, 2023
@hfagerlund hfagerlund self-assigned this Apr 18, 2023
@hfagerlund hfagerlund moved this from Todo to In Progress in quiz_app Apr 18, 2023
@hfagerlund
Copy link
Owner Author

hfagerlund commented Apr 18, 2023

Solved directly on the host system (ie. no PR required) by doing the following:

$ cd /etc/
$ sudo gedit sysctl.conf
## added the line below:
## vm.overcommit_memory = 1

## instead of restart, ran the following in a new (terminal) tab:
$ sudo sysctl vm.overcommit_memory=1

Verified that the warning no longer appeared in next run of ./vendor/bin/sail up.

@github-project-automation github-project-automation bot moved this from In Progress to Done in quiz_app Apr 18, 2023
@hfagerlund hfagerlund added this to the Fix Sail up warnings milestone Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant