Bucket relocation (original) (raw)

Bucket relocation

Stay organized with collections Save and categorize content based on your preferences.

This document describes the Cloud Storage bucket relocation service that relocates buckets serverlessly between geographic locations. Using bucket relocation, you can move an existing bucket from one location to another without changing its name or requiring manual data transfer of data within the bucket.

Based on your objectives and bucket usage, you'll need to plan your bucket relocation carefully to minimize disruption and relocate your bucket successfully. For more information about how to relocate buckets, see Relocate buckets.

Benefits

The benefits of bucket relocation are as follows:

Use cases

The following are use cases you can achieve by relocating your buckets:

Relocation types

There are two types of bucket relocations:

The bucket's source and destination locations determine whether a bucket relocation involves write downtime. The following table shows how your bucket's location affects write downtime during a relocation, including the differences between relocations with and without downtime.

Specification Bucket relocation with write downtime Bucket relocation without write downtime
Bucket location Relocating a bucket between the following locations causes downtime: RegionsDual-regionsMulti-regionsMulti-regions and predefined dual-regionsMulti-regions and configurable dual-regions if the two locations have different multi-region codes Relocating a bucket between the following locations causes no downtime if the two locations share the same multi-region code: Configurable dual-regionsMulti-regions and configurable dual-regions
Write availability You can't perform write operations during the final synchronization step. Write operations continue uninterrupted during the relocation.
User involvement You must initiate the write downtime finalization step. No explicit finalization step is required.
Performance impact You can't write or update objects in the bucket during the final synchronization step. Object read and write latency might increase during the relocation.
Bucket relocation cancellation Faster than relocations without write downtime. Cancellation is not instantaneous and can take longer due to the need to backfill objects.
Feature support Provides less feature support than relocations without write downtime. For more information about the unsupported features, see Unsupported features. Limitations exist for features such as multi-part uploads, retention policies,Firebase, and appspot. For more information about these limitations, see Limitations.
Minimum relocation duration None Seven days

Understand the bucket relocation process

Bucket relocation helps you move your data from a source bucket to a destination bucket. The source bucket holds the data that you want to move and the destination bucket is where you want to move your data.

The following diagram shows the bucket relocation process flow:

Bucket relocation process flow.

Figure 1. Bucket relocation process flow (click to enlarge).

* Final synchronization is only required for relocations with write downtime.

The following table lists the three primary steps and the description for each step:

Step Description
Perform a dry run(Optional) Simulates the bucket relocation process to identify potential issues before the actual data transfer begins.
Initiate the incremental data copy step Copies data from the source bucket to the destination bucket. The bucket metadata is write-locked to prevent any changes to the bucket that might affect the relocation process. However, you can write, modify, and delete objects in the bucket. The factors influencing the duration are as follows: The frequency of object updates, deletions, or additions within the bucket directly impacts the copy duration. A higher rate of change requires more time. There's a maximum object movement rate `Rm, objects/second`. With `N` total objects and an update rate of `R objects/second`, the copy step duration can be estimated as `N / (Rm - R)` seconds.Large buckets require more relocation time due to finite bandwidth. The size of individual objects affects the copy time. Objects larger than 10 GB take longer to transfer than objects under 10 GB due to bandwidth constraints. For example, a 1 TB object takes one day to copy.
Initiate the final synchronization step(Only required for relocations with write downtime) Once you initiate the final synchronization, the bucket is write-locked. As a result, you can't write or update any objects within the bucket during this time, preventing data inconsistencies. However, you can continue to read from the bucket.Once all data has been transferred, verified, and the bucket is operational in the new location, the write-lock is automatically removed. You can then resume writing and updating objects in the bucket.

Limitations

The bucket relocation service supports up to five concurrent relocations from the same location within a project.

The following sections describe the limitations that apply to relocations with write downtime and without write downtime.

Relocation with write downtime limitations

Relocation with write downtime has the limitations listed in the following sections.

Data handling limitations

The following are the limitations when handling data during the relocation:

Unsupported features

Buckets using the following features can't be relocated:

Operational restrictions

Bucket relocation with write downtime has the following operational restrictions:

Relocation without write downtime limitations

Bucket relocation without write downtime has the following limitations:

Unsupported locations

Bucket relocation isn't supported for the source and destination buckets in the following locations:

Location type Unsupported locations
Regions ME-CENTRAL1ME-WEST1
Predefined dual-regions EUR5EUR7EUR8

Pricing

For details on pricing associated with bucket relocation, see Cloud Storage pricing.

What's next