You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I hope your day is going well. I'm looking to add some monitoring for services using gunicorn for the number of worker connections. This is to know when the workers are approaching the limit configured using --worker-connections flag and when it needs to be adjusted. I'm curious if there is some function like get_current_number_of_gunicorn_worker_connections() I can call in a background thread publishing the metrics? Also if there's a function is_running_gunicorn_worker() to skip setups which won't enable gunicorn.
Thank you!
The text was updated successfully, but these errors were encountered:
andrii-korotkov-verkada
changed the title
How to programmatically get the number of current worker connections
How to programmatically get the number of current worker connections?
Feb 8, 2024
Hello,
I hope your day is going well. I'm looking to add some monitoring for services using gunicorn for the number of worker connections. This is to know when the workers are approaching the limit configured using --worker-connections flag and when it needs to be adjusted. I'm curious if there is some function like
get_current_number_of_gunicorn_worker_connections()
I can call in a background thread publishing the metrics? Also if there's a functionis_running_gunicorn_worker()
to skip setups which won't enable gunicorn.Thank you!
The text was updated successfully, but these errors were encountered: