Evaluation Test and Improvement of Load Balancing Algorithms of Nginx
Today most people can’t live without electronic devices. And more and more new devices are coming to the market every day. Apps running on these devices often connect to one or several web-based server side applications, which in turn put a lot of load and management pressure on the serve...
Main Authors: | , |
---|---|
Format: | Article |
Language: | English |
Published: |
IEEE
2022-01-01
|
Series: | IEEE Access |
Subjects: | |
Online Access: | https://ieeexplore.ieee.org/document/9693940/ |
_version_ | 1819274527878676480 |
---|---|
author | Chen Ma Yuhong Chi |
author_facet | Chen Ma Yuhong Chi |
author_sort | Chen Ma |
collection | DOAJ |
description | Today most people can’t live without electronic devices. And more and more new devices are coming to the market every day. Apps running on these devices often connect to one or several web-based server side applications, which in turn put a lot of load and management pressure on the servers and clusters serving these web applications. Technologies such as Nginx and Keepalived were invented to address the load issues faced by these high concurrency applications. This paper tested a server cluster environment based on Nginx and Keepalived, evaluated the performance of Nginx based algorithms such as WRR, IP_HASH and LEAST_CONN, and designed an optimized version of IP_HASH (named as NEW_HASH). Compared to the original IP_HASH, the NEW_HASH reduces the probability of hash collisions and improves the performance of searching back-end nodes. The test showed NEW_HASH outperforms the original method of IP_HASH, with reduced response time, lower failure rates and increased throughput. Overall, the server cluster performed better under the high load pressure using NEW_HASH. |
first_indexed | 2024-12-23T23:09:51Z |
format | Article |
id | doaj.art-03f966e2177a433fa9a2e29d89dd8bd0 |
institution | Directory Open Access Journal |
issn | 2169-3536 |
language | English |
last_indexed | 2024-12-23T23:09:51Z |
publishDate | 2022-01-01 |
publisher | IEEE |
record_format | Article |
series | IEEE Access |
spelling | doaj.art-03f966e2177a433fa9a2e29d89dd8bd02022-12-21T17:26:41ZengIEEEIEEE Access2169-35362022-01-0110143111432410.1109/ACCESS.2022.31464229693940Evaluation Test and Improvement of Load Balancing Algorithms of NginxChen Ma0https://orcid.org/0000-0002-0598-127XYuhong Chi1https://orcid.org/0000-0001-7291-9137School of Information Engineering, Xijing University, Xi’an, ChinaSchool of Information Engineering, Xijing University, Xi’an, ChinaToday most people can’t live without electronic devices. And more and more new devices are coming to the market every day. Apps running on these devices often connect to one or several web-based server side applications, which in turn put a lot of load and management pressure on the servers and clusters serving these web applications. Technologies such as Nginx and Keepalived were invented to address the load issues faced by these high concurrency applications. This paper tested a server cluster environment based on Nginx and Keepalived, evaluated the performance of Nginx based algorithms such as WRR, IP_HASH and LEAST_CONN, and designed an optimized version of IP_HASH (named as NEW_HASH). Compared to the original IP_HASH, the NEW_HASH reduces the probability of hash collisions and improves the performance of searching back-end nodes. The test showed NEW_HASH outperforms the original method of IP_HASH, with reduced response time, lower failure rates and increased throughput. Overall, the server cluster performed better under the high load pressure using NEW_HASH.https://ieeexplore.ieee.org/document/9693940/High concurrencyIP_HASHload balancingNginx |
spellingShingle | Chen Ma Yuhong Chi Evaluation Test and Improvement of Load Balancing Algorithms of Nginx IEEE Access High concurrency IP_HASH load balancing Nginx |
title | Evaluation Test and Improvement of Load Balancing Algorithms of Nginx |
title_full | Evaluation Test and Improvement of Load Balancing Algorithms of Nginx |
title_fullStr | Evaluation Test and Improvement of Load Balancing Algorithms of Nginx |
title_full_unstemmed | Evaluation Test and Improvement of Load Balancing Algorithms of Nginx |
title_short | Evaluation Test and Improvement of Load Balancing Algorithms of Nginx |
title_sort | evaluation test and improvement of load balancing algorithms of nginx |
topic | High concurrency IP_HASH load balancing Nginx |
url | https://ieeexplore.ieee.org/document/9693940/ |
work_keys_str_mv | AT chenma evaluationtestandimprovementofloadbalancingalgorithmsofnginx AT yuhongchi evaluationtestandimprovementofloadbalancingalgorithmsofnginx |