Re: Loadbalancing TCP connections

2010-05-19 Thread Chris Sarginson
OK, cheers for that. Due to the way the config is built (automatically using a script pulling settings from a DB), I'll probably just trim my current defaults and modify the way virtualhosts are created. Cheers Chris Hervé COMMOWICK wrote: You can use 2 defaults sections, one for tcp and one

Re: Loadbalancing TCP connections

2010-05-19 Thread Hervé COMMOWICK
You can use 2 defaults sections, one for tcp and one for http : Just specify in a good order : 1/ defaults section for http 2/ http frontend/backend 3/ defaults section for tcp 4/ tcp frontend/backend For better distribution, use roundrobin algorithm for http backend Hervé. On 05/19/2010 12:4

Re: Loadbalancing TCP connections

2010-05-19 Thread Chris Sarginson
For the list: Chris Sarginson wrote: Sorry - Should have specified that this is only a snippet from my config, which is why there is no frontend listed: My Full config is as follows: ## global log 127.0.0.1 local0 info log 127.0.0.1 local1 notice

Re: Loadbalancing TCP connections

2010-05-19 Thread Hervé COMMOWICK
Hi Chris, You are using an old configuration template, let's go updating : On 05/19/2010 12:10 PM, Chris Sarginson wrote: [...] defaults log global modehttp You want to use tcp load balancing so set "mode tcp" instead option httplog same reason, set "option

Re: Loadbalancing TCP connections

2010-05-19 Thread Chris Sarginson
In response to my own question, I have the following in my haproxy.cfg: global log 127.0.0.1 local0 info log 127.0.0.1 local1 notice #log loghostlocal0 info maxconn 4 chroot /var/lib/haproxy user haproxy group haproxy dae

Loadbalancing TCP connections

2010-05-19 Thread Chris Sarginson
Hi all, I'm currently trying to loadbalance connections to the Sphinx search daemon on 2 servers, however haproxy is not detecting the ports as being accessible despite the fact that they are responding. I'm using haproxy 1.3.23 - what sort of checks is haproxy running to try and ascertain i