Load Balancing

Load balancing made easy #

Ploi offers an easy way to setup your load balancers. You can install a load balancer with one click of a button. Adding new servers that have to be load balanced is a breeze with our control panel.

Load balancing is an outstanding technique to distribute your traffic over several servers so high availabilty can be achieved.

You have full control over the settings of your load balancer, you can even add your own custom configuration in the settings tab to customize even more.

Webserver 1

Webserver 1 has the same application as webserver 2, and presents it to the visitor.

Webserver 2

Webserver 2 has the same application as webserver 1, and presents it to the visitor.

Load Balancer

Load balancer does its magic to determine which webserver the visitor should be send too.

Your visitor

So, how does it all work? #

Lets take this example, we have 2 webservers that we want to distribute traffic over. In order to achieve this we will need a additional server; the load balancer server.

When your visitor visits the load balancer, the load balancer will execute its algorithm to determine which webserver your visitor should be send to.

You are not limited to just 2 webservers, you can add as many webservers as you want. The example we illustrated here is a layer 4 type load balancing.

But what if I have a database? #

If you also have a database, you have several options to solve this. The easiest and most central way is to create a database server and let your webserver 1 & webserver 2 connect to that.

You could also have the database on either webserver 1 or webserver 2 and let the other webserver connect to that. The main advantage of this is that there is no extra database server required.

The most optimal way is to have the three servers in the same internal network for optimal speed. With Ploi you can attach any server to your load balancer thus making it possible to mix several server providers & locations (which is a good thing!).

Database server

The database server holds all the data for your applications.

Webserver 1

Webserver 1 has the same application as webserver 2, and presents it to the visitor.

Webserver 2

Webserver 2 has the same application as webserver 1, and presents it to the visitor.

Load Balancer

Load balancer does its magic to determine which webserver the visitor should be send too.

Your visitor

How about the algorithm? #

The load balancer has several options to determine how the request from the visitor should be distributed to the underlying webservers. The commonly used algorithms are: roundrobin, leastconn and source.

  • roundrobin

    Selects the webserver in turns, like ping-pong!

  • leastconn

    Selects the server with the least active connections, this is recommended for longer sessions.

  • source

    Selects the webserver based on the hash of the source IP address (i.e. your users IP address). This will make sure the user stays connected to the same server.

Enthusiastic? Let’s get started!

Create an account to enjoy your 5 day free trial.

No creditcard required.

Start your free trial