aws / aws/aws-node-termination-handler

Add custom delay for instance refresh actions

Offen
#465 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Priority: Medium stalebot-ignore Type: Enhancement
Vorherrschende Sprache
Go
Sterne
1.8k
Forks
286
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit nachzuverfolgen, wie ASG-Terminierungsereignisse bei einem Instance Refresh den node-termination handler erreichen und wo cordoning und draining beginnen. Lege fest, wie eine konfigurierbare Wartezeit mit dem Timeout des ASG-Lifecycle-Hooks interagiert, setze sie standardmäßig auf etwa 90 Sekunden und überprüfe, dass Pods schedulable bleiben, während Ersatzknoten gestartet werden und dem Cluster beitreten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
aws, go, kubernetes
Bereich
cloud, devops
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.