Add process synchronization in leader role

This commit is contained in:
Ingo Oppermann
2023-05-09 20:48:30 +02:00
parent ab86b8fd5d
commit ae04dc50c7
7 changed files with 924 additions and 65 deletions

View File

@@ -49,8 +49,8 @@ func (h *ClusterHandler) GetProxyNodes(c echo.Context) error {
LastContact: state.LastContact.Unix(),
Latency: state.Latency.Seconds() * 1000,
State: state.State,
CPU: state.CPU,
Mem: state.Mem,
CPU: state.Resources.CPU,
Mem: state.Resources.Mem,
}
list = append(list, n)
@@ -86,8 +86,8 @@ func (h *ClusterHandler) GetProxyNode(c echo.Context) error {
LastContact: state.LastContact.Unix(),
Latency: state.Latency.Seconds() * 1000,
State: state.State,
CPU: state.CPU,
Mem: state.Mem,
CPU: state.Resources.CPU,
Mem: state.Resources.Mem,
}
return c.JSON(http.StatusOK, node)