On Fri, Nov 5, 2010 at 4:58 PM, Aurelien Degremont <aurelien.degremont@cea.fr> wrote:
nap a écrit :
> Oh yes! It's quite interesting. Not only for the service generator, but
> for the host generator proposed by Hermann Lauer!!

Yes, i was thinking of host generator.

> So in fact you can generate hosts by using a template like:
> define host{
>    register 0
>    use LinuxNode,WebNode,etc (so here you can "call" the
> service/properties you want
>    duplicate_foreach   nodes[1-400,489,568,600-800/3]
> }
> First let add the "simple" [X-Y]then we can start the more complex /3 or
> & | :p
> Thanks a lot for this idea. This will help quite a lot cluster managers :p
> Let's code it :)
> (Now I already got the hard regexp/parsing part, it's will be quite more
> simple :p)

I mean, I've already got all the code for that. We spent a lot of times on this, this is memory optimized, and O(1) or
O(n) algorithm (were N is not the number of nodes, but the number of non-contiguous ranges, so, something quite small).

If you are interested by that, we can discuss how this could be integrated to Shinken.
Avoid to recode everything and face the same issues we had.
Some (incomplete) documentation here:
O(n) should be far better than the one I wrote I think

I'll have a close look at it, and see how Shinken can use it.

Thanks a lot :)

 > Then you generate with this all your ~480 hosts in a single template!

In fact it is around 4000 hosts in one template.
Next year we will need 5000 hosts in one template for another machine :)
5000hosts * 5 lines for each define host = lot of problem for the poor admin that should manage it, so yes, generating host is a good thing :p


Aurelien Degremont

The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
Shinken-devel mailing list