添加 多个队列
This commit is contained in:
parent
94efda24e6
commit
02d35fe04f
@ -8,7 +8,7 @@ ### 主节点运行
|
|||||||
```bash
|
```bash
|
||||||
docker run -itd --name=lae_schedule --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art schedule:work
|
docker run -itd --name=lae_schedule --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art schedule:work
|
||||||
|
|
||||||
docker run -itd --name=lae_worker --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work --queue=default,host-cost
|
docker run -itd --name=lae_worker --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work --queue=default,host-cost,notifications
|
||||||
```
|
```
|
||||||
|
|
||||||
### Web 节点运行
|
### Web 节点运行
|
||||||
|
12
supervisor/lae-default.conf
Normal file
12
supervisor/lae-default.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[program:lae-queues]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=docker run -i --rm --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work --queue=default
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stopasgroup=true
|
||||||
|
killasgroup=true
|
||||||
|
user=root
|
||||||
|
numprocs=8
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/var/log/lae-worker.log
|
||||||
|
stopwaitsecs=3600
|
12
supervisor/lae-host-cost.conf
Normal file
12
supervisor/lae-host-cost.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[program:lae-queues]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=docker run -i --rm --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work --queue=host-cost
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stopasgroup=true
|
||||||
|
killasgroup=true
|
||||||
|
user=root
|
||||||
|
numprocs=8
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/var/log/lae-worker.log
|
||||||
|
stopwaitsecs=3600
|
12
supervisor/lae-notifications.conf
Normal file
12
supervisor/lae-notifications.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[program:lae-queues]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=docker run -i --rm --init --restart=always --net=host -v /opt/lae:/opt/lae ccr.ccs.tencentyun.com/laecloud/cafe:latte art queue:work --queue=notifications
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
stopasgroup=true
|
||||||
|
killasgroup=true
|
||||||
|
user=root
|
||||||
|
numprocs=8
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/var/log/lae-worker.log
|
||||||
|
stopwaitsecs=3600
|
Loading…
Reference in New Issue
Block a user