[Pacemaker] Help on setting order of resources

Adrian Gibanel adrian.gibanel at btactic.com
Tue Aug 21 14:35:19 UTC 2012


Let me explain what made me confused. 

If you have: 

order sample_order 1 2 3 
colocation sample_colo inf: 3 2 1 

it works ok as you say. 

If you have: 

order sample_order 1 2 3 
colocation sample_colo inf: 1 2 3 

it doesn't work at all! 

What order do you infer from last commands? 
My answer always was: Order statement will define the order so it is: 1,2,3. If colocation had any order it would be overwritten. 
But it seems to happen that the way it works is: Colocation will define the order so it is: 3,2,1: If order had any order defined it is overwritten. 

----- Mensaje original -----

> De: "Jake Smith" <jsmith at argotec.com>
> Para: "The Pacemaker cluster resource manager"
> <pacemaker at oss.clusterlabs.org>
> Enviados: Martes, 21 de Agosto 2012 15:59:54
> Asunto: Re: [Pacemaker] Help on setting order of resources

> Adrian,

> A few more comments below to maybe make it clearer...

> > ----- Original Message -----

> > > De: "Adrian Gibanel" <adrian.gibanel at btactic.com>
> >
> > > Para: "The Pacemaker cluster resource manager"
> > > <pacemaker at oss.clusterlabs.org>
> >
> > > Enviados: Domingo, 19 de Agosto 2012 10:27:34
> >
> > > Asunto: Re: [Pacemaker] Help on setting order of resources
> >

> > > Now that I'm reading about that it makes sense. So it removes my
> > > idea
> > > of: Colocation = Put in the same machine/server.
> >

> Not quite sure I understand what you're saying here...

> Colocation does = Put in the same machine/server
> Just didn't have the "order" inside of colocation statement correct

> > > I copy and paste from Configuration Explained pdf:
> >

> > > ---
> >
> > > Well, I'm going to try to reverse the "order" in the colocation
> > > statement.
> >

> > > Now it makes sense why insisted me on setting up resources inside
> > > groups. It seems that makes things easier indeed.
> >

> Groups - shortcut to order and colocation statements (so yes I think
> they are easier - as long as you are already confortable with the
> order/colocation concepts)

> Resources inside groups are ordered as written and collocated in
> reverse - that's my trick to remember the "normal" way a collocation
> statement is written. "Usually" the opposite of the order statement
> i.e.

> order sample_order 1 2 3
> colocation sample_colo inf: 3 2 1

> And I always review them by reading them with their "action" between
> the resources i.e.

> order of sample_order is 1 then 2 then 3
> colocation of sample_colo is always 3 with 2 with 1

> Hope that makes it a bit clearer!

> Jake

-- 

-- 
Adrián Gibanel 
I.T. Manager 

+34 675 683 301 
www.btactic.com 



Ens podeu seguir a/Nos podeis seguir en: 

i 


Abans d´imprimir aquest missatge, pensa en el medi ambient. El medi ambient és cosa de tothom. / Antes de imprimir el mensaje piensa en el medio ambiente. El medio ambiente es cosa de todos. 

AVIS: 
El contingut d'aquest missatge i els seus annexos és confidencial. Si no en sou el destinatari, us fem saber que està prohibit utilitzar-lo, divulgar-lo i/o copiar-lo sense tenir l'autorització corresponent. Si heu rebut aquest missatge per error, us agrairem que ho feu saber immediatament al remitent i que procediu a destruir el missatge . 

AVISO: 
El contenido de este mensaje y de sus anexos es confidencial. Si no es el destinatario, les hacemos saber que está prohibido utilizarlo, divulgarlo y/o copiarlo sin tener la autorización correspondiente. Si han recibido este mensaje por error, les agradeceríamos que lo hagan saber inmediatamente al remitente y que procedan a destruir el mensaje . 




More information about the Pacemaker mailing list