Celery backend and support for dev-env worker parallelization
This commit is contained in:
parent
c1b5b53a16
commit
15c7ef5885
17 changed files with 1664 additions and 368 deletions
|
@ -5,10 +5,10 @@ CELERYD_NODES="airtime-celery"
|
|||
CELERY_BIN="/usr/local/bin/celery"
|
||||
|
||||
# App instance to use
|
||||
CELERY_APP="airtime-celery.uploader:celery"
|
||||
CELERY_APP="airtime-celery.tasks:celery"
|
||||
|
||||
# Extra command-line arguments to the worker
|
||||
CELERYD_OPTS="--time-limit=300 --concurrency=8 --config=celeryconfig"
|
||||
CELERYD_OPTS="--time-limit=300 --concurrency=1 --config=celeryconfig"
|
||||
|
||||
# %N will be replaced with the first part of the nodename.
|
||||
CELERYD_LOG_FILE="/var/log/airtime/%N.log"
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
# Names of nodes to start
|
||||
CELERYD_NODES="airtime-celery-bananas"
|
||||
|
||||
# Absolute or relative path to the 'celery' command:
|
||||
CELERY_BIN="/usr/local/bin/celery"
|
||||
|
||||
# App instance to use
|
||||
CELERY_APP="airtime-celery.tasks:celery"
|
||||
|
||||
# Extra command-line arguments to the worker
|
||||
CELERYD_OPTS="--time-limit=300 --concurrency=1 --config=celeryconfig"
|
||||
|
||||
# %N will be replaced with the first part of the nodename.
|
||||
CELERYD_LOG_FILE="/var/log/airtime/%N.log"
|
||||
CELERYD_PID_FILE="/var/run/celery/%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="celery"
|
||||
CELERYD_GROUP="celery"
|
||||
|
||||
# If enabled pid and log directories will be created if missing,
|
||||
# and owned by the userid/group configured.
|
||||
CELERY_CREATE_DIRS=1
|
25
python_apps/airtime-celery/install/conf/airtime-celery-cliff
Normal file
25
python_apps/airtime-celery/install/conf/airtime-celery-cliff
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Names of nodes to start
|
||||
CELERYD_NODES="airtime-celery-cliff"
|
||||
|
||||
# Absolute or relative path to the 'celery' command:
|
||||
CELERY_BIN="/usr/local/bin/celery"
|
||||
|
||||
# App instance to use
|
||||
CELERY_APP="airtime-celery.tasks:celery"
|
||||
|
||||
# Extra command-line arguments to the worker
|
||||
CELERYD_OPTS="--time-limit=300 --concurrency=1 --config=celeryconfig"
|
||||
|
||||
# %N will be replaced with the first part of the nodename.
|
||||
CELERYD_LOG_FILE="/var/log/airtime/%N.log"
|
||||
CELERYD_PID_FILE="/var/run/celery/%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="celery"
|
||||
CELERYD_GROUP="celery"
|
||||
|
||||
# If enabled pid and log directories will be created if missing,
|
||||
# and owned by the userid/group configured.
|
||||
CELERY_CREATE_DIRS=1
|
|
@ -0,0 +1,25 @@
|
|||
# Names of nodes to start
|
||||
CELERYD_NODES="airtime-celery-production"
|
||||
|
||||
# Absolute or relative path to the 'celery' command:
|
||||
CELERY_BIN="/usr/local/bin/celery"
|
||||
|
||||
# App instance to use
|
||||
CELERY_APP="airtime-celery.tasks:celery"
|
||||
|
||||
# Extra command-line arguments to the worker
|
||||
CELERYD_OPTS="--time-limit=300 --concurrency=8 --config=celeryconfig"
|
||||
|
||||
# %N will be replaced with the first part of the nodename.
|
||||
CELERYD_LOG_FILE="/var/log/airtime/%N.log"
|
||||
CELERYD_PID_FILE="/var/run/celery/%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="celery"
|
||||
CELERYD_GROUP="celery"
|
||||
|
||||
# If enabled pid and log directories will be created if missing,
|
||||
# and owned by the userid/group configured.
|
||||
CELERY_CREATE_DIRS=1
|
|
@ -0,0 +1,25 @@
|
|||
# Names of nodes to start
|
||||
CELERYD_NODES="airtime-celery-staging"
|
||||
|
||||
# Absolute or relative path to the 'celery' command:
|
||||
CELERY_BIN="/usr/local/bin/celery"
|
||||
|
||||
# App instance to use
|
||||
CELERY_APP="airtime-celery.tasks:celery"
|
||||
|
||||
# Extra command-line arguments to the worker
|
||||
CELERYD_OPTS="--time-limit=300 --concurrency=1 --config=celeryconfig"
|
||||
|
||||
# %N will be replaced with the first part of the nodename.
|
||||
CELERYD_LOG_FILE="/var/log/airtime/%N.log"
|
||||
CELERYD_PID_FILE="/var/run/celery/%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="celery"
|
||||
CELERYD_GROUP="celery"
|
||||
|
||||
# If enabled pid and log directories will be created if missing,
|
||||
# and owned by the userid/group configured.
|
||||
CELERY_CREATE_DIRS=1
|
Loading…
Add table
Add a link
Reference in a new issue