Re: Error "line too long" after adding some conditions

2021-05-11 Thread Tom
Tim, Adis Thanks a lot for your hints. I'll give a try. Kind regards, Tom On 11.05.21 17:35, Tim Düsterhus wrote: Willy, On 5/11/21 5:21 PM, Willy Tarreau wrote: What do you guys think a more acceptable limit would be for each of them ? Both can be increased if needed, they will only use a

Re: Error "line too long" after adding some conditions

2021-05-11 Thread Willy Tarreau
On Tue, May 11, 2021 at 05:35:17PM +0200, Tim Düsterhus wrote: > Willy, > > On 5/11/21 5:21 PM, Willy Tarreau wrote: > > What do you guys think a more acceptable limit would be for each of them ? > > Both can be increased if needed, they will only use a little bit more > > memory during the parsin

Re: Error "line too long" after adding some conditions

2021-05-11 Thread Tim Düsterhus
Willy, On 5/11/21 5:21 PM, Willy Tarreau wrote: What do you guys think a more acceptable limit would be for each of them ? Both can be increased if needed, they will only use a little bit more memory during the parsing. In Tom's case two alternative solutions that are much more readable were

Re: Error "line too long" after adding some conditions

2021-05-11 Thread Tim Düsterhus
Tom, On 5/11/21 4:15 PM, Tom wrote: Using haproxy 2.1.3: I've configured multiple conditions to a "use_backend" directive like this: use_backend example_192.168.1.30 if host_test.example.com || host_a01.test.example.com || host_a02.test.example.com || host_a03.test.example.com || host_a04.tes

Re: Error "line too long" after adding some conditions

2021-05-11 Thread Willy Tarreau
Hello, On Tue, May 11, 2021 at 04:23:09PM +0200, Adis Nezirovic wrote: > On 5/11/21 4:15 PM, Tom wrote: > > When I add some more conditions, then I got an error after reloading the > > daemon: > > > > "line too long, truncating at word 65, position 783:..." > > I'm also interested in technical r

Re: Error "line too long" after adding some conditions

2021-05-11 Thread Adis Nezirovic
On 5/11/21 4:15 PM, Tom wrote: Using haproxy 2.1.3: I've configured multiple conditions to a "use_backend" directive like this: use_backend example_192.168.1.30 if host_test.example.com || host_a01.test.example.com || host_a02.test.example.com || host_a03.test.example.com || host_a04.test.exam

Error "line too long" after adding some conditions

2021-05-11 Thread Tom
Hi Using haproxy 2.1.3: I've configured multiple conditions to a "use_backend" directive like this: use_backend example_192.168.1.30 if host_test.example.com || host_a01.test.example.com || host_a02.test.example.com || host_a03.test.example.com || host_a04.test.example.com || ... || ... Whe