Guess etcd replicas number function
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 30/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Go
- Sterne
- 154
- Forks
- 31
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cozystack/etcd-operator
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
cozystack/etcd-operator#385 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
cozystack/etcd-operator#383 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
cozystack/etcd-operator#381 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cozystack/etcd-operator#374 · 1 Kommentar ·
-
Adoption deletes the legacy cluster-state ConfigMap but leaves Pods referencing it, and neither self-heal path detects the resultEvtl. vergeben @androndo hat das vor 46 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cozystack/etcd-operator#373 ·
Alle Issues in cozystack/etcd-operator
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Correct local module testing instructions for Go sample contributorsEvtl. vergeben @slievrly hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Evtl. vergeben @pacwestnobody hat das heute übernommen. Offengo good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Podiom/Podiom#427 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
factory:subtask
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
Maintainer antworten meist innerhalb von 1 Tag