Fastcgi statistics at nginx

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Please, is there a way to see how many active requests I have to fastcgi
?

Something like that:

fastcgi.active-requests: 0
fastcgi.backend.fcgi-php.0.connected: 10127
fastcgi.backend.fcgi-php.0.died: 0
fastcgi.backend.fcgi-php.0.disabled: 0
fastcgi.backend.fcgi-php.0.load: 0
fastcgi.backend.fcgi-php.0.overloaded: 0
fastcgi.backend.fcgi-php.1.connected: 93855
fastcgi.backend.fcgi-php.1.died: 0
fastcgi.backend.fcgi-php.1.disabled: 0
fastcgi.backend.fcgi-php.1.load: 0
fastcgi.backend.fcgi-php.1.overloaded: 0
fastcgi.backend.fcgi-php.load: 1
fastcgi.requests: 399355

Stub Status Module does not do that :frowning:

Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkyiSJ4ACgkQNRQApncg294KCgCg339t7QfAJ/y5EJtGwlmzK/iu
ktkAl2EO3+do3edYlu2NHa1/iuLh6Ko=
=Giyr
-----END PGP SIGNATURE-----

Please, is there a way to see how many active requests I have to fastcgi ?

You can get some statistics from FPM itself like:

accepted conn: 129
pool: www
process manager: dynamic
idle processes: 20
active processes: 0
total processes: 20

when setting the pm.status_path variable in fpm config.

For example:

pm.status_path = /status

Then you should configure nginx to pass the location to php backend:

location /status {
fastcgi_pass …
# whatever else you have
}

rr

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs