HAProxy health check hangs with remote podman

Abierto
#54 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
go
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
18
Forks
10
Merge medio
1 d 2 h
PR fusionados (30 d)
7

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bootc-dev/bink

Todos los issues de bootc-dev/bink

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.