Last active
May 10, 2017 19:06
-
-
Save iNecas/582b3641c26766906d3465c9fa4682de to your computer and use it in GitHub Desktop.
Increase number of workers for dynflow in Foreman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<EOF > /usr/share/foreman/config/initializers/foreman_tasks_workers_bump.rb | |
workers_count = 10 | |
Rails.logger.info("Bumping the number of dynflow worksers to #{workers_count}") | |
ForemanTasks.dynflow.config.pool_size = workers_count | |
ForemanTasks.dynflow.config.db_pool_size = workers_count + 5 | |
EOF | |
service foreman-tasks restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment