Website Security and Backups Help

Using multiple hosting IP addresses for load balancing

When you configure load balancing, you can either choose the default setting or cross-region load balancing.

With default load balancing, requests will be distributed to the group of servers equally. If one of the servers is down, the next one on the list can take anywhere from 15 to 30 seconds to respond.

If your site runs on multiple hosting servers, you can add multiple hosting IP addresses for them to be load balanced.

For example, you might use two servers — one set to U.S., and the other to Europe. With this configuration, out of 21 U.S. requests, 20 are sent to the U.S. server and one to the Europe server. Out of 21 Europe requests, 20 are sent to the Europe server and one to the U.S. server.

With this configuration, you'll occasionally see requests originating in the U.S. that reach the Europe server. This method prevents overloading a single server. This configuration is hard-coded, so you can't change the number of requests. If you want to decrease chances of U.S. users reaching the Europe servers in this scenario, you could add three hosting IPs, with two set to U.S. and one to Europe.

Note The Website Security Firewall allows you to configure which server should be responsible for most requests per region by using NGINX weight parameter.

More info

Set IP addresses for load balancing and failover backup hosting

Share this article