Scale-down should support graceful selection of idle application instances instead of terminating instances with in-flight work
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the App Autoscaler scale-down flow and how Cloud Foundry selects application instances for termination; the issue does not name specific files or tests. Compare the proposed instance-level metric, drain protocol, and preferred-instance mechanisms, then identify which layer could support the capability. Done means agreeing on a design that can select an idle instance while preserving in-flight work.
索引モデルが issue の本文から書いたものです。
説明
Problem ( Similar to GitHub issue #570)
We use the Cloud Foundry App Autoscaler with multiple application
instances that process asynchronous messages.
I feel this is detrimental bug to use SCALE UP or DOWN and every PRODUCT needs to come up with custom feature or have fixed instances. This if done by CF will save lot of time and effort..
CF SCALE can provide a option to get instance that should be scaled down then i will raise a ticket to autoscaler or team that identifies it to fix this issue as well..
Example:
Instance 0: BUSY - processing message
Instance 1: BUSY - processing message
Instance 2: BUSY - processing message
Instance 3: IDLE
Current instance count: 4
Autoscaler determines that the application should scale down to 3.
Expected behavior / requested capability
We would like the scale-down mechanism to preferentially terminate
an IDLE instance, rather than an instance currently processing
in-flight work.
The application can expose a custom metric indicating whether an
instance is BUSY/IDLE.
For example:
instance 0 -> processing=1
instance 1 -> processing=1
instance 2 -> processing=1
instance 3 -> processing=0
Ideally, scale-down could use instance-level metrics or an
application-provided drain/termination signal to select instance 3.
Current concern
Scaling metrics such as CPU, memory utilization, or custom metrics can
determine whether the application should scale down, but they do not
appear to influence which instance is selected for termination.
If a BUSY instance is selected, it receives SIGTERM. If its processing
cannot complete within the graceful shutdown interval, it may
eventually receive SIGKILL.
For long-running asynchronous/message-processing workloads this can
interrupt in-flight work even when another instance is completely idle.
Use case
We have applications where processing a message may take substantially
longer than the graceful shutdown period.
CPU and memory utilization are also not reliable indicators that an
instance is idle because a BUSY worker might be waiting on external
I/O while still owning/processing a message.
Feature request
Could Cloud Foundry support one of the following?
-
Instance-aware scale-down based on an instance-level custom metric
(e.g. processing=0), or -
A drain protocol where an instance is asked whether it is safe
to terminate before CF removes it, or -
A mechanism allowing an application/autoscaler to identify a
preferred instance for termination.
The objective is:
4 instances:
BUSY, BUSY, BUSY, IDLE
scale down 4 -> 3
Desired:
BUSY, BUSY, BUSY
rather than potentially terminating one of the BUSY instances.
- 主要言語
- Go
- スター
- 71
- フォーク
- 60
- 平均マージ
- 6時間 33分
- マージ済み PR(30日)
- 47
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudfoundry/app-autoscaler のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cloudfoundry/app-autoscaler#1185 ·
メンテナーはふだん 1 日以内に返信
-
CI: devbox cache stampede on every devbox.json/devbox.lock change refetches from cache.nixos.orgオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cloudfoundry/app-autoscaler#1513 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
perf: pre-push test app droplets to speed up acceptance tests再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
cloudfoundry/app-autoscaler#1186 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
cloudfoundry/app-autoscaler#1173 ·
メンテナーはふだん 1 日以内に返信
-
unscheduled
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
cloudfoundry/app-autoscaler#837 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
cloudfoundry/app-autoscaler の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
projectdiscovery/dnsx#1113 ·
メンテナーはふだん 1 日以内に返信
-
enhancement needs:triage
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
crossplane-contrib/provider-upjet-azure#1374 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
agent-in-progress
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
jordansmall/spindrift#7716 ·
メンテナーはふだん 1 日以内に返信
-
bug 🪲 needs-triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Azure/azure-service-operator#5880 ·
メンテナーはふだん 1 日以内に返信