Difference: ConfigureCluster (18 vs. 19)

Revision 1901 Jun 2011 - LindseyLWhite

Line: 1 to 1
 
META TOPICPARENT name="ClusterRemote"

Guide to DNS Cluster Configuration

Changed:
<
<
For WHM version 11.28
>
>
For WHM version 11.30
 

Line: 9 to 9
  A DNS cluster is a number of nameservers that share records.
Changed:
<
<
This allows you to physically separate your nameservers so that in the event of, for instance, a power outage, you still have DNS functionality. This way, visitors can reach websites on your server more quickly after the web server comes back online. The cPanel DNS cluster feature only provides redundancy for DNS. It does not place Apache or any other services in a cluster configuration.
>
>
Clustering allows you to physically separate your nameservers so that in the event of, for instance, a power outage, you still have DNS functionality. This way, visitors can reach websites on your server more quickly after the web server comes back online. (The cPanel DNS cluster feature only provides redundancy for DNS. It does not place Apache or any other services in a cluster configuration.)
  To optimally configure your DNS cluster, you will need 2 spare servers, both preferably running cPanel DNSONLY. You will also need at least 1 web server with cPanel & WHM installed.
  • cPanel DNSONLY is software that allows you to run a dedicated physical nameserver. It should only be installed on nameservers with no previous content on them.
Changed:
<
<
  • You can download the cPanel DNSONLY software here.
  • All machines in the cluster must be running cPanel or cPanel DNSONLY version 11 or higher. Some features may not work with older versions of cPanel.
  • note Note: You may have both multiple DNSONLY servers and multiple cPanel servers in a DNSONLY cluster.
>
>
  • You can download the cPanel DNSONLY software for free.
  • All machines in the cluster must be running cPanel & WHM or cPanel DNSONLY version 11 or higher. (Some features may not work with older versions of cPanel & WHM.)
  • You may have multiple cPanel DNSONLY servers and multiple cPanel & WHM servers in a cluster.
 

Enabling DNS clustering on each server

Changed:
<
<
First, you will need to enable DNS clustering via each server's WHM interface.
>
>
First, you will need to enable DNS clustering via each server's WHM interface:
 
  1. Navigate to WHM’s Configure Cluster screen.
Changed:
<
<
  1. Click Enable Dns Clustering.
>
>
  1. Select Enable DNS Clustering.
 
  1. Click Change.
  2. Click Return to Cluster Status.
Changed:
<
<
DNS clustering is now enabled. Next, you will need to specify which server(s) you wish to cluster, or share DNS information with.
>
>

Click 'Enable DNS Clustering' to turn on clustering.
Selecting 'Enable DNS Clustering' to turn on clustering.

 
Changed:
<
<

dnscluster.jpg

>
>
DNS clustering is now enabled. Next, specify which server(s) you wish to cluster, or share DNS information with.
 
  • You will need to sync each web server to its DNS servers.
  • You do not need to link dedicated DNS servers to each other, or link dedicated web servers to each other.
  • You should not set a DNS server to sync data back to a web server, as this will put extraneous data on the web server.
Changed:
<
<

Global cluster configuration options (in cPanel & WHM 11.25+)

These 2 new features (available in version 11.25+ only) work together to notify you about and disable unresponsive DNS cluster members.

Set your cluster's failure threshold

>
>

Global cluster options

  This section allows you to specify the number of dnsadmin commands that are allowed to fail before WHM disables a member of your cluster. Disabling unresponsive cluster members can improve server performance.
Changed:
<
<
  • If you wish for all of the members of your cluster to remain online at all times, enter 0.
  • We recommend setting this value to 10.

Set up cluster failure notifications

>
>
  1. Select an option:
    • 10 is the default. We recommend this setting.
    • To enter a different failure threshold, select the second button and enter the number of failed commands you wish to allow.
    • If you wish for all of the members of your cluster to remain online at all times, select Keep all cluster members online at all times.
  2. If you want WHM to notify you when it disables an unresponsive member, select Get a notification when WHM disables an unresponsive cluster member.
    • WHM will send the notifications during DNS queue processing.
  3. Click Change.
 
Changed:
<
<
When you click this checkbox, WHM will notify you when it disables a cluster member due to unresponsiveness. WHM will send the notifications during DNS queue processing.
>
>

Disabling unresponsive cluster members.
Disabling unresponsive cluster members.

 

About your DNS cluster configuration

Changed:
<
<
Before you set up your DNS cluster, it is worthwhile to consider how it will be configured.
>
>
Before you set up your DNS cluster, consider how you will structure it.

Directly linking the web server to the nameservers

  Creating a cluster setup with direct links between servers can decrease CPU load, improving the performance of your servers. The more steps, or "hops," between a web server and a nameserver, the slower the servers' performance will be.

If at all possible, you should link your web server directly to the DNS servers, as shown in the diagram below. This is the ideal DNS setup.

Changed:
<
<

directlink.jpg
Figure 1. A direct link between the web server and 2 nameservers is optimal.

In this example, webserver.example.com sends DNS information directly to ns1.example.com and ns2.example.com. This is accomplished by using the WHM Configure Cluster feature to create a link on each server (see the instructions below).

If necessary, you may place the primary nameserver between the web server and the secondary nameserver. For each intermediate server you add, the data transfer time is 3 times slower than for a direct link.

>
>

A direct link is optimal.
Figure 1. A direct link between the web server and 2 nameservers is optimal.

 
Changed:
<
<

2hops.jpg
Figure 2. An intermediate nameserver between the web server and secondary nameserver is acceptable.

>
>
In this example, webserver.example.com sends DNS information directly to ns1.example.com and ns2.example.com. You can create this setup by using the WHM Configure Cluster feature to link the web server directly to each nameserver (see the instructions below).
 
Changed:
<
<
This configuration can be accomplished by setting the web server to sync the primary nameserver, and setting the primary nameserver to sync the secondary nameserver (see the instructions below).
>
>

Using the primary nameserver as an intermediary

 
Changed:
<
<
The least optimal configuration is one that uses multiple “hops,” or steps, between the web server and nameservers. This increases processor load on the servers, as their nameserver software works to update the DNS information on each hop, slowing response time.
>
>
If necessary, you may place the primary nameserver between the web server and the secondary nameserver. For each intermediate server that you add, the data transfer time will be 3 times slower than for a direct link.
 
Changed:
<
<

multihops.jpg
Figure 3. Multiple hops between a web server and nameserver slows performance.

Each "hop" that is added to the DNS cluster configuration will add to the time it takes to add, edit or delete a DNS zone from any point in the cluster, so the configuration should be kept as simple as possible.
>
>

An intermediate nameserver is acceptable.
Figure 2. An intermediate nameserver between the web server and secondary nameserver is acceptable.

 
Changed:
<
<
In this example, for web1.example.com to communicate with ns2.example.com, the information must be passed through 2 intermediary servers, increasing the overall processing load. This method is not recommended.
>
>
You can create this configuration by setting the web server to sync the primary nameserver, and setting the primary nameserver to sync the secondary nameserver (see the instructions below).
 
Changed:
<
<

Adding servers to the cluster from the web server

>
>

Using multiple intermediary nameservers

 
Changed:
<
<
On your web server's WHM interface, take the following steps:
>
>
The least optimal configuration uses multiple “hops,” or steps, between the web server and nameservers. This increases processor load on the servers, as the nameserver software works to update the DNS information on each hop, slowing response time.
 
Changed:
<
<
  1. On the Configure Cluster screen, under Servers in your DNS Cluster, locate the Add a new server to the cluster box.
    addnew.jpg

  2. Enter the nameserver's IP address in the Server Ip Address box.
  3. Click Configure.
  4. On the Create Trust Relationship screen, enter the nameserver's remote access key.
    • To retrieve the key from the nameserver, click the link at the bottom of the screen. You will need to enter the root password for the nameserver.
    • Once the key appears, cut and paste it into the Server Remote Access Key box.
      createtrust.jpg
  5. Click Submit.
  6. Repeat these steps, adding each additional nameserver to the cluster.

clustertrust.png

The cluster is now set up. When you return to the WHM Configure Cluster screen, the nameservers are listed in the Servers in your DNS Cluster table.

Specifying the web server's DNS role

>
>

Multiple hops slows performance.
Figure 3. Configuring multiple hops between a web server and nameserver slows performance.

 
Changed:
<
<
Next, you will need to specify that you wish for this server to synchronize changes, or to write DNS data onto the nameservers in the cluster.
>
>
In this example, for web1.example.com to communicate with ns2.example.com, the information must pass through 2 intermediary servers, increasing the overall processing load. We do not recommend this method.
 
Changed:
<
<

dnsrole.jpg

>
>

Setting up the cluster from the web server

 
Changed:
<
<
In the Servers in your DNS Cluster table, under Dns Role, select Synchronize Changes next to each nameserver's hostname and IP. This will cause the web server to send DNS data to the nameserver.
>
>
On your web server's WHM interface:
  1. Navigate to the Configure Cluster screen.
  2. Under Servers in your DNS Cluster, locate the Add a new server to the cluster box.

    The 'Add a new server to the cluster' box.

  3. Select the server type from the drop-down menu.
  4. Click Configure. WHM will display the cPanel DNS Remote Configuration screen.
  5. Next to Remote cPanel & WHM DNS service, type the hostname or IP address of the nameserver you wish to link to.
  6. Next to Remote server username, type the WHM username for the nameserver (either reseller or root).
  7. Under Remote server access hash, enter the nameserver's remote access key.
    • You can generate and retrieve a key using the nameserver's WHM interface. Log into WHM on the nameserver, and navigate to Manage SSH Keys. Once the key appears, cut and paste it into the Remote server access hash box.

      The 'cPanel DNS Remote Configuration' screen.

 
Changed:
<
<
You do not need to link dedicated web servers to each other.
>
>

Setting up a reverse trust relationship

 
Changed:
<
<
PICK Remember: You will need to access WHM and configure the DNS role on each web server in the cluster.
>
>
  1. Select Setup Reverse Trust Relationship if you want WHM to automatically configure the cluster on the remote server.
    • If you select this option, you will not need to log into the WHM Configure Cluster screen on the remote server. However, you may do so if you wish to modify the remote server's cluster configuration.
    • Selecting this option will set the remote server's DNS role to Standalone.
  2. Select Debug mode if you want WHM to record DNS clustering transactions in the /usr/local/cpanel/logs/error_log file.
 
Changed:
<
<

Adding servers to the cluster from the nameserver

>
>

Specifying the web server's DNS role

 
Changed:
<
<
Next, you will need configure the cluster from each nameserver.
>
>
Next, you must specify that you wish for this server to synchronize changes, or to write DNS data onto the nameservers in the cluster.
 
Changed:
<
<
  1. On your nameserver's WHM interface, take the following steps:
  2. On the Configure Cluster screen, under Servers in your DNS Cluster, locate the Add a new server to the cluster box.

    addnewsrvr.jpg

  3. Enter the web server's IP address in the Server Ip Address box.
  4. Click Configure.
  5. On the Create Trust Relationship screen, enter the remote access key.
    • To retrieve the key from the web server, click the link at the bottom of the screen. You will need to enter the root password for the web server.
    • Once the key appears, cut and paste it into the Server Remote Access Key box.

      createtrust.jpg
>
>
  1. Next to DNS role, select Synchronize. This will cause the web server to send DNS data to the nameserver.
 
  1. Click Submit.
Deleted:
<
<
  1. Repeat these steps, adding each additional web server to the cluster.

clustertrust.png

The cluster is now set up. When you return to the WHM Configure Cluster screen, the web servers are listed in the Servers in your DNS Cluster table.

Specifying the nameserver's DNS role

Finally, you will need to specify that you wish for this server to function as a standalone server — that is, a server that only receives DNS data from the other servers in the cluster.

 
Changed:
<
<

specifystandalone.jpg

>
>
The cluster is now set up. When you return to the WHM Configure Cluster screen, the remote server will be listed in the Servers in your DNS Cluster table.
 
Changed:
<
<
In the Servers in your DNS Cluster table, under Dns Role, select Standalone next to each web server's hostname and IP. This will allow the nameserver to receive information from the web server, but not send data to it.
>
>

Important notes about setting up the DNS cluster

 
Changed:
<
<
  • note Note: Setting a nameserver to synchronize data to a web server is not recommended, as it will create extraneous zones on the web server.
  • In most cases, a DNS-only server should never be set to synchronize to a Web server. The Web server should always be set to synchronize to the DNSONLY server(s), and the DNSONLY server(s) should always be set as standalone.
>
>
  • We do not recommend setting up the nameserver to synchronize data to a web server; this will create extraneous zones on the web server. (This means that you do not need to log into WHM on the nameserver and set the web server's DNS role to Synchronize changes).
 
  • You do not need to link dedicated nameservers to each other.
Changed:
<
<
PICK Remember: You will need to access WHM and configure the DNS role on each nameserver in the cluster.
>
>
  • A cPanel DNSONLY server should almost never be set to Synchronize changes to a web server. The web server should always be set to synchronize to the DNSONLY server(s), and the DNSONLY server(s) should always be set as Standalone.