Creating a sync flow
Create a sync flow for a multi-site sync policy.
- Directional sync flow
- Symmetrical sync flow
group flow create command creates a sync flow. For an existing sync policy
group or bucket, this command overwrites the existing settings for the sync flow and applies the
settings that you specify.| Option | Description | Required/Optional |
|---|---|---|
| --bucket |
Name of the bucket to which sync policy needs to be configured. Used only in bucket-level sync policy. |
Optional |
| --group-id |
ID of the sync group. |
Required |
| --flow-id |
ID of the flow. |
Required |
| --flow-type | Types of flows for a sync policy group or for a specific bucket - directional or symmetrical. |
Required |
| --source-zone |
To specify the source zone from which sync should happen. Zone that send data to the sync group. Required if flow type of sync group is directional. |
Optional |
| --dest-zone |
To specify the destination zone to which sync should happen. Zone that receives data from the sync group. Required if flow type of sync group is directional. |
Optional |
| --zones |
Zones that part of the sync group. Zones mention will be both sender and receiver zone. Specify zones separated by ",". Required if flow type of sync group is symmetrical. |
Optional |
Prerequisites
-
A running IBM Storage Ceph cluster.
-
Root or
sudoaccess. -
The Ceph Object Gateway is installed.
Procedure
-
Create or update a directional sync flow. To create or update directional sync flow for a specific bucket, use the
--bucketoption.Syntax
radosgw-admin sync group flow create --bucket=BUCKET_NAME --group-id=GROUP_ID --flow-id=FLOW_ID --flow-type=directional --source-zone=SOURCE_ZONE --dest-zone=DESTINATION_ZONE -
Create or update a symmetrical sync flow. To specify multiple zones for a symmetrical flow type, use a comma-separated list for the
--zonesoption.Syntax
radosgw-admin sync group flow create --bucket=BUCKET_NAME --group-id=GROUP_ID --flow-id=FLOW_ID --flow-type=symmetrical --zones=ZONE_NAME_1,ZONE_NAME_2
zones are comma-separated lists of all zones that need to be added to the
flow.