Repository navigation
[rack-setup] Lower the per-sled minimum U.2 count to 1 - #11153
Merged
Merged
Conversation
RSS refuses to include a sled in the service plan until it reports at least MINIMUM_U2_COUNT U.2 disks, retrying inventory collection indefinitely below that threshold. The value of 3 dates back to when RSS provisioned Crucible datasets itself and needed enough zpools for a 3-way replicated region set. That responsibility moved to Nexus long ago, and disks that appear after rack setup are adopted by the physical_disk_adoption background task and the reconfigurator planner. Lower the threshold to 1 so that compute-heavy sleds carrying a single U.2 can be part of rack setup. The floor stays at 1 rather than 0 because every sled in the plan hosts an NTP zone whose filesystem must be placed on one of the sled's U.2 pools. This is safe for plan generation on racks with at least COCKROACHDB_REDUNDANCY (5) sleds: each dataset kind is striped across consecutive positions of a cycle over all sleds, so no sled receives two same-kind datasets (which would require two distinct pools) unless a kind's redundancy count exceeds the sled count. Also extracts the disk-count check into a testable function and adds plan generation tests covering single-U.2 and mixed-U.2 racks.
Two positional integer arguments were easy to confuse at call sites; name them instead.
hawkw
approved these changes
Aug 25, 2026
hawkw
left a comment
Member
There was a problem hiding this comment.
This looks good, and i like that the tests are now documenting some of the expected properties. Suggested a couple docs edits, a your discretion.
iliana
pushed a commit
that referenced
this pull request
Aug 27, 2026
iliana
pushed a commit
that referenced
this pull request
Aug 27, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RSS refused to include a sled in the service plan until it reports at least
MINIMUM_U2_COUNTU.2 disks in inventory, retrying indefinitely below that threshold ("Awaiting disks"). This blocks deployments that want compute-heavy sleds carrying a smaller number of U.22.The value of 3 dates back to December 2022 (#1954, as
MINIMUM_ZPOOL_COUNT), when RSS provisioned Crucible datasets itself and needed enough zpools for a 3-way replicated region set. Furthermore, at that time, disks could not be adopted after RSS. This has since been fixed with automated disk adoption.This PR lowers the threshold of "minimum U.2s during RSS" to 1. The floor stays at 1 rather than 0 because every sled in the plan hosts an NTP zone whose filesystem must be placed on one of the sled's U.2 pools, so a zero-U.2 sled would fail plan generation regardless.
The disk-count check is also extracted from the inventory retry closure into a standalone function so it can be tested directly.