Handle graceful cluster shrinking
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- kubernetes, rust
- Ambito
- distributed-systems, infrastructure
Direzione di ricerca
Inizia leggendo la riconciliazione e la gestione dello stato di NifiCluster per capire come viene rilevata una modifica richiesta delle dimensioni del cluster. Segui come vengono selezionati i pod e come si potrebbe attendere il completamento delle azioni della NiFi REST API tra una riconciliazione e l’altra; il lavoro è completato quando i nodi rimossi vengono disconnessi e drenati automaticamente prima che proceda la riduzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Rust
- Stelle
- 48
- Fork
- 12
- Merge medio
- 11h 26m
- PR unite (30g)
- 10
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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 stackabletech/nifi-operator
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
stackabletech/nifi-operator#956 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
stackabletech/nifi-operator#879 ·
-
customer-request type/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
stackabletech/nifi-operator#842 · 1 commento ·
-
size/M type/security
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
stackabletech/nifi-operator#811 · 1 commento ·
-
size/L
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
stackabletech/nifi-operator#810 · 1 commento ·
Tutte le issue di stackabletech/nifi-operator
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yantrikos/yantrik-os#255 ·
-
Replayed reasoning items send "content": null, which the Responses API schema does not permit Apertabug CLI custom-model
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
raphamorim/rio#1956 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 commento ·