Proposal: generic Kubernetes scaler
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
- 35/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ệ
- helm, kubernetes, rust
- Lĩnh vực
- distributed-systems, infrastructure
Hướng nghiên cứu
Start by reading the existing scaler trait, scaling loop, and persistence code; their file paths are not given in the issue. Then review how Kubernetes deployments and HPA status can fit the proposed configuration. The issue needs maintainer feedback on the design before implementation, and done would include an accepted scaler design, implementation, and documentation of the Helm replica limitation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We run Trino on k8s with helm charts and we wanna use trino-lb in front for routing, queuing,etc...
Today there is no scaler trait implemented for generic clusters.
I would like to add an implementation for this kind of workload and I'd be happy to write the PR.
Before I start with anything, I would like to have your opinion on the design and whether you would accept it upstream.
Proposal
clusterAutoscaler:
reconcileInterval: 30s
kubernetes:
clusters:
trino-batch-1:
namespace: trino-batch
coordinatorDeployment: trino-batch-1-trino-coordinator
# optional, only needed for worker-aware upscale
workerDeployment: trino-batch-1-trino-worker
The idea is the scaler only touches coordinators and workers are left to users' own autoscaler.
This mainly means spawning new clusters will be the job or scaler while autoscaling each cluster goes by an HPA.
We can also make the scaler be aware of HPA using some opt-ins, to stop both scaler and HPA reacting to the same load.
trinoClusterGroups:
batch:
autoscaling:
upscaleQueuedQueriesThreshold: 1
waitForWorkerScaleUp: 2m
When it is set and the queue is above the threshold, trino-lb does not start the next cluster while any active
cluster in the group has a worker scale-up in progress (HPA desiredReplicas > currentReplicas), for at most
waitForWorkerScaleUp. If no scale-up is in progress (workers at max, or workers idle because the coordinator
is the limit), trino-lb starts the next cluster as it does today.
Known limit
The upstream Trino chart hardcodes replicas: 1 on the coordinator Deployment.
A helm upgrade or a GitOps sync will turn a stopped cluster back on unless the deploy tool ignores
/spec/replicas on the coordinator Deployment (e.g. Argo CD ignoreDifferences with RespectIgnoreDifferences=true).
We would document this next to the scaler.
Questions
- Is reading HPA status from trino-lb fine, or would you prefer another signal for 'a worker scaling is in progress'?
- Anything in the scaling loop or persistence we should know before starting?
- Ngôn ngữ chính
- Rust
- Star
- 40
- Fork
- 9
- Merge trung bình
- 22 phút
- Pull request đã merge (30 ngày)
- 1
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 stackabletech/trino-lb
-
trino-lb is stuck after redis master shuts downCó thể đã có người làm @soenkeliebau đã nhận 150 ngày trước. Đang mởcustomer-request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
stackabletech/trino-lb#109 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
stackabletech/trino-lb#105 ·
-
customer-request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
stackabletech/trino-lb#93 · 4 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
stackabletech/trino-lb#83 · 11 bình luận ·
-
Dependency DashboardĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
stackabletech/trino-lb#31 ·
Tất cả issue của stackabletech/trino-lb
Issue tương tự
-
Unit tests use deprecated constant (part 2)Có thể đã có người làm @servo-highfive đã nhận hôm nay. Đang mởE-less-complex
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
servo/servo#49766 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue help wanted linux macos testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: app type: test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
storytold/photocraft#12706 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug priority-low to-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày