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

Abierto
#63 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
24/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, kubernetes

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
5
Forks
5
Merge medio
15 h 27 min
PR fusionados (30 d)
41

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/fiberd

Todos los issues de Azure/fiberd

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.