Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev

Resource on two node configuration question.

 

 

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded


peter.wong at mobidia

Feb 21, 2007, 4:41 PM

Post #1 of 6 (673 views)
Permalink
Resource on two node configuration question.

Greetings:

I have two node called "pwhaone" and "pwhatesttwo", configured
as follows in the cib.xml:
---
<nodes>
<node id="648c7f1b-8f3e-472e-ade4-7c302c433cb6" uname="pwhaone"
type="normal"/>
<node id="6fb2d08b-a6bb-4d23-aa39-4a44f3c46ba1" uname="pwhatesttwo"
type="normal"/>
</nodes>
---

I also have just one resource group, say called it R.

Now, if I start heartbeat just on node "pwhatesttwo" it'll
start running resource R there. Then if I start heartbeat on
node "pwhaone", resource R will be stopped on the node
"pwhatesttwo" and migrated to the node "pwhaone".

On the other hand, if I start node "pwhaone" first, resource
R will continue running there even if I start the node
"pwhatesttwo" (i.e. the resource R won't be migrated).

The question is: what attributes are needed in the cib.xml file
in order to have the situation in which the resource R will
stay where it is running and won't automatically switched
to a newly started node. (i.e. In the first scenario, I
want R to stay on node "pwhatesttwo" even I start the node
"pwhaone".

Thanks in advance for any help!

Peter.

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


lmb at suse

Feb 22, 2007, 3:55 AM

Post #2 of 6 (636 views)
Permalink
Re: Resource on two node configuration question. [In reply to]

On 2007-02-21T16:41:55, Peter Wong <peter.wong [at] mobidia> wrote:

> On the other hand, if I start node "pwhaone" first, resource
> R will continue running there even if I start the node
> "pwhatesttwo" (i.e. the resource R won't be migrated).

Yes, that's actually expected.

> The question is: what attributes are needed in the cib.xml file
> in order to have the situation in which the resource R will
> stay where it is running and won't automatically switched
> to a newly started node. (i.e. In the first scenario, I
> want R to stay on node "pwhatesttwo" even I start the node
> "pwhaone".

"default_resource_stickiness" with a valuer larger than 0.



_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


alanr at unix

Feb 22, 2007, 5:30 AM

Post #3 of 6 (637 views)
Permalink
Re: *** (0.001) *** [Linux-HA] Resource on two node configuration question. [In reply to]

Peter Wong wrote:
> Greetings:
>
> I have two node called "pwhaone" and "pwhatesttwo", configured
> as follows in the cib.xml:
> ---
> <nodes>
> <node id="648c7f1b-8f3e-472e-ade4-7c302c433cb6" uname="pwhaone"
> type="normal"/>
> <node id="6fb2d08b-a6bb-4d23-aa39-4a44f3c46ba1" uname="pwhatesttwo"
> type="normal"/>
> </nodes>
> ---
>
> I also have just one resource group, say called it R.
>
> Now, if I start heartbeat just on node "pwhatesttwo" it'll
> start running resource R there. Then if I start heartbeat on
> node "pwhaone", resource R will be stopped on the node
> "pwhatesttwo" and migrated to the node "pwhaone".
>
> On the other hand, if I start node "pwhaone" first, resource
> R will continue running there even if I start the node
> "pwhatesttwo" (i.e. the resource R won't be migrated).
>
> The question is: what attributes are needed in the cib.xml file
> in order to have the situation in which the resource R will
> stay where it is running and won't automatically switched
> to a newly started node. (i.e. In the first scenario, I
> want R to stay on node "pwhatesttwo" even I start the node
> "pwhaone".

I've created bugzilla 1495 to document this issue.
http://old.linux-foundation.org/developer_bugzilla/show_bug.cgi?id=1495

--
Alan Robertson <alanr [at] unix>

"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


lmb at suse

Feb 22, 2007, 12:47 PM

Post #4 of 6 (640 views)
Permalink
Re: Re: *** (0.001) *** [Linux-HA] Resource on two node configuration question. [In reply to]

On 2007-02-22T06:30:42, Alan Robertson <alanr [at] unix> wrote:

> I've created bugzilla 1495 to document this issue.
> http://old.linux-foundation.org/developer_bugzilla/show_bug.cgi?id=1495

This one is invalid. Resource stickiness not being set basically means
the cluster might move resources around whenever it feels like it, or
when the UUIDs are different.


_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


alanr at unix

Feb 22, 2007, 7:27 PM

Post #5 of 6 (642 views)
Permalink
Re: Re: *** (0.001) *** [Linux-HA] Resource on two node configuration question. [In reply to]

Lars Marowsky-Bree wrote:
> On 2007-02-22T06:30:42, Alan Robertson <alanr [at] unix> wrote:
>
>> I've created bugzilla 1495 to document this issue.
>> http://old.linux-foundation.org/developer_bugzilla/show_bug.cgi?id=1495
>
> This one is invalid. Resource stickiness not being set basically means
> the cluster might move resources around whenever it feels like it, or
> when the UUIDs are different.

The fact that there is a workaround for the default never doing what
anyone wants doesn't mean the default is correct - which is what the
parent bug said. This was really a "child bug" with the rest of the
details in the parent bug. But, that seemed to confuse you, so I copied
them to that bug.

I've reopened the bug. I suppose I should just fix it. I suspect that
this is a pretty simple fix.

--
Alan Robertson <alanr [at] unix>

"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


lmb at suse

Feb 22, 2007, 11:22 PM

Post #6 of 6 (635 views)
Permalink
Re: Re: *** (0.001) *** [Linux-HA] Resource on two node configuration question. [In reply to]

On 2007-02-22T20:27:36, Alan Robertson <alanr [at] unix> wrote:

> I've reopened the bug. I suppose I should just fix it. I suspect that
> this is a pretty simple fix.

If you make it not change behaviour on updates ...

It's about as simple as the fix to increase performance noticably, you
know? ;-)


--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.