summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaehong Kang <sinoru@me.com>2023-11-08 22:15:43 +0900
committerGitHub <noreply@github.com>2023-11-08 13:15:43 +0000
commitc73d5a6075d6a6ef9cbfc84e34015603d5126982 (patch)
tree829814a1fa4e5ace65f95dc5bcebe85a7d4b34a2
parent13c3e59601683d5a5d57f9f2c0238a9ade0a1ad1 (diff)
Using Sidekiq concurrency for default db pool value (#26488)
-rw-r--r--config/database.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/database.yml b/config/database.yml
index b995f23178a..2898415d800 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -1,6 +1,6 @@
default: &default
adapter: postgresql
- pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>
+ pool: <%= ENV["DB_POOL"] || (if Sidekiq.server? then Sidekiq[:concurrency] else ENV['MAX_THREADS'] end) || 5 %>
timeout: 5000
connect_timeout: 15
encoding: unicode