-
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-30704 Prevent scale down evict #17976
HPCC-30704 Prevent scale down evict #17976
Conversation
https://track.hpccsystems.com/browse/HPCC-30704 |
NB: currently based off #17975 |
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.
a couple of issues.
helm/hpcc/templates/_helpers.tpl
Outdated
@@ -2527,3 +2527,16 @@ spec: | |||
{{- end -}} | |||
{{- end -}} | |||
{{- end -}} | |||
|
|||
{{/* | |||
A template to generate component annotations, merges statid efault annotatiosn with global and component annotations |
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.
typos....
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.
an impressive number of typos on 1 line!
helm/hpcc/templates/dafilesrv.yaml
Outdated
@@ -53,6 +53,7 @@ spec: | |||
helmVersion: 9.2.33-closedown0 | |||
annotations: | |||
checksum/config: {{ $configSHA }} | |||
{{- include "hpcc.generateAnnotations" $commonCtx | indent 8 }} |
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.
shouldn't these all be nindent?
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 {{- will chomp (ahead of the include function generating) so they'll be no additional blank line if there's nothing generated. But the helper function will generate a newline ahead of each new entry because the range doesn't chomp ahead of each iteration ({{- range $key, $value := $annotations }})
Example tested output:
annotations:
checksum/config: ab97c3620b03bcfc61e519ab700cb20fb8646bcf714641147b5073e682f0f910
one: 1
two: 2
spec:
Also failed the helm regression tests. |
@ghalliday - pushed the changed to the other commit : #17975. That will need merging first, this commit only introduces the safe-to-evict change on top of that PR. |
It is generally not safe for HPCC pods to be evicted based on scale down events because most are stateful (particularly those that have been dynamically launched as jobs). For now, prevent all pods from being deemed suitable for eviction by k8s on scale-down. We may later allow some that have replicas and aren't stateful or 'cheap' to evict and move and handle graceful termination to be safe, but it will then be better to use PodDisruptionBudget's Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
2f8b82f
to
83b961f
Compare
d79d020
into
hpcc-systems:candidate-9.2.x
It is generally not safe for HPCC pods to be evicted based on
scale down events because most are stateful (particularly those
that have been dynamically launched as jobs).
For now, prevent all pods from being deemed suitable for eviction
by k8s on scale-down.
We may later allow some that have replicas and aren't stateful
or 'cheap' to evict and move and handle graceful termination
to be safe, but it will then be better to use PodDisruptionBudget's
Signed-off-by: Jake Smith jake.smith@lexisnexisrisk.com
Type of change:
Checklist:
Smoketest:
Testing: