Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Handle graceful cluster shrinking

Aperta
#314 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stackabletech/nifi-operator

Tutte le issue di stackabletech/nifi-operator

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.