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! #980

Closed
tomkolp opened this issue Feb 24, 2021 · 4 comments
Closed

WARNING overcommit_memory is set to 0! #980

tomkolp opened this issue Feb 24, 2021 · 4 comments
Labels
question This is more a question for the support than an issue.

Comments

@tomkolp
Copy link

tomkolp commented Feb 24, 2021

Does this warning affect the performance of weblate in docker?
Performing the recommended solution on the main system does not change anything.
Maybe the changes are to be inside the container?
cache_1 | 1:M 19 Feb 2021 16:03:06.714 # 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.

@tomkolp tomkolp added the question This is more a question for the support than an issue. label Feb 24, 2021
@github-actions
Copy link

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you!

@nijel
Copy link
Member

nijel commented Feb 24, 2021

This comes from redis and setting on system level should address it, see redis/docker-library-redis#165 or redis/docker-library-redis#14 or https://r-future.github.io/post/how-to-fix-redis-warnings-with-docker/

@tomkolp
Copy link
Author

tomkolp commented Feb 24, 2021

File modification helped: docker-compose-https.yml
`version: '3'

services:

redis-overcommit-on-host

redis-overcommit:
build: https://github.com/bkuhl/redis-overcommit-on-host.git
restart: 'no'
privileged: true
volumes:
- /proc/sys/vm:/mnt/vm

Your existing Redis service

redis:
image: 'redis'
restart: 'always'
depends_on:
- redis-overcommit`

@tomkolp tomkolp closed this as completed Feb 24, 2021
@github-actions
Copy link

The issue you have reported is resolved now. If you don’t feel it’s right, please follow it’s labels to get a clue and take further steps.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

2 participants