Cross-Region Replication Within an Account
Scenarios
Cross-region replication within an account allows you to create a cross-region replication rule to automatically replicate data from a source bucket in one region to a destination bucket in another region under the same account in near real time. Objects replicated to the destination bucket are exact copies of the objects in the source bucket.
Replication scope: objects with specified prefix or all objects in the bucket
Replicable object data: object name, metadata (object content, size, last modification time, creator, version number, and user-defined metadata), ACL, and storage class (default configuration)

If Change storage class for replicated objects is selected when you create a cross-region replication rule, the storage class of the object copies is different from that of the source objects.

Cross-region replication within an account applies to the following scenarios:
- Regulatory compliance
OBS stores data across AZs that are relatively far apart from each other, but regulatory compliance may require further distances. Cross-region replication enables you to meet regulatory requirements.
- Low latency
The same OBS resources may need to be accessed from different locations. To minimize the access latency, you can use cross-region replication to create object copies in the nearest region.
- Data replication
You want to migrate data stored in OBS to the data center in another region.
- Data backup and disaster recovery
You want to create explicit backups for all data written to OBS in the data center of another region to ensure data remains available if there is any damage.
- Ease of maintenance
You have compute clusters used to analyze the same group of objects in two different OBS regions and may need to maintain object copies in these two regions.

OBS helps you replicate your service data stored in OBS to a specified region, but Huawei Cloud has no access to your data. You need to ensure the legal compliance of your use of OBS on your own. If your replication involves cross-border transfer, ensure that your use complies with relevant laws and regulations.
Constraints
Item |
Description |
---|---|
Bucket version |
Only buckets whose version is 3.0 or later support cross-region replication. The version of a bucket can be viewed in the Basic Information area of the bucket's Overview page on OBS Console. For details, see Viewing Bucket Information. |
Functions |
|
Time |
A cross-region replication rule may not take effect immediately upon its configuration. Accordingly, the objects that this rule is applied to may not be replicated immediately after the rule is configured. |
Area |
|
Synchronization of historical objects |
|
Versioning |
|
Access control |
|
Tags |
A cross-region replication rule will not replicate tags applied to the source bucket and objects to the destination bucket and objects. |
Others |
|
Important Notes
- After a bucket is created, you are advised to wait at least 5 minutes before creating a cross-region replication rule for the bucket, or the rule may fail to be created.
- If the cross-region replication rule is enabled but the function of synchronizing existing objects is disabled, there is a delay of about five minutes to apply the rule. Objects uploaded during that delay may not be replicated.
- If the cross-region replication rule and the function of synchronizing existing objects are both enabled, existing objects will be replicated 5 minutes later.
- Objects encrypted using server-side encryption (including SSE-KMS and SSE-OBS) can be replicated. The replication traffic cost is calculated based on the length of the plaintext for SSE-KMS and SSE-OBS. For details, see Billing for Cross-Region Replication Within an Account.
Billing for Cross-Region Replication Within an Account
Figure 3 shows the items that will be billed when data is replicated from one region to another.
Action |
Billing Item |
Description |
---|---|---|
Replicate data across regions |
Requests |
You are billed for the number of successfully replicated objects. Successfully replicating one object creates a copy request. For details, see Copying Objects. To learn about the request billing, see Requests. |
Data transfer |
You are billed for the amount of data transferred from one region to another. If objects are encrypted using server-side encryption, the cost of their cross-region replication traffic is calculated based on the length of the plaintext for SSE-KMS and SSE-OBS. |
|
Storage space |
Storage space occupied by objects stored in the destination bucket. If you have specified another storage class for object copies in the destination bucket, these copies are billed based on the new storage class. If objects are encrypted using server-side encryption, their storage cost is calculated based on the length of the ciphertext. |
|
Synchronize existing objects |
Requests |
You are billed for the number of existing objects that are successfully replicated to the destination bucket. With synchronization of existing objects enabled, OBS synchronously replicates the objects that already exist in the bucket before a cross-region replication rule is created to the destination bucket. |
Data transfer |
You are billed for the traffic generated when OBS synchronizes objects across regions. If historical objects are encrypted using server-side encryption, the cost of their cross-region replication traffic is calculated based on the length of the plaintext for SSE-KMS and SSE-OBS. |
|
Storage space |
Storage space occupied by objects stored in the destination bucket. If you have specified another storage class for object copies in the destination bucket, these copies are billed based on the new storage class. If historical objects are encrypted using server-side encryption, their storage cost is calculated based on the length of the ciphertext. |
Prerequisites
- A source bucket has been created in a region of an account. The version of the source bucket is 3.0 or later, and cross-region replication is available in the region of the source bucket. For details about the support for cross-region replication in each region, search for "cross-region replication" on the Function Overview page.
- A destination bucket has been created in another region of the same account. To create a bucket, see Creating a Bucket.
Creating a Rule for Cross-Region Replication Within an Account
You can use OBS Console, APIs, or obsutil to configure cross-region replication within an account.
Modifying, Disabling, Enabling, or Deleting a Cross-Region Replication Rule
You can use OBS Console or APIs to manage cross-region replication rules.
References
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot