root / init_scripts / celeryd_config @ 5af3efa3
History | View | Annotate | Download (904 Bytes)
1 | 8f17dc8f | Leonidas Poulopoulos | # Name of nodes to start, here we have a single node |
---|---|---|---|
2 | 8f17dc8f | Leonidas Poulopoulos | CELERYD_NODES="w1" |
3 | 8f17dc8f | Leonidas Poulopoulos | # or we could have three nodes: |
4 | 8f17dc8f | Leonidas Poulopoulos | #CELERYD_NODES="w1 w2 w3" |
5 | 8f17dc8f | Leonidas Poulopoulos | |
6 | 8f17dc8f | Leonidas Poulopoulos | # Where to chdir at start. |
7 | 8f17dc8f | Leonidas Poulopoulos | CELERYD_CHDIR="/home/leopoul/projects/flowspy/" |
8 | 8f17dc8f | Leonidas Poulopoulos | # How to call "manage.py celeryd_multi" |
9 | 8f17dc8f | Leonidas Poulopoulos | CELERYD_MULTI="$CELERYD_CHDIR/manage.py celeryd_multi" |
10 | 8f17dc8f | Leonidas Poulopoulos | |
11 | 8f17dc8f | Leonidas Poulopoulos | # How to call "manage.py celeryctl" |
12 | 8f17dc8f | Leonidas Poulopoulos | CELERYCTL="$CELERYD_CHDIR/manage.py celeryctl" |
13 | 8f17dc8f | Leonidas Poulopoulos | |
14 | 8f17dc8f | Leonidas Poulopoulos | # Extra arguments to celeryd |
15 | 8f17dc8f | Leonidas Poulopoulos | #CELERYD_OPTS="--time-limit=300 --concurrency=8" |
16 | 8f17dc8f | Leonidas Poulopoulos | CELERYD_OPTS="-E -B" |
17 | 8f17dc8f | Leonidas Poulopoulos | # Name of the celery config module. |
18 | 8f17dc8f | Leonidas Poulopoulos | CELERY_CONFIG_MODULE="celeryconfig" |
19 | 8f17dc8f | Leonidas Poulopoulos | |
20 | 8f17dc8f | Leonidas Poulopoulos | # %n will be replaced with the nodename. |
21 | 8f17dc8f | Leonidas Poulopoulos | CELERYD_LOG_FILE="$CELERYD_CHDIR/celery_var/log/celery/%n.log" |
22 | 8f17dc8f | Leonidas Poulopoulos | CELERYD_PID_FILE="$CELERYD_CHDIR/celery_var/run/celery/%n.pid" |
23 | 8f17dc8f | Leonidas Poulopoulos | |
24 | 8f17dc8f | Leonidas Poulopoulos | # Workers should run as an unprivileged user. |
25 | 8f17dc8f | Leonidas Poulopoulos | CELERYD_USER="leopoul" |
26 | 8f17dc8f | Leonidas Poulopoulos | CELERYD_GROUP="developers" |
27 | 8f17dc8f | Leonidas Poulopoulos | |
28 | 8f17dc8f | Leonidas Poulopoulos | # Name of the projects settings module. |
29 | 8f17dc8f | Leonidas Poulopoulos | export DJANGO_SETTINGS_MODULE="settings" |