1

寻找方便的在线更新 service 程序的方案

 2 years ago
source link: https://www.v2ex.com/t/838157
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

寻找方便的在线更新 service 程序的方案

  seakingii · 8 小时 28 分钟前 · 669 次点击

说下需求:

我的服务器上运行着十几个 service,是用 c#和 GO 写的可执行文件,当前用 supervisor 来管理,目前更新 service 我是先在 supervisor 里停止它,然后用 FTP 上传新的可执行文件,上传完成后在 supervisor 里启动它.

如果偶尔更新,这样操作问题不大,现在的问题是经常要更新多个 service,感觉这样效率太低.

有没有这种方案: 1 上传新的可执行文件时不需要在 supervisor 先停止 service 2 上传完成后 service 会自动重启 3 不太需要优雅的"不中断服务更新",短时间停止一下问题不大.

如果能用 supervisor 实现最好,其它的也可以考虑.

不熟悉 linux 运营这块,请指点...


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK