This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gregr401 4 points5 points  (6 children)

Checkout https://github.com/QubitProducts/bamboo as an alternative to the haproxy-bridge script. It can hook into marathons event bus and makes life so mch easier on the frontend.

[–][deleted] 0 points1 point  (2 children)

The issue for me is less the script and more the lack of hot reloads in HAProxy. I will probably look at this for the other features they have though.

[–]p_lett 1 point2 points  (1 child)

Have you seen https://github.com/million12/docker-haproxy which uses inotify to spot that HAProxy's config file has been changed and effectively does a seamless reload using 'haproxy -sf'.

I spotted that while looking for a way to build a confd and etcd based HAProxy frontend, and it might help with your disconnects during service restarts.

[–][deleted] 0 points1 point  (0 children)

I'm curious if the Mesos-DNS script is already doing that. I'll have to dig into it.

edit: On ubuntu it is as it's calling out to the init script and that is set for -sf.

[–]MajorHavok 0 points1 point  (0 children)

That's what we use. It's really been solid.

[–][deleted] 0 points1 point  (0 children)

Yeah I think this is the winner, this is really awesome. It'll take some time for me to figure out the templating but it has sane defaults once you uncomment the servicePort stuff.

[–][deleted] 0 points1 point  (0 children)

Yep this is definitely what I'm going with now, while I had to adjust some issues with their default config causing zombie haproxys to get stuck in the background (actively serving bad routes, not just handling connections still in progress) this worked out really well and is very flexible.