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

Idea: Start ReportingTaskJob only once the NifiCluster is ready

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

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
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
kubernetes, rust
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

Bắt đầu tại rust/operator-binary/src/controller.rs quanh dòng 277, sau đó so sánh mẫu lắng nghe readiness được tham chiếu từ Superset. Xác định cách tiếp cận nào trong số các cách tiếp cận được đề xuất nằm trong phạm vi—chờ NifiCluster sẵn sàng, tạm dừng Job hoặc thay thế nó bằng một yêu cầu HTTP—và xác minh rằng tác vụ reporting không còn đi vào CrashLoopBackOff thông thường trước khi cluster sẵn sàng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

There is a reporting task started immediately: https://github.com/stackabletech/nifi-operator/blob/db33e5e32c55975369e15a063ae21ef728498c2c/rust/operator-binary/src/controller.rs#L277

I want to suggest to follow a pattern we've implemented in Superset: Add a status to the NifiCluster and let the operator listen to it. Only start the job once the cluster is ready.

At the moment the job is started and remains in a CrashLoopBackOff, until the Cluster is ready. This doens't look good and can also cover up actual problems with the job (because this CrashLoopBackoff is 'normal' for us). It would also make the task finish quicker, because at the moment once the cluster is ready, the task is still in a retry-waiting-period. Only once this has passed the job finishes. This can easily save 30 seconds of time.

Edit: since k8s 1.24 Jobs can be started in the suspended state, so the Job object could already be created, but only started once the cluster is up.

Edit: Alternatively the Operator could do the HTTP request, and we could drop the Job altogether

Ngôn ngữ chính
Rust
Star
48
Fork
12
Merge trung bình
11 giờ 26 phút
Pull request đã merge (30 ngày)
10

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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.