-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pool statistics #25
Comments
I guess my main concern would be the additional dependency. Maybe we could allow registration of a 'stats callback module' that would get called every time certain things happened? |
Perhaps we could register a callback module in the options. |
Is a single, resettable |
@reiddraper I could be completely misunderstanding you, but the max_workers_ever is just the pool size + the max overflow. |
What I'm curious about is max number of workers checked out. The scenario is, I jump on the box when things are going wrong, or I'm just curious about resource utilization, and I start typing |
@reiddraper I see what you mean now. I do support registering a callback module for this sort of thing that you can store statistics in with e.g. ets, but I don't think Poolboy proper should be keeping statistics ot her than the current pool status. @Vagabond thoughts? |
+1, this would actually be helpful for production systems |
+1, extremely helpful |
This would be very helpful. |
This would be extremely helpful |
When observing a running system, it would be nice if poolboy provided statistics on the usage of the pool. Has the pool ever been empty? How long are processes checked out for? How often are pooled processes (or their temporary owners) crashing? I suspect there are several other things it would be useful to have metrics for. The simplest that would be personally useful for me is just a simple
max_workers_ever
, which a function to reset the stat. Do others think these kind of things would be useful? Would observing such things with something like folsom have too much overhead?cc/ @Vagabond
The text was updated successfully, but these errors were encountered: