commerce web site running, on multiple ec2 instances. The web content is served using nginx and its a ruby on rails application. I am using a load balancer which routes the traffic to the multiple ec2 instances. Is there any way to figure out using nginx how many users it serving and how many concurrent users are present in a particular ec2 instance. SO that I can match the number os concurrent users served by nginx and the amount of CPU and memory and processes running, to generate report and do a profiling.Kindly help me out!
Thanks
The nginx StubStatus module can help you out.
If you add the following server-block under the
http
-context you will get a http-interface that will give you some simple statistics.A request to the interface will give you the following data: