[ClusterLabs] Primitive and clone relation .
Sergey Arlashin
s.arlashin at gmail.com
Sun Feb 5 15:42:30 EST 2017
So if I specify something like this:
colocation web_vip inf: webserver_clone vip
will it be correct?
Regards,
Sergey
> 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!
>>
>> 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
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> 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
mailing list