mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 06:55:21 +02:00
Use Redis for ActiveJob and ActionCable (#2004)
* Use Redis for ActiveJob and ActionCable * Fix alwaysApply setting * Update queue names and weights * Tweak weights * Update job queues * Update docker setup guide * Remove deprecated upgrade columns from users table * Refactor Redis configuration for Sidekiq and caching in production environment * Add Sidekiq Sentry monitoring * queue naming fix * Clean up schema
This commit is contained in:
parent
a7db914005
commit
19cc63c8f4
75 changed files with 328 additions and 1684 deletions
|
@ -1,22 +1,7 @@
|
|||
default: &default
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
# Note on DB_POOL_SIZE:
|
||||
# -------------------------------------------------------------------------------------------------------------
|
||||
# To optimize for the simplest self-hosting setup, we run ActionCable, GoodJob, and Rails in the same process.
|
||||
#
|
||||
# This requires DB connections for each:
|
||||
#
|
||||
# Puma: Requires 3 connections (Rails default)
|
||||
# ActionCable: 5 connections (Rails defaults to 4 workers + 1 listener for Postgres adapter)
|
||||
# GoodJob: 15 connections to run in "async" mode. See `good_job.rb` for the breakdown.
|
||||
# --------------------------------------------------------------------------------------------
|
||||
# Total: 23 connections
|
||||
#
|
||||
# We default to this value so that self-hosters don't need to configure anything. Hosted mode will require
|
||||
# a different pool size, as we run ActionCable, GoodJob, and Rails in separate processes.
|
||||
#
|
||||
pool: <%= ENV.fetch("DB_POOL_SIZE") { 23 } %>
|
||||
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 3 } %>
|
||||
host: <%= ENV.fetch("DB_HOST") { "127.0.0.1" } %>
|
||||
port: <%= ENV.fetch("DB_PORT") { "5432" } %>
|
||||
user: <%= ENV.fetch("POSTGRES_USER") { nil } %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue