Guess etcd replicas number function
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
Read the proposal in this issue and the linked design reference in pull request #181, then locate the operator code that handles StatefulSets, cluster state ConfigMaps, etcd membership, endpoints, PVCs, and pods. Map how those sources determine the replica count and where scaling or recovery consumes it. Done means a function returns the highest discovered replica index plus one across the listed sources.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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: https://github.com/aenix-io/etcd-operator/pull/181
Proposal:
- Create variable
guessed=0 - Check cluster-state configmap
- if configmap exists and
initial-cluster-membersdefined- if there are any hostnames defined in
initial-cluster-members- take the hostname of pod with highest number and +1
- save value into
guessedvariable
- save value into
- take the hostname of pod with highest number and +1
- if there are any hostnames defined in
- if configmap exists and
- Check endpoins for etcd-headless service
- if there are any endpoints
- connect to the cluster using endpoint and collect information from
member list- if there are any members in output from etcd
- take the hostname with highest number and +1
- if value is greater then value in
guessed, save value intoguessedvariable
- if value is greater then value in
- take the hostname with highest number and +1
- if there are any members in output from etcd
- read endpoints from kubernetes object:
- take the hostname of the pod for endpoint with highest number and +1
- if value is greater then value in
guessed, save value intoguessedvariable
- if value is greater then value in
- take the hostname of the pod for endpoint with highest number and +1
- connect to the cluster using endpoint and collect information from
- if there are any endpoints
- read persistent volume claims that falls under StatefulSet label selector
- if there are any pvcs
- take the name of the pvc with highest number and +1
- if value is greater then value in
guessed, save value intoguessedvariable
- if value is greater then value in
- take the name of the pvc with highest number and +1
- if there are any pvcs
- read pods pods that falls under StatefulSet label selector
- if there are any pods
- take the pod name with highest number and +1
- if value is greater then value in
guessed, save value intoguessedvariable
- if value is greater then value in
- take the pod name with highest number and +1
- if there are any pods
- return
guessed
- Lingua principale
- Go
- Stelle
- 154
- Fork
- 31
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cozystack/etcd-operator
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
cozystack/etcd-operator#385 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
cozystack/etcd-operator#383 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
cozystack/etcd-operator#381 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
cozystack/etcd-operator#374 · 1 commento ·
-
Adoption deletes the legacy cluster-state ConfigMap but leaves Pods referencing it, and neither self-heal path detects the resultForse già presa @androndo l’ha presa 46 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
cozystack/etcd-operator#373 ·
Tutte le issue di cozystack/etcd-operator
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Correct local module testing instructions for Go sample contributorsForse già presa @slievrly l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Forse già presa @pacwestnobody l’ha presa oggi. Apertago good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Podiom/Podiom#427 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
factory:subtask
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 1 giorno