I am trying to come up with an architecture for achieving HA on one of our services (in-house service, single tcp connection for all requests). Just started reading on linux-ha and pacemaker, and i'd like to know if the following approach makes any sense:
We have two nodes serving a single service, exactly the same, say A and B.
I would like to give each node its own virtual ip address, so say VA->A, VB->B (to mean virtual address A points to A, etc).
This way, our servers (Cn) which are using the service on A or B would each be configured explicitly to either VA or VB, and would never change.
Now, in case that A fails, i'd like VA to point to B, now having VA->B and VB->B.
Once our failed node (A) comes back up, it should get restored back to VA->A and VB->B.
As a note, we have a load balancer between all servers (Cn), and we dont want to "load-balance" requests also from Ci to A or B (in any case each Ci will have a single tcp connection to its VIP, as long as its alive).
Does this configuration makes sense? Is it something that we could configure linux-ha and pacemaker to do?
I'd appreciate any constructive feedback, Thanks