GO-Written Process management tool GOSUV
GOSUV is a process management tool that is written in the go language. Inspired by Python-supervisor, he learned a lot about its functions and usage.
First, the characteristics of GOSUV:
Web Console part of the focus on strengthening, because the frequency is too high, on the Web page can now be directly added to the first application, the Web page to view the log section has also been optimized, look not so laborious. Using the WebSocket connection backend, the front desk can instantly see the changes as the status changes.
The reload command is not a reboot command, but instead reads the configuration file again and applies the part that has changed.
The log section for output with ANSI color, no longer report XML RPC errors, this only with the Python XML RPC library will be out of this problem, write in the go language naturally does not have this problem.
The configuration file was also changed by me in YAML format, which is much easier to modify. So the configuration is all placed in a file, easy to manage the program automation.
Increased monitoring of CPU and memory
Default Killasgroup, all startup programs will not have a residual process after they are stopped
Added function of pushover notification for fatal status
Support for GitHub's webhook, which triggers the update command and restarts the program when the GitHub code is updated
GOSUV program has added self-updating function
is still in the trial stage, the personal use is quite cool.
Intercept the use of GIF
650) this.width=650; "src=" Https://raw.githubusercontent.com/codeskyblue/gosuv/master/docs/gosuv.gif "style=" border:0px;vertical-align:middle;margin:5px 0px;height:auto; "/>
This article is from the "funny Brother Notes" blog, be sure to keep this source http://qiuyt.blog.51cto.com/1229789/1955519
The Go Language Process management tool-practice