]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/CloudTransition: Tier objects to remote cloud
authorSoumya Koduri <skoduri@redhat.com>
Wed, 23 Dec 2020 05:44:53 +0000 (11:14 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Thu, 18 Nov 2021 07:22:47 +0000 (12:52 +0530)
commitc687d01d1b79493ca8b9eede03be61f76e996c02
treebefbf25d34baea7f03844d472d60bf4b2476fb48
parentc63d16ff96203ca768c4733bc757cc08c9e4712f
rgw/CloudTransition: Tier objects to remote cloud

If the storage class configured is of cloud, transition
the objects to remote endpoint configured.

In case the object size is >mulitpart size limit (say 5M),
upload the object into multiparts.

As part of transition, map rgw attributes to http attrs,
including ACLs.

A new attribute (x-amz-meta-source: rgw) is added to denote
that the object is transitioned from RGW source.

Added two new options to tier-config to configure multipart size -
* multipart_sync_threshold - determines the limit of object size,
when exceeded transitioned in multiparts
* multipart_min_part_size - the minimum size of the multipart upload part

Default values for both the options is 32M and minimum value supported
is 5M.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/CMakeLists.txt
src/rgw/rgw_cr_rest.cc
src/rgw/rgw_cr_rest.h
src/rgw/rgw_json_enc.cc
src/rgw/rgw_lc.cc
src/rgw/rgw_lc_tier.cc [new file with mode: 0644]
src/rgw/rgw_lc_tier.h [new file with mode: 0644]
src/rgw/rgw_zone.cc
src/rgw/rgw_zone.h