Skip to content

Instantly share code, notes, and snippets.

@hashbrowncipher
Last active October 2, 2015 20:12
Show Gist options
  • Select an option

  • Save hashbrowncipher/56fc7ba4f2682dfea9ff to your computer and use it in GitHub Desktop.

Select an option

Save hashbrowncipher/56fc7ba4f2682dfea9ff to your computer and use it in GitHub Desktop.
0. compile haproxy with patch: https://gist.github.com/hashbrowncipher/a0da32514f2f240cbbbf
1. start up new haproxy
2. haproxy becomes ready -> exits (after forking)
3. plug SYNs
4. send SIGUSR1 to old haproxy
5. flock(/var/run/synapse/haproxy_pids/PID.lock, LOCK_EX) -> blocks a bit
6. unplug SYNs
@jolynch
Copy link

jolynch commented Oct 2, 2015

This is really cool, let's make your patch an option and get it upstreamed.

Also in the meantime we can apply to our internal 1.5 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment