Pack many services per node with shared home Pods and shared runtime snapshots

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

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Read the shared home Pod discussion alongside fiberd-k8s and the Lampyr entry points named in the issue: protectedHome, grant.rs and homes.go. The issue lists several separate approaches, so first determine which one is being pursued and review related issues #9 and #17. Done means delivering the chosen density improvement while preserving per-service VM isolation and, for shared Pods, network isolation and Grant token handling.

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

Descrizione

a-human-needed a-needs-info

Lampyr runs one home Pod per service (one per CapacityGrant), so per-node density is bounded by Pod limits rather than memory. Kind and AKS kubenet default to 110 Pods per node, and each home Pod's 1 Gi ephemeral-storage request makes AKS disk-bound at roughly 100 services. Measured directly on one 8 vCPU / 64 GiB VM with nested virtualization, an idle Hyperlight VM for a Node.js + SQLite service costs about 16 MiB, and ~1,900 idle services fit before a 70% memory cap, with flat wake and warm latency. That projects to ~2,800 per dedicated node.

Steps, roughly in order of payoff:

  • Quick wins: lower the home Pod ephemeral-storage request to about 512 Mi (not zero: Kubernetes would then reserve the 10 Gi limit), use a larger or ephemeral OS disk, and use Azure CNI Overlay (maxPods 250).
  • Shared home Pods: one home Pod hosts many services' fibers, each still in its own VM. Fiberd's Kubernetes home already handles several grants. This needs spec.home in fiberd-k8s (upstream), plus Lampyr changes in protectedHome, grant.rs and homes.go. A shared Pod needs per-service network isolation (no loopback reach into other services' fibers) and handling for several services' Grant tokens in one Pod.
  • Shared runtime snapshots: snapshot a warmed language runtime once and deliver each service's code at start, instead of building a full snapshot per service. This keeps per-service memory near 16 MiB, cuts disk per service (~293 MB today), and makes publishing near-instant. It needs a safe, non-mount way to deliver code.

Related: #9, #17.

Lingua principale
Rust
Stelle
3
Fork
2
Merge medio
3g 57m
PR unite (30g)
17

Preparare l'ambiente

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 hyperlight-dev/lampyr

Tutte le issue di hyperlight-dev/lampyr

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.