Clustering: Setting Up

1. Preparing the Environment

Before setting up clustering in CompleteFTP, ensure that your environment meets all the necessary prerequisites.

1.1 Installation

1.2 Network Configuration

1.3 Adjusting IP Filters

By default, secondary servers may only permit connections from localhost or LAN IP addresses. To allow the primary server to communicate with secondary servers, adjust the IP filtering rules on each secondary server:

  1. Open CompleteFTP Manager on the secondary server.
  2. In the bottom-left corner, click on the Options menu and select Show system users/folders/sites.
  3. Navigate to the Sites panel and select the Admin Site.
  4. In the IP Filtering section, add a rule that allows connections from the primary server's IP address.

2. Configuring the Primary Server

2.1 Designating the Primary Server

The primary server is the central point for configuration management in the cluster. To designate a server as the primary:

  1. Open CompleteFTP Manager and connect to the server you intend to use as the primary server.

2.2 Enabling Clustering

To enable clustering on the primary server:

  1. In CompleteFTP Manager, navigate to the Overview panel.
  2. Locate the Servers window, which is used to control the servers in the cluster.
  3. Click on the Add server link. This action will automatically designate the current server as the primary server.

2.3 Synchronization Settings

After adding secondary servers (described in the next section), you can configure synchronization settings:

3. Adding Secondary Servers

3.1 Step-by-Step Process

To add a secondary server to the cluster, follow these steps:

  1. In CompleteFTP Manager connected to the primary server, navigate to the Servers panel.
  2. Click on the Add server link to open the Add Server dialog box.

  1. Enter the secondary server's details:
  2. Click Next to proceed to the registration summary.
  3. Review the settings and click Add to add the secondary server to the cluster.
  4. A progress report will be displayed, detailing the registration process. The secondary server's configuration will be overwritten with a copy of the primary server's configuration.

3.2 Post-Addition Tasks

After successfully adding a secondary server:

3.3 Troubleshooting Tips

If you encounter issues when adding a secondary server:

4. Configuring the Load Balancer

To distribute client requests across the servers in the cluster, configure your load balancer accordingly:

4.2 Protocol Considerations

Different protocols may have specific considerations when configuring the load balancer:

HTTP/S

Other Protocols (FTP, SFTP, FTPS)

Ensure that your load balancer is configured to handle the specific requirements of each protocol used by your CompleteFTP servers.