The designation of the Heartbeat network interface in Linux RHCS

Source: Internet
Author: User

In the process of building RHCs, one place is easily forgotten, but it has unintended consequences: no specific heartbeat network interface is specified, then production network traffic and heartbeat network traffic run on the same network interface.

I often see the following configuration:

/etc/hosts file is:

192.168.10.10 Node1

192.168.10.11 Node2

10.0.0.10 NODE1-HBT

10.0.0.11 NODE2-HBT

/etc/cluster/cluster.conf is like this:

# .... omitted

<clusternodes>
<clusternode name= "Node1" nodeid= "1" votes= "1" >

# .... omitted
</clusternode>
< Clusternode name= "Node2" nodeid= "2" votes= "1" >
# .... omitted
</clusternode>
</clusternodes>

# .... omitted

Finally, according to this configuration of the cluster, production and heartbeat are running on the 192.168.10.x interface. The 10.0.0.x network interface is completely fake. You can see the flow with Tcpdump–i [interface].

Based on my experience, the exact configuration method is as follows:

The/etc/cluster/cluster.conf should be like this:

# .... omitted

<clusternodes>
<clusternode name= "NODE1-HBT" nodeid= "1" votes= "1" >

# .... omitted
</clusternode>
<clusternode name= "NODE2-HBT" nodeid= "2" votes= "1" >
# .... omitted
</clusternode>
</clusternodes>

# .... omitted

It is especially easy to make this mistake when using the graphical configuration tool Luci and Ricci configuration, because when adding nodes in the graphical interface, we subconsciously fill in the node name: NODE1/2, not NODE1/2-HBT

Note: The above only applies to Rhcs/centos 6.x Conga

The designation of the Heartbeat network interface in Linux RHCS

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.