Node groups & hail

21 views
Skip to first unread message

Damien Churchill

unread,
Apr 19, 2012, 5:46:29 AM4/19/12
to gan...@googlegroups.com
Hi,

I've been hunting around trying to figure this out but no success yet.

Is it possible to specify a node group when adding an instance so the
IAllocator selects nodes within that group? Or better than that, is it
possible to tie OS images to a node group?

Thanks in advance,
Damien

Iustin Pop

unread,
Apr 19, 2012, 5:51:30 AM4/19/12
to gan...@googlegroups.com
On Thu, Apr 19, 2012 at 10:46:29AM +0100, Damien Churchill wrote:
> Hi,
>
> I've been hunting around trying to figure this out but no success yet.
>
> Is it possible to specify a node group when adding an instance so the
> IAllocator selects nodes within that group?

Not directly, but if you mark all other node groups as last_resort, then
the instance will be allocated in the single preferred group.

> Or better than that, is it
> possible to tie OS images to a node group?

It is not, but this is indeed how (long-term) ganeti should behave.

thanks,
iustin

Damien Churchill

unread,
Apr 19, 2012, 6:07:50 AM4/19/12
to gan...@googlegroups.com
On 19 April 2012 10:51, Iustin Pop <ius...@google.com> wrote:
> On Thu, Apr 19, 2012 at 10:46:29AM +0100, Damien Churchill wrote:
>> Hi,
>>
>> I've been hunting around trying to figure this out but no success yet.
>>
>> Is it possible to specify a node group when adding an instance so the
>> IAllocator selects nodes within that group?
>
> Not directly, but if you mark all other node groups as last_resort, then
> the instance will be allocated in the single preferred group.

Okay good to know, thanks.

>
>> Or better than that, is it
>> possible to tie OS images to a node group?
>
> It is not, but this is indeed how (long-term) ganeti should behave.
>

Presumably I could write my own IAllocator to achieve this now though?

Iustin Pop

unread,
Apr 19, 2012, 6:15:38 AM4/19/12
to gan...@googlegroups.com
On Thu, Apr 19, 2012 at 11:07:50AM +0100, Damien Churchill wrote:
> On 19 April 2012 10:51, Iustin Pop <ius...@google.com> wrote:
> > On Thu, Apr 19, 2012 at 10:46:29AM +0100, Damien Churchill wrote:
> >> Hi,
> >>
> >> I've been hunting around trying to figure this out but no success yet.
> >>
> >> Is it possible to specify a node group when adding an instance so the
> >> IAllocator selects nodes within that group?

> >> Or better than that, is it


> >> possible to tie OS images to a node group?
> >
> > It is not, but this is indeed how (long-term) ganeti should behave.
> >
>
> Presumably I could write my own IAllocator to achieve this now though?

You could, indeed, to keep a static map (requested OS = foo, use group
X), but I was talking about a more general problem: ganeti should
support separate OS lists per group, but right now it still wants to
have uniform OS names per the entire cluster.

iustin

Damien Churchill

unread,
Apr 19, 2012, 6:18:04 AM4/19/12
to gan...@googlegroups.com

Ah I get you. I'm wanting the grouping primarily to allow for ksm to
share more memory, grouping windows with windows and linux with linux
mostly. Per group OS images would be handy though.

Reply all
Reply to author
Forward
0 new messages