Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixes #25511 - Disable max tasks by default to prevent memory issues. #265

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
chris1984 marked this conversation as resolved.
Show resolved Hide resolved
.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