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

Đang mở
#18 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 4 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
25/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ệ
azure, kubernetes, rust
Lĩnh vực
backend, infrastructure

Hướng nghiên cứu

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.

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

Mô tả

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.

Ngôn ngữ chính
Rust
Star
3
Fork
2
Merge trung bình
3 ngày 57 phút
Pull request đã merge (30 ngày)
17

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

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

Tất cả issue của hyperlight-dev/lampyr

Issue tương tự

Thêm issue về Rust

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.