-
Notifications
You must be signed in to change notification settings - Fork 15
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
Guess etcd replicas number function #239
Comments
I would definitely like to drop these steps altogether.
This seems redundant, as we already have this info from checking the Endpoints object:
I don't like this step at all:
IMO, if we found a value from a reliable source, such as |
it is created at initial and keeps existing all the time. It should always contain correct infromation, until someone will remove it, why no using it?
Are all our pods always get into service endpoints? If so it can be omitted. If we consider v2:
|
Etcd-headless service will always have endpoints - it doesn't rely on readiness probes => so all created pods with ip addresses will be in the headless-service. I personally do not like checking cluster-state configmap because in the past we agreed that this is some kind of cache and it would be nice to get this info from etcd pvcs. So amount of pvcs in my opinion is more reliable source than cluster-state cm. |
Okay it seems v3:
|
LGTM |
This function is tentatively implemented here as func (o *observables) desiredReplicas() (max int) {} |
According to the latest meeting
2024-06-18 MINUTES
we decided that we need a function that guesses the needed amount of etcd replicas.It can be used for recovering non-exising STS object and also for scaling from 0
Design ref: #181
Proposal:
guessed=0
initial-cluster-members
definedinitial-cluster-members
guessed
variablemember list
guessed
, save value intoguessed
variableguessed
, save value intoguessed
variableguessed
, save value intoguessed
variableguessed
, save value intoguessed
variableguessed
The text was updated successfully, but these errors were encountered: