I am trying to provide HA capabilities for our load balancers (nginx, pgpool and haproxy optionally) using pacemaker/corosync. I have defined three primitives:
1 for the failover IP,
1 for lsb::nginx
1 for lsb::pgpool
and I assume that I can add lsb::haproxy, although I have not tested this scenario.
and grouped them together. My issue is that when for example pgpool goes down, the cluster will switch to the other node, including nginx. From my understanding of the documentation, the failover IP can only be included in one group, making this an all or nothing situation (either all the services work or if one fails, a failover will take place for all three of them). Is it possible to group them together so for example node1 can provide nginx and node2 pgpool and haproxy, using the same virtual IP? Is it even possible? I am using Debian Wheezy with all the packages coming from its repositories (haproxy comes from backports). Thanks for any replies.