Ceph change pg number

asked 2016-04-04 20:39:39 -0500

senyapsudah gravatar image

hi guys,

quick question. currently i have my pool pg number being set as 128. i would like to know, what will happen when i change the pg number to 512. i understand it will start rebalance the storage rite. will it affect the performance of the ceph server.?


edit retag flag offensive close merge delete


Generally: yes. But it depends a lot on your cluster (size, journal setup, rebalancing/backfilling tunings and so on).

haukebruno gravatar imagehaukebruno ( 2016-04-05 01:16:12 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-05 05:18:27 -0500


Literally copying from Ceph documentation: http://docs.ceph.com/docs/master/rados/operations/placement-groups/#choosing-the-number-of-placement-groups

For instance a cluster of 10 pools each with 512 placement groups on ten OSDs is a total of 5,120 placement groups spread over ten OSDs, that is 512 placement groups per OSD. That does not use too many resources. However, if 1,000 pools were created with 512 placement groups each, the OSDs will handle ~50,000 placement groups each and it would require significantly more resources and time for peering.

So, answering your question, yes, it will "downgrade" your cluster performance in order to peer these PGs over your current OSD. When you add a new OSD, PGs need to be peering again through cluster OSDs consuming more resources that being with less PG.


edit flag offensive delete link more


hi Eduardo,

thanks for the info.

senyapsudah gravatar imagesenyapsudah ( 2016-04-07 06:05:28 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-04-04 20:39:39 -0500

Seen: 764 times

Last updated: Apr 05 '16