Skip to content

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

Open
mihneadb wants to merge 1 commit into
SwingbyProtocol:masterfrom
mihneadb:patch-1
Open

Cap CPU usage to 50% for bb containers to avoid blocking the host.#3
mihneadb wants to merge 1 commit into
SwingbyProtocol:masterfrom
mihneadb:patch-1

Conversation

@mihneadb

@mihneadb mihneadb commented May 7, 2021

Copy link
Copy Markdown
Contributor

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

mihneadb commented May 7, 2021

Copy link
Copy Markdown
Contributor Author

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