Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mon/OSDMonitor: implement mon_max_pool_pg_num_per_osd limit
Prevent pg_num from being set to too many pgs relative to the number of OSDs. Take the pool size (replication factor or ec k+m) into consideration. Default to the recommended value (~100 pgs/osd). If the user really wants more, they can change the configurable limit. Implement safety check for both pool creation and pg_num changes. Signed-off-by: Sage Weil <sage@redhat.com>
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 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