-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out why haproxy seems to require restarting quite often. #11
Comments
I think the problem is that HAProxy does the address resolution on start up and then Netflix etc slowly change the ip addresses. |
Hmm, how would you propose resolving that? I can't seem to find a fix that is different from adding |
Perhaps other alternatives to HAProxy like sniproxy are worth looking into. Regarding the automated restarts, perhaps this is enough: http://www.forouzani.com/reload-haproxy-cfg-without-restarting.html. |
You need to add the check inter line to each backend server, this is force HAProxy to check the server and see if its up or down, IP chnage etc. Something such as this (probably smaller numbers) use-server cp143012-i.akamaihd.net if { req_ssl_sni -i cp143012-i.akamaihd.net } |
Oh neat! As you clearly know more about this than I do, would you mind sending a PR? :^) |
Sure, will do that sometime tomorrow. Will probably jump on that Named/BIND generator too. |
Any suggestions for getting haproxy to start if a domain has gone completely? Today I found atv.amazon.com did not resolve causing
I just pointed it to localhost in /etc/hosts as a workaround |
Hmm, no, not really. I have yet to investigate the HAProxy configuration better, although I was researching sniproxy last weekend and am considering adding a generator for it, as it just seemed to work better regarding DNS lookups. |
sniproxy is nice and I used it before, but Amazon Instant Video in combination with a Fire TV gave me headaches, until I found out that the Fire TV resolves some hostnames via DNS but sends the HTTP requests directly to the resolved IP. I was not able to find a workaround like the dnat setup here. |
This is a somewhat annoying issue. It might just be an issue with HAProxy, but it might be possible to resolve with better config generation.
The text was updated successfully, but these errors were encountered: