-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Add gpshrink to support elastic scaling
In order to support gpshrink, similar to gpexpand, we first support "alter table <tablename> shrink table to <segnum>" to redistribute data on a specific number of segments. For gpshrink implementation, it is mainly divided into two stages similar to gpexpand: 1. Collect the tables that need to be shrink and write them into gpshrink.status_detail. 2. Perform data redistribution on the tables that need to be shrink, and delete specific segments in gp_segment_configuration.
- Loading branch information
1 parent
f8a6bf8
commit 9aa6272
Showing
17 changed files
with
3,613 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.