Re: server template feature

2018-02-23 Thread Aleksandar Lazic
Am 23.02.2018 um 10:10 schrieb Philipp Buehler:
> Am 23.02.2018 09:57 schrieb Aleksandar Lazic:
>> Can I run something like this?
>> ```
>>     server-template units 1-40 "10.0.8.${num}":"1000${num}" maxconn 2 
>> check
>> ```
>>
>> Because I haven't seen that the iterator is exported maybe it's not
>> possible.
>>
> 
> As I see it from docs and the haproxy-blog*, there's no usable iterator
> like that.
> The blog only leverages this via the stats-API.
> 
> *) https://www.haproxy.com/blog/dynamic-configuration-haproxy-runtime-api/
> Scroll down to 'Dynamically Scaling Backend Servers'

Jep I have seen the same but wanted to ask the community.

Is anyone interested in such a feature?

Maybe my use case is a unique one and therefore I don't want to bloat
the haproxy code with such a feature.

> Maybe something hiding behind unwritten docs? ;-)

+1

> HTH/ciao

Regards
Aleks



Re: server template feature

2018-02-23 Thread Philipp Buehler

Am 23.02.2018 09:57 schrieb Aleksandar Lazic:

Can I run something like this?
```
server-template units 1-40 "10.0.8.${num}":"1000${num}" maxconn 2  
check

```

Because I haven't seen that the iterator is exported maybe it's not
possible.



As I see it from docs and the haproxy-blog*, there's no usable iterator 
like that.

The blog only leverages this via the stats-API.

*) 
https://www.haproxy.com/blog/dynamic-configuration-haproxy-runtime-api/

Scroll down to 'Dynamically Scaling Backend Servers'

Maybe something hiding behind unwritten docs? ;-)

HTH/ciao
--
pb