Corosync and pacemaker high availability cluster servers

Source: Internet
Author: User

Corosync Introduction:

Corosync can use a simple configuration file to define the way and protocol of information delivery when passing information. It is an emerging software, launched in 2008, but in fact it is not a real sense of the new software, in 2002, there is a project Openais, it is too large, split into two subprojects, which can achieve HA heartbeat information transmission function is Corosync, its code 60% Left or right from Openais. Corosync can provide a complete ha function, but to achieve more and more complex functionality, you need to use Openais. Corosync is the future direction of development. In later new projects, the general use of Corosync, and Hb_gui can provide a good ha management functions, can achieve graphical management. In addition, related graphics have RHCs suite Luci+ricci.

Pacemaker Introduction:

Pacemaker is a cluster manager. It leverages the messaging and membership capabilities provided by the preferred cluster infrastructure (Openais or heartbeat) for fault detection and recovery by secondary nodes and systems, and for the high availability of the implementation of the Cluster service (also known as resources). It can do clusters of almost any size, and comes with a powerful dependency pattern that allows administrators to accurately express the relationships between cluster resources (including order and location). Almost any script that can be written can be used as part of managing a pacemaker cluster.

Test Purpose:

Implementing Corosync+pacemaker for high availability management of servers

Test diagram:

Test ideas:

The first step: Configure the IP address and host name and other related information, to maintain consistency between the nodes.

Step Two: Install Corosync related Packages

Step three: Edit the configuration Corosync configuration document and check the log information to see if there are any errors

Step Fourth: Add Management Resources WEBIP

Step Fifth: Add Web Management Resource Services

Step Sixth: Add the Resource Management Group Web and add the Webip and webserver resources to the group for bundled use.

Step seventh: When the node fails, the node resource is transferred by default to another node (no DC is used)

Step Eighth: Test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.