HA clustering for all with Corosync and Pacemaker
In the previous recipes, we addressed HA by distributing traffic between two active application servers. However, this method is only effective for stateless applications where the server or browser doesn’t contain specific user or session data. For applications that are not stateless or run on a complex server, a different approach to HA is necessary. The solution is to start and stop the application components on different servers, using the combination of Pacemaker and Corosync. These two open source software projects work together to provide HA clustering for Linux-based systems. They coordinate and manage multiple nodes in a cluster, ensuring that critical services remain available even during hardware or software failures.
Corosync serves as the communication layer for the HA cluster stack, allowing for dependable communication between nodes. It utilizes a membership and quorum system to monitor the cluster’s...