mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Remove thread allocation from catch-all queue
This commit is contained in:
parent
283d9cd8e2
commit
15e8281d46
2 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
default: &default
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
# 3 connections for Puma, 13 for GoodJob (in async mode, the default for self-hosters) = 16 connections
|
||||
pool: <%= ENV.fetch("DB_POOL_SIZE") { 16 } %>
|
||||
# 3 connections for Puma, 15 for GoodJob (in async mode, the default for self-hosters) = 18 connections
|
||||
pool: <%= ENV.fetch("DB_POOL_SIZE") { 18 } %>
|
||||
host: <%= ENV.fetch("DB_HOST") { "127.0.0.1" } %>
|
||||
port: <%= ENV.fetch("DB_PORT") { "5432" } %>
|
||||
user: <%= ENV.fetch("POSTGRES_USER") { nil } %>
|
||||
|
|
|
@ -13,11 +13,11 @@ Rails.application.configure do
|
|||
|
||||
config.good_job.on_thread_error = ->(exception) { Rails.error.report(exception) }
|
||||
|
||||
# 10 queue threads + 3 for job listener, cron, executor = 13 threads allocated
|
||||
# 7 dedicated queue threads + 5 catch-all threads + 3 for job listener, cron, executor = 15 threads allocated
|
||||
# `latency_low` queue for jobs ~30s
|
||||
# `latency_medium` queue for jobs ~1-2 min
|
||||
# `latency_high` queue for jobs ~5+ min
|
||||
config.good_job.queues = "latency_low:3;latency_low,latency_medium:4;latency_low,latency_medium,latency_high:2;*:1"
|
||||
config.good_job.queues = "latency_low:2;latency_low,latency_medium:3;latency_low,latency_medium,latency_high:2;*"
|
||||
|
||||
# Auth for jobs admin dashboard
|
||||
ActiveSupport.on_load(:good_job_application_controller) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue