kubernetes: opt-in to connect only to Ready pods
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
Start by reading the Kubernetes strategy implementation and its tests for pods mode; the issue does not name specific files. Trace how discovered pod conditions affect which pods are connected, then check how the proposed opt-in setting fits the existing configuration and documentation. Done means the default preserves current behavior and the ready-only option connects only to pods with a Ready condition of True.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Steps to reproduce
- Configuration Used:
Cluster.Strategy.Kubernetes,kubernetes_ip_lookup_mode: :pods, any namespace/selector. - Strategy Used:
Cluster.Strategy.Kubernetes(pods mode). - Errors/Incorrect Behaviour Encountered: the strategy connects to every discovered pod that is
Running, has an IP and is not terminating, including pods whoseReadycondition isFalse.
Description of issue
That behavior is deliberate (the docs say readiness can depend on cluster formation), but it rules out a common deployment shape: only dialling a peer once it is actually serving. In our case a pod that is distributed but still booting should be discovered yet not connected to, because the work handlers are not up.
Endpoints and EndpointSlice modes gate on readiness, but they're a flat address list that drops terminating endpoints, so they can't express "discovered but not dialable". Pods mode already returns the conditions, so no extra request is needed.
Would an opt-in option in pods mode be acceptable in principle?
kubernetes_pod_readiness: :any | :ready
:any(default) keeps connecting to non-ready Running pods, as today.:readyonly connects to pods whoseReadycondition isTrue.
The documentation is correct as written; this would be an additional mode rather than a correction.
- Vorherrschende Sprache
- Elixir
- Sterne
- 2.2k
- Forks
- 202
- Ø Merge
- 2 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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 bitwalker/libcluster
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 53/100
bitwalker/libcluster#224 · 1 Reaktion ·
-
feature
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 38/100
bitwalker/libcluster#191 · 1 Kommentar ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
bitwalker/libcluster#139 · 3 Kommentare · 8 Reaktionen ·
Alle Issues in bitwalker/libcluster
Ähnliche Issues
-
Heavy legs 1.12–1.17: compiler corpus goldens not regenerated for #4770Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
intellij-elixir/intellij-elixir#4782 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
hexlet-codebattle/codebattle#2376 ·
-
level 2 wocs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
phravins/QuantumBilling#51 ·
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeEvtl. vergeben @Goldziher hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
carverauto/serviceradar#6898 ·
Maintainer antworten meist innerhalb von 1 Tag