Pack many services per node with shared home Pods and shared runtime snapshots
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ả
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.homein fiberd-k8s (upstream), plus Lampyr changes inprotectedHome,grant.rsandhomes.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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hyperlight-dev/lampyr
-
a-needs-info dependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hyperlight-dev/lampyr#49 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
a-needs-info
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
hyperlight-dev/lampyr#34 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Provision production AKS ingress DNS and TLSCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
hyperlight-dev/lampyr#76 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
hyperlight-dev/lampyr#75 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
a-needs-info enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
hyperlight-dev/lampyr#55 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của hyperlight-dev/lampyr
Issue tương tự
-
bug P2: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
-
tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainer thường phản hồi trong vòng 1 ngày