Hide
Cloud Storage

Durable Reduced Availability (DRA) Storage

Durable Reduced Availability Storage enables you to store data at lower cost, with the trade-off of lower availability than standard Google Cloud Storage. For information about DRA storage pricing, see Pricing.

DRA storage is appropriate for storing data that is particularly cost-sensitive, or for which some unavailability is acceptable. For example:

  • Data backup - Where high durability is critical, but the highest availability is not required.

  • Batch jobs - Batch jobs can recover from unavailable data, for example by keeping track of the last object that was processed and resuming from that point upon re-starting.

You enable DRA at the bucket level, during bucket creation. Once the DRA bucket is created, all bucket and object operations are exactly the same as with the standard storage class. New objects in the bucket are transparently stored with the lower-availability configuration, and your billing will automatically reflect the lower price per GB.

To change a bucket from Nearline Storage to another class, see Changing storage class.

Creating a DRA bucket

You enable Durable Reduced Availability Storage at the bucket level.

Google Developers Console

  1. In the Developers Console, go to Storage > Cloud Storage > Storage browser.
  2. Click Add a bucket and specify:
    • A bucket name subject to the bucket name requirements.
    • The storage class as Durable Reduced Availability.
    • A location where your data is stored.
    • A region defining a more specific geographic location for your data.

    New DRA bucket.

  3. Click Create.

gsutil

Using gsutil mb.

gsutil mb -c DRA gs://<bucket-name>/

JSON API

Using cURL and the JSON API.

curl -X POST --data-binary @dra.json \
     -H 'Content-Type: application/json' \
     -H "Authorization: Bearer <auth token>" \
     https://www.googleapis.com/storage/v1/b?project=<project-id>

Where the dra.json file contains the following information:

{
 "name": "<bucket-name>",
 "storageClass": "DURABLE_REDUCED_AVAILABILITY"
}

You can get an authorization access token from the OAuth 2.0 Playground. Configure the playground to use your own OAuth credentials.

XML API

Using cURL and the XML API.

curl -X PUT --data-binary @dra.xml \
     -H "Authorization: Bearer <auth token>" \
     -H "x-goog-project-id: <project-id>" \
     https://storage.googleapis.com/<bucket-name>

Where the dra.xml file contains the following information:

<CreateBucketConfiguration>
   <LocationConstraint>US</LocationConstraint>
   <StorageClass>DURABLE_REDUCED_AVAILABILITY</StorageClass>
</CreateBucketConfiguration>

You can get an authorization access token from the OAuth 2.0 Playground. Configure the playground to use your own OAuth credentials.

Verifying a DRA bucket

Google Developers Console

  1. In the Developers Console, go to Storage > Cloud Storage > Storage browser.
  2. In the bucket list, find the bucket you want to verify, and check that its Storage Class is Durable Reduced Availability.

    Verify DRA bucket class.

gsutil

Using gsutil ls.

$ gsutil ls -L -b gs://<bucket-name>/

gs://<bucketname>/ :
     Storage class:         DURABLE_REDUCED_AVAILABILITY
     Location constraint:   US-WEST1
     ...

JSON API

Using cURL and the JSON API.

curl -X GET -H "Authorization: Bearer <auth token>" \
     https://www.googleapis.com/storage/v1/b/<bucket-name>?fields=location%2CstorageClass

The response will look like:

{
 "location": "US-WEST1",
 "storageClass": "DURABLE_REDUCED_AVAILABILITY"
}

You can get an authorization access token from the OAuth 2.0 Playground. Configure the playground to use your own OAuth credentials.

XML API

Using cURL and the XML API.

curl -X GET -H "Authorization: Bearer <auth token>" -H "x-goog-project-id: <project-id>" \
     https://storage.googleapis.com/<bucket-name>?storageClass

The response will look like:

<StorageClass>DURABLE_REDUCED_AVAILABILITY</StorageClass>

Similarly, get the region with:

curl -X GET -H "Authorization: Bearer <auth token>" -H "x-goog-project-id: <project-id>" \
     https://storage.googleapis.com/<bucket-name>?location

The response will look like:

<LocationConstraint>US-WEST1</LocationConstraint>

You can get an authorization access token from the OAuth 2.0 Playground. Configure the playground to use your own OAuth credentials.

Using a DRA bucket

You can access stored in a DRA bucket in the same exact ways you can access data stored in a Standard bucket. The same APIs, tools, and UI that are used for Standard Storage are also used for DRA Storage including the XML API and JSON API, the command-line gsutil tool, the Google Developers Console, and the client libraries.