File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 1
- 04801c0ba7d7f9f55f7bd7681dd03a87c221d8c2
1
+ 984787760ea6d7f0bbf954dc56d979d45d3aaf61
Original file line number Diff line number Diff line change @@ -49,4 +49,7 @@ service DynamicConfigService {
49
49
50
50
// Generate dynamic config based on cluster's static config.
51
51
rpc FetchStartupConfig (DynamicConfig .FetchStartupConfigRequest ) returns (DynamicConfig .FetchStartupConfigResponse );
52
+
53
+ // Get configuration version of nodes.
54
+ rpc GetConfigurationVersion (DynamicConfig .GetConfigurationVersionRequest ) returns (DynamicConfig .GetConfigurationVersionResponse );
52
55
}
Original file line number Diff line number Diff line change @@ -242,3 +242,42 @@ message FetchStartupConfigResult {
242
242
// YAML document with generated dynamic config
243
243
string config = 1 ;
244
244
}
245
+
246
+ message GetConfigurationVersionRequest {
247
+ Ydb.Operations.OperationParams operation_params = 1 ;
248
+ // List nodes with different configuration versions
249
+ bool list_nodes = 2 ;
250
+ }
251
+
252
+ message GetConfigurationVersionResponse {
253
+ // Result of request will be inside operation.
254
+ Ydb.Operations.Operation operation = 1 ;
255
+ }
256
+
257
+ message NodeInfo {
258
+ message Endpoint {
259
+ // Node's hostname
260
+ string hostname = 1 ;
261
+ // Node's port
262
+ uint32 port = 2 ;
263
+ }
264
+ // Node's id
265
+ uint32 node_id = 1 ;
266
+ // Node's endpoint
267
+ Endpoint endpoint = 2 ;
268
+ }
269
+
270
+ message GetConfigurationVersionResult {
271
+ // Count of nodes with V1 configuration version
272
+ uint32 v1_nodes = 1 ;
273
+ // List of nodes with V1 configuration version
274
+ repeated NodeInfo v1_nodes_list = 2 ;
275
+ // Count of nodes with V2 configuration version
276
+ uint32 v2_nodes = 3 ;
277
+ // List of nodes with V2 configuration version
278
+ repeated NodeInfo v2_nodes_list = 4 ;
279
+ // Count of nodes with unknown configuration version
280
+ uint32 unknown_nodes = 5 ;
281
+ // List of nodes with unknown configuration version
282
+ repeated NodeInfo unknown_nodes_list = 6 ;
283
+ }
You can’t perform that action at this time.
0 commit comments