mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
cpu核数较少的时候,celery进程数可能会少于判题服务器数量,造成无法跑满负荷
This commit is contained in:
parent
04ec3e956e
commit
95fe3b02ad
@ -1,5 +1,5 @@
|
|||||||
[program:task_queue]
|
[program:task_queue]
|
||||||
command=celery -A oj worker -l DEBUG
|
command=celery -A oj worker --autoscale=30,4 -l DEBUG
|
||||||
directory=/code/
|
directory=/code/
|
||||||
user=nobody
|
user=nobody
|
||||||
numprocs=1
|
numprocs=1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user