On Sat, Oct 17, 2020 at 6:31 AM Anton Osenenko <[email protected]> wrote:

> I am wondering about instrumentation of ThreadedConnectionPool. How can i
> get count of active connections (or count of free connections) in
> connection pool? I looked in MyModel.db.pool, but there is nothing about
> current value, only max_connections/max_size/pool.
>

MyModel.db.pool.size gives you the number of opened connections, either
available for use or in use by other threads.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk/CADGZSSc8aCiEWWL7m-o071zDhGrEV6Dk-ohKxqvOOJ%3Dd2v-8Lw%40mail.gmail.com.

Reply via email to