Re: HAProxy Hot Reconfiguration with s6

From: Remko Tronçon <remko_at_el-tramo.be>
Date: Mon, 16 May 2016 23:50:04 +0200

> Do you know how this is actually being done on process level?

You spawn a new haproxy instance yourself, and pass it the PID of the process you want to replace:

      haproxy -f haproxy.cfg -sf $(pidof haproxy)

The new instance uses SO_REUSEPORT to attach to the same port, and then sends a FINISH signal to the given PID to gracefully shut down the running instance.

Thanks,
Remko
Received on Mon May 16 2016 - 21:50:04 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC