[ClusterLabs] Primitive and clone relation .

Digimer lists at alteeve.ca
Sun Feb 5 15:39:37 EST 2017


On 05/02/17 03:31 PM, Sergey Arlashin wrote:
> HI all! 
> 
> I have a simple setup in my test environment - two node cluster with two resources .
> 
> First resource - a web server which is supposed to run on both nodes
> 
> Second resource - a virtual ip address which is supposed to run only on one of these two nodes, but only if the node has web server resource up and running. 
> 
> The resources are currently configured this way:
> 
> primitive webserver ... 
> clone webserver_clone webserver 
> 
> primitive vip ...
> 
> How do I specify that the 'vip' resource should run together with started 'webserver' on the same node and  migrate to another node if 'webserver' resource fails on the current one?  
> 
> Thank you! 
> 
> Regards,
> Sergey

I believe you want colocation constraints;

http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Clusters_from_Scratch/index.html#_ensure_resources_run_on_the_same_host

-- 
Digimer
Papers and Projects: https://alteeve.com/w/
"I am, somehow, less interested in the weight and convolutions of
Einstein’s brain than in the near certainty that people of equal talent
have lived and died in cotton fields and sweatshops." - Stephen Jay Gould




More information about the Users mailing list