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

Cap CPU usage to 50% for bb containers to avoid blocking the host. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mihneadb
Copy link
Contributor

@mihneadb mihneadb commented May 7, 2021

My pro-6-m instance would block completely, not even allowing SSH while running bb containers. This caps their CPU usage to 50% of whatever the machine has available, which is enough to keep up with sync but not kill the machine.

Docs:
https://github.com/compose-spec/compose-spec/blob/master/spec.md#cpu_percent
https://docs.docker.com/config/containers/resource_constraints/

@mihneadb
Copy link
Contributor Author

mihneadb commented May 7, 2021

My instance still hanged with this. Needs more tweaking..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant