Drain a home on a spot notice by parking and publishing every session

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
24/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, kubernetes

Direzione di ricerca

Start by reading the existing session park and publish flow and how fiberd handles SIGTERM; the issue does not name files or tests. Then trace how sessions and homes are managed to assess a drain that stops new clones, processes sessions in batches, reports outcomes, and finishes within a configurable notice budget. Done means planned and cloud notices, including SIGTERM, use the drain and its session survival and timing can be measured.

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

Descrizione

enhancement P0

A cloud gives a short warning before it takes a spot node back. The same drain serves a planned node drain and a scale-in.

Today fiberd parks and publishes one session when asked, and another home claims it. Nothing parks every session of a home together, and nothing reacts to a notice.

Wanted.

  • A drain on the home. It stops admitting clones, then parks and publishes every running session, a few at a time, before a deadline.
  • Notice sources as small adapters. AWS gives 2 minutes, Azure Scheduled Events 30 seconds, GCP 0 by default or 2 minutes if set at VM creation, and a GKE pod 15 seconds. A plain call starts a planned drain.
  • A report of which sessions made it out and which did not.

Measure sessions kept across a reclaim, against the notice window, and park and publish time per session and in parallel.

SIGTERM is one more notice source. Today SIGTERM only stops the gRPC server, and the runtime closes, so every running fiber dies on a node drain, an upgrade or a Pod delete. On SIGTERM fiberd should run the same drain within a time budget. It parks named sessions, sheds anonymous fibers, then stops. The budget is a flag, so a Kubernetes terminationGracePeriodSeconds or a Slurm epilog can cover it.

Lingua principale
Go
Stelle
5
Fork
5
Merge medio
15h 27m
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Azure/fiberd

Tutte le issue di Azure/fiberd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.