Hi Alexander,
> Hello! > > My name is Alexander and I am writing on behalf of OWOX company, that > supports the most visited Ecommerce website in Ukraine > (rozetka.com.ua<http://rozetka.com.ua>). > > We are using haproxy as a well-performance server to balance load > between our database servers. We are using several DB-servers, and > sometimes we need to softly turn off one of them for maintenance. In > case, when technical problems occur (like extreme CPU usage or > something) while high load hour, we need to prevent application errors > and turn off our server from HAProxy softly. It means, we want to > complete previously sent requests over haproxy to this server and get > response from it, but we don't want to send new requests. > > I could not find this case in documentation you provide, and did not > find a way to do that through the configuration. You can set the server mode to "DRAIN" from the admin socket, that should achieve exactly what you want: set server <backend>/<server> state [ ready | drain | maint ] http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.2-set%20server Regards, Lukas