Scale-down should support graceful selection of idle application instances instead of terminating instances with in-flight work
Maintainer thường phản hồi trong vòng 1 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
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 71
- Fork
- 60
- Merge trung bình
- 6 giờ 33 phút
- Pull request đã merge (30 ngày)
- 47
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 cloudfoundry/app-autoscaler
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cloudfoundry/app-autoscaler#1185 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CI: devbox cache stampede on every devbox.json/devbox.lock change refetches from cache.nixos.orgĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
cloudfoundry/app-autoscaler#1513 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
perf: pre-push test app droplets to speed up acceptance testsCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
cloudfoundry/app-autoscaler#1186 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
cloudfoundry/app-autoscaler#1173 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
unscheduled
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
cloudfoundry/app-autoscaler#837 · 2 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudfoundry/app-autoscaler
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
projectdiscovery/dnsx#1113 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement needs:triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
crossplane-contrib/provider-upjet-azure#1374 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-in-progress
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jordansmall/spindrift#7716 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug 🪲 needs-triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Azure/azure-service-operator#5880 ·
Maintainer thường phản hồi trong vòng 1 ngày