Re: Reload takes about 3 minutes

2017-10-13 Thread Baptiste
Hi Joel, You can also use the server-state file with init-addr set to last,libc. That way, if an IP address is found in the state file, HAProxy will apply it and won't perform a DNS resolution at configuration parsing time. Baptiste On Fri, Oct 13, 2017 at 4:32 PM, Joel W Kall wrote: > Oh, th

Re: Haproxy returns 502 before backend replies with 200

2017-10-13 Thread Alexey Buluy
Thanks Lukas! I'll capture the dump and reply with additional info ASAP. Regards, Alexey. 13 окт. 2017 г. 20:07 пользователь "Lukas Tribus" написал: Hello Alexey, > Details of error 502 from Haproxy: > > client_ip= client_port=32668 backend=http_data times=0/0/0/-1/91 > http_status=502 by

Re: Haproxy returns 502 before backend replies with 200

2017-10-13 Thread Lukas Tribus
Hello Alexey, > Details of error 502 from Haproxy: > > client_ip= client_port=32668 backend=http_data times=0/0/0/-1/91 > http_status=502 bytes_uploaded=478 bytes_read=1807 termination_state=PH-- > connections=1/0/0/0/0 queues=0/0 "PATCH /incoming_data HTTP/1.1" > > Termination state PH means e

Re: Reload takes about 3 minutes

2017-10-13 Thread Joel W Kall
Oh, that makes sense. I'll try to investigate why the DNS server doesn't answer or why it is slow. Maybe we'll just switch to another. Thanks a bunch! Joel W Kall

Haproxy returns 502 before backend replies with 200

2017-10-13 Thread Alexey Buluy
Hi guys! I have a tough situation here and need help from the community. We're using Haproxy as a load-balancer for pretty complex web application deployed in AWS EC2. One of ours http backends is a web-server on Tornado which uses NoSQL cluster for data storage. It serves requests on port 80 and

Re: Reload takes about 3 minutes

2017-10-13 Thread Olivier Houchard
Hi Joel, On Fri, Oct 13, 2017 at 03:22:56PM +0200, Joel W Kall wrote: > Got some results from strace. Running the reload with sudo takes about 3 > minutes and shows that it spends most of the time on: > > 14:39:38.077925 poll([{fd=6, events=POLLIN}], 1, -1) = ? > ERESTART_RESTARTBLOCK (Interrupte

Re: Reload takes about 3 minutes

2017-10-13 Thread Joel W Kall
Got some results from strace. Running the reload with sudo takes about 3 minutes and shows that it spends most of the time on: 14:39:38.077925 poll([{fd=6, events=POLLIN}], 1, -1) = ? ERESTART_RESTARTBLOCK (Interrupted by signal) <180.434742> But running without sudo it's a bit faster (about 2 mi

Re: Haproxy config for sticky route

2017-10-13 Thread Ruben
Well =fun should be a variable name. But the name, whatever it is, should always be routed to the same ip based on some consistency algorhithm. I've build some DNS server to correct for the randomizing of the server list from the dns. So the following: dig @ordered-dns-proxy chat always gives me

Re: Reload takes about 3 minutes

2017-10-13 Thread Joel W Kall
Hi and thanks for your answer. We have 3 certificates. Since this only happens on one server and we have the exact same conf and certs on all servers I don't think that's the reason, though. This is our conf: ### global log 127.0.0.1 local0 notice maxconn 2 user haproxy group

Re: Reload takes about 3 minutes

2017-10-13 Thread Pavlos Parissis
On 13/10/2017 10:32 πμ, Joel W Kall wrote: > We're using HAProxy 1.6.3 to load balance and route HTTP traffic to hundreds > of backend servers. We > reload the config often (several times a day), both automatically when a > server fails and manually > for administrative reasons. > > The problem

Sponsorship

2017-10-13 Thread Alex Smith
Hello! My name is Alex and I represent the website bestvpnrating.com Our company is aimed at sponsoring your project. How can we be listed among your sponsors? Looking forward to your reply, Best regards, Alex Smith.

Reload takes about 3 minutes

2017-10-13 Thread Joel W Kall
We're using HAProxy 1.6.3 to load balance and route HTTP traffic to hundreds of backend servers. We reload the config often (several times a day), both automatically when a server fails and manually for administrative reasons. The problem is that running the reload command takes 3 minutes on one o