title: How can I detect whether my code is running "inside" Sidekiq server or Puma?
body: <p>I'm using Puma as a web server, and Sidekiq as my queue runner.</p>
  
  <p>For multiple things (Database connections, Redis connections, other external services) I'm using the ConnectionPool gem to manage safe access to connections.</p>
  
  <p>Now, depending on whether I'm running in the context of Sidekiq or of Puma, I need those pools to be different sizes (as large as the number of Sidekiq Threads or Puma threads respectively, and they are different)</p>
  
  <p>What is the best way to know, in your initializers, how big to make your connection pools based on execution context?</p>
  
  <p>Thanks!</p>