Skip to contentSkip to conversation

Questions about journals, performance and disk utilization.

DISCUSSION martin 6 participants 12 messages Jan 22, 2013 – Jan 23, 2013

lore
Share & tools
lore

martin

author
#0 lore raw

Hi list,

In a mixed SSD & SATA setup (5 or 8 nodes each holding 8x SATA and 4x SSD) would it make sense to skip having journals on SSD or is the advantage of doing so just too great? We're looking into having 2 pools, sata and ssd and will be creating guests belonging into either of these groups based on if they require high/heavy io.

Also, we currently lean on going with a very simple setup using a serverboard with 8x onboard raid slots (LSI 2308) and 6x onboard sata slots and just attach all disks to both onboard controller and onboard slots (for cost and simplicity) - and just pass them along as JBOD.

Any suggestions/input about:
- Would it make sense to drop onboard controller and aim for a better controller (cache/battery backed 12-16 port one)
- Attach another cheapo JBOD card like SAS2008/LSI 2308 etc.
- or just go with this setup (to keep it simpler and cheaper)

Journals:
- Would it make sense to kill say 1 ssd and 1 sata and attach 2 fast SSD for journals? Or would that be 'redundant' in our case since we already have a pool with sata and ssd (we do not expect heavy io in the sata pool)

Rbd striping:
- Performance - afaik rbd is striped over objects; if one would create say a 20GB rbd image would this mostly be striped over very few objects/pg (say ~3 nodes as would be min. in our setup) or would one expect it to be striped over pretty much the entirety of the nodes (5 or 8 in our case) in smaller objects (or even across all OSD?)

Disks:
- Any advice for SATA disks? I know a vendor like Seagate have their 'normal' enterprise disks (ES.3-models) and are also selling their cloud-based disks (CS models). Any suggestions/experience what to look at/aim at? Or what are people using in general?

Disk utilization:
- I've noticed in our testsetup that we have several pg's taking up >300GB data each - is this normal? This results in some odd situations where disk usage can vary by up to 15-20% (2TB disks). If we adjust the weight it eventually means one of these pg will go to another disk and it has to copy 300GB data. We're using 0.56.1.

Some output from 'ceph pg dump':

pg_stat objects mip     degr    unf     bytes   log     disklog state   state_stamp     v       reported        up      acting  last_scrub      scrub_stamp     last_deep_scrub deep_scrub_stamp
4.5     90772   0       0       0       379301388412    150969  150969  active+clean    2013-01-22 00:07:13.384272      2827'412414     2795'3317565    [1,2]   [1,2]   2827'397587     2013-01-22 00:07:13.384225      2744'299767     2013-01-17 05:40:40.737279

Results in disk usage like:

Filesystem                                              Size  Used Avail Use% Mounted on
/dev/sdd1                                               1.9T  1.4T  446G  77% /srv/ceph/osd5
/dev/sdb1                                               1.4T  1.1T  331G  77% /srv/ceph/osd0
/dev/sda1                                               1.9T  1.4T  442G  77% /srv/ceph/osd1
/dev/sdc1                                               1.9T  1.8T   84G  96% /srv/ceph/osd2

If we reweight sdc down (even with 0.00X % at a time) one of those big pg's will eventually move to any one of the above disks and the image will look exactly the same with the exception another disk will have 96% usage instead (I've bumped cluster full % to 98% in this setup).

Apologies up front if questions like these are not supposed to go to this mailling-list.

Any advice/ideas/suggestions are very welcome!

Cheers,
Martin Nielsen

#1 lore raw
Quoted 13 lines · martin

Hi list,

In a mixed SSD & SATA setup (5 or 8 nodes each holding 8x SATA and 4x SSD) would it make sense to skip having journals on SSD or is the advantage of doing so just too great? We're looking into having 2 pools, sata and ssd and will be creating guests belonging into either of these groups based on if they require high/heavy io.

Also, we currently lean on going with a very simple setup using a serverboard with 8x onboard raid slots (LSI 2308) and 6x onboard sata slots and just attach all disks to both onboard controller and onboard slots (for cost and simplicity) - and just pass them along as JBOD.

Quoted 5 lines

Any suggestions/input about:
- Would it make sense to drop onboard controller and aim for a better controller (cache/battery backed 12-16 port one)
- Attach another cheapo JBOD card like SAS2008/LSI 2308 etc.
- or just go with this setup (to keep it simpler and cheaper)

You may be interested in reading some of our past performance articles:

http://ceph.com/community/ceph-performance-part-1-disk-controller-write-throughput/
http://ceph.com/community/ceph-performance-part-2-write-throughput-without-ssd-journals/
http://ceph.com/uncategorized/argonaut-vs-bobtail-performance-preview/

We didn't test the on-board controller on the supermicro MB, but those will at least give you some idea of what different controllers can do with and without SSDs.

Quoted 13 lines

Journals:
- Would it make sense to kill say 1 ssd and 1 sata and attach 2 fast SSD for journals? Or would that be 'redundant' in our case since we already have a pool with sata and ssd (we do not expect heavy io in the sata pool)

Rbd striping:
- Performance - afaik rbd is striped over objects; if one would create say a 20GB rbd image would this mostly be striped over very few objects/pg (say ~3 nodes as would be min. in our setup) or would one expect it to be striped over pretty much the entirety of the nodes (5 or 8 in our case) in smaller objects (or even across all OSD?)

Quoted 6 lines

Disks:
- Any advice for SATA disks? I know a vendor like Seagate have their 'normal' enterprise disks (ES.3-models) and are also selling their cloud-based disks (CS models). Any suggestions/experience what to look at/aim at? Or what are people using in general?

I've been using 1TB Seagate Constellation Enterprise SATA drives for testing and have had mostly good luck (1 or 2 duds out of 36) with no failures. Long term experience for me is that all vendors seem to have bad batches here and there.

Quoted 28 lines

Disk utilization:
- I've noticed in our testsetup that we have several pg's taking up

Quoted 1 line

300GB data each - is this normal? This results in some odd situations

where disk usage can vary by up to 15-20% (2TB disks). If we adjust the weight it eventually means one of these pg will go to another disk and it has to copy 300GB data. We're using 0.56.1.

Some output from 'ceph pg dump':

pg_stat objects mip     degr    unf     bytes   log     disklog state
state_stamp     v       reported        up      acting  last_scrub
scrub_stamp     last_deep_scrub deep_scrub_stamp
4.5     90772   0       0       0       379301388412    150969  150969
active+clean    2013-01-22 00:07:13.384272      2827'412414
2795'3317565    [1,2]   [1,2]   2827'397587     2013-01-22

00:07:13.384225 2744'299767 2013-01-17 05:40:40.737279

Results in disk usage like:
Filesystem Size Used Avail
Use% Mounted on
/dev/sdd1 1.9T 1.4T 446G
77% /srv/ceph/osd5
/dev/sdb1 1.4T 1.1T 331G
77% /srv/ceph/osd0
/dev/sda1 1.9T 1.4T 442G
77% /srv/ceph/osd1
/dev/sdc1 1.9T 1.8T 84G
96% /srv/ceph/osd2

Quoted 5 lines

If we reweight sdc down (even with 0.00X % at a time) one of those big pg's will eventually move to any one of the above disks and the image will look exactly the same with the exception another disk will have 96% usage instead (I've bumped cluster full % to 98% in this setup).

It may (or may not) help to use a power-of-2 number of PGs. It's generally a good idea to do this anyway, so if you haven't set up your production cluster yet, you may want to play around with this. Basically just take whatever number you were planning on using and round it up (or down slightly). IE if you were going to use 7,000 PGs, round up to 8192.

Mark

Quoted 11 lines

Apologies up front if questions like these are not supposed to go to this mailling-list.

Any advice/ideas/suggestions are very welcome!

Cheers,
Martin Nielsen
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 5 lines · Mark Nelson

It may (or may not) help to use a power-of-2 number of PGs. It's generally a good idea to do this anyway, so if you haven't set up your production cluster yet, you may want to play around with this. Basically just take whatever number you were planning on using and round it up (or down slightly). IE if you were going to use 7,000 PGs, round up to 8192.

As I was asking about earlier on IRC, I'm in a situation where the docs did not mention this in the section about calculating PGs so I have a non-power-of-2 -- and since there are some production things running on that pool I can't currently change it.

If indeed that makes a difference, here's one vote for a resilvering mechanism :-)

Alternately, if I stand up a second pool, is there any easy way to (offline) migrate an RBD from one to the other? (Knowing that this means I'd have to update state with anything using it, after.) The only thing I know of right now is to make a second RBD, map both to a client, and dd.

Thanks,
Jeff

#3 lore raw

Hi,
Am 22.01.2013 22:26, schrieb Jeff Mitchell:

Quoted 11 lines
Quoted 5 lines · Mark Nelson

It may (or may not) help to use a power-of-2 number of PGs. It's generally a good idea to do this anyway, so if you haven't set up your production cluster yet, you may want to play around with this. Basically just take whatever number you were planning on using and round it up (or down slightly). IE if you were going to use 7,000 PGs, round up to 8192.

As I was asking about earlier on IRC, I'm in a situation where the docs did not mention this in the section about calculating PGs so I have a non-power-of-2 -- and since there are some production things running on that pool I can't currently change it.

Oh same thing here - did i miss the doc or can someone point me the location.

Is there a chance to change the number of PGs for a pool?

Greets,
Stefan

#4 lore raw
Quoted 9 lines · Stefan Priebe

Hi,
Am 22.01.2013 22:26, schrieb Jeff Mitchell:

Quoted 7 lines
Quoted 5 lines · Mark Nelson

It may (or may not) help to use a power-of-2 number of PGs. It's generally a good idea to do this anyway, so if you haven't set up your production cluster yet, you may want to play around with this. Basically just take whatever number you were planning on using and round it up (or down slightly). IE if you were going to use 7,000 PGs, round up to 8192.

Quoted 6 lines
Quoted 4 lines

As I was asking about earlier on IRC, I'm in a situation where the docs did not mention this in the section about calculating PGs so I have a non-power-of-2 -- and since there are some production things running on that pool I can't currently change it.

Oh same thing here - did i miss the doc or can someone point me the location.

Here you go: http://ceph.com/docs/master/rados/operations/placement-groups/

(Notice the lack of any power-of-2 mention :-) )

--Jeff

#6 lore raw
In reply to Stefan Priebe
Quoted 14 lines · Stefan Priebe

Hi,
Am 22.01.2013 22:26, schrieb Jeff Mitchell:

Quoted 11 lines
Quoted 5 lines · Mark Nelson

It may (or may not) help to use a power-of-2 number of PGs. It's generally a good idea to do this anyway, so if you haven't set up your production cluster yet, you may want to play around with this. Basically just take whatever number you were planning on using and round it up (or down slightly). IE if you were going to use 7,000 PGs, round up to 8192.

As I was asking about earlier on IRC, I'm in a situation where the docs did not mention this in the section about calculating PGs so I have a non-power-of-2 -- and since there are some production things running on that pool I can't currently change it.

Quoted 7 lines

Oh same thing here - did i miss the doc or can someone point me the location.

Is there a chance to change the number of PGs for a pool?

Greets,
Stefan

Honestly I don't know if it will actually have a significant effect. ceph_stable_mod will map things optimally when pg_num is a power of 2, but that's only part of how things work. It may not matter very much with high PG counts.

Mark

#7 lore raw
Quoted 18 lines · Mark Nelson
Quoted 17 lines · Stefan Priebe

Hi,
Am 22.01.2013 22:26, schrieb Jeff Mitchell:

Quoted 11 lines
Quoted 5 lines · Mark Nelson

It may (or may not) help to use a power-of-2 number of PGs. It's generally a good idea to do this anyway, so if you haven't set up your production cluster yet, you may want to play around with this. Basically just take whatever number you were planning on using and round it up (or down slightly). IE if you were going to use 7,000 PGs, round up to 8192.

As I was asking about earlier on IRC, I'm in a situation where the docs did not mention this in the section about calculating PGs so I have a non-power-of-2 -- and since there are some production things running on that pool I can't currently change it.

Oh same thing here - did i miss the doc or can someone point me the location.

Quoted 6 lines
Quoted 4 lines

Is there a chance to change the number of PGs for a pool?

Greets,
Stefan

Honestly I don't know if it will actually have a significant effect. ceph_stable_mod will map things optimally when pg_num is a power of 2, but that's only part of how things work. It may not matter very much with high PG counts.

Yeah, that's why I said *if* it matters, once someone runs suitable benchmarks, please provide a resilvering mechanism :-)

I'd be interested in figuring out the right way to migrate an RBD from one pool to another regardless.

--Jeff

#8 lore raw
Quoted 2 lines · Jeff Mitchell

I'd be interested in figuring out the right way to migrate an RBD from one pool to another regardless.

Each way involves copying data, since by definition a different pool will use different placement groups.

You could export/import with the rbd tool, do a manual dd like you mentioned, or clone and then flatten in the new pool. The simplest is probably 'rbd cp pool1/image pool2/image'.

Josh

#9 lore raw
Quoted 6 lines · Josh Durgin
Quoted 3 lines · Jeff Mitchell

I'd be interested in figuring out the right way to migrate an RBD from one pool to another regardless.

Quoted 6 lines

Each way involves copying data, since by definition a different pool will use different placement groups.

You could export/import with the rbd tool, do a manual dd like you mentioned, or clone and then flatten in the new pool. The simplest is probably 'rbd cp pool1/image pool2/image'.

Awesome -- I didn't know about 'rbd cp', and I'll have to look into cloning/flattening. Thanks for the info.

--Jeff

#10 lore raw
In reply to Mark Nelson
Quoted 29 lines · Mark Nelson
Quoted 18 lines · Stefan Priebe

Hi,
Am 22.01.2013 22:26, schrieb Jeff Mitchell:

Quoted 9 lines
Quoted 5 lines · Mark Nelson

It may (or may not) help to use a power-of-2 number of PGs. It's generally a good idea to do this anyway, so if you haven't set up your production cluster yet, you may want to play around with this. Basically just take whatever number you were planning on using and round it up (or down slightly). IE if you were going to use 7,000 PGs, round up to 8192.

Quoted 4 lines

As I was asking about earlier on IRC, I'm in a situation where the docs did not mention this in the section about calculating PGs so I have a non-power-of-2 -- and since there are some production things running on that pool I can't currently change it.

Quoted 7 lines

Oh same thing here - did i miss the doc or can someone point me the location.

Is there a chance to change the number of PGs for a pool?

Greets,
Stefan

Quoted 4 lines

Honestly I don't know if it will actually have a significant effect. ceph_stable_mod will map things optimally when pg_num is a power of 2, but that's only part of how things work. It may not matter very much with high PG counts.

IIRC, having a non-power of 2 count means that the extra PGs (above the lower-bounding power of 2) will be twice the size of the other PGs. For reasonable PG counts this should not cause any problems. -Greg

#11 lore raw
Quoted 30 lines · Gregory Farnum
Quoted 29 lines · Mark Nelson
Quoted 25 lines · Stefan Priebe

Hi,
Am 22.01.2013 22:26, schrieb Jeff Mitchell:

Quoted 9 lines
Quoted 5 lines · Mark Nelson

It may (or may not) help to use a power-of-2 number of PGs. It's generally a good idea to do this anyway, so if you haven't set up your production cluster yet, you may want to play around with this. Basically just take whatever number you were planning on using and round it up (or down slightly). IE if you were going to use 7,000 PGs, round up to 8192.

Quoted 4 lines

As I was asking about earlier on IRC, I'm in a situation where the docs did not mention this in the section about calculating PGs so I have a non-power-of-2 -- and since there are some production things running on that pool I can't currently change it.

Oh same thing here - did i miss the doc or can someone point me the location.

Is there a chance to change the number of PGs for a pool?

Greets,
Stefan

Quoted 8 lines
Quoted 4 lines

Honestly I don't know if it will actually have a significant effect. ceph_stable_mod will map things optimally when pg_num is a power of 2, but that's only part of how things work. It may not matter very much with high PG counts.

IIRC, having a non-power of 2 count means that the extra PGs (above the lower-bounding power of 2) will be twice the size of the other PGs. For reasonable PG counts this should not cause any problems. -Greg

Hrm, for some reason I thought there was more to it than that. I suppose then you really are just at the mercy then of the distribution of big PGs vs small PGs on each OSD.

A while back I was talking to Sage about doing something like (forgive the python):

def ceph_stable_mod2(x, b, bmask):
if ((x & bmask) < b):
return x & bmask
else:
return x % b

but that doesn't give as nice splitting behaviour. Still, unless I'm missing something, isn't splitting kind of a rare event anyway?

Mark