Using destination parameters
Learn to use the destination parameters for multisite syn policy.
- Storage class
- Destination owner translation
- User mode
You can set the destination owner to force a specific destination owner for the objects. You can configure the destination storage class. If you select user mode, you can set only the destination bucket owner. You can set the user ID for the user mode to execute the sync operation for permissions validation.
Destination Params: Storage Class
Example for configuring storage class of the destination objects:
[ceph: root@host01 /]# radosgw-admin sync group create --bucket=buck10 \
--group-id=buck10-default --status=enabled
[ceph: root@host01 /]# radosgw-admin sync group pipe create --bucket=buck10 \
--group-id=buck10-default \
--pipe-id=pipe-storage-class \
--source-zones='*' --dest-zones=us-west-2 \
--storage-class=CHEAP_AND_SLOW
Destination Params: Destination Owner Translation
Example for setting the destination objects owner as the destination bucket owner. This requires specifying the uid of the destination bucket:
[ceph: root@host01 /]# radosgw-admin sync group create --bucket=buck11 \
--group-id=buck11-default --status=enabled
[ceph: root@host01 /]# radosgw-admin sync group pipe create --bucket=buck11 \
--group-id=buck11-default --pipe-id=pipe-dest-owner \
--source-zones='*' --dest-zones='*' \
--dest-bucket=buck12 --dest-owner=joe
Destination Params: User Mode
User mode makes sure that the user has permissions to both read the objects, and write to the destination bucket. This requires that the uid of the user (which in its context the operation executes) is specified.
[ceph: root@host01 /]# radosgw-admin sync group pipe modify --bucket=buck11 \
--group-id=buck11-default --pipe-id=pipe-dest-owner \
--mode=user --uid=jenny