Idea: Start ReportingTaskJob only once the NifiCluster is ready
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
- Đọ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 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
stackabletech/nifi-operator#879 ·
-
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 ·
-
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 ·
-
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 ·
Tất cả issue của stackabletech/nifi-operator
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bug good first issue package: quic
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
`dora trace view` sends a non-canonical full UUID as-is, so a valid trace ID shows "No spans found" Đang mởcli coordinator rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
area: tasks enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Jason-jo17/Polybench#15 · 1 bình luận ·