Re: Design decisions: MAX_LINE_ARGS in include/common/defaults.h

From: Willy Tarreau <w#1wt.eu>
Date: Wed, 16 Jul 2008 18:46:44 +0200


Hi,

On Tue, Jul 15, 2008 at 10:08:28PM -0400, Mathieu Trudel wrote:
>
> Hi,
>
> I'm running into a problem with HAProxy parsing my configuration, which
> includes fairly complicated and long ACLs for redirecting to different
> backends. I've looked on the website and mailing list archive, but
> couldn't find anything.
>
> So, haproxy fails to parse my configuration because of the size of the
> use_backend directive. I've noted that increasing MAX_LINE_ARGS in
> include/common/defaults.h to 128, for example, fixes the problem, but
> I'm wondering if there is a specific performance or other reason for
> setting the line arguments limit at 64?

no, you can push it as long as you want. We have arbitrarily limited it to a small value because long lines don't look much manageable and should be a bit discouraged. Can't you cut your lines into multiple "use_backend" statements ?

Willy Received on 2008/07/16 18:46

This archive was generated by hypermail 2.2.0 : 2008/07/16 19:00 CEST