-
Notifications
You must be signed in to change notification settings - Fork 0
/
celeryd-upol-search-engine
36 lines (27 loc) · 1.15 KB
/
celeryd-upol-search-engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Example configuration file of service
# /etc/defaults/celeryd-upol-search-engine
# Start 8 nodes of celery
CELERYD_NODES=8
# Absolute or relative path to the 'celery' command:
CELERY_BIN="/home/upol-search-engine/venv/bin/celery"
# App instance to use
CELERY_APP="upol_search_engine.celery_app"
# Where to chdir at start.
CELERYD_CHDIR="/home/upol-search-engine/"
# Extra command-line arguments to the worker
CELERYD_OPTS=""
# Configure node-specific settings by appending node name to arguments:
#CELERYD_OPTS="--time-limit=300 -c 8 -c:worker2 4 -c:worker3 2 -Ofair:worker1"
# Set logging level to INFO
CELERYD_LOG_LEVEL="INFO"
# %n will be replaced with the first part of the nodename.
CELERYD_LOG_FILE="/var/log/upol-search-engine/%n%I.log"
CELERYD_PID_FILE="/var/run/upol-search-engine/%n.pid"
# Workers should run as an unprivileged user.
# You need to create this user manually (or you can choose
# a user/group combination that already exists (e.g., nobody).
CELERYD_USER="upol-search-engine"
CELERYD_GROUP="upol-search-engine"
# If enabled pid and log directories will be created if missing,
# and owned by the userid/group configured.
CELERY_CREATE_DIRS=1