I have tried the latest version of Photon and it still fails.
HAProxy shows this in the logs:
2024-03-02T20:09:23.877695000-05:00 [WARNING] (3) : Server photon/photon is DOWN, reason: Layer7 invalid response, check duration: 10670ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
2024-03-02T20:09:23.878514000-05:00 [ALERT] (3) : backend 'photon' has no server available!
tcpdump reveals that after HAProxy sends a GET request, Photon sends an ACK, but no other payload. Photon terminates the connection after about 10 seconds:
Checking connectivity to Photon with curl does not cause the same issue, Photon responds with a payload.
To Reproduce (if applicable)
Steps to reproduce the behavior:
Place the attached docker-compose.yaml and haproxy.cfg in the same folder (remove .txt extensions)
docker compose up -d
docker logs -tf haproxy
Expected behavior
The expected behavior would be for photon to pass the HAProxy http healthchecks, which were working up to Photon v1.26.0, so that HAProxy can route traffic to healthy photon instances.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions
HAProxy 2.4.24, 2.4.25, 2.6.16, 2.7.11*
Photon version: 1.27.x
*HAProxy 2.7.11 gives a slightly different message "Server photon/photon is DOWN, reason: Layer7 invalid response, info: "TCPCHK got an empty response at step 2", check duration: 10736ms."
haproxy.cfg.txtdocker-compose.yaml.txt
Describe the bug Since v1.27.0 Photon doesn't work with HAProxy, because it fails the basic http healthcheck:
I have tried the latest version of Photon and it still fails.
HAProxy shows this in the logs:
tcpdump reveals that after HAProxy sends a GET request, Photon sends an ACK, but no other payload. Photon terminates the connection after about 10 seconds:
Checking connectivity to Photon with curl does not cause the same issue, Photon responds with a payload.
To Reproduce (if applicable) Steps to reproduce the behavior:
Expected behavior The expected behavior would be for photon to pass the HAProxy http healthchecks, which were working up to Photon v1.26.0, so that HAProxy can route traffic to healthy photon instances.
Screenshots If applicable, add screenshots to help explain your problem.
Versions
*HAProxy 2.7.11 gives a slightly different message "Server photon/photon is DOWN, reason: Layer7 invalid response, info: "TCPCHK got an empty response at step 2", check duration: 10736ms." haproxy.cfg.txt docker-compose.yaml.txt