Handle graceful cluster shrinking
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- kubernetes, rust
Línea de trabajo
Comienza leyendo la reconciliación y la gestión del estado de NifiCluster para entender cómo se detecta un cambio solicitado en el tamaño del clúster. Sigue cómo se seleccionan los pods y cómo se podría esperar a las acciones de la NiFi REST API entre reconciliaciones; la tarea estará completa cuando los nodos eliminados se desconecten y drenen automáticamente antes de continuar con la reducción.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Affected version
0.6.0
Current and expected behavior
Currently when a NifiCluster is shrunk in size, the user has to make sure that the node(s) to be removed have been disconnected and drained manually before triggering the shrinking.
Ideally we'd want the operator to use the NiFi Rest api to perform these administrative tasks automatically.
Possible solution
The operator needs to be able to track, whether an action is about to shrink the cluster, determine which pods are going to be removed and trigger the necessary action via the NiFi api for these pods.
In order to do this we'll probably have to track "current pods" in the status of the NifiCluster object, in order for the operator to be able to determine if the new version of the object signifies a shrinking action.
Once this check is triggered, the operator then needs to check if all nodes are drained. If this is the case the reconciliation can proceed normally, if not, drain tasks need to be started for all pods / checked if tasks are already running. Then the operator can requeue, and will simply keep running this check until all tasks are done.
Additional context
No response
Environment
No response
Would you like to work on fixing this bug?
No response
- Lenguaje dominante
- Rust
- Estrellas
- 48
- Forks
- 12
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 stackabletech/nifi-operator
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
stackabletech/nifi-operator#956 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
stackabletech/nifi-operator#879 ·
Los mantenedores suelen responder en 1 día
-
customer-request type/bug
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
stackabletech/nifi-operator#842 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
size/M type/security
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
stackabletech/nifi-operator#811 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
size/L
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
stackabletech/nifi-operator#810 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de stackabletech/nifi-operator
Issues similares
-
type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
stackabletech/kafka-operator#1033 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug good first issue needs testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 3 días
-
docs: release notes v3.7.0–v3.8.0 footer links to README/CHANGELOG are broken after docs reorgAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
farion1231/cc-switch#7744 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
datafusion
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
apache/iceberg-rust#3297 ·
Los mantenedores suelen responder en 1 día