Closed pitosalas closed 5 years ago
10 connections per process. Are you forking multiple processes?
I am calling this from within a sinatra app, running under puma, responding to a barrage of GET calls from different (loader.io) clients. On the other hand those are all class methods and a class instance variable. So, I am not 100% sure whether I am getting another instance of the class for each one, I suspect base on your question that I am... Do you know?
If you are running in puma, you likely are starting a cluster, which forks multiple processes. You are seeing expected behavior. https://github.com/puma/puma/#clustered-mode
I have set my pool size to 10 but I still allocating 20 connections. 20 connects is the limit placed on me by the redis server. Here's my code. I would expect that the pool would ever only open 10 connections. But then what would it do if it was asked for an 11th? Or am I totally misunderstanding it?