Skip to content

Commit 28dd0d5

Browse files
committed
fix: fix GetClusterNodesInfo
1 parent b5eb109 commit 28dd0d5

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

protos/config.proto

+18-18
Original file line numberDiff line numberDiff line change
@@ -86,29 +86,29 @@ message GetClusterInfoResponse {
8686
repeated PartitionInfo partitions = 2;
8787
}
8888

89+
message NodeInfo {
90+
string node_name = 1;
91+
repeated string partitions = 2;
92+
string state = 3;
93+
uint32 cpu_core_counts = 4;
94+
uint32 alloc_cpu_core_counts = 5;
95+
uint32 idle_cpu_core_counts = 6;
96+
uint32 total_mem = 7;
97+
uint32 alloc_mem = 8;
98+
uint32 idle_mem = 9;
99+
uint32 gpu_counts = 10;
100+
uint32 alloc_gpu_counts = 11;
101+
uint32 idle_gpu_counts = 12;
102+
}
103+
89104
message GetClusterNodesInfoRequest {
90-
repeated string nodes = 1;
105+
repeated string nodes = 1;
91106
}
92107

93108
message GetClusterNodesInfoResponse {
94-
repeated NodeInfo nodes = 1;
109+
repeated NodeInfo nodes = 1;
95110
}
96111

97-
message NodeInfo {
98-
string node_name = 1;
99-
repeated string partition = 2;
100-
string state = 3;
101-
unit32 cpu_core_counts = 4;
102-
unit32 alloc_cpu_core_counts = 5;
103-
unit32 idle_cpu_core_counts = 6;
104-
unit32 total_mem = 7;
105-
unit32 alloc_mem = 8;
106-
unit32 idle_mem = 9;
107-
unit32 gpu_counts = 10;
108-
unit32 alloc_gpu_counts = 11;
109-
unit32 idle_gpu_counts = 12;
110-
}
111-
112112
service ConfigService {
113113
/*
114114
* description: get cluster config
@@ -125,5 +125,5 @@ service ConfigService {
125125
/*
126126
* description: get cluster nodes information
127127
*/
128-
rpc GetClusterNodesInfo(GetClusterNodesInfoResponse ) returns (GetClusterNodesInfoResponse);
128+
rpc GetClusterNodesInfo(GetClusterNodesInfoRequest) returns (GetClusterNodesInfoResponse);
129129
}

0 commit comments

Comments
 (0)