[API节点]列表显示版本号、CPU、内存、状态等信息

This commit is contained in:
GoEdgeLab
2020-12-29 18:28:07 +08:00
parent fe1e99bacc
commit f1f321a5c3
14 changed files with 504 additions and 4 deletions

View File

@@ -68,6 +68,9 @@ func (this *APINode) Start() {
// 设置rlimit
_ = utils.SetRLimit(1024 * 1024)
// 状态变更计时器
go NewNodeStatusExecutor().Listen()
// 监听RPC服务
logs.Println("[API_NODE]starting rpc ...")
@@ -136,6 +139,8 @@ func (this *APINode) Start() {
}
}
// HTTP接口
if !isListening {
logs.Println("[API_NODE]the api node does have a listening address")
return