Skip to content

Commit

Permalink
add mpp CleanupBeforeScaleIn grpc
Browse files Browse the repository at this point in the history
Signed-off-by: guo-shaoge <[email protected]>
  • Loading branch information
guo-shaoge committed Nov 29, 2023
1 parent ecf635d commit e7feeac
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions proto/mpp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ message IsAliveResponse {
int64 mpp_version = 2;
}

message CleanupBeforeScaleInRequest {
}

message CleanupBeforeScaleInResponse {
bool cleanup_succ = 1;
}

// Dipsatch the task request to different tiflash servers.
message DispatchTaskRequest {
TaskMeta meta = 1;
Expand Down
2 changes: 2 additions & 0 deletions proto/tikvpb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ service Tikv {
rpc FetchDisaggPages(disaggregated.FetchDisaggPagesRequest) returns (stream disaggregated.PagesPacket) {}
/// Compute node get configuration from Write node
rpc GetDisaggConfig(disaggregated.GetDisaggConfigRequest) returns (disaggregated.GetDisaggConfigResponse) {}
/// Cleanup resource before AutoScaler scale in Compute Node.
rpc CleanupBeforeScaleIn(mpp.CleanupBeforeScaleInRequest) returns (mpp.CleanupBeforeScaleInResponse) {}
}

message BatchCommandsRequest {
Expand Down
18 changes: 18 additions & 0 deletions scripts/proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12268,6 +12268,19 @@
}
]
},
{
"name": "CleanupBeforeScaleInRequest"
},
{
"name": "CleanupBeforeScaleInResponse",
"fields": [
{
"id": 1,
"name": "cleanup_succ",
"type": "bool"
}
]
},
{
"name": "DispatchTaskRequest",
"fields": [
Expand Down Expand Up @@ -20197,6 +20210,11 @@
"name": "GetDisaggConfig",
"in_type": "disaggregated.GetDisaggConfigRequest",
"out_type": "disaggregated.GetDisaggConfigResponse"
},
{
"name": "CleanupBeforeScaleIn",
"in_type": "mpp.CleanupBeforeScaleInRequest",
"out_type": "mpp.CleanupBeforeScaleInResponse"
}
]
}
Expand Down

0 comments on commit e7feeac

Please sign in to comment.