Skip to content

Commit

Permalink
[puppetlabs#1038] Increase default pool_size to 4
Browse files Browse the repository at this point in the history
This commit changes the default number of threads used when downloading
modules from 1 to 4.
  • Loading branch information
Magisus committed Jul 27, 2020
1 parent 9c3c5e7 commit 1bcb368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/r10k/puppetfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Puppetfile

include R10K::Settings::Mixin

def_setting_attr :pool_size, 1
def_setting_attr :pool_size, 4

include R10K::Logging

Expand Down
2 changes: 1 addition & 1 deletion lib/r10k/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def self.global_settings

Definition.new(:pool_size, {
:desc => "The amount of threads used to concurrently install modules. The default value is 1: install one module at a time.",
:default => 1,
:default => 4,
:validate => lambda do |value|
if !value.is_a?(Integer)
raise ArgumentError, "The pool_size setting should be an integer, not a #{value.class}"
Expand Down

0 comments on commit 1bcb368

Please sign in to comment.