Skip to content

Commit

Permalink
Fixes #25511 - Disable max tasks by default to prevent memory issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1984 authored and ehelms committed Nov 26, 2018
1 parent 007cbae commit 3245fc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
$proxy_username = undef
$proxy_password = undef

# Pulp worker settings
$num_pulp_workers = min($::processorcount, 8)
$max_tasks_per_pulp_worker = 2
$max_tasks_per_pulp_worker = undef

# Pulp max speed setting
$pulp_max_speed = undef
Expand Down
6 changes: 4 additions & 2 deletions spec/classes/katello_pulp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class { '::katello':
.with_enable_docker(true)
.with_enable_ostree(false)
.with_num_workers(1)
.with_max_tasks_per_child(2)
.with_max_tasks_per_child(nil)
.with_enable_parent_node(false)
.with_repo_auth(true)
.with_puppet_wsgi_processes(1)
Expand Down Expand Up @@ -80,7 +80,8 @@ class { '::katello':
pulp_db_name => 'pulp_db',
pulp_db_username => 'pulp_user',
pulp_db_password => 'pulp_pw',
pulp_db_seeds => '192.168.1.1:27017'
pulp_db_seeds => '192.168.1.1:27017',
max_tasks_per_pulp_worker => 2
}
EOS
end
Expand All @@ -91,6 +92,7 @@ class { '::katello':
.with_db_username('pulp_user')
.with_db_password('pulp_pw')
.with_db_seeds('192.168.1.1:27017')
.with_max_tasks_per_child(2)
end
end
end
Expand Down

0 comments on commit 3245fc3

Please # to comment.