From c0d2f412c528e8e8098aa5279db5cc07f0b428f6 Mon Sep 17 00:00:00 2001 From: Zach Latta Date: Tue, 21 Oct 2025 13:38:27 -0400 Subject: [PATCH] Update GoodJob queue configuration for thread count Increased the number of threads for GoodJob queues from 8 to 12, adjusting the configuration for better performance. --- config/initializers/good_job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/good_job.rb b/config/initializers/good_job.rb index 08f8dcd..0b6fd59 100644 --- a/config/initializers/good_job.rb +++ b/config/initializers/good_job.rb @@ -15,8 +15,8 @@ Rails.application.configure do config.good_job.enable_cron = Rails.env.production? # https://github.com/bensheldon/good_job#configuring-your-queues - # Reduced from 24 to 8 total threads to leave room for 16 web request threads - config.good_job.queues = "latency_10s:3; latency_5m,latency_10s:2; literally_whenever,*,latency_5m,latency_10s:3" + # 12 threads total + config.good_job.queues = "latency_10s:4; latency_5m,latency_10s:3; literally_whenever,*,latency_5m,latency_10s:5" # https://github.com/bensheldon/good_job#pgbouncer-compatibility GoodJob.active_record_parent_class = "ApplicationDirectRecord"