FreeBSD experiences.

2016-03-09 Thread SL
Hi, (Disclaimer: I don't mean to start a religious discussion!) Does anyone have any comparative experiences in running HAProxy on Linux and FreeBSD? I'm especially interested in performance - in particular CPU load. I don't have much experience with FreeBSD, and have read conflicting informat

Re: Haproxy failing to start after VM move (Debian 8 [systemd])

2016-03-07 Thread SL
Hi Lukas, We're on 64 bit CPUs. I used: TARGET=linux2628 CPU=generic USE_PCRE=1 So, will this have compiled to 32bits (without using the ARCH=x86_64 option)? Cheers On 7 March 2016 at 14:32, Lukas Tribus wrote: > > One last question. Would there be a performance benefit in > > using CPU=i6

Re: Haproxy failing to start after VM move (Debian 8 [systemd])

2016-03-07 Thread SL
One last question. Would there be a performance benefit in using CPU=i686 over CPU=generic? (I think I can be fairly sure that our host will always expose Intel CPUs) On 7 March 2016 at 14:04, SL wrote: > Thanks for your help everyone. I've recompiled with the CPU=generic > optio

Re: Haproxy failing to start after VM move (Debian 8 [systemd])

2016-03-07 Thread SL
Thanks for your help everyone. I've recompiled with the CPU=generic option, and it's all working again. On 7 March 2016 at 13:37, SL wrote: > Hi All, > > Thank you for your quick replies! (I'm grateful that HAproxy has such a > great community). > > >&

Re: Haproxy failing to start after VM move (Debian 8 [systemd])

2016-03-07 Thread SL
inally compile with these options (oops). Will recompile and report back. Thank you. On 7 March 2016 at 13:35, Lukas Tribus wrote: > Hi SL, > > > > ./haproxy -v > > Illegal Instruction > > > > sudo/haproxy -v > > [no output] > > > > Same thing

Haproxy failing to start after VM move (Debian 8 [systemd])

2016-03-07 Thread SL
Hi, I hope someone can offer some insight here, as I'm currently at a bit of a loss, and our service is down. We are running HAproxy 1.6.1 on Debian 8 virtuial machines. I was moving our 2 instances to a different size VM, however, when I rebooted they did not come back up. I can't even run the

Re: enabling cpu-map

2015-12-03 Thread SL
ative -g -fno-strict-aliasing -Wdeclaration-after-statement OPTIONS = USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1 USE_LIBCRYPT=1 USE_POLL=default USE_OPENSSL=yes USE_PCRE=1 On 3 December 2015 at 09:43, Vincent Bernat wrote: > ❦ 3 décembre 2015 08:59 +0100, SL : > > > I'm trying to

enabling cpu-map

2015-12-03 Thread SL
Hi, I'm trying to use the cpu-map directive on haproxy 1.6 (Debian 8), but am getting the error: 'cpu-map' is not enabled, please check build options for USE_CPU_AFFINITY I understand from this that I need to recompile with some different options, but could anyone point me in the direction of ho

Re: Selecting back end from host header

2015-11-23 Thread SL
> use_backend %[req.hdr(host),lower] Is there anyway to extract the host subdomain to use like this (rather than the full hostname)? I can't see any obvious way to do it from the manual, but perhaps I'm missing something. On 14 November 2015 at 22:14, SL wrote: > @Igor - thank

Re: Selecting back end from host header

2015-11-20 Thread SL
> use_backend %[req.hdr(host),lower] Is there anyway to extract the host subdomain to use like this (rather than the full hostname)? I can't see any obvious way to do it from the manual, but perhaps I'm missing something.

Re: Trouble starting haproxy on Debian8 (systemd)

2015-11-16 Thread SL
Hmm, it seems to be working again now - not sure what has changed, but will investigate. Thanks for the response, and sorry for wasting your time. On 16 November 2015 at 17:02, Marco Corte wrote: > Hi! > > Does haproxy start manually? Is it only a systemd issue? > > > Il 16

Trouble starting haproxy on Debian8 (systemd)

2015-11-16 Thread SL
Hi, Today I cloned a server which is running haproxy 1.6 on a debian8 server without problems. However, for some reason the clone refuses to start haproxy (IPs and hostname have been updated of course). Probably I'm missing something simple, but I can't think what it is. I have very little expe

Re: Selecting back end from host header

2015-11-14 Thread SL
@Igor - thanks, I didn't know about that map feature, I think it could be useful in a number of situations. @Baptiste - Ah, it is possible dynamically, that's great - thank you! On 14 November 2015 at 22:05, Baptiste wrote: > On Sat, Nov 14, 2015 at 3:21 PM, SL wrote: > >

Selecting back end from host header

2015-11-14 Thread SL
Hi, We have quite a large number of backends, and are selecting which back end to use based on the host specified in the request. (Note these are not loadbalanced, we have to target them individually). Currently we are doing this with ACLs, e.g. for each: acl svr1_request hdr_beg(host) -i s

Re: Upgrade from 1.4 -> 1.6, any gotchas?

2015-10-22 Thread SL
Hmm, thought I'd tried that, but it's working, thanks! On 22 October 2015 at 13:24, Jarno Huuskonen wrote: > Hi, > > On Thu, Oct 22, SL wrote: > > I couldn't get my original stats config to work (currently just removed). > > Can anyone suggest how I should

Re: Upgrade from 1.4 -> 1.6, any gotchas?

2015-10-22 Thread SL
realm Haproxy\ Statistics stats hide-version stats enable mode http On 21 October 2015 at 23:26, Cyril Bonté wrote: > Hi all, > > Le 21/10/2015 22:16, Lukas Tribus a écrit : > >> On Wed, Oct 21, 2015 at 7:14 PM, SL wrote: >>> >>>&

Upgrade from 1.4 -> 1.6, any gotchas?

2015-10-21 Thread SL
I'll be doing an upgrade from 1.4 to 1.6 tomorrow. Just wondering if there are any changed defaults, breaking changes, anything like that? Or should my config work as before? Thank you!

New 1.6 features overview?

2015-10-20 Thread SL
Hi, New 1.6 features look interesting from the news item. Is there a comprehensive description of the new features anywhere? Thanks S

Using rewrite instead of redirect

2013-06-27 Thread SL
I currenty have a line in our HAProxy config that I uncomment when I want to put the site into 'maintenance mode'. It just redirects requests not for the static subdomain to a maintenance page. redirect location http://static.site.com/maintenance.htm unless { hdr(host) -i static.site.com } Of