|
# Configuration file for Pulp's Celery workers
|
|
|
|
# This template defines where each Celery worker's log will be written. %n is filled in with the
|
|
# name of the worker.
|
|
CELERYD_LOG_FILE="/var/log/pulp/%n.log"
|
|
|
|
# Configure the log level for the Celery workers here. DEBUG, INFO, WARNING, ERROR, CRITICAL, and
|
|
# FATAL are the allowed values.
|
|
CELERYD_LOG_LEVEL="INFO"
|
|
|
|
# This template defines where each Celery worker will store its process ID. %n is filled in with the
|
|
# name of the worker.
|
|
CELERYD_PID_FILE="/var/run/pulp/%n.pid"
|
|
|
|
# Define the number of worker nodes you wish to have here. This defaults to the number of processors
|
|
# that are detected on the system.
|
|
PULP_CONCURRENCY=<%= scope['pulp::num_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'].nil? and scope['pulp::max_tasks_per_child'] > 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!
|
|
######################################################################
|
|
CELERY_APP="pulp.server.async.app"
|
|
|
|
CELERY_CREATE_DIRS=1
|
|
|
|
CELERYD_NODES=""
|
|
|
|
# Set the concurrency of each worker node to 1. DO NOT CHANGE THE CONCURRENCY!
|
|
CELERYD_OPTS="-c 1 --events --umask=18"
|
|
|
|
CELERYD_USER="apache"
|
|
|
|
DEFAULT_NODES=""
|