kubernetes: opt-in to connect only to Ready pods
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Elixir
- Estrellas
- 2.2k
- Forks
- 202
- Merge medio
- 2 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bitwalker/libcluster
-
Dificultad 4/5 3-5 días Aptitud para principiantes 53/100
bitwalker/libcluster#224 · 1 reacción ·
-
feature
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
bitwalker/libcluster#191 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
bitwalker/libcluster#139 · 3 comentarios · 8 reacciones ·
Todos los issues de bitwalker/libcluster
Issues similares
-
Heavy legs 1.12–1.17: compiler corpus goldens not regenerated for #4770Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
intellij-elixir/intellij-elixir#4782 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
hexlet-codebattle/codebattle#2376 ·
-
level 2 wocs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
phravins/QuantumBilling#51 ·
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimePosiblemente ocupada @Goldziher la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
carverauto/serviceradar#6898 ·
Los mantenedores suelen responder en 1 día