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

[CI] Allow Limit CPUs in Docker #15668

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

junrushao
Copy link
Member

This PR adds a new flag --cpus in ./docker/bash.sh, which is passed to docker command that allows limiting the number of CPU cores of a docker container.

Related materials: https://docs.docker.com/config/containers/resource_constraints/#configure-the-default-cfs-scheduler

@junrushao junrushao marked this pull request as ready for review September 4, 2023 23:23
@junrushao
Copy link
Member Author

CC: @tqchen

This PR adds a new flag `--cpus` in `./docker/bash.sh`, which is passed
to docker command that allows limiting the number of CPU cores of a
docker container.

Related materials: https://docs.docker.com/config/containers/resource_constraints/#configure-the-default-cfs-scheduler
@junrushao junrushao force-pushed the feature/2023-08-04/docker-cpus branch from ffb076d to 2ed8959 Compare September 5, 2023 20:18
@junrushao junrushao merged commit ea388e5 into apache:main Sep 6, 2023
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.

2 participants