Project

General

Profile

« Previous | Next » 

Revision 9de15a3d

Added by Martin Bacovsky about 7 years ago

Refs #17298 - Add max tasks per Pulp worker

View differences:

templates/upstart_pulp_workers
# Configure Python's encoding for writing all logs, stdout and stderr
PYTHONIOENCODING="UTF-8"
# To avoid memory leaks, Pulp can terminate and replace a worker after processing X tasks. If
# left commented, process recycling is disabled. PULP_MAX_TASKS_PER_CHILD must be > 0.
<% if scope['pulp::max_tasks_per_child'] != :undef and scope['pulp::max_tasks_per_child'].to_i > 0 %>
PULP_MAX_TASKS_PER_CHILD=<%= scope['pulp::max_tasks_per_child'] %>
<% else %>
# PULP_MAX_TASKS_PER_CHILD=2
<% end %>
######################################################################
# Please do not edit any of the settings below this mark in this file!
######################################################################

Also available in: Unified diff