HAProxy health check hangs with remote podman

Đang mở
#54 2 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
go
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading WaitForHealthy in internal/haproxy/haproxy.go and trace how the published HAProxy port is determined when CONTAINER_HOST points to remote Podman. Check how the health check target should address the Podman host, then run the cluster-start health-check flow with local and remote Podman. Done means remote Podman no longer waits for the localhost connection timeout and the health check still works locally.

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

Mô tả

bink cluster start hangs at Step 8 ("Creating HAProxy load balancer") for 2 minutes and then times out when bink is run from a different host/container than where podman is running (remote podman via CONTAINER_HOST).

WaitForHealthy in internal/haproxy/haproxy.go uses a Go http.Client to poll https://localhost:/healthz from the bink process. This assumes localhost is the machine where containers are running.

With remote podman, the HAProxy port is published on the podman host, not on the machine running bink. The health check connects to localhost which has nothing listening on that port, loops with "connection refused" every 2 seconds for 2 minutes, then returns a timeout error.

Ngôn ngữ chính
Go
Star
18
Fork
10
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 bootc-dev/bink

Tất cả issue của bootc-dev/bink

Issue tương tự

Thêm issue về Go

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.