Hello,
 
Yes, the promoted role of one of the dbs will failover to a node that is not using the virtual IP address. However, neither the db resources nor the virtual IP resources will follow the db that failed over, hence we end up in a state where the dbs are located on separate nodes and the virtual IP only points to the set of dbs on the original node.
 
Thank you,
Abithan 
 
----- Original message -----
From: kgail...@redhat.com
Sent by: "Users" <users-boun...@clusterlabs.org>
To: Cluster Labs - All topics related to open-source clustering welcomed <users@clusterlabs.org>
Cc:
Subject: [EXTERNAL] Re: [ClusterLabs] Colocating a Virtual IP address with multiple resources
Date: Mon, Jun 7, 2021 5:52 PM
 
On Mon, 2021-06-07 at 20:37 +0000, Abithan Kumarasamy wrote:
> Hello Team,
>  
> We have been recently experimenting with some resource model options
> to fulfil the following scenario. We would like to collocate a
> virtual IP resource with multiple db resources. When the virtual IP
> fails over to another node, all the dbs associated should also fail
> over to the new node. We were able to accomplish this with resource
> sets as defined in Example 6.17 in this documentation page:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__clusterlabs.org_pacemaker_doc_en-2DUS_Pacemaker_1.1_html-2Dsingle_Pacemaker-5FExplained_index.html-23s-2Dresource-2Dsets-2Dcolocation&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=D8QLExyK-VADmlLj41ei6cxKVFfIqyMaP2nnLugMWCQ&m=QXK1iKZp4LebD4fdErRosGB8EqKglxg4hw0JpBD9OYw&s=BlGCb3d9kcAjwJ3vuyTJmlFw48GeDBYNEK03iCB4wQ0&e= 
> . However, whenever a single db fails over to the other node, the
> virtual IP address and the other dbs are not following and failing
> over to the other node. Are there any configurations that may be
> causing this undesired behaviour? We have already tried resource
> sets, colocation constraints, and ordering constraints. Are there any
> other models that we should consider to achieve this solution? Our
> current constraint model looks like this in a simplified manner.
>  
> <rsc_colocation id="vip-with-multiple-dbs" score="INFINITY" >
> <resource_set id="db-set" role=”Master”>
> <resource_ref id="db1"/>
> <resource_ref id="db2"/>
> <resource_ref id="db3"/>
> <resource_ref id="db4"/>
> </resource_set>
> <resource_set id="vip-set">
> <resource_ref id="primary-VIP"/>
> </resource_set>
> </rsc_colocation>

With the above configuration, the resources should fail over all
together. However the database colocations are limited to the promoted
role; any unpromoted instances can fail over without restrictions.

If you want the dbs to depend only on the IP, and not each other, add
sequential="false" to db-set.

With the exact above configuration, is the promoted role of one of the
databases failing over to a node that's not running the IP?

>  
> Thanks,
> Abithan
--
Ken Gaillot <kgail...@redhat.com>

_______________________________________________
Manage your subscription:
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.clusterlabs.org_mailman_listinfo_users&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=D8QLExyK-VADmlLj41ei6cxKVFfIqyMaP2nnLugMWCQ&m=QXK1iKZp4LebD4fdErRosGB8EqKglxg4hw0JpBD9OYw&s=xttYLyWroAG3DASCICTLC7J8nX-NkFhxxy9Y-V1D3O8&e= 

ClusterLabs home: https://urldefense.proofpoint.com/v2/url?u=https-3A__www.clusterlabs.org_&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=D8QLExyK-VADmlLj41ei6cxKVFfIqyMaP2nnLugMWCQ&m=QXK1iKZp4LebD4fdErRosGB8EqKglxg4hw0JpBD9OYw&s=_CMY2jDXy7UHjt-7hAb84qRKGQeVxK5jO5y7Er6k1ME&e= 

 
 

_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

Reply via email to