File tree 7 files changed +60
-3
lines changed
7 files changed +60
-3
lines changed Original file line number Diff line number Diff line change 1
1
# @scow/scow-scheduler-adapter-interface
2
2
3
+ ## 1.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - eb952d6: 新增获取集群节点信息接口 GetClusterNodesInfo
8
+ 在 getJobsRequest 中增加兼容型参数 job_id 和 job_name
9
+
3
10
## 1.5.0
4
11
5
12
### Minor Changes
Original file line number Diff line number Diff line change
1
+ # v1.6.0
2
+
3
+ 发布于:2024/8/1 21:29:58
4
+
5
+ ## 重要更新
6
+ - 新增获取集群节点信息接口 GetClusterNodesInfo
7
+ 在 getJobsRequest 中增加兼容型参数 job_id 和 job_name ([ eb952d63] ( https://github.com/PKUHPC/SCOW/commit/eb952d633bc92a68e41143ce79b1c6dfa6d73a21 ) )
8
+
9
+
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @scow/scow-scheduler-adapter-interface" ,
3
- "version" : " 1.5 .0" ,
3
+ "version" : " 1.6 .0" ,
4
4
"description" : " Interface for SCOW to call schedulers" ,
5
5
"author" : " PKUHPC (https://github.com/PKUHPC)" ,
6
6
"repository" : " https://github.com/PKUHPC/SCOW" ,
Original file line number Diff line number Diff line change @@ -133,12 +133,12 @@ service AccountService {
133
133
* NOT_FOUND, ACCOUNT_NOT_FOUND, {}
134
134
*/
135
135
rpc QueryAccountBlockStatus (QueryAccountBlockStatusRequest ) returns (QueryAccountBlockStatusResponse );
136
-
136
+
137
137
/*
138
138
* description: delete account
139
139
* errors:
140
140
* - account not exist
141
141
* NOT_FOUND, ACCOUNT_NOT_FOUND, {}
142
142
*/
143
143
rpc DeleteAccount (DeleteAccountRequest ) returns (DeleteAccountResponse );
144
- }
144
+ }
Original file line number Diff line number Diff line change @@ -42,4 +42,5 @@ service AppService {
42
42
* Sometimes it needs to provide password for app
43
43
*/
44
44
rpc GetAppConnectionInfo (GetAppConnectionInfoRequest ) returns (GetAppConnectionInfoResponse );
45
+
45
46
}
Original file line number Diff line number Diff line change @@ -86,6 +86,38 @@ message GetClusterInfoResponse {
86
86
repeated PartitionInfo partitions = 2 ;
87
87
}
88
88
89
+ message NodeInfo {
90
+
91
+ enum NodeState {
92
+ UNKNOWN = 0 ;
93
+ IDLE = 1 ;
94
+ RUNNING = 2 ;
95
+ NOT_AVAILABLE = 3 ;
96
+ }
97
+
98
+ string node_name = 1 ;
99
+ repeated string partitions = 2 ;
100
+ NodeState state = 3 ;
101
+ uint32 cpu_core_count = 4 ;
102
+ uint32 alloc_cpu_core_count = 5 ;
103
+ uint32 idle_cpu_core_count = 6 ;
104
+ uint32 total_mem_mb = 7 ;
105
+ uint32 alloc_mem_mb = 8 ;
106
+ uint32 idle_mem_mb = 9 ;
107
+ uint32 gpu_count = 10 ;
108
+ uint32 alloc_gpu_count = 11 ;
109
+ uint32 idle_gpu_count = 12 ;
110
+ }
111
+
112
+ message GetClusterNodesInfoRequest {
113
+ // if the value of node_names = [], request all nodes info
114
+ repeated string node_names = 1 ;
115
+ }
116
+
117
+ message GetClusterNodesInfoResponse {
118
+ repeated NodeInfo nodes = 1 ;
119
+ }
120
+
89
121
service ConfigService {
90
122
/*
91
123
* description: get cluster config
@@ -99,4 +131,8 @@ service ConfigService {
99
131
* description: get cluster information
100
132
*/
101
133
rpc GetClusterInfo (GetClusterInfoRequest ) returns (GetClusterInfoResponse );
134
+ /*
135
+ * description: get cluster nodes information
136
+ */
137
+ rpc GetClusterNodesInfo (GetClusterNodesInfoRequest ) returns (GetClusterNodesInfoResponse );
102
138
}
Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ message GetJobsRequest {
104
104
optional TimeRange submit_time = 4 ;
105
105
// if set this field, return jobs that ended between the time range(both endpoints included)
106
106
optional TimeRange end_time = 5 ;
107
+
108
+ optional uint32 job_id = 6 ;
109
+ optional string job_name = 7 ;
107
110
}
108
111
// specify filter options
109
112
optional Filter filter = 2 ;
@@ -114,6 +117,7 @@ message GetJobsRequest {
114
117
115
118
// returned jobs should be sorted if set
116
119
optional SortInfo sort = 4 ;
120
+
117
121
}
118
122
119
123
message GetJobsResponse {
You can’t perform that action at this time.
0 commit comments