Puma can be configured with min and max threads. Last time I looked into it a few years ago, it was typical to simply fix the min and max to the same number. I think a main reason to do this was to avoid memory bloat problems caused by MRI.
I think this problem is not an issue or maybe significantly less when using Jemalloc (which I am). So I want to try setting min threads to 0, so I can monitor how many threads puma actually needs, and reduce the number of db connections used.
Anyone have experiences or knowledge to share along these lines? Thanks!