Skip to content

method for getting ConnectionPool utilization #170

@dirkbolte

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

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