Skip to content

Instantly share code, notes, and snippets.

@iNecas
Last active May 10, 2017 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iNecas/582b3641c26766906d3465c9fa4682de to your computer and use it in GitHub Desktop.
Save iNecas/582b3641c26766906d3465c9fa4682de to your computer and use it in GitHub Desktop.
Increase number of workers for dynflow in Foreman
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