HEARTBEAT and COROSYNC comparison analysis

Introduction: In a high-availability system, monitoring the availability of system services is an indispensable basic component. The current popular ones are Heartbeat and corosync. What are the advantages and disadvantages of each?

Common points:

They all belong to the message network layer, and provide external services and host heartbeat detection. When the monitored main service is found After the machine, immediately switch to the slave backup node to ensure the availability of the system.

Different points:

  • Community activity:

    Heartbeatfrom< /span>2010After years, no more Continue to maintain, andCorosyncis still active

  • Configuration complexity:

    HeartbeatVery easy to configure, the first configuration may only take a few minutes, and CorosyncBecause of the complexity, you need a little patience

  • < p style="margin-bottom:0in; line-height:100%">Flexibility in managing resources:

    Heartbeatonly one main service can be configured for all resources, and span>corosync allows different resource groups Configure different main services.

  • Resource stickiness:

    < p style="margin-bottom:0in; line-height:100%">HeartbeatOn the main serviceserver1After the crash, switch to the slave service nodeserver2; will also put the previous main nodeserver1 continue to be placed in the list of subordinate nodes. Andcorosync This situation will not exist.

  • Version management of configuration files:
    < span style="font-family:Droid Sans Fallback">incorosync< In span style="font-family:Droid Sans Fallback">, it will handle the synchronization of configuration files by itself,heartbeat does not have this feature .

  • Group management

    HeartbeatOnly supported2nodes, andcorosyncsupports clusters of multiple nodes, supports grouping resources, manages resources according to groups, sets main services, and starts and stops by themselves

So it can be seen that, generally speaking, corosync is used The heartbeat detection is combined with pacemaker’s resource management system to build a highly available system. Regarding the content of pacemaker, you can check the information yourself.

Reference material:

1. HeartBeat’s Baidu Encyclopedia http://baike.baidu.com /link?url=dNg0yvDgksPxDtp8CE8CZKPupcBgyhJalCQI6f4mtWWI7ECDPfC8gm1e10RY-zGohJWS-9a49_G30BRaMZkOT1SKsoKr66Y0WDuMYlqgRli >2. Heartbeat official site http://www.linux-ha.org/wiki/Main_Page

3. Corosync’s official site http://corosync.github.io/corosync/

< /p>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2542 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.