You can use application performance monitoring tools from companies such as New 
Relic, DataDog and Elastic. Just be aware that these tools will impose a bit of 
a performance overhead, so if you are already at the limit of capacity, then 
adding these tools could cause things to degrade. In the long run this 
additional overhead would usually be more than made up by improvements you make 
to your application based on the data these tools can capture.

Alternatively, if you already have systems in place for collecting metrics, 
such as InfluxDB, Graphite etc, then you could hook into the capabilities of 
mod_wsgi to emit its own metrics. It doesn't cover everything mod_wsgi can do 
in this area these days, but you can get some insight on some of the metrics 
tracking capabilities of mod_wsgi by reading.

http://blog.dscpl.com.au/2015/06/implementing-request-monitoring-within.html 
<http://blog.dscpl.com.au/2015/06/implementing-request-monitoring-within.html>

The mod_wsgi package actually has better APIs available now than what is 
described there, but not sure anything has ever been posted about them except 
maybe minor mentions in release notes. Unless though you have the capability to 
store metrics already, or are prepared to put the effort into setting up a 
system to do so, this path would not be for you.

Graham

> On 27 Feb 2022, at 11:19 pm, Jian Wu <[email protected]> wrote:
> 
> Dear community,
> 
> I am using Django with mod_wsgi and have been very satisfied. I am running 
> this setup from a Linux server with Apache. I am wondering if there is a way 
> for me to monitor if my server gets overburdened. Right now I am running it 
> with a single CPU core server, and I am not sure if I should upgrade it to 
> more cores. At peak hour I get around 50 visitors to my site per 30 minutes, 
> and I am wondering if there are some tools that allow me to follow how busy 
> the server is and if I need to upgrade my server?
> 
> Thanks!
> 
> Best regards,
> Jian
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/79D9A19E-583B-416A-A577-0211EFB3FD5F%40gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/AD68F8E9-C0E5-4EAA-A731-F92FCA469B8E%40gmail.com.

Reply via email to