@@ -16,9 +16,11 @@ Configure exim (message transfer agent) with:
...
@@ -16,9 +16,11 @@ Configure exim (message transfer agent) with:
Setup the task queues to avoid having your tasks being killed because of oom, by setting the concurrency on both main and low-priority workers. They should more or less match your mem_limit (cf production.yml) divided by the maximum memory taken by the tasks consumed by these workers respectively. This is assuming trying to have decent performance on a single machine, if running a swarm and each worker has its own machine the limits don't make sense.
Setup the task queues to avoid having your tasks being killed because of oom, by setting the concurrency on both main and low-priority workers. They should more or less match your mem_limit (cf production.yml) divided by the maximum memory taken by the tasks consumed by these workers respectively. This is assuming trying to have decent performance on a single machine, if running a swarm and each worker has its own machine the limits don't make sense.
$ export CELERY_MAIN_CONC=10
$ export CELERY_MAIN_CONC=20
$ export CELERY_LOW_CONC=10
$ export CELERY_LOW_CONC=10
A decent strategy is to start quite low and rise over time if no processes don't get killed.
Alternatively you can create a file called `.env` and write those variables in it, docker will pick them up automatically.
Alternatively you can create a file called `.env` and write those variables in it, docker will pick them up automatically.