On Tue, 2018-07-31 at 13:10 +0530, Vivek Singh Rai (Software Development) wrote: > Hi, > > I want help to setup 3 node of which 2 node is active and 1 is > passive for both the nodes. > > i.e - > 1 - node 1 (Active) and node 3 (Passive) > 2- node 2 (Active) and node 3 (Passive) > > > How to achieve this. > > > > --Vivek
Constraints can handle that: http://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/2.0/html-single/Pa cemaker_Explained/index.html#idm140330730796720 Location constraints determine which nodes are preferred for which resources. Colocation and ordering relate resources to each other. For example, if resource R prefers node 1, can fall back to node 3, and can never run on node 2, you could use three location constraints: R on node 1 with a positive score (e.g. 1000), R on node 3 with a smaller positive score (e.g. 500), and R on node 2 with a -INFINITY score. -- Ken Gaillot <[email protected]> _______________________________________________ Users mailing list: [email protected] https://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
