@@ -86,29 +86,29 @@ message GetClusterInfoResponse {
86
86
repeated PartitionInfo partitions = 2 ;
87
87
}
88
88
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
+
89
104
message GetClusterNodesInfoRequest {
90
- repeated string nodes = 1 ;
105
+ repeated string nodes = 1 ;
91
106
}
92
107
93
108
message GetClusterNodesInfoResponse {
94
- repeated NodeInfo nodes = 1 ;
109
+ repeated NodeInfo nodes = 1 ;
95
110
}
96
111
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
-
112
112
service ConfigService {
113
113
/*
114
114
* description: get cluster config
@@ -125,5 +125,5 @@ service ConfigService {
125
125
/*
126
126
* description: get cluster nodes information
127
127
*/
128
- rpc GetClusterNodesInfo (GetClusterNodesInfoResponse ) returns (GetClusterNodesInfoResponse );
128
+ rpc GetClusterNodesInfo (GetClusterNodesInfoRequest ) returns (GetClusterNodesInfoResponse );
129
129
}
0 commit comments