2017-10-28 3 views
1

celery worker -A proj --autoscale=10,1 --loglevel=info 명령은 자동 배율로 작업자를 시작합니다.셀러 리 멀티 작업자와 자동 크기 조정을 설정하는 방법은 무엇입니까?

멀티 근로자를 작성,

[email protected]:~/projects/x$ celery multi start myworker --autoscale=10,1 
celery multi v4.1.0 (latentcall) 
> Starting nodes... 
    > [email protected]: OK 

[email protected]:~/projects/kate$ celery multi show myworker 
/home/me/.virtualenvs/kate/bin/python2.7 -m celery worker --detach -n [email protected] --pidfile=myworker.pid --logfile=myworker%I.log --executable=/home/me/.virtualenvs/x/bin/python2.7 

어떻게 오토 스케일을 다 가능합니까?

답변

0

자동 크기 조정은 작업량이 증가 할 때 새로운 프로세스를 시작합니다. 귀하의 경우에는 최소 숫자를 1로 설정 했으므로 대기열에 더 많은 작업을 시작하지 않는 한 1 개의 프로세스 만 표시됩니다. 자동 크기 조절기의 작동 방식을 변경할 수 있습니다. 자세한 내용은 아래 링크를 참조하십시오

http://docs.celeryproject.org/en/latest/userguide/workers.html#autoscaling

+0

문제는 셀러리 멀티에 대해 구체적이다. – Marty

관련 문제