Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Handle graceful cluster shrinking

Đang mở
#314 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stackabletech/nifi-operator

Tất cả issue của stackabletech/nifi-operator

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.