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

Limit CPU consumption by build docker image tasks #3893

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

mmorhun
Copy link
Contributor

@mmorhun mmorhun commented Jan 25, 2017

What does this PR do?

Adds limits on CPU consumption by build docker image task.
Adds a few tests.

What issues does this PR fix or reference?

codenvy/codenvy#1393

Changelog

Adds CPU limits to Docker build process executions so they don't starve an entire node.

Release Notes

** CPU Limiting for Docker Builds **
We've added a CPU limiter for executions of the Docker build process. Build operations can be very CPU-intensive and this limit ensures that they don't starve workspaces on the same node. You can set other types of resource limits for Che through properties in the che.env file.

Signed-off-by: Mykola Morhun <mmorhun@codenvy.com>
@codenvy-ci
Copy link

@mmorhun mmorhun merged commit 87b09c0 into master Jan 25, 2017
@mmorhun mmorhun deleted the add-limit-cpu-comsumption-by-docker-build branch January 25, 2017 15:33
@vkuznyetsov vkuznyetsov added this to the 5.2.0 milestone Jan 27, 2017
@slemeur slemeur added the kind/enhancement A feature request - must adhere to the feature request template. label Feb 1, 2017
@slemeur slemeur changed the title CODENVY-1393: Limit CPU consumption by build docker image tasks Limit CPU consumption by build docker image tasks Feb 1, 2017
@bmicklea
Copy link

bmicklea commented Feb 1, 2017

@mmorhun - can you briefly explain if this helps customer and how it changes things for them?

@mmorhun
Copy link
Contributor Author

mmorhun commented Feb 2, 2017

@bmicklea this issue applys CPU comsumption limits which was added by @garagatyi in this issue (except CgroupParent - N/A) to build image process. It is important, because build can consume much resources of CPU (for example multithreaded compilation of huge project) and can slow down whole system.

@bmicklea bmicklea requested review from bmicklea and removed request for bmicklea February 2, 2017 16:29
@bmicklea
Copy link

bmicklea commented Feb 2, 2017

Great, added Changelog

@JamesDrummond JamesDrummond mentioned this pull request Feb 6, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
…n-by-docker-build

CODENVY-1393: Limit CPU consumption by build docker image tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants