Skip to content

[CI] Allow Limit CPUs in Docker#15668

Merged
junrushao merged 1 commit intoapache:mainfrom
junrushao:feature/2023-08-04/docker-cpus
Sep 6, 2023
Merged

[CI] Allow Limit CPUs in Docker#15668
junrushao merged 1 commit intoapache:mainfrom
junrushao:feature/2023-08-04/docker-cpus

Conversation

@junrushao
Copy link
Copy Markdown
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
Copy Markdown
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