-
Notifications
You must be signed in to change notification settings - Fork 150
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
Decrease cpu limits to allow run a workspace on minikube with default cpu configuration #832
Conversation
…ration Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -87,8 +87,8 @@ editors: | |||
- exposedPort: 13132 | |||
- exposedPort: 13133 | |||
memoryLimit: "512M" | |||
cpuLimit: 1500m | |||
cpuRequest: 500m | |||
cpuLimit: 1000m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason to lower the CPU Limit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will decrease Theia performances without any real benefit (on minikube it works fine with cpu limit set to 1500).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why CPU Limit was decreased was monitoring overall consumption of CPU by Theia container, which was around 0.2 CPU for all workspace lifecycle. Created revert commit, that sets up previous value for the cpuLimit: #833. So the only cpuRequest value is being updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
What does this PR do?
This change proposal lowers the value for the cpuLimit and cpuRequest to allow workspace to run on minikube, which is run with default CPU configuration. By default the value for the CPU is set to 2. After merging the following PR, the general cpuRequest value is more than minikube is available to provide for normal workspace startup. The new values for the cpuLimit is set from 1.5 to 1 and for the cpuRequest is set from 0.5 to 0.1.
Tested on OSIO, RHPDS, Dogfooding and minikube.
Signed-off-by: Vladyslav Zhukovskyi vzhukovs@redhat.com
Screenshot/screencast of this PR
N/A
What issues does this PR fix or reference?
fixes eclipse-che/che#18955
How to test this PR?
Start minikube with the following configuration:
Deploy Che:
Create the workspace from the following devfile:
devfile
Workspace should be able to start and do not show the error message:
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.