Welcome! Log In Create A New Profile

Advanced

Monitor requests per second with Nginx

Posted by hello45 
Monitor requests per second with Nginx
January 06, 2016 09:12AM
Hello.

After several hours of testing, I decided to register here to ask for some support. I have some trouble monitoring requests per second with nginx. It is working fine on small amounts of traffic, but gets killed on larger amounts.

I have been using the linux tools "ab" and "wrk" to test with, and monitored nginx with the default stub status page.

Testing with "ab" results in nginx getting killed at 20000 requests per second.

Testing with "wrk", sending empty requests, nginx handles up to 160000 requests per second.

I also tried to use a load balancer up front of two of my servers to see if it handled more traffic, but it capped at 35000 requests per second.

Is this the best way to do it, and how can I configure nginx to handle a higher amount of requests per second?

Thanks in advance.
Re: Monitor requests per second with Nginx
January 06, 2016 10:37AM
Increase worker_processes and worker_connections

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Monitor requests per second with Nginx
January 06, 2016 12:24PM
Thanks for the response.

I have however tried this, with several different configs.

There seems to be a problem with the kernel, as no matter what nginx config I use, it caps around 18-20k requests /second
Re: Monitor requests per second with Nginx
January 06, 2016 02:23PM
Then you need to sort that out first, nginx depends on a lot of default OS functionality.

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready