cpu核数较少的时候,celery进程数可能会少于判题服务器数量,造成无法跑满负荷

This commit is contained in:
virusdefender 2016-04-24 18:30:04 +08:00
parent 04ec3e956e
commit 95fe3b02ad
No known key found for this signature in database
GPG Key ID: 1686FB5677979E61

View File

@ -1,5 +1,5 @@
[program:task_queue]
command=celery -A oj worker -l DEBUG
command=celery -A oj worker --autoscale=30,4 -l DEBUG
directory=/code/
user=nobody
numprocs=1