Smart cold storage relies on the media asset management capabilities of VOD. To reduce the storage costs incurred when you use VOD, VOD enables media asset lifecycle management, with which you can change the storage class of VOD files from STANDARD to STANDARD_IA, ARCHIVE, or DEEP_ARCHIVE according to certain policies based on your business characteristics. In this way, you can manage your media asset files more flexibly.
To use the media asset cold storage feature, you should understand the concepts of storage class, data retrieval and retrieval mode, and policy management.
VOD provides the following storage classes for storing your media asset files: STANDARD, STANDARD_IA, ARCHIVE, and DEEP_ARCHIVE. Their attributes are as detailed below:
Storage Class | STANDARD | STANDARD_IA | ARCHIVE | DEEP_ARCHIVE |
---|---|---|---|---|
Default in VOD | Yes | No | No | No |
Storage costs | High | Medium | Low | Very low |
Access performance | High | Low | Access not supported | Access not supported |
Data retrieval fees | No | No | Yes | Yes |
Supported regions | All | All | All | Beijing, Shanghai, and Chongqing |
STANDARD is the default storage class in VOD. Live recording files as well as files generated in various upload methods or video processing tasks are stored in STANDARD by default.
Attribute | Ranking from High to Low |
---|---|
Storage costs | STANDARD > STANDARD_IA > ARCHIVE > DEEP_ARCHIVE |
Access performance | STANDARD > STANDARD_IA |
Note:
- ARCHIVE and DEEP_ARCHIVE storage classes don't support direct access, and you should retrieve the data first before you can access it. VOD only allows you to retrieve data to STANDARD.
- Access performance will affect video watch metrics such as time to first frame (TTFF) and lag rate; therefore, we recommend you not change the storage class for frequently accessed businesses in the production environment.
VOD allows you to change between storage classes as follows:
Source Storage Class | Target Storage Class |
---|---|
STANDARD | STANDARD_IA, ARCHIVE, and DEEP_ARCHIVE |
STANDARD_IA | STANDARD, ARCHIVE, and DEEP_ARCHIVE |
ARCHIVE | STANDARD |
DEEP_ARCHIVE | STANDARD |
Note:
- To switch ARCHIVE and DEEP_ARCHIVE to another storage class other than STANDARD, you should switch them to STANDARD first and then switch STANDARD to the target storage class.
- The granularity of storage class change is
FileId
, that is, the storage classes of the original and video processing files are the same, and you cannot specify the storage class for part of the files under theFileId
separately.
After the storage class of a media asset is changed to the ARCHIVE or DEEP_ARCHIVE storage class, the file cannot be directly accessed, that is, operations such as video playback and processing initiation cannot be performed. If you want to access it, you can change its storage class as instructed in the previous section. However, sometimes you only want to access a media asset for a short period of time and still retain it in ARCHIVE or DEEP_ARCHIVE after access. In this case, the above method is not applicable. To meet such needs, VOD provides the data retrieval capabilities.
VOD supports two retrieval operations for media in ARCHIVE and DEEP_ARCHIVE: permanent retrieval and retrieval for specified period.
Operation on ARCHIVE/DEEP_ARCHIVE | Storage Class Change | Retrieval |
---|---|---|
Real-Timeness | Async | Async |
Mode | Expedited/Standard/Bulk | Expedited/Standard/Bulk |
Validity period | Permanent | Specified period |
Copy generation | No | Yes |
Storage class change and retrieval for ARCHIVE and DEEP_ARCHIVE have multiple modes, which have the same final effect but are different in speed and cost (i.e., retrieval fees).
Retrieval Mode | Time of Retrieval from ARCHIVE | Time of Retrieval from DEEP_ARCHIVE |
---|---|---|
Expedited mode | 5 minutes | Not supported |
Standard mode | 5 hours | 24 hours |
Bulk mode | 12 hours | 48 hours |
Note:
- A media asset (represented as one
FileId
) can contain many files in storage, such as original file, transcoded file, and screenshot file, each of which may have different actual retrieval completion time. VOD doesn't maintain the specific retrieval completion status of each file but takes the media asset as a whole to calculate its retrieval completion time based on the longest possible time uniformly. Before that time arrives, even if all files under the media asset are retrieved, the media asset will still be marked as not retrieved and be inaccessible.- As the time point when a media asset is marked as unretrieved will be after the actual retrieval time point, the available duration of the retrieved copy of the media asset will be shorter than the expected period. To ensure that the copy has a sufficient available duration, we recommend you add one more day to the validity period when retrieving a media asset from DEEP_ARCHIVE.
To help you uniformly manage the lifecycle of a large number of media assets, VOD combines media asset information and media asset file playback statistics to offer the policy-based smart management system.
The VOD backend executes management tasks every day and changes the storage class of media assets that meet the conditions of the specific policy.
A policy allows you to specify a series of conditions to change the storage class of media assets that meet all conditions at the same time. The specific filter conditions are as detailed below:
Once created, a policy will be started automatically, and you can disable it as needed. Once disabled, it will be ignored in management tasks created on the next day and afterwards until it is enabled again.
Note:Once disabled, a policy may still take effect or not take effect in the management tasks on the current day.
Up to 10 policies can be configured.
You cannot specify the policy priority. If a media asset hits multiple policies at the same time, the policy priorities will be automatically determined by the target storage class as follows: DEEP_ARCHIVE > ARCHIVE > STANDARD_IA.
Log in to the VOD console (non-admin), click Media Assets > Cold Storage on the left sidebar, and click Create Policy.
Configure the cold storage policy as needed.
Example: as shown above, if the number of video playbacks is less than 300 in 30 days for a video, the STANDARD_IA storage policy will be triggered, and VOD will store all media assets meeting the rule in STANDARD_IA.
Was this page helpful?