[Pacemaker] Making a resource slightly sticky?

Paul Graydon paul at ehawaii.gov
Fri May 14 14:14:48 EDT 2010


On 05/13/2010 03:29 PM, Tim Serong wrote:
> On 5/14/2010 at 07:39 AM, Paul Graydon<paul at ehawaii.gov>  wrote:
>    
>> Hi,
>>
>> One of my nodes decided to throw a wobbly this morning and locked up
>> it's network card for about a minute.  Pacemaker came to the rescue,
>> merrily transferred everything over to the other node successfully,
>> however when the original node came back again it transferred the
>> functions back across.
>>
>> Is is possible at all to make resources sticky?  i.e. resources start on
>> node 1.  Node 1 fails, resources migrate to node 2.  Node 1 recovers,
>> but resources stay on node 2 until node 2 fails, at which point they'd
>> migrate to node 1.
>>      
> Yes, you want the "resource-stickiness" property.  Using "crm configure",
> per resource:
>
>    # primitive foo .... \
>        meta resource-stickiness="1"
>
> Or, to make everything a bit sticky:
>
>    # rsc_defaults resource-stickiness="1"
>
> Regards,
>
> Tim
>
>
>    
*hangs head in shame*

Can't believe I missed that... thanks!

-- 
Paul Graydon
Senior Systems Administrator
eHawaii.gov - Hawaii's State Internet Portal
808-695-4619
eHawaii.gov
paul at ehawaii.gov
*********************************************
CONFIDENTIALITY NOTICE:
This email and any attachments are confidential.  If you
are not the intended recipient, you do not have permission
to disclose, copy, distribute, or open any attachments.  If
you have received this email in error, please notify us
immediately by returning it to the sender and delete this
copy from your system.

Thank you.
Hawaii Information Consortium, LLC
**********************************************





More information about the Pacemaker mailing list