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

Add ability to set CPU limits/requests on the plugin containers #15977

Merged
merged 36 commits into from
Mar 2, 2020

Conversation

mshaposhnik
Copy link
Contributor

@mshaposhnik mshaposhnik commented Feb 10, 2020

What does this PR do?

Add ability to set CPU limits/requests as well on the plugin containers. Alwo memory request is added. Example of plugin configuration:

containers:
   - name: che-machine-exec
     image: "mshaposh/exec:latest"
     ports:
       - exposedPort: 4444
     memoryLimit: "444M"  
     memoryRequest: "117M"  
     cpuRequest: "0.117"
     cpuLimit: "444m"

Note that CPU resources may be set both in cores (as 0.117) and millicores (as 117m)

Here is demo screenshot where all WS machines has different limit (mixed from default and explicitly set values):

RAM CPU_limits

What issues does this PR fix or reference?

#13709

Docs PR

Pending..

@che-bot
Copy link
Contributor

che-bot commented Feb 10, 2020

Can one of the admins verify this patch?

@che-bot che-bot added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/enhancement A feature request - must adhere to the feature request template. labels Feb 10, 2020
@che-bot
Copy link
Contributor

che-bot commented Feb 11, 2020

❌ E2E Happy path tests failed ❗

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

⚠️ https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

@eclipse-che eclipse-che deleted a comment from che-bot Feb 11, 2020
@eclipse-che eclipse-che deleted a comment from che-bot Feb 11, 2020
@eclipse-che eclipse-che deleted a comment from che-bot Feb 11, 2020
@sleshchenko
Copy link
Member

@mshaposhnik It is possible to configure CPU for plugin's init containers as well? Like for theia https://github.com/eclipse/che-plugin-registry/blob/master/v3/plugins/eclipse/che-theia/7.8.0/meta.yaml#L70

@che-bot
Copy link
Contributor

che-bot commented Feb 20, 2020

✅ E2E Happy path tests succeed 🎉

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

Copy link
Contributor

@metlos metlos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor wording nitpick, otherwise LGTM.

@che-bot
Copy link
Contributor

che-bot commented Feb 25, 2020

❌ E2E Happy path tests failed ❗

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

⚠️ https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

@che-bot
Copy link
Contributor

che-bot commented Feb 25, 2020

❌ E2E Happy path tests failed ❗

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

⚠️ https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

@mshaposhnik
Copy link
Contributor Author

crw-ci-test

@che-bot
Copy link
Contributor

che-bot commented Feb 25, 2020

✅ E2E Happy path tests succeed 🎉

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

@mshaposhnik
Copy link
Contributor Author

ci-test

1 similar comment
@mshaposhnik
Copy link
Contributor Author

ci-test

@mshaposhnik
Copy link
Contributor Author

ci-test-please

@mshaposhnik
Copy link
Contributor Author

[ci-test]

@che-bot
Copy link
Contributor

che-bot commented Feb 26, 2020

E2E tests of Eclipse Che Multiuser on OCP has failed:

Use command [ci-test] to rerun the test.

@che-bot
Copy link
Contributor

che-bot commented Feb 26, 2020

E2E tests of Eclipse Che Multiuser on OCP has failed:

Use command [ci-test] to rerun the test.

@che-bot
Copy link
Contributor

che-bot commented Feb 26, 2020

✅ E2E Happy path tests succeed 🎉

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

@mshaposhnik
Copy link
Contributor Author

[ci-test]

@mshaposhnik
Copy link
Contributor Author

[ci-build]

@che-bot
Copy link
Contributor

che-bot commented Feb 27, 2020

E2E tests of Eclipse Che Multiuser on OCP has failed:

Use command [ci-test] to rerun the test.

@mshaposhnik
Copy link
Contributor Author

ci-test

@mshaposhnik
Copy link
Contributor Author

[ci-test]

@che-bot
Copy link
Contributor

che-bot commented Mar 2, 2020

E2E tests of Eclipse Che Multiuser on OCP has been successful:

@mshaposhnik mshaposhnik merged commit 9732139 into master Mar 2, 2020
@mshaposhnik mshaposhnik deleted the cpuLimit branch March 2, 2020 10:35
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Mar 2, 2020
@che-bot che-bot added this to the 7.10.0 milestone Mar 2, 2020
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.

6 participants