With a load balancer, you can maximize the data throughput and minimize the server load at the same time. Load balancers can determine both the load and the response time of each server and use rules to distribute the traffic across multiple servers. They are useful if your web applications must be deployed from multiple servers and high availability must be ensured. For example, this applies to websites with high numbers of visitors.

Prerequisites:

You are in the section Network > Load Balancers

Step 1

Click Create.

Step 2

Enter the desired name.

Step 3

Set the configuration of the load balancer:

  • In the Protocol list, select a protocol.

  • In the field Port on Balancer, enter the port of the load balancer that is to be used for checking the traffic.

  • In the field Port on Servers, enter the port of the server to which the traffic coming from the load balancer is to be redirected.

Step 4

In the Allow API access for: field, enter the IP address(es) for which API access is to be allowed. Multiple IP addresses can be separated by a comma.

  • All: Access to the port of the load balancer is possible for any IP address.

  • IP Address: Access to the port of the load balancer is only possible with the IP address you entered.

  • Subnet: Access to the port of the load balancer is possible with any IP address located in the subnet.

Step 5

To create the configuration rule, click .

Create further configuration rules, if necessary.

Step 6

Select the desired data center.

Please note: Load balancers must be set up separately for each data center. For example, if you have set up a server in a data center in the USA, you can only assign this server to a load balancer that is hosted in the same data center.

Step 7

In the Advanced Options section, click Show.

Step 8

Click  .

Step 9

Activate or deactivate the Health Check.

  • Check TCP port: The load balancer checks whether the ports to be balanced are open. The interval can be set to the second.

  • Deactivated: The health check is deactivated.

  • ICMP test: The load balancer checks whether communication via ICMP is possible.

  • HTTP: The load balancer checks whether communication via HTTP is possible.

  • HTTPS: The load balancer checks whether communication via HTTPS is possible.

Step 10

Enter the desired interval.

Step 11

Optional: If you select the HTTP or HTTPS health check, enter in the URL: field the URL to be monitored and enter the expected result in the Expected Result field.

Step 12

Activate or disable the Persistence option.

If you activate the Persistence option, all requests from a computer are redirected to the same server within the specified time period.

Step 13

Optional: In the Time field, enter the desired interval.

Step 14

Select the desired balancing procedure:

  • Round-Robin: Even distribution of traffic across all servers assigned to the load balancer.

  • Least Connections: Redirection of traffic to the servers that are currently processing the least traffic.

Step 15

Click Create.

The load balancer will be created.