Le 04/01/2013 16:13, Art Zemon a écrit :
> Folks,
>
> I am looking for a little bit of help writing the location constraints
> for a memcached resource.
>
> I have a 5-node cluster running with cman as my configuration tool.
>
>    * apache runs on both node1 and node2
>    * mysqld can run on either node3 or node4
>    * memcached can run on node5 or whichever one of node3 or node4 is NOT
>      running mysqld
>
> The first two were easy. I wrote:
>
> location lo_drbd_db1 ms_drbd_share_db -inf: aztestc1
> location lo_drbd_db2 ms_drbd_share_db -inf: aztestc2
> location lo_drbd_db3 ms_drbd_share_db -inf: aztestc5
> location lo_drbd_plesk1 ms_drbd_share_plesk -inf: aztestc3
> location lo_drbd_plesk2 ms_drbd_share_plesk -inf: aztestc4
> location lo_drbd_plesk3 ms_drbd_share_plesk -inf: aztestc5
>
> How do I write the constraints for memcached?
>
> Thanks,
>      -- Art Z.
>
>

Maybe something like this (anti collocation):

location lo_memcached memcached -inf aztestc1
location lo_memcached memcached -inf aztestc2
colocation c_memcached_no_mysqld -INF memcached mysqld

-- 
Cheers,
Florian Crouzat
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to