HAProxy health check hangs with remote podman

Aperta
#54 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
18
Fork
10
Merge medio
1g 2h
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bootc-dev/bink

Tutte le issue di bootc-dev/bink

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.