Proposal: generic Kubernetes scaler
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- helm, kubernetes, rust
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Rust
- スター
- 40
- フォーク
- 9
- 平均マージ
- 22分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/trino-lb のほかの issue
-
trino-lb is stuck after redis master shuts down対応中かも @soenkeliebau が 150 日前に担当しました。 オープンcustomer-request
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
stackabletech/trino-lb#109 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
stackabletech/trino-lb#105 ·
-
customer-request
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
stackabletech/trino-lb#93 · コメント 4 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
stackabletech/trino-lb#83 · コメント 11 件 ·
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
stackabletech/trino-lb#31 ·
stackabletech/trino-lb の issue をすべて見る
似ている issue
-
Unit tests use deprecated constant (part 2)対応中かも @servo-highfive が今日担当しました。 オープンE-less-complex
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
servo/servo#49766 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue help wanted linux macos testing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
area: app type: test
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
storytold/photocraft#12706 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug priority-low to-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信