stackabletech / stackabletech/stackablectl
Throttle requests when api-server tries to rate limit stackablectl
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 10
- フォーク
- 5
- 平均マージ
- 4時間 41分
- マージ済み PR(30日)
- 4
説明
When trying to run stacklet list an an AWS eks cluster recently (replicated cluster, k8s 1.32) - the api-server was apparently unhappy about the rate at which requests were sent to retrieve details for Stackable objects.
soenke-desktop:~$ stackablectl stacklet list
An unrecoverable error occured: failed to execute stacklet (sub)command
Caused by these errors (recent errors listed first):
1: failed to list stacklets
2: failed to fetch data from the Kubernetes API
3: failed to fetch data from Kubernetes API
4: ApiError: storage is (re)initializing: TooManyRequests (ErrorResponse { status: "Failure", message: "storage is (re)initializing", reason: "TooManyRequests", code: 429 })
5: storage is (re)initializing: TooManyRequests
We should probably somehow honour 429 status codes and throttle requests in that case. Or maybe implement this upstream in kube-rs.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
stackablectl stacklet list コマンドで使用されるリクエストパスから始め、Kubernetes API エラーがどのように処理されるかを追跡してください。kube-rs が HTTP 429 レスポンスに対するリトライまたはスロットリングの動作をすでに公開しているか確認し、可能であれば EKS クラスターに対して障害を再現してください。コマンドが報告されたレート制限の状態を直ちに失敗せずに処理し、選択した動作がテストまたは再現によって検証されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- kubernetes, rust
- 領域
- api, cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100