Re: server templates

2017-04-21 Thread Frederic Lecaille
Perhaps you should start stopping polluting Jarno's mailbox ;) On 04/21/2017 04:03 PM, Baptiste wrote: On Fri, Apr 21, 2017 at 3:43 PM, Willy Tarreau mailto:w...@1wt.eu>> wrote: Hey Fred, that's now merged. I've just build my first haproxy config with 1 million servers. It ta

Re: server templates

2017-04-21 Thread Willy Tarreau
On Fri, Apr 21, 2017 at 04:03:02PM +0200, Baptiste wrote: > Looking forward to rebase my DNS patches and mix this feature with the DNS > cache :) > (I don't want your laptop to send 1.000.000 DNS requests to your dns > recurosr every few seconds) You just gave me a good idea of a funny game for th

Re: server templates

2017-04-21 Thread Baptiste
On Fri, Apr 21, 2017 at 3:43 PM, Willy Tarreau wrote: > Hey Fred, > > that's now merged. I've just build my first haproxy config with 1 million > servers. It takes 8 seconds to start on my laptop, consumes 2.7 GB of RAM > and the stats page is 820 MB long :-) > > It's awesome! > > Thanks, > Willy

Re: server templates

2017-04-21 Thread Willy Tarreau
Hey Fred, that's now merged. I've just build my first haproxy config with 1 million servers. It takes 8 seconds to start on my laptop, consumes 2.7 GB of RAM and the stats page is 820 MB long :-) It's awesome! Thanks, Willy

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:45 AM, Frederic Lecaille wrote: On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from an

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from and parameters. + May be used in sections : defa

Re: server templates

2017-04-21 Thread Frederic Lecaille
On 04/21/2017 09:15 AM, Jarno Huuskonen wrote: Hi, On Thu, Apr 20, Frederic Lecaille wrote: +server-template [:] [params*] + Set a template for this backend to initialize servers with shared parameters. + This server names are built from and parameters. + May be used in sections : defa

Re: server templates

2017-04-21 Thread Jarno Huuskonen
Hi, On Thu, Apr 20, Frederic Lecaille wrote: > +server-template [:] [params*] > + Set a template for this backend to initialize servers with shared > parameters. > + This server names are built from and parameters. > + May be used in sections : defaults | frontend | listen | backend > +

Re: server templates

2017-04-20 Thread Frederic Lecaille
Hello HAProxy ML, On 04/10/2017 05:00 PM, Baptiste wrote: On Mon, Apr 10, 2017 at 2:30 PM, Willy Tarreau mailto:w...@1wt.eu>> wrote: On Mon, Apr 10, 2017 at 10:02:29AM +0200, Frederic Lecaille wrote: > With server templates, haproxy could preallocate 'server&

Re: server templates

2017-04-10 Thread Willy Tarreau
things easier. Or maybe we'll adopt very similar designs for backend templates as for server templates. This still needs more thinking. For frontends it's even worse and frontends are also directly involved in maxconn computation and such stuff. Also most of the time it will not be pos

Re: server templates

2017-04-10 Thread Aleksandar Lazic
Am 10-04-2017 20:19, schrieb Willy Tarreau: On Mon, Apr 10, 2017 at 05:00:14PM +0200, Baptiste wrote: On Mon, Apr 10, 2017 at 2:30 PM, Willy Tarreau wrote: > On Mon, Apr 10, 2017 at 10:02:29AM +0200, Frederic Lecaille wrote: > > With server templates, haproxy could preallocat

Re: server templates

2017-04-10 Thread Willy Tarreau
On Mon, Apr 10, 2017 at 05:00:14PM +0200, Baptiste wrote: > On Mon, Apr 10, 2017 at 2:30 PM, Willy Tarreau wrote: > > > On Mon, Apr 10, 2017 at 10:02:29AM +0200, Frederic Lecaille wrote: > > > With server templates, haproxy could preallocate 'server' object

Re: server templates

2017-04-10 Thread Baptiste
On Mon, Apr 10, 2017 at 2:30 PM, Willy Tarreau wrote: > On Mon, Apr 10, 2017 at 10:02:29AM +0200, Frederic Lecaille wrote: > > With server templates, haproxy could preallocate 'server' objects which > > would derive from 'default-server' (with same settings a

Re: server templates

2017-04-10 Thread Willy Tarreau
On Mon, Apr 10, 2017 at 10:02:29AM +0200, Frederic Lecaille wrote: > With server templates, haproxy could preallocate 'server' objects which > would derive from 'default-server' (with same settings as default server > settings), but with remaining parameters whic

Re: server templates

2017-04-10 Thread Frederic Lecaille
On 04/08/2017 01:27 AM, Aleksandar Lazic wrote: Hi Frederic Hi Aleksandar, Am 07-04-2017 15:00, schrieb Frederic Lecaille: Hello Haproxy ML, Here are patches attached to this mail to add "server templates" feature to haproxy. Please can you explain a little bit more the use ca

Re: server templates

2017-04-07 Thread Aleksandar Lazic
Hi Frederic Am 07-04-2017 15:00, schrieb Frederic Lecaille: Hello Haproxy ML, Here are patches attached to this mail to add "server templates" feature to haproxy. Please can you explain a little bit more the use case, thanks. I'm sure there is a valid use case but I don&

server templates

2017-04-07 Thread Frederic Lecaille
Hello Haproxy ML, Here are patches attached to this mail to add "server templates" feature to haproxy. The two first patches consist in moving code to be reused both during 'server' lines parsing and during and server templates initializations. A new CLI command has