Linux system CentOS 7 to build a high-availability cluster method

  

High-availability cluster can make the overall service of the cluster as available as possible, reduce the loss caused by computer error, then how to build a highly available cluster under Linux What? The following small series will introduce you to the Linux CentOS method to build a high-minded cluster, let's learn together.

High availability clusters are server cluster technologies designed to reduce service downtime. It protects the user's business processes from providing uninterrupted services to minimize the impact of software/hardware/human-induced failures on the business. So how do you build a highly available cluster under the new centos?

Environment: This article implements a dual-set hot standby high-availability cluster with two machines. The IP of the host name node1 is 192.168.122.168, and the IP of the host name node2 is 192.168.122.169.

First, install the cluster software must be software pcs, pacemaker, corosync, fence-agents-all, if you need to configure related services, also install the corresponding software

Second, configure the firewall

1, and disable the firewall selinux

modify /etc /sysconfig /selinux ensure SELINUX = disabled, then perform setenforce 0 or reboot the server to take effect

2, provided firewall rules

Third, the host name resolution between the nodes each respectively modified host names are 2 node1 and node2, directly modify /etc in centos 7 /hostname added to the host name and the machine table, and Restart the network service.

Table 2 Host Configuration host added
Previous in /etc /hosts 6 pages Next 123456

Copyright © Windows knowledge All Rights Reserved