# Nginx status: count requests before or after forwarding to backend server?

**URL:** <https://www.ruby-forum.com/t/nginx-status-count-requests-before-or-after-forwarding-to-backend-server/188846>\
**Category:** NGINX\
**Created:** [May 19, 2010, 10:11am UTC](https://www.ruby-forum.com/t/nginx-status-count-requests-before-or-after-forwarding-to-backend-server/188846 "2010-05-19T10:11:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![j0nes2k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@j0nes2k](https://www.ruby-forum.com/u/j0nes2k)\
**Post date:** [May 19, 2010, 10:11am UTC](https://www.ruby-forum.com/t/nginx-status-count-requests-before-or-after-forwarding-to-backend-server/188846/1 "2010-05-19T10:11:46Z")

</div>

Hello,

I have set up a nginx instance for static content that forwards dynamic  
content to a backend Apache server via the upstream module. I use munin  
to monitor both the nginx and Apache requests per second. Now I am  
wondering how to interpret the results and how the nginx-status works.

If I have 10000 requests per second on nginx-status and 2000 requests  
per second on Apache server-status, does that mean I have a total of  
12000 request coming in on my server? Does nginx count a request that is  
forwarded to Apache and increments its total number of requests in  
nginx-status? Or does this mean that the 10000 requests per second are  
what is handled by nginx, not counting the forwarded requests to Apache?

Thank you for your answer!

Best regards,  
Jonas Kaufmann

Posted at Nginx Forum:

> **[nginx status: count requests before or after forwarding to backend server?](https://forum.nginx.org/read.php?2,88022,88022#msg-88022)**
>
> Hello, I have set up a nginx instance for static content that forwards dynamic content to a backend Apache server via the upstream module. I use munin to monitor both the nginx and Apache requests per second. Now I am wondering how to interpret the...

---

<div class="post-metadata">

**Author:** ![j0nes2k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@j0nes2k](https://www.ruby-forum.com/u/j0nes2k)\
**Post date:** [May 20, 2010, 12:08am UTC](https://www.ruby-forum.com/t/nginx-status-count-requests-before-or-after-forwarding-to-backend-server/188846/2 "2010-05-20T00:08:25Z")

</div>

Hi

Nginx counting all connections - from client to nginx and from nginx  
to backend (apache/fascgi/whatever), so, nginx handle 10k req/s and  
apache 2k.

Little simple math 🙂

apache 2k  
nginx proxy (connection client-apache, nginx as proxy) - 2k time 2 = 4k  
nginx all connection 10k  
nginx static connection, where backend is not involved (nginx all  
connection minus proxy) - 10k minus 4k = 6k

–  
Best Regards  
Grzegorz  
Sieñko  
2010/5/19 j0nes2k [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
