• Bob Van Landuyt's avatar
    Count threads all that run in multithreaded env · 65d112fa
    Bob Van Landuyt authored
    This adds the threads we know are running next to the worker threads
    for Puma and Sidekiq. Adding them here makes sure our connection pool
    for the database is large enough.
    
    In puma, the main thread also connects to the database, so we need to
    count that.
    
    In Sidekiq, the main thread and the poller for Sidekiq cron could also
    connect to the database.
    65d112fa
runtime_spec.rb 2.64 KB