On 04/21/2017 09:15 AM, Jarno Huuskonen wrote:
Hi,
On Thu, Apr 20, Frederic Lecaille wrote:
+server-template <prefix> <nb | range> <fqdn>[:<port>] [params*]
+ Set a template for this backend to initialize servers with shared parameters.
+ This server names are built from <prefix> and <nb | range> parameters.
+ May be used in sections : defaults | frontend | listen | backend
+ no | no | yes | yes
+
+ Arguments:
+ <prefix> a prefix for the server names to be built.
+
+ <nb | range>
+ If <nb> is provided, this template initializes <nb> servers
+ with 1 upto <nb> as server name suffixes. A range
<nb_low>-<nb_high>
s/upto/up to/
"A range" -> "A range of" and "may also been" -> "may also be"
(perhaps native English speakers can check this).
+ may also been used to use <nb_low> upto <nb_high> as server name
s/upto/up to/
+ suffixes.
nb (netblock, number) ? I assume number, so maybe
for example <num> and <num_low>-<num_high> is easier to understand ?
+ Examples:
+ # Initializes 5 servers with srv_1, srv_2 and srv_3 as names,
5 servers (s/5/3/) ?
Also note: s/_//
-Jarno
Thank you a lot Jarno for all these remarks. In fact I have published
#0006 patch without double checking. I have already sent an updated
patch to Willy (in private). I am going to redo this ugly patch taking
into an account your remarks too.
Regards.