1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
This commit is contained in:
2019-04-29 17:05:15 +08:00
parent 549e559a73
commit 00c04333ad
6 changed files with 104 additions and 53 deletions

View File

@@ -21,6 +21,12 @@ type MsgSubmit struct {
Error string `json:"error"`
}
type MsgPoolStatusHistory struct {
Code int `json:"code"`
Error string `json:"error"`
Data []map[string]string `json:"data"`
}
type MsgStop struct {
Code int `json:"code"`
Error string `json:"error"`
@@ -36,6 +42,12 @@ type MsgSummary struct {
UsingGPU int `json:"gpu_using"`
}
type MsgResource struct {
Code int `json:"code"`
Error string `json:"error"`
Resource map[string]NodeStatus `json:"resources"`
}
type MsgJobList struct {
Code int `json:"code"`
Error string `json:"error"`
@@ -98,9 +110,13 @@ type GPUStatus struct {
}
type NodeStatus struct {
ClientID string `json:"id"`
ClientHost string `json:"host"`
Status []GPUStatus `json:"status"`
ClientID string `json:"id"`
ClientHost string `json:"host"`
NumCPU int `json:"cpu_num"`
UtilCPU string `json:"cpu_load"`
MemTotal string `json:"mem_total"`
MemAvailable string `json:"mem_available"`
Status []GPUStatus `json:"status"`
}
type Job struct {