Understanding DB Pooling for Sidekiq Workers

I’m afraid I don’t know the details of how all this works off-hand.

It may be worth checking whether you’ve customized the UNICORN_SIDEKIQS env. That indicates how many sidekiq processes are launched (each of which will have many threads).

What exactly is your graph showing? Is it ‘concurrent connections’? Or is it ‘number of connections created’? If it’s the latter, perhaps some connections are being created & destroyed very quickly.

And one last question: what problem are you trying to solve here? Is there some issue being caused by the number of connections?