V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
kkwezard
V2EX  ›  Python

supervisord 如何动态的向一个正在运行的 group 添加一个新的 process?

  •  
  •   kkwezard · Jan 3, 2017 · 2352 views
    This topic created in 3401 days ago, the information mentioned may be changed or developed.
    我现在有一个 group GGG 。包含两个进程 GGG:aaa GGG:bbb 并且正在运行。现在想添加第三个进程 GGG:ccc 到 GGG 这个组中并且不影响之前运行的两个进程。但是用 supervisorctl 提供的 reread 和 update 命令只能整体重启 GGG 这个组?有什么好的办法吗,目前能解决的办法只能让 ccc 这个进程不属于 GGG 组而作为独立管理的进程。
    5 replies    2017-01-05 14:07:58 +08:00
    ansheng
        1
    ansheng  
       Jan 3, 2017
    reload
    kkwezard
        2
    kkwezard  
    OP
       Jan 4, 2017
    @ansheng reload 会重启之前正在运行的进程,我不希望打断之前的程序。
    ansheng
        3
    ansheng  
       Jan 4, 2017
    @kkwezard 如果是这样,那请问, reload 和 restart 有什么区别?为什么要多一个 reload ,你可以看看 reload 的源码是怎么实现的
    honmaple
        4
    honmaple  
       Jan 4, 2017
    reread?update?
    kkwezard
        5
    kkwezard  
    OP
       Jan 5, 2017
    @honmaple 这个我在问题中提过。 update 命令会导致重启整个 group 下的所有进程。但我只想添加新的进程到这个 group 并启动。不想重启 group 中正在运行的其他进程。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1028 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 19:01 · PVG 03:01 · LAX 12:01 · JFK 15:01
    ♥ Do have faith in what you're doing.