2021-01-13 12:47:54 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-01-13 13:46:39 +00:00
|
|
|
package control;
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2021-01-15 06:23:21 +00:00
|
|
|
import "pkg/services/control/types.proto";
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2023-03-07 13:38:26 +00:00
|
|
|
option go_package = "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/control";
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// `ControlService` provides an interface for internal work with the storage
|
|
|
|
// node.
|
2021-01-13 13:46:39 +00:00
|
|
|
service ControlService {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Performs health check of the storage node.
|
|
|
|
rpc HealthCheck(HealthCheckRequest) returns (HealthCheckResponse);
|
2021-01-14 16:06:49 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Sets status of the storage node in FrostFS network map.
|
|
|
|
rpc SetNetmapStatus(SetNetmapStatusRequest) returns (SetNetmapStatusResponse);
|
2021-02-21 07:20:04 +00:00
|
|
|
|
2024-06-20 13:03:58 +00:00
|
|
|
// Gets status of the storage node in FrostFS network map.
|
|
|
|
rpc GetNetmapStatus(GetNetmapStatusRequest) returns (GetNetmapStatusResponse);
|
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Mark objects to be removed from node's local object storage.
|
|
|
|
rpc DropObjects(DropObjectsRequest) returns (DropObjectsResponse);
|
2021-12-17 12:27:36 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Returns list that contains information about all shards of a node.
|
|
|
|
rpc ListShards(ListShardsRequest) returns (ListShardsResponse);
|
2021-12-27 15:28:34 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Sets mode of the shard.
|
|
|
|
rpc SetShardMode(SetShardModeRequest) returns (SetShardModeResponse);
|
2022-01-24 10:13:37 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Synchronizes all log operations for the specified tree.
|
|
|
|
rpc SynchronizeTree(SynchronizeTreeRequest) returns (SynchronizeTreeResponse);
|
2022-09-13 10:28:08 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// EvacuateShard moves all data from one shard to the others.
|
|
|
|
// Deprecated: Use
|
|
|
|
// StartShardEvacuation/GetShardEvacuationStatus/StopShardEvacuation
|
|
|
|
rpc EvacuateShard(EvacuateShardRequest) returns (EvacuateShardResponse);
|
2022-09-21 10:51:51 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// StartShardEvacuation starts moving all data from one shard to the others.
|
|
|
|
rpc StartShardEvacuation(StartShardEvacuationRequest)
|
|
|
|
returns (StartShardEvacuationResponse);
|
2023-05-02 15:40:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// GetShardEvacuationStatus returns evacuation status.
|
|
|
|
rpc GetShardEvacuationStatus(GetShardEvacuationStatusRequest)
|
|
|
|
returns (GetShardEvacuationStatusResponse);
|
2023-05-02 15:40:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// ResetShardEvacuationStatus resets evacuation status if there is no running
|
|
|
|
// evacuation process.
|
|
|
|
rpc ResetShardEvacuationStatus(ResetShardEvacuationStatusRequest)
|
|
|
|
returns (ResetShardEvacuationStatusResponse);
|
2024-03-12 15:57:38 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// StopShardEvacuation stops moving all data from one shard to the others.
|
|
|
|
rpc StopShardEvacuation(StopShardEvacuationRequest)
|
|
|
|
returns (StopShardEvacuationResponse);
|
2023-05-02 15:40:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// FlushCache moves all data from one shard to the others.
|
|
|
|
rpc FlushCache(FlushCacheRequest) returns (FlushCacheResponse);
|
2023-04-07 11:21:05 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Doctor performs storage restructuring operations on engine.
|
|
|
|
rpc Doctor(DoctorRequest) returns (DoctorResponse);
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Add local access policy engine overrides to a node.
|
|
|
|
rpc AddChainLocalOverride(AddChainLocalOverrideRequest)
|
|
|
|
returns (AddChainLocalOverrideResponse);
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Get local access policy engine overrides stored in the node by chain id.
|
|
|
|
rpc GetChainLocalOverride(GetChainLocalOverrideRequest)
|
|
|
|
returns (GetChainLocalOverrideResponse);
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// List local access policy engine overrides stored in the node by container
|
|
|
|
// id.
|
|
|
|
rpc ListChainLocalOverrides(ListChainLocalOverridesRequest)
|
|
|
|
returns (ListChainLocalOverridesResponse);
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Remove local access policy engine overrides stored in the node by chaind
|
|
|
|
// id.
|
|
|
|
rpc RemoveChainLocalOverride(RemoveChainLocalOverrideRequest)
|
|
|
|
returns (RemoveChainLocalOverrideResponse);
|
2023-12-27 11:37:22 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Remove local access policy engine overrides stored in the node by chaind
|
|
|
|
// id.
|
|
|
|
rpc RemoveChainLocalOverridesByTarget(
|
|
|
|
RemoveChainLocalOverridesByTargetRequest)
|
|
|
|
returns (RemoveChainLocalOverridesByTargetResponse);
|
2024-03-07 11:22:52 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// List targets of the local APE overrides stored in the node.
|
|
|
|
rpc ListTargetsLocalOverrides(ListTargetsLocalOverridesRequest)
|
|
|
|
returns (ListTargetsLocalOverridesResponse);
|
2024-01-26 14:10:26 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Flush objects from write-cache and move it to degraded read only mode.
|
|
|
|
rpc SealWriteCache(SealWriteCacheRequest) returns (SealWriteCacheResponse);
|
2024-01-30 14:09:23 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// DetachShards detaches and closes shards.
|
|
|
|
rpc DetachShards(DetachShardsRequest) returns (DetachShardsResponse);
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Health check request.
|
|
|
|
message HealthCheckRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Health check request body.
|
|
|
|
message Body {}
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of health check request message.
|
|
|
|
Body body = 1;
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Health check request.
|
|
|
|
message HealthCheckResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Health check response body
|
|
|
|
message Body {
|
|
|
|
// Status of the storage node in FrostFS network map.
|
|
|
|
NetmapStatus netmap_status = 1;
|
2021-01-15 10:18:03 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Health status of storage node application.
|
|
|
|
HealthStatus health_status = 2;
|
|
|
|
}
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of health check response message.
|
|
|
|
Body body = 1;
|
2021-01-13 12:47:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-01-13 12:47:54 +00:00
|
|
|
}
|
2021-01-14 16:06:49 +00:00
|
|
|
|
2021-01-15 11:51:15 +00:00
|
|
|
// Set netmap status request.
|
|
|
|
message SetNetmapStatusRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Set netmap status request body.
|
|
|
|
message Body {
|
|
|
|
// New storage node status in FrostFS network map.
|
|
|
|
// If status is MAINTENANCE, the node checks whether maintenance is
|
|
|
|
// allowed in the network settings. In case of prohibition, the request
|
|
|
|
// is denied. Otherwise, node switches to local maintenance state. To
|
|
|
|
// force local maintenance, use `force_maintenance` flag.
|
|
|
|
NetmapStatus status = 1;
|
2021-01-15 11:51:15 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// MAINTENANCE status validation skip flag. If set, node starts local
|
|
|
|
// maintenance regardless of network settings. The flag MUST NOT be
|
|
|
|
// set for any other status.
|
|
|
|
bool force_maintenance = 2;
|
|
|
|
}
|
2021-01-15 11:51:15 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of set netmap status request message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-01-15 11:51:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Set netmap status response.
|
|
|
|
message SetNetmapStatusResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Set netmap status response body
|
|
|
|
message Body {}
|
2021-01-15 11:51:15 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of set netmap status response message.
|
|
|
|
Body body = 1;
|
2021-01-15 11:51:15 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-01-15 11:51:15 +00:00
|
|
|
}
|
2021-02-21 07:20:04 +00:00
|
|
|
|
2024-06-20 13:03:58 +00:00
|
|
|
// Get netmap status request.
|
|
|
|
message GetNetmapStatusRequest {
|
|
|
|
message Body {}
|
|
|
|
|
|
|
|
// Body of set netmap status request message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get netmap status response.
|
|
|
|
message GetNetmapStatusResponse {
|
|
|
|
message Body {
|
|
|
|
// Storage node status in FrostFS network map.
|
|
|
|
NetmapStatus status = 1;
|
|
|
|
|
|
|
|
// Network map epoch.
|
|
|
|
uint64 epoch = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body of get netmap status response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
|
|
|
}
|
|
|
|
|
2021-02-21 07:20:04 +00:00
|
|
|
// Request to drop the objects.
|
|
|
|
message DropObjectsRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {
|
|
|
|
// List of object addresses to be removed.
|
|
|
|
// in FrostFS API binary format.
|
|
|
|
repeated bytes address_list = 1;
|
|
|
|
}
|
2021-02-21 07:20:04 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of the request message.
|
|
|
|
Body body = 1;
|
2021-02-21 07:20:04 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-02-21 07:20:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Response to request to drop the objects.
|
|
|
|
message DropObjectsResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {}
|
2021-02-21 07:20:04 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of the response message.
|
|
|
|
Body body = 1;
|
2021-02-21 07:20:04 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-02-21 07:20:04 +00:00
|
|
|
}
|
2021-12-17 12:27:36 +00:00
|
|
|
|
|
|
|
// Request to list all shards of the node.
|
|
|
|
message ListShardsRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {}
|
2021-12-17 12:27:36 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of the request message.
|
|
|
|
Body body = 1;
|
2021-12-17 12:27:36 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-12-17 12:27:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListShards response.
|
|
|
|
message ListShardsResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {
|
|
|
|
// List of the node's shards.
|
|
|
|
repeated ShardInfo shards = 1;
|
|
|
|
}
|
2021-12-17 12:27:36 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of the response message.
|
|
|
|
Body body = 1;
|
2021-12-17 12:27:36 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-12-17 12:27:36 +00:00
|
|
|
}
|
2021-12-27 15:28:34 +00:00
|
|
|
|
|
|
|
// Request to set mode of the shard.
|
|
|
|
message SetShardModeRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {
|
|
|
|
// ID of the shard.
|
|
|
|
repeated bytes shard_ID = 1;
|
2021-12-27 15:28:34 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Mode that requested to be set.
|
|
|
|
ShardMode mode = 2;
|
2022-01-31 15:15:33 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Flag signifying whether error counter should be set to 0.
|
|
|
|
bool resetErrorCounter = 3;
|
|
|
|
}
|
2021-12-27 15:28:34 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of set shard mode request message.
|
|
|
|
Body body = 1;
|
2021-12-27 15:28:34 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-12-27 15:28:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetShardMode response.
|
|
|
|
message SetShardModeResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {}
|
2021-12-27 15:28:34 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of set shard mode response message.
|
|
|
|
Body body = 1;
|
2021-12-27 15:28:34 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2021-12-27 15:28:34 +00:00
|
|
|
}
|
2022-01-24 10:13:37 +00:00
|
|
|
|
2022-05-16 16:31:50 +00:00
|
|
|
// SynchronizeTree request.
|
|
|
|
message SynchronizeTreeRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {
|
|
|
|
bytes container_id = 1;
|
|
|
|
string tree_id = 2;
|
|
|
|
// Starting height for the synchronization. Can be omitted.
|
|
|
|
uint64 height = 3;
|
|
|
|
}
|
2022-05-16 16:31:50 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of restore shard request message.
|
|
|
|
Body body = 1;
|
2022-05-16 16:31:50 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2022-05-16 16:31:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SynchronizeTree response.
|
|
|
|
message SynchronizeTreeResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {}
|
2022-05-16 16:31:50 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body of restore shard response message.
|
|
|
|
Body body = 1;
|
2022-05-16 16:31:50 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Body signature.
|
|
|
|
Signature signature = 2;
|
2022-05-16 16:31:50 +00:00
|
|
|
}
|
2022-09-13 10:28:08 +00:00
|
|
|
|
|
|
|
// EvacuateShard request.
|
|
|
|
message EvacuateShardRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {
|
|
|
|
// ID of the shard.
|
|
|
|
repeated bytes shard_ID = 1;
|
2022-09-13 10:28:08 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Flag indicating whether object read errors should be ignored.
|
|
|
|
bool ignore_errors = 2;
|
|
|
|
}
|
2022-09-13 10:28:08 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2022-09-13 10:28:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// EvacuateShard response.
|
|
|
|
message EvacuateShardResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body { uint32 count = 1; }
|
2022-09-13 10:28:08 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2022-09-13 10:28:08 +00:00
|
|
|
}
|
2022-09-21 10:51:51 +00:00
|
|
|
|
|
|
|
// FlushCache request.
|
|
|
|
message FlushCacheRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {
|
|
|
|
// ID of the shard.
|
|
|
|
repeated bytes shard_ID = 1;
|
|
|
|
// If true, then writecache will be left in read-only mode after flush
|
|
|
|
// completed.
|
|
|
|
bool seal = 2;
|
|
|
|
}
|
2022-09-21 10:51:51 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2022-09-21 10:51:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// FlushCache response.
|
|
|
|
message FlushCacheResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {}
|
2022-09-21 10:51:51 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2022-09-21 10:51:51 +00:00
|
|
|
}
|
2023-04-07 11:21:05 +00:00
|
|
|
|
|
|
|
// Doctor request.
|
|
|
|
message DoctorRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {
|
|
|
|
// Number of threads to use for the operation.
|
|
|
|
uint32 concurrency = 1;
|
|
|
|
// Flag to search engine for duplicate objects and leave only one copy.
|
|
|
|
bool remove_duplicates = 2;
|
|
|
|
}
|
2023-04-07 11:21:05 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-04-07 11:21:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Doctor response.
|
|
|
|
message DoctorResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {}
|
2023-04-07 11:21:05 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-04-07 11:21:05 +00:00
|
|
|
}
|
2023-05-02 15:40:54 +00:00
|
|
|
|
|
|
|
// StartShardEvacuation request.
|
|
|
|
message StartShardEvacuationRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {
|
|
|
|
enum Scope {
|
|
|
|
NONE = 0;
|
|
|
|
OBJECTS = 1;
|
|
|
|
TREES = 2;
|
2023-05-02 15:40:54 +00:00
|
|
|
}
|
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// IDs of the shards.
|
|
|
|
repeated bytes shard_ID = 1;
|
|
|
|
// Flag indicating whether object read errors should be ignored.
|
|
|
|
bool ignore_errors = 2;
|
|
|
|
// Evacuation scope.
|
|
|
|
uint32 scope = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-05-02 15:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// StartShardEvacuation response.
|
|
|
|
message StartShardEvacuationResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {}
|
2023-05-02 15:40:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-05-02 15:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetShardEvacuationStatus request.
|
|
|
|
message GetShardEvacuationStatusRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {}
|
2023-05-02 15:40:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-05-02 15:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetShardEvacuationStatus response.
|
|
|
|
message GetShardEvacuationStatusResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {
|
|
|
|
// Evacuate status enum.
|
|
|
|
enum Status {
|
|
|
|
EVACUATE_SHARD_STATUS_UNDEFINED = 0;
|
|
|
|
RUNNING = 1;
|
|
|
|
COMPLETED = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Unix timestamp value.
|
|
|
|
message UnixTimestamp { int64 value = 1; }
|
|
|
|
|
|
|
|
// Duration in seconds.
|
|
|
|
message Duration { int64 seconds = 1; }
|
|
|
|
|
|
|
|
// Total objects to evacuate count. The value is approximate, so evacuated +
|
|
|
|
// failed + skipped == total is not guaranteed after completion.
|
|
|
|
uint64 total_objects = 1;
|
|
|
|
// Evacuated objects count.
|
|
|
|
uint64 evacuated_objects = 2;
|
|
|
|
// Failed objects count.
|
|
|
|
uint64 failed_objects = 3;
|
|
|
|
|
|
|
|
// Shard IDs.
|
|
|
|
repeated bytes shard_ID = 4;
|
|
|
|
// Evacuation process status.
|
|
|
|
Status status = 5;
|
|
|
|
// Evacuation process duration.
|
|
|
|
Duration duration = 6;
|
|
|
|
// Evacuation process started at timestamp.
|
|
|
|
UnixTimestamp started_at = 7;
|
|
|
|
// Error message if evacuation failed.
|
|
|
|
string error_message = 8;
|
|
|
|
|
|
|
|
// Skipped objects count.
|
|
|
|
uint64 skipped_objects = 9;
|
|
|
|
|
|
|
|
// Total trees to evacuate count.
|
|
|
|
uint64 total_trees = 10;
|
|
|
|
// Evacuated trees count.
|
|
|
|
uint64 evacuated_trees = 11;
|
|
|
|
// Failed trees count.
|
|
|
|
uint64 failed_trees = 12;
|
|
|
|
}
|
|
|
|
|
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-05-02 15:40:54 +00:00
|
|
|
}
|
|
|
|
|
2024-03-12 15:57:38 +00:00
|
|
|
// ResetShardEvacuationStatus request.
|
|
|
|
message ResetShardEvacuationStatusRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {}
|
2024-03-12 15:57:38 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2024-03-12 15:57:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ResetShardEvacuationStatus response.
|
|
|
|
message ResetShardEvacuationStatusResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {}
|
2024-03-12 15:57:38 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2024-03-12 15:57:38 +00:00
|
|
|
}
|
|
|
|
|
2023-05-02 15:40:54 +00:00
|
|
|
// StopShardEvacuation request.
|
|
|
|
message StopShardEvacuationRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {}
|
2023-05-02 15:40:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-05-02 15:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// StopShardEvacuation response.
|
|
|
|
message StopShardEvacuationResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Response body structure.
|
|
|
|
message Body {}
|
2023-05-02 15:40:54 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-05-02 15:40:54 +00:00
|
|
|
}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
|
|
|
// AddChainLocalOverride request.
|
|
|
|
message AddChainLocalOverrideRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// Target for which the overrides are applied.
|
|
|
|
ChainTarget target = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Serialized rule chain. If chain ID is left empty
|
|
|
|
// in the chain, then it will be generated and returned
|
|
|
|
// in the response.
|
|
|
|
bytes chain = 2;
|
|
|
|
}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
Signature signature = 2;
|
2023-10-31 15:36:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// AddChainLocalOverride response.
|
|
|
|
message AddChainLocalOverrideResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// Chain ID assigned for the added rule chain.
|
|
|
|
// If chain ID is left empty in the request, then
|
|
|
|
// it will be generated.
|
|
|
|
bytes chain_id = 1;
|
|
|
|
}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2023-10-31 15:36:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetChainLocalOverride request.
|
|
|
|
message GetChainLocalOverrideRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// Target for which the overrides are applied.
|
|
|
|
ChainTarget target = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Chain ID assigned for the added rule chain.
|
|
|
|
bytes chain_id = 2;
|
|
|
|
}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2023-10-31 15:36:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetChainLocalOverride response.
|
|
|
|
message GetChainLocalOverrideResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// Serialized rule chain.
|
|
|
|
bytes chain = 1;
|
|
|
|
}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2023-10-31 15:36:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListChainLocalOverrides request.
|
|
|
|
message ListChainLocalOverridesRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// Target for which the overrides are applied.
|
|
|
|
ChainTarget target = 1;
|
|
|
|
}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2023-10-31 15:36:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListChainLocalOverrides response.
|
|
|
|
message ListChainLocalOverridesResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// The list of serialized rule chain.
|
|
|
|
repeated bytes chains = 1;
|
|
|
|
}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2023-10-31 15:36:42 +00:00
|
|
|
}
|
|
|
|
|
2024-01-26 14:10:26 +00:00
|
|
|
// ListTargetsLocalOverrides request.
|
|
|
|
message ListTargetsLocalOverridesRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// Target for which the overrides are applied.
|
|
|
|
string chainName = 1;
|
|
|
|
}
|
2024-01-26 14:10:26 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2024-01-26 14:10:26 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2024-01-26 14:10:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// ListTargetsLocalOverrides response.
|
|
|
|
message ListTargetsLocalOverridesResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// The list of chain targets.
|
|
|
|
repeated ChainTarget targets = 1;
|
|
|
|
}
|
2024-01-26 14:10:26 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2024-01-26 14:10:26 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2024-01-26 14:10:26 +00:00
|
|
|
}
|
|
|
|
|
2023-10-31 15:36:42 +00:00
|
|
|
message RemoveChainLocalOverrideRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// Target for which the overrides are applied.
|
|
|
|
ChainTarget target = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Chain ID assigned for the added rule chain.
|
|
|
|
bytes chain_id = 2;
|
|
|
|
}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2023-10-31 15:36:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveChainLocalOverrideResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {}
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2023-10-31 15:36:42 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2023-10-31 15:36:42 +00:00
|
|
|
}
|
2023-12-27 11:37:22 +00:00
|
|
|
|
2024-03-07 11:22:52 +00:00
|
|
|
message RemoveChainLocalOverridesByTargetRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
// Target for which the overrides are applied.
|
|
|
|
ChainTarget target = 1;
|
|
|
|
}
|
2024-03-07 11:22:52 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2024-03-07 11:22:52 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2024-03-07 11:22:52 +00:00
|
|
|
}
|
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
message RemoveChainLocalOverridesByTargetResponse {
|
|
|
|
message Body {}
|
2024-03-07 11:22:52 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2024-03-07 11:22:52 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2024-03-07 11:22:52 +00:00
|
|
|
}
|
|
|
|
|
2023-12-27 11:37:22 +00:00
|
|
|
message SealWriteCacheRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
// Request body structure.
|
|
|
|
message Body {
|
|
|
|
// ID of the shard.
|
|
|
|
repeated bytes shard_ID = 1;
|
2023-12-27 11:37:22 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
// Flag indicating whether object read errors should be ignored.
|
|
|
|
bool ignore_errors = 2;
|
2024-08-06 10:20:33 +00:00
|
|
|
|
2024-07-31 13:30:07 +00:00
|
|
|
// Flag indicating whether writecache will be sealed async.
|
|
|
|
bool async = 3;
|
|
|
|
|
2024-08-06 10:20:33 +00:00
|
|
|
// If true, then writecache will be sealed, but mode will be restored to the current one.
|
|
|
|
bool restore_mode = 4;
|
2024-08-06 12:45:53 +00:00
|
|
|
|
|
|
|
// If true, then writecache will shrink internal storage.
|
|
|
|
bool shrink = 5;
|
2024-04-11 14:01:19 +00:00
|
|
|
}
|
2023-12-27 11:37:22 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2023-12-27 11:37:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SealWriteCacheResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {
|
|
|
|
message Status {
|
|
|
|
bytes shard_ID = 1;
|
|
|
|
bool success = 2;
|
|
|
|
string error = 3;
|
2023-12-27 11:37:22 +00:00
|
|
|
}
|
2024-04-11 14:01:19 +00:00
|
|
|
repeated Status results = 1;
|
|
|
|
}
|
2023-12-27 11:37:22 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2023-12-27 11:37:22 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2024-01-26 14:10:26 +00:00
|
|
|
}
|
2024-01-30 14:09:23 +00:00
|
|
|
|
|
|
|
message DetachShardsRequest {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body { repeated bytes shard_ID = 1; }
|
2024-01-30 14:09:23 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
|
|
|
Signature signature = 2;
|
2024-01-30 14:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DetachShardsResponse {
|
2024-04-11 14:01:19 +00:00
|
|
|
message Body {}
|
2024-01-30 14:09:23 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Body body = 1;
|
2024-01-30 14:09:23 +00:00
|
|
|
|
2024-04-11 14:01:19 +00:00
|
|
|
Signature signature = 2;
|
2024-01-30 14:09:23 +00:00
|
|
|
}
|