Skip to contentSkip to conversation

5GB object limit in the RADOS Gateway

DISCUSSION Wido den Hollander 2 participants 3 messages May 30, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

I was checking the source code today and found this macro:

#define RGW_MAX_PUT_SIZE (5ULL*1024*1024*1024)

Why is that limit in place? Was that to mimic Amazon S3? (Which is at 5T now).

I know that object size limit something that should be there, but just trying to find the reasoning behind this limit.

Couldn't we make this configurable at least?

Signature · 5 lines
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on
#1 lore raw
Quoted 6 lines · Wido den Hollander

Hi,

I was checking the source code today and found this macro:

#define RGW_MAX_PUT_SIZE (5ULL*1024*1024*1024)

Quoted 7 lines

Why is that limit in place? Was that to mimic Amazon S3? (Which is at 5T now).

I know that object size limit something that should be there, but just trying to find the reasoning behind this limit.

Couldn't we make this configurable at least?

That's the limit on an individual HTTP PUT operation. You can make larger objects, but they need to be placed with multi-part uploads. (I'm not sure what the actual limit is, if there is one.) -Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

#2 lore raw
Quoted 13 lines · Gregory Farnum
Quoted 12 lines · Wido den Hollander

Hi,

I was checking the source code today and found this macro:

#define RGW_MAX_PUT_SIZE (5ULL*1024*1024*1024)

Why is that limit in place? Was that to mimic Amazon S3? (Which is at 5T now).

I know that object size limit something that should be there, but just trying to find the reasoning behind this limit.

Quoted 6 lines
Quoted 1 line

Couldn't we make this configurable at least?

That's the limit on an individual HTTP PUT operation. You can make larger objects, but they need to be placed with multi-part uploads. (I'm not sure what the actual limit is, if there is one.) -Greg

Heh? My client gave me an error today and I thought that was really doing multipart uploads.

Checking again I see that s3cmd doesn't do multipart. That confused me

So it doesn't seem there is an object size limitation after all, so you can store object as large as you like.

Quoted 2 lines

Software Engineer #42 @ http://inktank.com | http://ceph.com

Signature · 5 lines
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on