如何使用supervisord在进程组中定义启动顺序? [英] how to define start order in group of processes using supervisord?

查看:48
本文介绍了如何使用supervisord在进程组中定义启动顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

程序优先级是否决定启动顺序?即 baz 然后 bar ?

Does the program priority determine the start order? i.e. baz then bar ?

如果我有:

[group:foo]
programs=bar,baz

还有:

[program:bar]
command=/path/to/bar
priority=200

还有:

[program:baz]
command=/path/to/baz
priority=150

推荐答案

是的.较低的优先级表示程序在启动时以及在各种客户端中使用聚合命令(例如全部启动"/全部停止")时首先启动并最后关闭.较高的优先级表示程序最后启动、最先关闭.

Yes. Lower priorities indicate programs that start first and shut down last at startup and when aggregate commands are used in various clients (e.g. "start all"/"stop all"). Higher priorities indicate programs that start last and shut down first.

这篇关于如何使用supervisord在进程组中定义启动顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆