Hi Eric,

am I reading it correct, that *rgw_max_put_size *only limits files, that
are not uploaded as multipart?
My understanding would be, with these default values, that someone can
upload a 5TB file in 10000 500MB multipart objects.

But I want to limit the maximum file size, so no one can upload a file
larger than 100GB, no matter how they size the multipart upload. Having
1000 99GB files is fine for me.
I want to mitigate this RGW bug [1], which currently leads to a lot of pain
on our side (some random customer seem to have lost all their rados object
from a bucket, because the GC went nuts.[2])
[1]: https://tracker.ceph.com/issues/53585
[2]:
https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/5XSUELNB64VTKRYRN6TXB5CU7VITPBVP/

Am Fr., 9. Dez. 2022 um 11:45 Uhr schrieb Eric Goirand <egoir...@redhat.com
>:

> Hello Boris,
>
> I think you may be looking for these RGW daemon parameters :
>
> # ceph config help *rgw_max_put_size*
> rgw_max_put_size - Max size (in bytes) of regular (non multi-part) object
> upload.
>   (size, advanced)
>   Default: 5368709120
>   Can update at runtime: true
>   Services: [rgw]
>
> # ceph config help *rgw_multipart_part_upload_limit*
> rgw_multipart_part_upload_limit - Max number of parts in multipart upload
>   (int, advanced)
>   Default: 10000
>   Can update at runtime: true
>   Services: [rgw]
>
> *rgw_max_put_size* is set in bytes.
>
> Regards,
> Eric.
>
> On Fri, Dec 9, 2022 at 11:24 AM Boris Behrens <b...@kervyn.de> wrote:
>
>> Hi,
>> is it possible to somehow limit the maximum file/object size?
>>
>> I've read that I can limit the size of multipart objects and the amount of
>> multipart objects, but I would like to limit the size of each object in
>> the
>> index to 100GB.
>>
>> I haven't found a config or quota value, that would fit.
>>
>> Cheers
>>  Boris
>>
>> --
>> Die Selbsthilfegruppe "UTF-8-Probleme" trifft sich diesmal abweichend im
>> groüen Saal.
>> _______________________________________________
>> ceph-users mailing list -- ceph-users@ceph.io
>> To unsubscribe send an email to ceph-users-le...@ceph.io
>>
>

-- 
Die Selbsthilfegruppe "UTF-8-Probleme" trifft sich diesmal abweichend im
groüen Saal.
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to