Re: Thousand of ACL

2013-04-04 Thread Nerilaunt Nerilaunt
Hello,

2013/4/3 Willy Tarreau 

> Maybe what you want to do could already be achieved using stick-tables, as
> it is already possible to add/update/remove some stick-table entries from
> the CLI.
>
> Do you need many ACLs or many entries per ACL ? The difference is the
> number
> of different actions you want to do. If it's just selecting a server or
> another one depending on the URI, it should be almost trivial.
>

We have a lot of lines like that :

use_backend BACK1 if { path -i /user/path/file1.txt }
use_backend BACK2 if { path -i /user/path/file2.txt }
use_backend BACK1 if { path -i /user/path/file3.txt }
use_backend BACK1 if { path -i /user/path/file4.txt }
use_backend BACK2 if { path -i /user/path/file5.txt }

We'd like to update this very often, this is why I thought of a memcached (or
something similar) storage ...

Thanks


Thousand of ACL

2013-04-03 Thread Nerilaunt Nerilaunt
Hello,

I'd like to know if it's complicated to store ACL in a memcached server and
live update them, or if the core of haproxy prevents to do this kind of
patch.

I want to add and remove lot of URI based ACL and I don't see how to do
that with current options.

Thanks,

Neri


Re: Debugging 502 errors

2009-11-23 Thread Nerilaunt Nerilaunt
Well, it seems to be a problem with Prestahop's very big headers.

I update include/common/defaults.h and set BUFSIZE 32768 instead of 16384

Seems to work.

Is it safe ?

Thanks,

2009/11/23 Nerilaunt Nerilaunt :
> Hello,
>
> Errors appears immediately, not after a long time.
>
> I have timeout server 18, so it's not the problem ...
>
> Thanks,
>
> 2009/11/23 Gabriel Sosa :
>> hello,
>> have you checked your srvtimeout parameter? maybe your script is
>> taking too long to reply to the haproxy and thats raises the timeout
>>
>> regards
>>
>>
>> On Sun, Nov 22, 2009 at 8:59 PM, Nerilaunt Nerilaunt
>>  wrote:
>>> Hello,
>>>
>>> I have a quite big problem with Prestashop under Haproxy.
>>>
>>> When I try to use advanced features, I receive 502 errors : 502 Bad
>>> Gateway - The server returned an invalid or incomplete response.
>>>
>>> Error log give me something like that :
>>>
>>> Nov 22 20:03:10 localhost haproxy[29665]: 1.2.3.4:15870
>>> [22/Nov/2009:20:03:09.713] www srv-www1 25/0/0/-1/985 502 8396 - -
>>> PHVN 20/19/15/9/0 0/0 {domain.tld} "POST
>>> /boutique/urladmin/index.php?tab=AdminCatalog&id_category=1&token=bc27a5d070551ac1e057b5d54fd9dd78
>>> HTTP/1.1"
>>>
>>> Without Haproxy, it works fine.
>>>
>>> I know Haproxy give 502 errors when a bad header is sent by the app
>>> (like 'Location : index.php' instead of 'Location: index.php'), or if
>>> the backend server unexpectedly close the connection (honestly, I
>>> would prefer a more verbose message, who explains exactly what is the
>>> problem).
>>>
>>> But here, I don't see any errors like that.
>>>
>>> Do you have some ideas in order to debug that ? More verbose logs, tests, 
>>> ...
>>> I tried with -d mode, but I can't find any 502 error ...
>>>
>>> I use Haproxy v. 1.3.22.
>>>
>>> Thanks in advance,
>>>
>>> Neri
>>>
>>>
>>
>>
>>
>> --
>> Gabriel Sosa
>> Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein
>>
>



Re: Debugging 502 errors

2009-11-22 Thread Nerilaunt Nerilaunt
Hello,

Errors appears immediately, not after a long time.

I have timeout server 18, so it's not the problem ...

Thanks,

2009/11/23 Gabriel Sosa :
> hello,
> have you checked your srvtimeout parameter? maybe your script is
> taking too long to reply to the haproxy and thats raises the timeout
>
> regards
>
>
> On Sun, Nov 22, 2009 at 8:59 PM, Nerilaunt Nerilaunt
>  wrote:
>> Hello,
>>
>> I have a quite big problem with Prestashop under Haproxy.
>>
>> When I try to use advanced features, I receive 502 errors : 502 Bad
>> Gateway - The server returned an invalid or incomplete response.
>>
>> Error log give me something like that :
>>
>> Nov 22 20:03:10 localhost haproxy[29665]: 1.2.3.4:15870
>> [22/Nov/2009:20:03:09.713] www srv-www1 25/0/0/-1/985 502 8396 - -
>> PHVN 20/19/15/9/0 0/0 {domain.tld} "POST
>> /boutique/urladmin/index.php?tab=AdminCatalog&id_category=1&token=bc27a5d070551ac1e057b5d54fd9dd78
>> HTTP/1.1"
>>
>> Without Haproxy, it works fine.
>>
>> I know Haproxy give 502 errors when a bad header is sent by the app
>> (like 'Location : index.php' instead of 'Location: index.php'), or if
>> the backend server unexpectedly close the connection (honestly, I
>> would prefer a more verbose message, who explains exactly what is the
>> problem).
>>
>> But here, I don't see any errors like that.
>>
>> Do you have some ideas in order to debug that ? More verbose logs, tests, ...
>> I tried with -d mode, but I can't find any 502 error ...
>>
>> I use Haproxy v. 1.3.22.
>>
>> Thanks in advance,
>>
>> Neri
>>
>>
>
>
>
> --
> Gabriel Sosa
> Si buscas resultados distintos, no hagas siempre lo mismo. - Einstein
>



Debugging 502 errors

2009-11-22 Thread Nerilaunt Nerilaunt
Hello,

I have a quite big problem with Prestashop under Haproxy.

When I try to use advanced features, I receive 502 errors : 502 Bad
Gateway - The server returned an invalid or incomplete response.

Error log give me something like that :

Nov 22 20:03:10 localhost haproxy[29665]: 1.2.3.4:15870
[22/Nov/2009:20:03:09.713] www srv-www1 25/0/0/-1/985 502 8396 - -
PHVN 20/19/15/9/0 0/0 {domain.tld} "POST
/boutique/urladmin/index.php?tab=AdminCatalog&id_category=1&token=bc27a5d070551ac1e057b5d54fd9dd78
HTTP/1.1"

Without Haproxy, it works fine.

I know Haproxy give 502 errors when a bad header is sent by the app
(like 'Location : index.php' instead of 'Location: index.php'), or if
the backend server unexpectedly close the connection (honestly, I
would prefer a more verbose message, who explains exactly what is the
problem).

But here, I don't see any errors like that.

Do you have some ideas in order to debug that ? More verbose logs, tests, ...
I tried with -d mode, but I can't find any 502 error ...

I use Haproxy v. 1.3.22.

Thanks in advance,

Neri