aws / aws/aws-node-termination-handler

Add custom delay for instance refresh actions

Aperta
#465 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Priority: Medium stalebot-ignore Type: Enhancement
Lingua principale
Go
Stelle
1.8k
Fork
286
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When using instance refresh to update ASGs it looks like the events come through with a start date of now which triggers the node-termination handler to start cordoning and draining the node immediately. This does work correctly if the ASG healthy percentage is set to 100% and all pods have replicas and PDBs (for NTH we need https://github.com/aws/aws-node-termination-handler/pull/463 to satisfy this); but single pods such as Prometheus will often be un-schedulable for a short period while the new node boots up.

To make this whole process function without any downtime a custom duration to wait on ASG termination events could be adopted and defaulted to something like 90 seconds. Assuming that this wait time was longer than the time to start and join a node to the cluster there would be no un-schedulable pods and the ability to use a non 100% ASG healthy percentage. Combined with the ASG lifecycle hook timeout this would support a high level of customisation without much extra complexity.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando come gli eventi di terminazione dell’ASG di un instance refresh raggiungono il node-termination handler e dove iniziano il cordoning e il draining. Definisci come un’attesa configurabile interagisce con il timeout del lifecycle hook dell’ASG, impostala per impostazione predefinita a circa 90 secondi e verifica che i pod rimangano schedulable mentre i nodi sostitutivi vengono avviati e si uniscono al cluster.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, go, kubernetes
Ambito
cloud, devops
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.