Handle graceful cluster shrinking
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
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- kubernetes, rust
- Lĩnh vực
- distributed-systems, infrastructure
Hướng nghiên cứu
Bắt đầu bằng việc đọc quá trình reconciliation và xử lý trạng thái của NifiCluster để hiểu cách phát hiện thay đổi kích thước cluster được yêu cầu. Theo dõi cách các pod được chọn và cách có thể chờ các hành động của NiFi REST API qua các lần reconciliation; công việc được xem là hoàn tất khi các node bị loại bỏ được tự động ngắt kết nối và drain trước khi tiếp tục thu nhỏ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Affected version
0.6.0
Current and expected behavior
Currently when a NifiCluster is shrunk in size, the user has to make sure that the node(s) to be removed have been disconnected and drained manually before triggering the shrinking.
Ideally we'd want the operator to use the NiFi Rest api to perform these administrative tasks automatically.
Possible solution
The operator needs to be able to track, whether an action is about to shrink the cluster, determine which pods are going to be removed and trigger the necessary action via the NiFi api for these pods.
In order to do this we'll probably have to track "current pods" in the status of the NifiCluster object, in order for the operator to be able to determine if the new version of the object signifies a shrinking action.
Once this check is triggered, the operator then needs to check if all nodes are drained. If this is the case the reconciliation can proceed normally, if not, drain tasks need to be started for all pods / checked if tasks are already running. Then the operator can requeue, and will simply keep running this check until all tasks are done.
Additional context
No response
Environment
No response
Would you like to work on fixing this bug?
No response
- Ngôn ngữ chính
- Rust
- Star
- 48
- Fork
- 12
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không 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/nifi-operator
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
stackabletech/nifi-operator#956 ·
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 45/100
stackabletech/nifi-operator#879 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
customer-request type/bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
stackabletech/nifi-operator#842 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
size/M type/security
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
stackabletech/nifi-operator#811 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
size/L
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
stackabletech/nifi-operator#810 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của stackabletech/nifi-operator
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
zcashlabs/thus-spoke-zakura#153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
claude_code: step fails on session-scoped (`@inline`) plugins with `Invalid scope "session"`Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
topgrade-rs/topgrade#2395 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
app bug windows-os
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
matrix-org/matrix-rust-sdk#7217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve sublime text syntaxĐang mởeditor good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
funnyboy-roks/inq#54 ·