Re: weird error unknown option 'splice-auto'.

2010-10-21 Thread Hank A. Paulson
Thanks, as soon as I hit enter, I realized the problem - since I just cut and 
paste the make line I don't think about it that much.


On 10/21/10 12:00 PM, Cyril Bonté wrote:

Hi Hank,

Le jeudi 21 octobre 2010 20:41:11, Hank A. Paulson a écrit :

Copied a working 1.4.8 config to a Fedora 14 box with Fedora compiled 1.4.8
haproxy and it says unknown option 'splice-auto'.
Is that correct?
(...)

Build options :
TARGET  = linux26
CPU = generic
CC  = gcc
CFLAGS  = -O2 -g
OPTIONS = USE_LINUX_TPROXY=1 USE_REGPARM=1 USE_PCRE=1


This option is only available if haproxy is compiled with USE_LINUX_SPLICE=1





Re: weird error unknown option 'splice-auto'.

2010-10-21 Thread Cyril Bonté
Hi Hank,

Le jeudi 21 octobre 2010 20:41:11, Hank A. Paulson a écrit :
> Copied a working 1.4.8 config to a Fedora 14 box with Fedora compiled 1.4.8
> haproxy and it says unknown option 'splice-auto'.
> Is that correct?
> (...)
> 
> Build options :
>TARGET  = linux26
>CPU = generic
>CC  = gcc
>CFLAGS  = -O2 -g
>OPTIONS = USE_LINUX_TPROXY=1 USE_REGPARM=1 USE_PCRE=1

This option is only available if haproxy is compiled with USE_LINUX_SPLICE=1

-- 

Cyril Bonté



weird error unknown option 'splice-auto'.

2010-10-21 Thread Hank A. Paulson
Copied a working 1.4.8 config to a Fedora 14 box with Fedora compiled 1.4.8 
haproxy and it says unknown option 'splice-auto'.

Is that correct?

# service haproxy restart
[ALERT] 292/190016 (3644) : parsing [/etc/haproxy/haproxy.cfg:2] : unknown 
option 'splice-auto'.
[ALERT] 292/190016 (3644) : Error(s) found in configuration file : 
/etc/haproxy/haproxy.cfg

[ALERT] 292/190016 (3644) : Fatal errors found in configuration.
Errors in configuration file, check with haproxy check.

# which haproxy
/usr/sbin/haproxy

# md5sum /usr/sbin/haproxy
6bf6c61a436f3e909be2903dbd702b79  /usr/sbin/haproxy

# haproxy -vv
HA-Proxy version 1.4.8 2010/06/16
Copyright 2000-2010 Willy Tarreau 

Build options :
  TARGET  = linux26
  CPU = generic
  CC  = gcc
  CFLAGS  = -O2 -g
  OPTIONS = USE_LINUX_TPROXY=1 USE_REGPARM=1 USE_PCRE=1

Default settings :
  maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200

Encrypted password support via crypt(3): yes

Available polling systems :
 sepoll : pref=400,  test result OK
  epoll : pref=300,  test result OK
   poll : pref=200,  test result OK
 select : pref=150,  test result OK
Total: 4 (4 usable), will use sepoll.


# uname -a
Linux xxyyzz 2.6.35.6-46.fc14.x86_64 #1 SMP Tue Oct 19 02:58:56 UTC 2010 
x86_64 x86_64 x86_64 GNU/Linux




Re: option splice-auto

2009-04-20 Thread Willy Tarreau
Hi,

On Sun, Apr 19, 2009 at 10:56:29PM +0100, Robert Simmons wrote:
> I am trying to configure HAProxy to use connection splicing, however  
> 1.3.17 does not seem to accept this option. I've tried splice-auto  
> along with request and response without success. According to the  
> configuration, placing it in the listen is acceptable - but it is  
> returning "unknown option" on a configuration test.

generally you will want "option splice-response" so that only the
response uses tcp-splicing. Using "splice-auto" lets haproxy decide
when it is wise to use splicing depending on the data rate. However
it is a bit conservative so it does not enable it too fast.

In your case, there is something else. I think that you simply did
not build with USE_LINUX_SPLICE=1, and the option has not been enabled.
Probably that it would be better if such optional features were still
enabled in the config parser so that it can complain with a more
appropriate error message.

Regards
Willy




option splice-auto

2009-04-19 Thread Robert Simmons
I am trying to configure HAProxy to use connection splicing, however  
1.3.17 does not seem to accept this option. I've tried splice-auto  
along with request and response without success. According to the  
configuration, placing it in the listen is acceptable - but it is  
returning "unknown option" on a configuration test.


Any ideas?

Robert.

Config:

listen rps-test 10.210.2.30:80
mode http
stats enable
stats uri /stats
option splice-request
option httpclose
balance roundrobin
clitimeout 10
srvtimeout 3
contimeout 4000
maxconn 4
server Web1 10.210.2.20:80
server Web2 10.210.2.21:80
server Web3 10.210.2.22:80

global
ulimit-n 1024576
maxconn 4
stats socket /var/run/haproxy.socket