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

Đang mở
#63 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
24/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
5
Fork
5
Merge trung bình
15 giờ 27 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/fiberd

Tất cả issue của Azure/fiberd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.