Evaluating Service Quality in NGINX Load Balancing: A Comparative Study of Round Robin and Least Connection Algorithms

Authors

  • Muhammad Aldy Ikramsyah Universitas Pembangunan Nasional "Veteran" Jakarta
  • Henki Bayu Seta Universitas Pembangunan Nasional Veteran Jakarta
  • Ika Nurlaili Isnainiyah Universitas Pembangunan Nasional "Veteran" Jakarta
  • Theresiawati Theresiawati Universitas Pembangunan Nasional "Veteran" Jakarta

DOI:

https://doi.org/10.52958/iftk.v21i3.10796

Keywords:

Service Quality , Load Balancing, Round Robin, Least Connection

Abstract

This study evaluates the Quality of Service (QoS) of the Round-Robin and Least Connection algorithms in load balancing with NGINX. Round Robin outperformed and was consistent across most of the evaluated parameters, including throughput, latency, jitter, and packet loss. Its simplicity stems from the repeated distribution of requests without monitoring server connections, making it ideal for homogeneous traffic and consistent server specifications. However, its performance is poor in dynamic traffic or heterogeneous server architectures. In contrast, Least Connection is more advanced in accommodating dynamic traffic and heterogeneous server environments by allocating load in real-time based on active server connections. Nevertheless, Least Connection showed instability in various tests, especially at high thread counts, where anomalies such as substantial value spikes were recorded. This indicates that it is not suitable for scenarios involving uniform traffic and server specifications. Least Connection is more suitable for complex networks with dynamic traffic and varying server specifications, while Round Robin is recommended for stable workload environments because it provides consistency and simplicity. Round Robin demonstrated superior overall performance, while Least Connection excelled in adaptability, highlighting the need to align algorithm selection with traffic characteristics and server infrastructure. To improve the effectiveness of load balancing strategies, future research should investigate dynamic traffic, higher loads, and diverse environments.

References

O. Nathan, “Web-Based Cryptography: A Deep Dive into Data Security.,” 2024.

APJII, “APJII Jumlah Pengguna Internet Indonesia Tembus 221 Juta Orang,” apjii.or.id. 2024. [Online]. Available: https://apjii.or.id/berita/d/apjii-jumlah-pengguna-internet-indonesia-tembus-221-juta-orang

A. Karim, E. Ahmed, S. Azam, B. Shanmugam, and P. Ghosh, “Mitigating the Latency Induced Delay in IP Telephony Through an Enhanced De-Jitter Buffer,” Mob. Comput. Sustain. Informatics, pp. 1–16, 2021, doi: 10.1007/978-981-16-1866-6_1.

B. Veer and S. Aslam, “Distributed Computing Techniques for Real-Time Data Processing in Mobile Restaurant Systems,” 2024.

N. P. Dharuman, S. Avancha, V. B. R. Bhimanapati, O. Goel, N. Singh, and R. Agarwal, “Multi Controller Base Station Architecture for Efficient 2G 3G Network Operations,” Int. J. Res. Mod. Eng. Emerg. Technol., vol. 12, no. 10, p. 106, 2024.

D. Saxena and B. Bhowmik, “Analysis of Selected Load Balancing Algorithms in Containerized Cloud Environment for Microservices,” VLSI Syst. Archit. Technol. Appl. (VLSI SATA), 2024, doi: 10.1109/vlsisata61709.2024.10560139.

A. Fathima, A. Khan, M. F. Uddin, and M. M. Waris, “Optimizing Network Performance and Availability in Game Servers: A Comparative Study of Load Balancing Techniques in Sophos Firewalls,” SSRN Electron. J., 2024, doi: 10.2139/ssrn.4931512.

K. Meng et al., “Ship Power System Network Reconfiguration Based on Swarm Exchange Particle Swarm Optimization Algorithm,” Appl. Sci., vol. 14, no. 21, p. 9960, 2024, doi: 10.3390/app14219960.

Z. Zhou et al., “Communications with guaranteed bandwidth and low latency using frequency-referenced multiplexing,” Nat. Electron., vol. 6, no. 9, pp. 694–702, 2023, doi: 10.1038/s41928-023-01022-x.

Y. Kostiuk, P. Skladannyi, N. Korshun, B. Bebeshko, and K. Khorolska, “Integrated protection strategies and adaptive resource distribution for secure video streaming over a Bluetooth network,” Inf. Technol., vol. 4, no. 6, pp. 14–33, 2024.

P. Jaganathan and S. Balusamy, “Performance evaluation of optimization algorithms based on secured and energy conscious routing for WSN,” AIP Conf. Proc., vol. 3246, p. 20004, 2024, doi: 10.1063/5.0240606.

Y. Zhang, “Millimeter-Wave Wide-angle Scanning Array Antennas for 5G/6G Communication,” 2024.

R. Yamada, H. Tomeba, O. Nakamura, T. Sato, and Y. Hamaguchi, “Radio Resource Allocation Using Multi-AP Coordination Considering Requirements for Video Transmission in Wireless LAN system,” IEICE Trans. Commun., pp. 1–8, 2024, doi: 10.23919/transcom.2024ebt0003.

L. Zhang et al., “An Efficient Parallel CRC Computing Method for High Bandwidth Networks and FPGA Implementation,” Electronics, vol. 13, no. 22, p. 4399, 2024, doi: 10.3390/electronics13224399.

M. R. Naimi, C. Zouaoui, M. Elbahri, and A. Bounoua, “Inventory of Load Balancing Parameters in MPTCP Schedulers,” Comput. Networks, vol. 255, p. 110880, 2024, doi: 10.1016/j.comnet.2024.110880.

J. Thorpe et al., “Dorylus: Affordable, scalable, and accurate ${$GNN$}$ training with distributed ${$CPU$}$ servers and serverless threads,” in 15th USENIX Symposium on Operating Systems Design and Implementation (OSDI 21), 2021, pp. 495–514.

M. Olabim, A. Greenfield, and A. Barlow, “A Differential Privacy-Based Approach for Mitigating Data Theft in Ransomware Attacks,” Authorea (Authorea), 2024, doi: 10.22541/au.172625434.48862692/v1.

A. Fuerst and P. Sharma, “Locality-aware Load-Balancing For Serverless Clusters,” 2022, doi: 10.1145/3502181.3531459.

J. Logeshwaran, N. Shanmugasundaram, and J. Lloret, “L‐RUBI: An efficient load‐based resource utilization algorithm for bi‐partite scatternet in wireless personal area networks,” Int. J. Commun. Syst., vol. 36, no. 6, 2023, doi: 10.1002/dac.5439.

C. Stylianopoulos et al., “On the performance of commodity hardware for low latency and low jitter packet processing,” Chalmers Res. (Chalmers Univ. Technol., 2020, doi: 10.1145/3401025.3403591.

Y. Chen et al., “TDSQL: Tencent Distributed Database System,” Distrib. Database Syst. PVLDB, vol. 17, no. 12, pp. 3869–3882, 2024, doi: 10.14778/3685800.3685812.

A. Seyfollahi and A. Ghaffari, “A lightweight load balancing and route minimizing solution for routing protocol for low-power and lossy networks,” Comput. Networks, vol. 179, p. 107368, 2020, doi: 10.1016/j.comnet.2020.107368.

R. Mishra, I. Ahmad, and A. Sharma, “An energy-efficient queuing mechanism for latency reduction in multi-threading,” Sustain. Comput. Informatics Syst., vol. 30, p. 100462, 2021, doi: 10.1016/j.suscom.2020.100462.

D. L. Freire, R. Z. Frantz, and F. R. Frantz, “Towards optimal thread pool configuration for run-time systems of integration platforms,” Int. J. Comput. Appl. Technol., vol. 62, no. 2, p. 129, 2020, doi: 10.1504/ijcat.2020.104692.

L. F. Eliyan and R. Di Pietro, “DoS and DDoS attacks in Software Defined Networks: A survey of existing solutions and research challenges,” Futur. Gener. Comput. Syst., vol. 122, 2021, doi: 10.1016/j.future.2021.03.011.

M. Prajana, H. Rajkumar, A. S. Sannidhi, K. Vidyasri, and S. Krishnan, “Adaptive Multi-Level Feedback Round-Robin,” Int. Conf. Comput. Commun. Netw. Technol., pp. 1–9, 2024, doi: 10.1109/icccnt61001.2024.10724187.

A. Johansson, “HTTP Load Balancing Performance Evaluation of HAProxy, NGINX, Traefik and Envoy with the Round-Robin Algorithm,” DIVA. 2022. [Online]. Available: https://www.diva-portal.org/smash/record.jsf?pid=diva2%3A1678660

S. Suryadevara, “Real-Time Task Scheduling Optimization in WirelessHART Networks: Challenges and Solutions,” Int. J. Adv. Eng. Technol. Innov., vol. 1, no. 3, pp. 29–55, 2022.

C. Fan, S. Ghaemi, H. Khazaei, and P. Musilek, “Performance Evaluation of Blockchain Systems: A Systematic Survey,” IEEE Access, vol. 8, no. 1, pp. 126927–126950, 2020, doi: 10.1109/access.2020.3006078.

A. K. Chaurasia et al., “Simmer: Rate proportional scheduling to reduce packet drops in vGPU based NF chains,” vol. 197, no. 44, pp. 1–11, 2022, doi: 10.1145/3545008.3545068.

Downloads

Published

2025-12-03

Issue

Section

INFORMATIK