[ClusterLabs] Primitive and clone relation .
s.arlashin at gmail.com
Sun Feb 5 20:42:30 UTC 2017
So if I specify something like this:
colocation web_vip inf: webserver_clone vip
will it be correct?
> primitive webserver ...
> clone webserver_clone webserver
> primitive vip ...
> On 05 Feb 2017, at 23:39, Digimer <lists at alteeve.ca> wrote:
> 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!
> I believe you want colocation constraints;
> 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
> Users mailing list: Users at clusterlabs.org
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Users