Am Di, Okt 07, 2025 at 11:48:54 +0200 schrieb Willy Tarreau:
Hello,
On Tue, Oct 07, 2025 at 11:17:30AM +0200, Stephan Seitz wrote:
However, setting the backend in the maint state drops all existing
sessions at once instead of stopping new connections.
No, maintenance mode doesn't kill existing connections, it only kills
*idle* connections, and makes the server non-selectable by LB algorithms
In our case haproxy is running in TCP mode (MySQL backends). As soon as
one backend is in maintenance mode the application going to this backend
logs „SQLSTATE[HY000]: General error: 2006 MySQL server has gone away”.
Normally the clean way to proceed is to first set it to drain state,
wait a bit, then set it to maint, wait a bit, then that's fine.
Thanks, it seems this is the way to go.
Shade and sweet water!
Stephan
--
| If your life was a horse, you'd have to shoot it. |