• Yorick Peterse's avatar
    Don't use backup AR connections for Sidekiq · f116f87c
    Yorick Peterse authored
    Adding two extra connections does nothing other than increasing the
    number of idle database connections. Given Sidekiq uses N threads it can
    never use more than N AR connections at a time, thus we don't need more.
    
    The initializer mentioned the Sidekiq upgrade guide stating this was
    required.  This is false, the Sidekiq upgrade guide states this is
    necessary for Redis and not ActiveRecord.
    
    On GitLab.com this resulted in a reduction of about 80-100 PostgreSQL
    connections.
    
    Fixes #27713
    f116f87c
remove-sidekiq-backup-ar-threads.yml 89 Bytes