THE MAIN METHODS OF LOAD BALANCING ON THE NGINX WEB SERVER

Andrii Chyrvon, Kostiantyn Lisovskyi, Nikita Kyryndas · SCIENTIFIC PRACTICE: MODERN AND CLASSICAL RESEARCH METHODS · 2023

We've seen an unprecedented spike in website visitors as online activity continues to soar. This surge inevitably causes an increase in server traffic. Yet when theres too much demand and the server is at maximum capacity it can potentially crash. To address this issue, efforts have been made to improve the efficacy of the web server by utilizing a load balancing system to manage a large number of service access requests. Server load balancing can effectively prevent server failures by distributing workloads across multiple servers based on their individual capacities.Six servers were utilized in a recent demonstration utilizing the Apache software. 4,000, 8,000, 12,000, and 16,000 requests were sent to each server, respectively. To attain stability and balance in the web server, Nginx and three distinct load balancing algorithms were implemented: RoundRobin, Least Connection, and IP Hash. The "Least Connection" algorithm proved to be the most effective of these methods. It obtained the highest response speed by processing 2300.96 requests per second and exhibited remarkable response time stability of 116ms.

Read the paper · More papers on PaperTik