kubernetes: opt-in to connect only to Ready pods
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by reading the Kubernetes strategy implementation and its tests for pods mode; the issue does not name specific files. Trace how discovered pod conditions affect which pods are connected, then check how the proposed opt-in setting fits the existing configuration and documentation. Done means the default preserves current behavior and the ready-only option connects only to pods with a Ready condition of True.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Steps to reproduce
- Configuration Used:
Cluster.Strategy.Kubernetes,kubernetes_ip_lookup_mode: :pods, any namespace/selector. - Strategy Used:
Cluster.Strategy.Kubernetes(pods mode). - Errors/Incorrect Behaviour Encountered: the strategy connects to every discovered pod that is
Running, has an IP and is not terminating, including pods whoseReadycondition isFalse.
Description of issue
That behavior is deliberate (the docs say readiness can depend on cluster formation), but it rules out a common deployment shape: only dialling a peer once it is actually serving. In our case a pod that is distributed but still booting should be discovered yet not connected to, because the work handlers are not up.
Endpoints and EndpointSlice modes gate on readiness, but they're a flat address list that drops terminating endpoints, so they can't express "discovered but not dialable". Pods mode already returns the conditions, so no extra request is needed.
Would an opt-in option in pods mode be acceptable in principle?
kubernetes_pod_readiness: :any | :ready
:any(default) keeps connecting to non-ready Running pods, as today.:readyonly connects to pods whoseReadycondition isTrue.
The documentation is correct as written; this would be an additional mode rather than a correction.
- Ngôn ngữ chính
- Elixir
- Star
- 2.2k
- Fork
- 202
- Merge trung bình
- 2 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọ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 bitwalker/libcluster
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 53/100
bitwalker/libcluster#224 · 1 reaction ·
-
feature
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
bitwalker/libcluster#191 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
bitwalker/libcluster#139 · 3 bình luận · 8 reaction ·
Tất cả issue của bitwalker/libcluster
Issue tương tự
-
Heavy legs 1.12–1.17: compiler corpus goldens not regenerated for #4770Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
intellij-elixir/intellij-elixir#4782 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
hexlet-codebattle/codebattle#2376 ·
-
level 2 wocs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
phravins/QuantumBilling#51 ·
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeCó thể đã có người làm @Goldziher đã nhận hôm nay. Đang mở
Độ 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
carverauto/serviceradar#6898 ·
Maintainer thường phản hồi trong vòng 1 ngày