diff options
author | Claire McQuin <claire@getchef.com> | 2014-05-15 12:01:44 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-05-15 12:01:44 -0700 |
commit | 8bad4e917ac4f0da4cc6b3585bad17e66d6993df (patch) | |
tree | f66344ac295175f572b422f58c1bb4d9942a01dc /lib/chef/config.rb | |
parent | d73d0cb8166c2839944cdd9a048f5b7474f62ba7 (diff) | |
download | chef-8bad4e917ac4f0da4cc6b3585bad17e66d6993df.tar.gz |
Decrease number of default threads
Diffstat (limited to 'lib/chef/config.rb')
-rw-r--r-- | lib/chef/config.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb index 0df9b4d62d..35b07c24ea 100644 --- a/lib/chef/config.rb +++ b/lib/chef/config.rb @@ -552,8 +552,11 @@ class Chef # immediately if 0.) default :run_lock_timeout, nil - # Number of worker threads for syncing cookbooks in parallel. - default :cookbook_sync_threads, 20 + # Number of worker threads for syncing cookbooks in parallel. Increasing + # this number can result in gateway errors from the server (namely 503 and 504). + # If you are seeing this behavior while using the default setting, reducing + # the number of threads will help. + default :cookbook_sync_threads, 10 # If installed via an omnibus installer, this gives the path to the # "embedded" directory which contains all of the software packaged with |