[Design] Valkey Pod naming strategy #79
jdheyburn
started this conversation in
Design proposal
Replies: 1 comment 4 replies
-
|
Are replicas supposed to fall back to the original master node when it comes back up? If not, then a replica which has taken over a master will simply be named incorrectly until it fails again. Also, if it's not reverting back, then what would you name the new node taking over the failed master? I've just spent some time understanding the CloudNative-PG operator for PostgreSQL and they put the current role of each pod in a label, which is easy to both query and view. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Outlining a strategy for how Valkey Pods should be named.
Motivation
In the pre-0.1.0 release, Valkey pods are created with this naming (for 3 shards, 2 replicas):
This doesn't provide much information on what shards the pods are part of, and what their desired replication role is (master / replica).
While the proposed ValkeyNode CRD abstracts this away, we would still like the pod name to be recognisable in its primitive form.
Detailed Design
We can include varying attributes to the pod names:
Desired role in name
StatefulSet's will always append on the pod ordinal index
-0to pods. Given ValkeyNode would abstract the pod name away, does it really matter?Pros:
kubectl get podsCons:
kubectl get valkeynode -l shard=SHARD_NAME## Others
Please include other suggestions in the comments below
Open Questions
References
No response
Implementation
Beta Was this translation helpful? Give feedback.
All reactions