-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account for region snapshots during allocation (#5901)
When replacing a snapshot (aka a read-only downstairs somewhere), region allocation must occur for a snapshot volume. A snapshot volume's region set is currently only composed of read-only downstairs which all contain the same data, and any newly allocated region should take those into account when looking to meet the redundancy criteria for a region set: in production, allocate the new region to a distinct sled. This is done by slightly changing the region allocation query to accept an optional snapshot id, and, if that is supplied, will add the region snapshot's pools to the `existing_zpools` temporary table in order to prevent region allocation there.
- Loading branch information
Showing
11 changed files
with
1,060 additions
and
84 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
Oops, something went wrong.