* Increasing number of PGs
@ 2012-07-28 9:53 Vladimir Bashkirtsev
0 siblings, 0 replies; 4+ messages in thread
From: Vladimir Bashkirtsev @ 2012-07-28 9:53 UTC (permalink / raw)
To: ceph-devel
Hello,
I am working on optimization of ceph performance: CPU load vs OSD data
load. Right now I have 576 PGs in total. Three pools: metadata, data,
rbd. Each pool has 192 PGs. data is not used heavily, rbd is in heavy
use. In total 6 OSDs in cluster. I have read recommendation about 100
PGs per OSD. Roughly I do have 100 PGs per OSD. But now it seems that
PGs in data pool are mostly empty while PGs in rbd pool are quite busy.
Would it make sense to increase number of PGs to be 100 per rbd pool per
OSD? Technically it should take some memory and CPU but because other
two pools are virtually stand still it should not make big difference
while improving data placement on OSDs (which is currently somewhat skewed).
So here two questions:
1. Should I increase number of PGs in rbd pool or better leave it where
it is?
2. Wiki says that increase in PGs is not tested and only should be
attempted on empty pool. Date on Wiki is quite old. Is this still an
issue? Is it safe to increase PGs number on 0.49 on pool in use?
Regards,
Vladimir
^ permalink raw reply [flat|nested] 4+ messages in thread
* Increasing number of PGs
@ 2012-07-28 9:59 Vladimir Bashkirtsev
2012-07-30 16:16 ` Josh Durgin
0 siblings, 1 reply; 4+ messages in thread
From: Vladimir Bashkirtsev @ 2012-07-28 9:59 UTC (permalink / raw)
To: ceph-devel
Hello,
I am working on optimization of ceph performance: CPU load vs OSD data
load. Right now I have 576 PGs in total. Three pools: metadata, data,
rbd. Each pool has 192 PGs. data is not used heavily, rbd is in heavy
use. In total 6 OSDs in cluster. I have read recommendation about 100
PGs per OSD. Roughly I do have 100 PGs per OSD. But now it seems that
PGs in data pool are mostly empty while PGs in rbd pool are quite busy.
Would it make sense to increase number of PGs to be 100 per rbd pool per
OSD? Technically it should take some memory and CPU but because other
two pools are virtually stand still it should not make big difference
while improving data placement on OSDs (which is currently somewhat skewed).
So here two questions:
1. Should I increase number of PGs in rbd pool or better leave it where
it is?
2. Wiki says that increase in PGs is not tested and only should be
attempted on empty pool. Date on Wiki is quite old. Is this still an
issue? Is it safe to increase PGs number on 0.49 on pool in use?
Regards,
Vladimir
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Increasing number of PGs
2012-07-28 9:59 Increasing number of PGs Vladimir Bashkirtsev
@ 2012-07-30 16:16 ` Josh Durgin
2012-07-30 17:45 ` Vladimir Bashkirtsev
0 siblings, 1 reply; 4+ messages in thread
From: Josh Durgin @ 2012-07-30 16:16 UTC (permalink / raw)
To: Vladimir Bashkirtsev; +Cc: ceph-devel
On 07/28/2012 02:59 AM, Vladimir Bashkirtsev wrote:
> Hello,
>
> I am working on optimization of ceph performance: CPU load vs OSD data
> load. Right now I have 576 PGs in total. Three pools: metadata, data,
> rbd. Each pool has 192 PGs. data is not used heavily, rbd is in heavy
> use. In total 6 OSDs in cluster. I have read recommendation about 100
> PGs per OSD. Roughly I do have 100 PGs per OSD. But now it seems that
> PGs in data pool are mostly empty while PGs in rbd pool are quite busy.
> Would it make sense to increase number of PGs to be 100 per rbd pool per
> OSD? Technically it should take some memory and CPU but because other
> two pools are virtually stand still it should not make big difference
> while improving data placement on OSDs (which is currently somewhat
> skewed).
If you're not using them, you can delete the data and metadata pools.
You can always recreate them later, or use different pools for cephfs.
> So here two questions:
>
> 1. Should I increase number of PGs in rbd pool or better leave it where
> it is?
It would be better to increase it from a data balancing point of view,
but it's not clear that it would help performance.
> 2. Wiki says that increase in PGs is not tested and only should be
> attempted on empty pool. Date on Wiki is quite old. Is this still an
> issue? Is it safe to increase PGs number on 0.49 on pool in use?
Right now the number of pgs in a pool can't be increased. This should
be possible in a couple months. If you can stop I/O to the current pool,
you can create a new one with more pgs, copy all the data to it, delete
the original and rename the new one.
Josh
> Regards,
> Vladimir
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Increasing number of PGs
2012-07-30 16:16 ` Josh Durgin
@ 2012-07-30 17:45 ` Vladimir Bashkirtsev
0 siblings, 0 replies; 4+ messages in thread
From: Vladimir Bashkirtsev @ 2012-07-30 17:45 UTC (permalink / raw)
To: Josh Durgin; +Cc: ceph-devel
On 31/07/12 01:46, Josh Durgin wrote:
>
>> So here two questions:
>>
>> 1. Should I increase number of PGs in rbd pool or better leave it where
>> it is?
>
> It would be better to increase it from a data balancing point of view,
> but it's not clear that it would help performance.
I would care about data balancing first - as I said it is currently
skewed a bit. Performance wise perhaps it will take a bit more
CPU/memory to process but not to the extent where it will affect
performance.
>
>> 2. Wiki says that increase in PGs is not tested and only should be
>> attempted on empty pool. Date on Wiki is quite old. Is this still an
>> issue? Is it safe to increase PGs number on 0.49 on pool in use?
>
> Right now the number of pgs in a pool can't be increased. This should
> be possible in a couple months. If you can stop I/O to the current pool,
> you can create a new one with more pgs, copy all the data to it, delete
> the original and rename the new one.
Then I am stuck with current number of PGs: pool is in heavy use and
there virtually no chance to increase PGs number offline. Will wait for
a version which will make it possible.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-30 17:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-28 9:59 Increasing number of PGs Vladimir Bashkirtsev
2012-07-30 16:16 ` Josh Durgin
2012-07-30 17:45 ` Vladimir Bashkirtsev
-- strict thread matches above, loose matches on Subject: below --
2012-07-28 9:53 Vladimir Bashkirtsev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.