Skip to content

method for getting ConnectionPool utilization #170

Description

@dirkbolte

Recently I can in a situation where too many connections where opened, causing the 'pending' connections to stack up more and more. For debugging this, it would have been helpful to have a call printing out the current utilization of the ConnectionPool, e.g.:

def info
  {
    available: @available.count,
    reserved: @reserved.count,
    pending: @pending.count
  }
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions