diff --git a/README.md b/README.md index 270a7a0..e893364 100644 --- a/README.md +++ b/README.md @@ -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 节点运行 diff --git a/supervisor/lae-default.conf b/supervisor/lae-default.conf new file mode 100644 index 0000000..3c60062 --- /dev/null +++ b/supervisor/lae-default.conf @@ -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 diff --git a/supervisor/lae-host-cost.conf b/supervisor/lae-host-cost.conf new file mode 100644 index 0000000..7c0f3a3 --- /dev/null +++ b/supervisor/lae-host-cost.conf @@ -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 diff --git a/supervisor/lae-notifications.conf b/supervisor/lae-notifications.conf new file mode 100644 index 0000000..ca0d2ab --- /dev/null +++ b/supervisor/lae-notifications.conf @@ -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