Skip to contentSkip to conversation

Increase number of PG

DISCUSSION Sławomir Skowron 4 participants 7 messages Jul 20, 2012 – Jul 23, 2012

lore
Share & tools
lore
#0 lore raw

I know that this feature is disabled, are you planning to enable this in near future ??

I have many of drives, and my S3 instalation use only few of them in one time, and i need to improve that.

When i use it as rbd it use all of them.

Regards

Slawomir Skowron

#1 lore raw
Quoted 2 lines · Sławomir Skowron

I know that this feature is disabled, are you planning to enable this in near future ??

PG splitting/joining is the next major project for the OSD. It won't be backported to argonaut, but it will be in the next stable release, and will probably appear in our regular development release in 2-3 months.

Quoted 4 lines

I have many of drives, and my S3 instalation use only few of them in one time, and i need to improve that.

When i use it as rbd it use all of them.

Radosgw normally stores most of the data for a single S3-level object in a single RADOS object, where as RBD stripes disk images across objects by default in 4MB chunks. If you have only a few S3 objects, you will see an uneven distribution. It will get more balanced as you upload more images. Also, if you use multi-part uploads, each part goes into a separate RADOS object, so that'll spread the load more evenly.

Now, if your problem comes from the rgw pools having too few PGs to begin with, the distribution will be.. lumpy.. even with more objects. Here's another mailing list thread that talks about what you can do about that: http://article.gmane.org/gmane.comp.file-systems.ceph.devel/8069
--
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 16 lines · Tommi Virtanen
Quoted 3 lines · Sławomir Skowron

I know that this feature is disabled, are you planning to enable this in near future ??

PG splitting/joining is the next major project for the OSD. It won't be backported to argonaut, but it will be in the next stable release, and will probably appear in our regular development release in 2-3 months.

Quoted 4 lines

I have many of drives, and my S3 instalation use only few of them in one time, and i need to improve that.

When i use it as rbd it use all of them.

Quoted 8 lines

Radosgw normally stores most of the data for a single S3-level object in a single RADOS object, where as RBD stripes disk images across objects by default in 4MB chunks. If you have only a few S3 objects, you will see an uneven distribution. It will get more balanced as you upload more images. Also, if you use multi-part uploads, each part goes into a separate RADOS object, so that'll spread the load more evenly.

RGW only does this for small objects — I believe its default chunk size is also 4MB.

But I'm pretty sure this is his problem:

Quoted 5 lines

Now, if your problem comes from the rgw pools having too few PGs to begin with, the distribution will be.. lumpy.. even with more objects. Here's another mailing list thread that talks about what you can do about that: http://article.gmane.org/gmane.comp.file-systems.ceph.devel/8069

-Greg

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

#3 lore raw
Quoted 26 lines · Gregory Farnum
Quoted 16 lines · Tommi Virtanen
Quoted 3 lines · Sławomir Skowron

I know that this feature is disabled, are you planning to enable this in near future ??

PG splitting/joining is the next major project for the OSD. It won't be backported to argonaut, but it will be in the next stable release, and will probably appear in our regular development release in 2-3 months.

Quoted 4 lines

I have many of drives, and my S3 instalation use only few of them in one time, and i need to improve that.

When i use it as rbd it use all of them.

Quoted 8 lines

Radosgw normally stores most of the data for a single S3-level object in a single RADOS object, where as RBD stripes disk images across objects by default in 4MB chunks. If you have only a few S3 objects, you will see an uneven distribution. It will get more balanced as you upload more images. Also, if you use multi-part uploads, each part goes into a separate RADOS object, so that'll spread the load more evenly.

Quoted 1 line

RGW only does this for small objects — I believe its default chunk size is also 4MB.

Actually no. While the infrastructure is there, currently a regular object upload at the moment is not going to create more than 2 rados objects. The head object, which is capped at 512k and the tail, which will contain the rest. As Tommi specified, multipart upload chunks depend on the actual upload.
There's actually no real reason anymore for not striping, and it's easy enough to implement, so it might be something that we're going to do soon.

Yehuda

Yehuda
--
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

#4 lore raw

Dnia 21 lip 2012 o godz. 20:08 Yehuda Sadeh <[email protected]> napisał(a):

Quoted 8 lines · Gregory Farnum
Quoted 7 lines · Tommi Virtanen
Quoted 6 lines · Sławomir Skowron
Quoted 3 lines

I know that this feature is disabled, are you planning to enable this in near future ??

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

PG splitting/joining is the next major project for the OSD. It won't be backported to argonaut, but it will be in the next stable release, and will probably appear in our regular development release in 2-3 months.

Ok, so i am waiting for this feature, but in a meantime i can move my objects to a new pool with more PG's manualy created, and use it as a bucket pool in radosgw ?? How can i tell radosgw to use this pool, or i can't ??
At this moment my pool .rgw.buckets have default 8 PG's, and it is small amount, too small.

Quoted 15 lines
Quoted 15 lines
Quoted 14 lines
Quoted 5 lines

I have many of drives, and my S3 instalation use only few of them in one time, and i need to improve that.

When i use it as rbd it use all of them.

Radosgw normally stores most of the data for a single S3-level object in a single RADOS object, where as RBD stripes disk images across objects by default in 4MB chunks. If you have only a few S3 objects, you will see an uneven distribution. It will get more balanced as you upload more images. Also, if you use multi-part uploads, each part goes into a separate RADOS object, so that'll spread the load more evenly.

Quoted 2 lines
Quoted 1 line

RGW only does this for small objects — I believe its default chunk size is also 4MB.

Yes i have a lots of small objects (500k) from bajts to 2-3MB in .rgw.buckets pool. They are not even hit multipart.

Quoted 9 lines

Actually no. While the infrastructure is there, currently a regular object upload at the moment is not going to create more than 2 rados objects. The head object, which ad is capped at 512k and the tail, which will contain the rest. As Tommi specified, multipart upload chunks depend on the actual upload.
There's actually no real reason anymore for not striping, and it's easy enough to implement, so it might be something that we're going to do soon.

This can be useful. But now in my case, objects are too small, and if i think right, my only option is to have more PG's to balance new objects in more drives.

My workload looks like this:

- Max 20% are PUTs, with 99% of objects smaller then 4MB,
- 80% are GETs, and S3 metadata operations.

When workload hit worse scenario (PUT, and then only one GET), then every GET miss the cache in NGINX, and it's goes from only few drives, and it's hurts ;)

Quoted 3 lines

Yehuda

Yehuda

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

#5 lore raw
Quoted 4 lines · Sławomir Skowron

My workload looks like this:

- Max 20% are PUTs, with 99% of objects smaller then 4MB,
- 80% are GETs, and S3 metadata operations.

Well, the good news is that that's actually the easy to fix part -- just increase the number of PGs (which you currently have to do the awkward way, as explained earlier in this thread), nothing else needed.
--
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

#6 lore raw

Ok everything is clear now, Thanks. I will try this in planning service works.

Regards

Slawomir Skowron.

Quoted 10 lines · Tommi Virtanen
Quoted 4 lines · Sławomir Skowron

My workload looks like this:

- Max 20% are PUTs, with 99% of objects smaller then 4MB,
- 80% are GETs, and S3 metadata operations.

Well, the good news is that that's actually the easy to fix part -- just increase the number of PGs (which you currently have to do the awkward way, as explained earlier in this thread), nothing else needed.

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