Project

General

Profile

Documentation #41004

doc: pg_num should always be a power of two

Added by Kai Wagner over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Tags:
Backport:
nautilus
Reviewed:
Affected Versions:
Pull request ID:

Description

Hi,

I updated the pg_num section in the docs just a little to be more strict.
I think we should make it crystal clear that pg num should be a power of two and only if there's a real good reason and someone knows exactly why they need a different value they can proceed.

I think this is the first step of several to make this clearer to the end user. Next step would be to show a Health WARN and also to flag the pool creation red in the dashboard if someone would like to add a pool and the pg count isn't a power of two.

Why do I would like to be more strict about it? We've seen more and more clusters were the osd variation was really high. The fix to that was always to set the pg_num + balancer. Also the pg autoscaler only uses power of two so we shouldn't even encourage people to use something different right from the beginning or to phrase i differently, we should protect the end-user right away.


Related issues

Related to Dashboard - Feature #40983: mgr/dashboard: Warn when setting pg_num to not-a-power-of-two Rejected
Copied to RADOS - Backport #41568: nautilus: doc: pg_num should always be a power of two Resolved

History

#2 Updated by Sebastian Wagner over 4 years ago

  • Related to Feature #40983: mgr/dashboard: Warn when setting pg_num to not-a-power-of-two added

#3 Updated by Sebastian Wagner over 4 years ago

  • Project changed from Ceph to RADOS
  • Category deleted (documentation)
  • Status changed from New to In Progress
  • Pull request ID set to 29364

#4 Updated by Neha Ojha over 4 years ago

  • Status changed from In Progress to Pending Backport

#5 Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #41568: nautilus: doc: pg_num should always be a power of two added

#6 Updated by Nathan Cutler over 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved".

Also available in: Atom PDF