Haproxy - Large number of Req Resp Errors, 504 bad gateway

2013-07-25 Thread Syd
Hi Guys,

I have 2 different HAProxy setups 1xLB, 2xWebServers  1xDB.

The first of the setups has been running for 2+years, the second has been
running for 2-3 weeks.

Both have recently had a number of users are reporting 504 bad gateway
errors from multiple isp's.

All I have noticed is that In the HAProxy stats pages for both, a number of
Req  Resp Errors are showing up. They seem to slowly build up and up
over the hours.

I am not too sure where to start for tracking down these Req  Resp errors
the 504 issues for that matter and if the two are related.

Any tips?

Syd


Re: Prevent HAProxy from toggeling back from fallback to primary

2013-07-25 Thread Claudio M.
In data martedì 23 luglio 2013 17:23:07, hushmeh...@hushmail.com ha scritto:
 On Tue, 23 Jul 2013 14:48:22 +0200 Claudio M.
 
 hapr...@cmaffio.it wrote:
 server web1.bk  192.168.0.43:80 cookie web1.bk  check port
 
 80 maxconn 100 backup
 I need that when both primary servers go down and web1.bk go
 online, when web1b.mi and/or web1d.mi go up haproxy not switch to
 these
 
 I am not completly sure what you want. If web1b/d.mi is UP again
 after a failure, you still see sessions send to web1.bk and you
 dont want that?
 If so, then use the non-stick option and dont add a cookie, like:
 server web1.bk 192.168.0.43:80 check port 80 maxconn 100 backup non-
 stick

web1b adnd web1d are in a cluster and are on sync by drbd, web1.bk is out the 
cluster and is on sync by rsync every 60 minutes. If the DRBD cluster fails, i 
need to resync data from web1.bk to the cluster before haproxy starts to send 
connections to the cluster

Best regards
Claudio



Major differences between 1.4 and 1.5

2013-07-25 Thread Errol Neal
Hi. Can anyone elaborate on this. I promise I'm not being too lazy, but I can't 
find a side-by-side feature comparison against these two releases. 

Thanks in advance,

Errol Neal



Re: Major differences between 1.4 and 1.5

2013-07-25 Thread Jonathan Matthews
On 25 July 2013 17:13, Errol Neal en...@businessgrade.com wrote:
 Hi. Can anyone elaborate on this. I promise I'm not being too lazy, but I 
 can't find a side-by-side feature comparison against these two releases.

1.4 is stable.
1.5 is still in dev, but brings at least SSL and (peer-shared?) stick
tables in as features.

That stable/dev difference may decide it for you - it would for me in
most circumstances. I'm sure more knowledgable people will chime in
with more detailed comparisons.

J
--
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html