TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

GitHub Load balancer: HAProxy zero-downtime, zero-delay reloads with multibinder

54 pointsby logicalstackover 8 years ago

1 comment

jolynchover 8 years ago
Funny enough we&#x27;re doing something pretty similar for our external lb tier but instead of a custom proxy we&#x27;re just using nginx proxying back to HAProxy. Your solution is really nifty though because there aren&#x27;t two accepts going on.<p>In the thing that we&#x27;re trying nginx terminates TCP (and SSL if needed), proxies back to a unix socket where HAProxy is listening. This gives us the best of both worlds: we can reload HAProxy all day long and socket listeners are hitless, and we rarely need to reload the nginx config which comes out of the box with hitless TCP sockets. But it&#x27;s not quite as cool as this solution because HAProxy and nginx both have to accept.<p>We haven&#x27;t decided that we&#x27;re going to do our internal load balancing this way yet because the listening ports change so often, but if we do I&#x27;ll probably be working on <a href="https:&#x2F;&#x2F;github.com&#x2F;airbnb&#x2F;synapse&#x2F;pull&#x2F;203" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;airbnb&#x2F;synapse&#x2F;pull&#x2F;203</a> to do it. The PR makes it so that Synapse can manage both nginx and HAProxy simultaneously (to deal with the extra system complexity of an additional proxy). Or we&#x27;ll try this cool thing out :-P
评论 #13086273 未加载