Load Balancing is a technique for distributing traffic loads on two or more connection lines in a balanced way so the traffic can run optimally, maximize throughput, minimize response time and avoid overloading one of the connection lines.
As your server is growing and your visitor/user is increasing, you will need a good load balancing system. You may know some of the popular load balancing systems such as Nginx, HAProxy, Balance, Pen, etc. However, you will need experience in setting up these systems. Of course, it is not easy to set up.
Don’t worry, Cloud Raya can do the magic.
Once you log into the control panel https://cp.cloudraya.com, there is a menu at the left side of the dashboard. You can click “Networking” and then choose “Load Balance”
Follow these seven easy and simple steps to load balance in Cloud Raya.
For Algorithm there is 3 method that you can choose:
* Round Robin is a simple way to distribute the load to each server or virtual machine in turn. If you have a 3 VMs or members in a loadbalancer group, then inbound request will be passed on to the 3 VMs in turn. VM-1 first will get the 1st request, then the 2nd request will be directed to VM-2 and the 3rd request will be directed to VM-3. Finally, VM-1 will get the 4th request and so on.
* Least Connection method uses or tracks the number of requests or connections to the VM and make its decision based on those numbers. The member which has the least connection is chosen to accept that request.
* Source or source IP hash method in a way that the source and the destination IP addresses are hashed which will make it sticky to that particular member or the VM that accepts the request.
Done, you have your Loadbalance system on your VM just in 7 steps.