Ask Your Question
0

Ceph change pg number

asked 2016-04-04 20:39:39 -0600

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.?

thanks.

edit retag flag offensive close merge delete

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

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

Hi,

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.

Regards

edit flag offensive delete link more

Comments

hi Eduardo,

thanks for the info.

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-04 20:39:39 -0600

Seen: 516 times

Last updated: Apr 05 '16