mperham / connection_pool

Generic connection pooling for Ruby
MIT License
1.63k stars 143 forks source link

How to get resource stats? #94

Closed Paxa closed 4 years ago

Paxa commented 7 years ago

The only way I found:

{
  max: pool.instance_variable_get(:@available).instance_variable_get(:@max),
  created: pool.instance_variable_get(:@available).instance_variable_get(:@created),
  busy: pool.instance_variable_get(:@available).instance_variable_get(:@que)
}

Is there more proper way to do it?

mperham commented 7 years ago

The stats will be available as soon as you send a PR to add them. 👍

florrain commented 6 years ago

+1

mikebaldry commented 4 years ago

So this, can be closed now, based on #104