添加 多个队列

This commit is contained in:
iVampireSP.com 2023-02-12 01:52:34 +08:00
parent 94efda24e6
commit 02d35fe04f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
4 changed files with 37 additions and 1 deletions

View File

@ -8,7 +8,7 @@ ### 主节点运行
```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_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 节点运行

View 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

View 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

View 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