We are experiencing an increased number of 502s with UI slowness. The slowness is observed when there are high number of API calls and is noticed during the business hours. The performance becomes better at night.
Do we need to optimize any configuration to handle the noticed problem?
Hey @Sushil_Sinha! First things first, when you talk about UI slowness, what UI are you talking about? If this is a web endpoint being proxied by NGINX, I would start by advising not to measure performance through a browser.
Secondly, it does make sense that any tool will be slower when under higher load. However, it would have to be a very significant load to notice such a big impact on NGINX. Either that, or NGINX is running on a very limited VM/container/environment.
Finally, we have a few blog posts covering tips for tuning NGINX performance:
- Performance Tuning: Tips & Tricks – NGINX Community Blog
- Optimizing Web Servers for High Throughput and Low Latency – NGINX Community Blog
You will notice these blog posts are somewhat old, but most if not all the contents in these posts are still applicable.
1 Like