Storage Classes

Application Scenario

OBS provides the following storage classes: Standard, Infrequent Access, Archive, and Deep Archive (under restricted open beta testing).

Different storage classes meet different requirements for storage performance and costs.
  • The Standard storage class features low access latency and high throughput. It is therefore ideal for storing massive quantities of hot files (frequently accessed every month) or small files (less than 1 MB). Its application scenarios include big data analytics, mobile apps, hot videos, and social apps.
  • The Infrequent Access storage class is ideal for storing data that is accessed infrequently (less than 12 times a year) yet has quick response requirements. Its application scenarios include file synchronization, file sharing, and enterprise backup. It provides the same durability, access latency, and throughput as the Standard storage class but at a lower cost. However, the Infrequent Access storage class delivers lower availability than the Standard storage class.
  • The Archive storage class is ideal for archiving data that is rarely accessed (once a year on average). Its application scenarios include data archiving and long-term data backups. The Archive storage class is secure, durable, and inexpensive, and can be used to replace tape libraries. However, it may take hours to restore data from the Archive storage class.
  • The Deep Archive storage class (under restricted open beta testing) is suitable for archiving data that is barely-accessed (once a few years). Compared with the Archive storage class, it costs less but takes longer time (usually several hours) to restore data.

Comparison of Storage Classes

Compared Item

Standard

Infrequent Access

Archive

Deep Archive (Under Restricted OBT)

Feature

Top-notch performance, highly reliable and available

Reliable, inexpensive, and real-time storage access

Long-term storage for archived data at a very low cost

Lower price than the Archive storage class for long-term data archive.

Application scenarios

Cloud-hosted applications, data sharing, content sharing, and hot data storage

Web disk applications, enterprise backup, active archiving, and data monitoring

Archive, medical image storage, video storage, and replacement of tape libraries

Archiving data that is barely accessed.

Durability

99.999999999%

99.999999999%

99.999999999%

99.999999999%

Durability (multi-AZ)

99.9999999999%

99.9999999999%

-

-

Availability

99.99%

99.99%

99.99%

99.99%

Availability (multi-AZ)

99.995%

99.995%

-

-

Minimum measurement unita

64 KB

64 KB

64 KB

256 KB

Minimum storage durationb

N/A

30 days

90 days

360 days

Data restoration

N/A

Charged according to the amount of data restored (measured in GB)

Two restoration options: urgent and standard

Charged according to the amount of data restored (measured in GB)

Two restoration options: urgent and standard

Charged according to the amount of data restored (measured in GB)

Image processing

Supported

Supported

Not supported

Not supported

a: Minimum measurement unit refers to the lower size limit for object billing. For example, if you upload a Standard object of 32 KB (smaller than the minimum measurement unit of 64 KB), you will be billed for a 64 KB object.

b: Minimum storage duration refers to the lower storage limit for object billing. For example, if an Infrequent Access object has been stored in OBS for 20 days (shorter than the minimum storage duration of 30 days) and then deleted, you will be billed for 30 days.

Bucket Storage Classes and Object Storage Classes

You can specify the storage class for a bucket when creating the bucket. You can also change the storage class of a bucket after the bucket is created.

An object inherits the storage class of the bucket where it is uploaded. You can specify a storage class for an object when uploading it, or you can change the object storage class after the object is uploaded.

Changing the storage class of a bucket does not change the storage classes of existing objects in the bucket, but newly uploaded objects inherit the new storage class by default.

By default, objects in Archive storage class must be restored to Standard storage class before they can be downloaded. You can enable Direct Reading to directly download objects in Archive storage class without restoring them first. Direct Reading will be charged.

Changing Bucket Storage Classes

The storage class of a bucket can only be manually changed.

Figure 1 lists the bucket storage class transition rules. OBS Standard and Infrequent Access storage classes support both the single-AZ and multi-AZ data redundancy policies, while the Archive storage class supports only the single-AZ redundancy policy. The data redundancy policy of a bucket cannot be modified, even when its storage class is changed.

Figure 1 Bucket storage class changing rules

Note:

  • Changing the storage class of a bucket does not change the storage classes of existing objects in the bucket. The storage class of an object uploaded later will inherit the new storage class of the bucket by default. You can also configure lifecycle rules to change storage classes of objects in a batch.

    For example, if bucket1 is in the Standard storage class and contains object1, when bucket1's storage class is transitioned to Infrequent Access, object1 is still in the Standard storage class. If you upload object2 to bucket1 after the transition, object2 will be in the Infrequent Access storage class.

  • If the storage class of a bucket is changed from Archive to Standard or Infrequent Access, objects in the bucket will not be automatically restored from the Archive storage class.

Changing Object Storage Classes

The storage class of an object can be changed manually or automatically. Figure 2 lists the object storage class transition rules.

  • Manual transition: After an object is uploaded, you can manually change its storage classes.

    Objects can be manually changed from Standard to Infrequent Access or Archive storage class, or from Infrequent Access to Standard or Archive storage class, but objects in Archive storage class must be restored before being manually changed to Standard or Infrequent Access storage class. Changing from Infrequent Access or Archive to other storage classes incurs restoration fees. Select an appropriate change option based on your needs.

  • Automatic transition: OBS provides lifecycle rules for you to automatically transition objects from one storage class to another. For details, see Lifecycle Management.

    Objects can be automatically changed from Standard to Infrequent Access or Archive storage class, or from Infrequent Access to Archive storage class.

Figure 2 Object storage class changing rules

Note:

  • After objects in the Standard storage class are transitioned to Infrequent Access or Archive storage class, their restoration status is Unrestored.
  • The minimum billing period is 30 days for Infrequent Access storage and 90 days for Archive storage. If an object is stored for less than the required minimum storage period and transitioned to another storage class, you need to pay for the full storage period (30 days or 90 days) of the previous storage class.

How to Use This Function

You can use OBS Console, APIs, SDKs, OBS Browser+, or obsutil to configure storage classes for buckets and objects.

Tool

Reference

OBS Console

Creating a Bucket

Uploading a File

SDKs

OBS supports software development kits (SDKs) in multiple languages. For details, see the corresponding development guide on the SDK Overview page.

APIs

Configuring Storage Class for a Bucket

Creating a Bucket (add the x-obs-storage-class header configuration).

Uploading Objects - PUT (add the x-obs-storage-class header configuration).

Uploading Objects - POST (add the x-obs-storage-class header configuration).

OBS Browser+

-

obsutil

Creating a Bucket

Setting Bucket Properties

Uploading an Object

Setting Object Properties