-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-31661 Add options to generate cpu resources as limits #18595
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-31661 Jirabot Action Result: |
From Copilot (experimental) This pull request primarily focuses on the modification of the Helm charts in the Key changes include: Addition of new global parameters:
Refactoring of resource allocation code:
These changes are aimed at providing more flexibility in managing CPU resources in a Kubernetes environment, especially when the |
helm/hpcc/templates/_helpers.tpl
Outdated
{{- $limits := omit $resources "cpu" }} | ||
{{- $requests := pick $resources "cpu" }} | ||
{{- $omitResources := hasKey .root.Values.global "omitResources" | ternary .root.Values.global.omitResources .root.Values.global.privileged }} | ||
{{- $resourceCpusWithLimits := hasKey .root.Values.global "resourceCpusWithLimits" | ternary .root.Values.global.resourceCpusWithLimits false -}} |
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.
trivial: double space before 'false'
helm/hpcc/templates/_helpers.tpl
Outdated
{{- $requests := pick $resources "cpu" }} | ||
{{- $omitResources := hasKey .root.Values.global "omitResources" | ternary .root.Values.global.omitResources .root.Values.global.privileged }} | ||
{{- $resourceCpusWithLimits := hasKey .root.Values.global "resourceCpusWithLimits" | ternary .root.Values.global.resourceCpusWithLimits false -}} | ||
{{- $resourceWholeCpusWithLimits := hasKey .root.Values.global "resourceWholeCpusWithLimits" | ternary .root.Values.global.resourceWholeCpusWithLimits false -}} |
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.
trivial: double space before 'false'
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.
@ghalliday - 2 trivial spacing issue. Looks good.
2a99612
to
d79afc6
Compare
@jakesmith please re-review for sanity. I have rebased onto latest to include your privileged change and the increase in stub resources. I have sanity checked all the parameters are correct, but looking for a second opinion to check we don't break something. |
helm/hpcc/values.schema.json
Outdated
@@ -273,6 +273,14 @@ | |||
"description": "if set, no resource definitions are generated from the helm charts", | |||
"type": "boolean" | |||
}, | |||
"resourceCpusWithLimits": { | |||
"description": "if set, cpu resources are provided as limits rather than requests. Not recommended because this can lead to painful throttling on roxie", |
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.
not just roxie - we saw on Thor originally I think
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.
@ghalliday - looks good afaics. 1 trivial comment.
Signed-off-by: Gavin Halliday <[email protected]>
Type of change:
Checklist:
Smoketest:
Testing: