Repository navigation
Conversation
e3bc00a to
124d17c
Compare
8be0274 to
0b0483c
Compare
| cms: DelayedInit<Store<ContentDigest<ConfigMap>>>, | ||
| secrets: DelayedInit<Store<ContentDigest<Secret>>>, |
There was a problem hiding this comment.
I didn't look at the code but I think we should check memory usage here. commons-op stores all CM/Secrets in memory, so that can be big for big k8s clusters. We now need to store more? We should not introduce a regression by raising it (thus OOM-ing existing Pods)
There was a problem hiding this comment.
I'll take a look - my first thought on this is that it potentially reduces stored memory as this is more explicit about what to keep from the configmap / secret and the digest is small. I'll test it - also what this means for memory spikes as we need to read the whole content which is definitely more.
|
I like the general idea! Left some remarks but didn't have the time to look at the code 🙈 |
0367dfa to
6d85309
Compare
6d85309 to
dc33ab6
Compare
|
Update: We raised a different PR with a simpler approach: #481 |
|
Closed in favor of #481 |
Description
Adds a keyed digest of the configmap / secret's content to use for detecting required restarts instead of using
resourceVersionwhich gets bumped by e.g. metadata changes. This new digest is not used as default - the intention is to allow switching over to it via changing the annotationrestarter.stackable.tech/change-tracking-mechanismtodata-hashon desired statefulsets after the next release and provide a deprecation notice for the old mechanic. The following release will then move over to the new mechanic and remove the old one.The digest is computed using a key that is stored in a new secret. This is done by the operator. The approach was chosen to make sure low entropy secret values cannot be retrieved via brute force.
Switching from
resource-versiontodata-hashdoes not restart the Pods: the previous value is kept until the object is next written. Switching back restarts them once.Definition of Done Checklist
Author
Reviewer
Acceptance
type/deprecationlabel & add to the deprecation scheduletype/experimentallabel & add to the experimental features tracker