sorry, I got it. If the value for primitive is not set, attributes' one would be valid. if it's set, primitive > attributes. Is it correct?
Thanks, Junko > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Junko IKEDA > Sent: Wednesday, June 20, 2007 7:49 PM > To: 'General Linux-HA mailing list' > Subject: [Linux-HA] order of priority for resource_stickiness > > Hello, > I have a question about resource_stickiness. > This value can be set as default, or primitive, instance_attributes, etc... > How priority is established? > I thought the order might be, primitive > instance_attributes > default, > but it seems that the value for primitive does something strange. > > I set resource_stickiness = 0 as default like this; (a detail is attached) > ------------------------------------------------------------------------ > <cib> > <configuration> > <crm_config> > <cluster_property_set id="cluster"> > <attributes> > <nvpair id="default" name="default-resource-stickiness" value="0"/> > ... > </attributes> > </cluster_property_set> > </crm_config> > <nodes/> > <resources> > <group id="grpDummy"> > <primitive id="prmDummy" class="ocf" type="Dummy" provider="heartbeat"> > > ... > </primitive> > </group> > ... > ------------------------------------------------------------------------ > > I moved a resource, first; > (1)# crm_resource -r prmDummy -p resource_stickiness -v -INFINITY > > It worked. The resource moved to the other node. > I brought resource_stickiness back to "0", and changed its value for > primitive tag, next. > > (2)# crm_resource -r prmDummy -p resource_stickiness -v 0 > (3)# cibadmin -U -X '<primitive id="prmDummy" class="ocf" type="Dummy" > provider="heartbeat" resource_stickiness="0"/>' > > After that, I tried to move the resource again; > (4)# crm_resource -r prmDummy -p resource_stickiness -v -INFINITY > > the resource kept running on the same node... > Is it expected? > Should meta_attributes be also considered? > I expected that the operation (3) was not change anything, so the resource > would be moved. > The version I have is v2.0.8. > > Thanks, > Junko _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
