Scale out a Revision across multiple CapacityGrant home Pods
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ệ
- kubernetes, rust
- Lĩnh vực
- backend-api-design, infrastructure
Hướng nghiên cứu
Start with the linked upstream scaling guidance and trace Lampyr's Revision reconciler, ly scale, and fiber-router routing paths. Map how CapacityGrants, home readiness, and endpoints are currently discovered and owned. Done means demonstrating multiple homes for one Revision, spillover, failure isolation, safe scale-in, aggregate status, and cleanup on Kind and AKS while preserving optional Eventing delivery.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
When one home is saturated, add another home Pod with its own fiber capacity and distribute requests across both. Use the upstream CapacityGrant model rather than adding replicas to one Grant or introducing another Grant abstraction.
Current behavior
Lampyr uses one home Pod and signed Grant per upstream fiberd.io/v1alpha1 CapacityGrant. Lampyr currently creates one CapacityGrant per immutable Revision, and fiber-router resolves one home endpoint for that Revision.
ly scale --max-fibers changes the existing Grant's authorized fiber limit. It does not add a home Pod or increase its CPU/memory resources. At capacity, requests are shed; there is no automatic home creation or spillover.
Upstream model
The reference controller already supports scale-out through additional CapacityGrants:
- A platform component creates another CapacityGrant.
- The upstream controller creates its home Pod and signed JWT.
- Kubernetes schedules the Pod; Fiberd warms it and publishes readiness.
- The platform adds that home's control endpoint to Clone routing.
The reference controller is not an autoscaler and creates individual grant Pods, not a Deployment/ReplicaSet with a replica count.
Reference: https://github.com/helayoty/fiberd/blob/6e58535675df/docs/operating-kubernetes.md#scaling-out
Work to design
- Allow one Revision to have multiple independently owned CapacityGrants/homes serving the same immutable artifact and execution policy. Define ownership and revision labels for discovery and cleanup.
- Extend routing to select among admitted, ordinarily Ready home Pods, using actual capacity/pressure signals. Handle SHED, unavailable homes and endpoint changes without blindly retrying a request already delivered to a fiber.
- Preserve fresh-per-request isolation and revision-scoped reuse. Retained reusable fibers remain associated with their owning home; adding another home does not imply shared application memory or user affinity.
- Define aggregate capacity separately from per-home fiber limits and Pod resource requests/limits. Raising a fiber limit alone must not be presented as additional physical resources.
- Provide safe scale-in: stop assigning new work, drain requests/streams/WebSockets and retained fibers, then delete the CapacityGrant so its owned Pod/Secret are collected.
- Wire status, logs, audit, scale, delete, health and uninstall across all homes of a Revision, including restart recovery and in-flight scale operations.
Implementation options
Start with explicit/manual home-count scale-out to validate placement, routing and draining. Then evaluate automatic scale-out using sustained saturation/pressure, bounded min/max homes, hysteresis and cooldowns. Do not assume Kubernetes CPU utilization alone captures fiber admission capacity.
Review ly scale semantics against the upstream guidance: grant-policy changes can alter ledger authority without rebuilding the warmed runtime/resource boundary. Prefer creating replacement/additional Grants where necessary instead of assuming all policy fields are safely mutable in place.
Completion criteria
Demonstrate two or more homes serving one Revision, saturated-home spillover, aggregate status, one-home failure isolation, safe scale-in with long-lived streams, and full cleanup on Kind and AKS. Keep Fiberd/Knative unmodified and preserve optional Eventing delivery.
Coordinate with #8 (direct gateway-to-fiber routing), Lampyr's controller-managed routing (the Revision reconciler), and Lampyr's remaining Knative dependencies. This issue adds the platform scaling/routing layer around the existing upstream controller; it does not require a second custom Grant operator.
- 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