Set the number of ActiveRecord DB pools to 50 in the Sidekiq service

This commit is contained in:
Greg Karékinian 2018-02-28 15:11:22 +01:00
parent fa0326f2be
commit 6ae27293ce

View File

@ -8,7 +8,7 @@ Type=simple
User=<%= @user %> User=<%= @user %>
WorkingDirectory=<%= @app_dir %> WorkingDirectory=<%= @app_dir %>
Environment="RAILS_ENV=production" Environment="RAILS_ENV=production"
Environment="DB_POOL=5" Environment="DB_POOL=50"
ExecStart=<%= @bundle_path %> exec sidekiq -c 5 -q default -q mailers -q pull -q push ExecStart=<%= @bundle_path %> exec sidekiq -c 5 -q default -q mailers -q pull -q push
TimeoutSec=15 TimeoutSec=15
Restart=always Restart=always