Using load balancing to effectively handle high traffic In this tutorial, we are going to set up a load balancer for web server using Nginx, HAProxy and Keepalived.Īn example of how servers with load balancers look like is shown below. Hence load balancers are used to enhance the server’s performance, provide backup and prevent failures. Also if numbers of users request the same web page simultaneously, then serving the user’s web request by a single web server can be a slow process. In this example, if the web server goes down, the user’s web request cannot be accessed in real time. Load balancing improves the server’s reliability as it overcomes single point failure.Īn example of How a server without load balancing looks like is shown below. It is like distributing workloads between day shift and night shift workers in a company. Load balancing is the process of distributing workloads to multiple servers. Step 1 – Install Keepalivedįirst of all, Use the following command to install required packages to configure Keepalived on the server.Having a proper set up of load balancer allows your web server to handle high traffic smoothly instead of crashing down. Let’s move to configuration IP failover setup between 3CX1 and 3CX2 servers. I hope you get a better understanding of the setup with above structure. VRRP state transition can take into account BFD hint to drive fast state transition. In order to offer fastest network failure detection, Keepalived implements BFD protocol. In addition, Keepalived implements a set of hooks to the VRRP finite state machine providing low-level and high-speed protocol interactions. VRRP is a fundamental brick for router failover. high-availability is achieved by VRRP protocol. The main goal of this project is to provide simple and robust facilities for loadbalancing and high-availability to Linux system and Linux based infrastructures.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |