Billing case

This article introduces object storage in the form of cases OSS The cost calculation method helps you understand the OSS Cost of use.

matters needing attention

The unit price of the following cases comes from two thousand and twenty-four year eleven month twenty Published on the official Alibaba Cloud website OSS Detailed price information. Please use Alibaba Cloud official website The published data shall prevail.

Case 1: OSS Distribute static resources (high-frequency access)

Mr. Li plans to two thousand and twenty-four year ten Monthly use OSS In East China 1. Create a (Hangzhou) regional Bucket To host static websites. This Bucket Estimated storage in about 505GB Data, which are mainly composed of HTML、CSS、JavaScript And other types of files, and the standard storage (local redundancy) type is selected for storage. Considering the user access mode, Mr. Li estimates that every morning eight From o'clock to evening twelve Between points, its website will receive about one thousand second GET Request; In addition, during this period, it is estimated that there will be about 5 GB Data traffic from OSS Flow to the client. The total cost paid this month is about 151.47 〈 yuan, the billing details are as follows:

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

Stored 505 GB Standard storage (local redundancy) type files

Standard storage (local redundancy) capacity

StorageZRS

zero point one five RMB/GB/month

505GB/month

seventy-five point seven five element

Average production per hour one thousand second GET Class Request

Get Number of type requests

GetRequest

zero point zero one RMB/10000 times

one thousand Times/hour × 24 Hour × 30 day

zero point seven two element

Every day 8:00~24:00 The outgoing traffic of intranet and internet during the time period is about 5 GB

External network outgoing traffic

NetworkOut

zero point five zero RMB/GB

5GB/day × 30 day

seventy-five element

Case 2: OSS Distribute static resources (low-frequency access)

Mr. Zhang is in two thousand and twenty-four year ten month 01 Dated in East China 1 (Hangzhou) Bucket A total of 100GB These data are set as low-frequency access (intra city redundancy) type. Among them, Bucket Contains ten thousand Size is 30 KB File. Although most of the time, these files do not need to be accessed or modified frequently. But in that month twenty Due to the urgent change of business requirements, it is urgent to change the size of 1 GB For real-time processing of large files. To this end, Mr. Zhang OSS Downloaded the file locally, and updated its content according to the latest business requirements. After the modification, in order to ensure the timeliness and availability of the information, Mr. Zhang updated the content of the file and uploaded it to OSS, The updated file size is still 1 GB. The total cost paid this month is about ten point five nine seven five RMB, the charging details are as follows:

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

Stored 100 GB Low frequency storage (local redundancy) type file of

Low frequency access (intra city redundancy) capacity

ChargedDatasizeZRS

zero point one zero RMB/GB/month

100.32GB/month

ten point zero three two element

Download size is 1 GB 's file to local

Outgoing traffic cost of external network

NetworkOut

zero point five zero RMB/GB

1GB

zero point five element

Low frequency access data retrieval capacity

RetrievalData

zero point zero three two five RMB/GB

1GB

zero point zero three two five element

Uploaded in the current month twenty No. will 1GB File content is updated and then uploaded to OSS

Low frequency access (intra city redundancy) is insufficient for the specified duration capacity

LessthanMonthDatasizeZRS

zero point one zero RMB/GB/month

1GB storage ten day

zero point zero three three element

The minimum measurement of a single low-frequency storage (local redundancy) type file is 64 KB, Insufficient 64 KB Press 64 KB calculation. Therefore, 10000 individual 30 KB 's file metering storage has increased over the actual storage 10000 × (64-30) KB (approximately equal to 0.32 GB), Total metered storage=100 GB+0.32 GB=100.32 GB.

same month twenty No. Upload the file with the same name to OSS, cause OSS The original low-frequency storage type file is overwritten. However, the storage time of low-frequency storage type files is insufficient thirty Days are overwritten or deleted, and the remaining time will be charged ten Days of storage.

Case 3: CDN accelerate OSS Static resource distribution

Mr. Zhang is in two thousand and twenty-four year ten Monthly use OSS AliCloud is enabled while storing static resources CDN To speed up access to these resources. According to statistics, in this process CDN The amount of data that edge nodes directly transmit to clients reaches 90GB; when CDN When an edge node needs to update or request a specific file for the first time, CDN Will return to source OSS Pull the latest version, and the total back to source traffic generated in this process is 60GB. In addition, CDN Edge node access OSS To obtain or verify file information OSS API , this process generates 10,000 second API Request. Total expenses paid this month thirty point six one RMB, the charging details are as follows:

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

Data from CDN Edge node transfer to client

CDN Downlink traffic

cdn_flow_out

zero point two four RMB/GB

90GB

twenty-one point six Yuan (by CDN Charge)

Data from OSS Transfer to CDN Edge node

CDN Return source outflow flow

CdnOut

zero point one five RMB/GB

60GB

nine Yuan (by OSS Charge)

CDN Edge node access OSS Invoke when OSS API request

GET Class Request

GetRequest

zero point zero one RMB/10000 times

ten thousand second

zero point zero one Yuan (by OSS Charge)

Case 4: OSS Long distance transmission acceleration

Mr. Li Yu two thousand and twenty-four year 09 Month in East China 1 (Hangzhou) Bucket A popular application for global users has been deployed, which includes video, high-definition pictures and other types of files. The total storage capacity has reached 2TB, The standard storage (local redundancy) scheme is adopted to ensure the safety and reliability of data. In order to optimize the access experience of non Chinese mainland users, especially when large files need to be downloaded or streamed, Mr. Li plans to enable OSS The provided transport acceleration service. In this way, use transport to speed up domain name access Bucket The file in can significantly reduce the data transmission delay and improve the response speed. The total fees paid this month are 3,891.2 RMB, the charging details are as follows:

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

Stored 2TB Files of standard storage (local redundancy) type

Standard storage (local redundancy) capacity

StorageZRS

zero point one five RMB/GB/month

2TB/month

307.2 ∨ yuan

Speed up domain name access to East China from non mainland China through transmission 1. Resources in Hangzhou

Transmission acceleration AccO2MOut

AccO2MOut

one point two five RMB/GB

2TB

2,560 element

External network outgoing traffic

NetworkOut

zero point five zero RMB/GB

2TB

1,024 element

Case 5: ECS Mount Access OSS

Mr. Wang Yu two thousand and twenty-four year 09 Month in East China 1 (Hangzhou) Bucket Stored in memory 1 TB Standard storage type files with capacity, and local redundancy is selected to enhance data security and availability. In the same month, an AliCloud in the same region ECS Instance passed OSS The provided intranet address is Bucket The file in was accessed. In the process, a total of 100 GB Of intranet outgoing traffic, executed about ten 10000 times GET Request operations to obtain or view the contents of these files. This method not only improves the data access speed, but also reduces the cost of data downlink traffic. Total expenses paid this month one hundred and fifty-three point seven RMB, the charging details are as follows:

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

Stored 1TB Standard storage (local redundancy) type files

Standard storage (local redundancy) capacity

StorageZRS

zero point one five RMB/GB/month

1TB/month

one hundred and fifty-three point six element

Access the Bucket Resources in

Intranet outflow

Not involved

Free Admission

100GB

zero element

visit Bucket Resource generated GET Class Request

GET Type Request

GetRequest

zero point zero one RMB/10000 times

ten 10000 times

zero point one element

Case 6: OSS Cross regional disaster recovery

Mr. Wang Yu two thousand and twenty-four year ten month 01 Japan in East China 1 (Hangzhou) Bucket A Stored in memory 100 GB Standard storage (local redundancy) type files, and ten month 02 From, Bucket A Add every day 3 GB File. In order to further improve the security and reliability of data and prevent data loss or access interruption caused by a single region failure, Mr. Wang has set up a cross region replication function to synchronize data to East China 2 (Shanghai) Bucket B Inside. In this way, even if natural disasters, power failures or other unforeseen problems occur in one region, Mr. Wang can still use data from another region to ensure business continuity. In addition, Bucket A and Bucket B Average number of requests processed per day (including PUT Type and GET Type requests) total approximately twenty thousand Times. The total cost paid this month is about one hundred and forty point one nine RMB, the charging details are as follows:

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

Bucket A Stored 100GB Files of standard storage (local redundancy) type

Standard storage (local redundancy) capacity

StorageZRS

zero point one five RMB/GB/month

100GB/month

fifteen element

Bucket B Stored from Bucket A Copied 100GB file

Standard storage (local redundancy) capacity

StorageZRS

zero point one five RMB/GB/month

100GB/month

fifteen element

Bucket A Add every day 3GB Files for

Standard storage (local redundancy) capacity

StorageZRS

zero point zero zero five RMB/GB/day

(0.15 RMB/GB/month ÷ 30 Days)

ten month 02 New daily 3GB Data stored thirty day

ten month 03 New daily 3GB Data stored twenty-nine day

......

ten month thirty-one New daily 3GB Data stored one day

six point nine seven five element

(3GB×0.005 RMB/GB/day × 30 Day+3 × 0.005 × 29+3 × 0.005 × 28+ .....+3×0.005×1)

Bucket A New every day 3GB Replication to Bucket B

Standard storage (local redundancy) capacity

StorageZRS

zero point zero zero five RMB/GB/day

(0.15 RMB/GB/month ÷ 30 Days)

ten month 02 New daily 3GB Data stored thirty day

ten month 03 New daily 3GB Data stored twenty-nine day

......

ten month thirty-one New daily 3GB Data stored one day

six point nine seven five element

(3GB×0.005 RMB/GB/day × 30 Day+3 × 0.005 × 29+3 × 0.005 × 28+ .....+3×0.005×1)

Data is transferred from Bucket A Copy to Bucket B

Cross regional replication traffic

ReplicationDatasize

zero point five zero RMB/GB

ten month 01 day 100GB

ten month 02 Day~10 month thirty-one Daily 3GB

ninety-five element

(100GB × 0.5 yuan/GB+3GB/day × 0.5 RMB/GB × 30 Days)

Bucket A Average daily production twenty thousand Secondary read/write request

PUT Type Request

PutRequest

zero point zero one RMB/10000 times

620,000 second

zero point six two element

GET Type Request

GetRequest

Bucket B Average daily production twenty thousand Secondary read/write request

PUT Type Request

PutRequest

zero point zero one RMB/10000 times

620,000 second

zero point six two element

GET Type Request

GetRequest

Case 7: Automatic dump and cleaning OSS data

Example 1: Data is deleted after being transferred from standard to archive

Mr. Wang Yu two thousand and twenty-four year 09 month 01 Japan in East China 1 (Hangzhou) Bucket Stored one hundred and fifty 10000 files (assuming that the file size of all files is greater than 64 KB), Its total storage capacity 100 GB. All files are stored in the directory dir Next. To cope with the change of data access requirements in different stages, Mr. Wang has set the following life cycle rules:

  1. Phase I: The data needs frequent access at the initial stage dir The files under the directory are stored in the standard storage (local redundancy) state. This phase continues ten Days.

  2. Phase II: Data access frequency is low (single file cannot be accessed monthly one But still need to ensure real-time access, all dir The files in the directory are dumped as low-frequency access (local redundancy) storage type. This phase continues twenty-five Days.

  3. Stage 3: data entering single file ninety No access in days one Secondary stage, all dir The files in the directory are dumped to the archive (local redundancy) type. This phase continues five Days.

  4. Stage 4: Data enters the stage where it no longer needs to be retained. Data is stored in archive (local redundancy) type five Days, delete all dir Directory.

For the above scenarios, the total expenses paid this month thirty-two point five seven five RMB, the charging details are as follows:

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

100GB Files are stored in standard storage (local redundancy) ten day

Standard storage (local redundancy) capacity

StorageZRS

zero point one five RMB/GB/month

100GB storage ten day

four point nine nine five element

100GB Files are stored in low-frequency access (local redundancy) type twenty-five day

Low frequency access (intra city redundancy) capacity

ChargedDatasizeZRS

zero point one zero RMB/GB/month

100GB storage twenty-five day

eight point three three element

100GB Files are stored as archives (local redundancy) five day

Archive (local redundancy) capacity

ChargedDataSizeArcZRS

zero point zero three three RMB/GB/month

100GB storage five day

zero point five five element

100GB Files are stored as archives (local redundancy) five Days after deletion

Archive storage (local redundancy) is insufficient for the specified duration

LessthanMonthDatasizeArcZRS

zero point zero three three RMB/GB/month

100GB storage twenty day

two point two element

Converting storage types through lifecycle involves request operations

Standard to low-frequency access request fee

PUT Class Request

zero point zero one RMB/10000 times

one million and five hundred thousand second

one point five element

Low frequency access to archive request fee

PUT Class Request

zero point one RMB/10000 times

one million and five hundred thousand second

fifteen element

The minimum storage duration of archive (local redundancy) type is sixty Days. Minimum storage duration Object Of LastModified The time (the time stored in the standard type) starts to calculate. Therefore, this scenario will generate twenty Days (i.e 60-10-25-5) archive storage is insufficient for the specified duration capacity charge.

Example 2: Data is deleted after changing from low frequency to cold archive

Mr. Zhang Yu two thousand and twenty-four year 09 month 01 Japan in East China 1 (Hangzhou) Bucket Stored two thousand and five hundred 10000 files (assuming that the file size of all files is greater than 64 KB), Its total storage capacity is 2.5 TB, All files are stored in the directory dir Next. To cope with the change of data access requirements in different stages, Mr. Zhang has set the following life cycle rules:

  • Phase I: Data access frequency is low (single file cannot be accessed monthly one But still need to ensure real-time access, all dir The files under the directory are stored in the way of low-frequency access (local redundancy). This phase continues one hundred Days.

  • Phase II: data entering single file ninety No access in days one In the second stage, all dir The files under the directory are dumped to the archive (local redundancy) type. This phase continues two hundred Days.

  • Stage 3: Data cannot be accessed in a single file year one In the second stage, all dir The files under the directory are dumped to the cold archive (local redundancy) type. This phase continues five Days.

  • Stage 4: Data enters the stage where it no longer needs to be retained. When data is stored in cold archive (local redundancy) type five Days, delete all dir Directory.

Based on the above scenario, the total payment is one thousand nine hundred and seventy-six point three RMB, the charging details are as follows:

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

2.5TB Files are stored in low-frequency access (local redundancy) type one hundred day

Low frequency access (local redundancy) capacity

ChargedDatasize

zero point zero eight RMB/GB/month

2.5TB storage one hundred day

six hundred and eighty-two point seven element

2.5TB Files are stored as archive storage (local redundancy) two hundred day

Archive (local redundancy) capacity

ChargedDatasize

zero point zero three three RMB/GB/month

2.5TB storage two hundred day

five hundred and sixty-three point two element

2.5TB Files are stored in the cold archive storage (local redundancy) type five day

Cold archive (local redundancy) capacity

ChargedDatasizeCA

zero point zero one five RMB/GB/month

2.5TB storage five day

six point four element

2.5TB File cold archive storage (local redundancy) type storage five Days after deletion

Cold archive storage (local redundancy) is insufficient for the specified duration

ChargedDatasizeDeepCA

zero point zero one five RMB/GB/month

2.5TB storage one hundred and seventy-five day

two hundred and twenty-four element

Converting storage types through lifecycle involves request operations

Low frequency access to archive storage request fee

PUT Class Request

zero point one RMB/10000 times

two thousand and five hundred 10000 times

two hundred and fifty element

Archive storage to cold archive storage request fee

PUT Class Request

zero point one RMB/10000 times

two thousand and five hundred 10000 times

two hundred and fifty element

The minimum storage duration of the cold archive (local redundancy) type is one hundred and eighty Days. Minimum storage duration Object The time when the dump is a cold archive type starts to count. Therefore, in this scenario one hundred and seventy-five Days of cold archive storage is insufficient for the specified duration capacity charge.

To avoid the cost of insufficient capacity for a specified period of time, you need to understand different storage types Object The minimum storage duration calculation method of is used to ensure that the minimum storage duration is met before dumping or deleting. For more information, see How to avoid the cost of insufficient storage for a specified length of time?

Case 8: Restore extremely cold OSS data

Mr. Wang Yu two thousand and twenty-four year ten month 01 Japan in East China 1 (Hangzhou) Bucket Stored about six Billion files. Considering that these files may need to be retained for a long time without frequent access, we initially chose the deep cold archive type with the lowest storage cost for storage, and the total capacity reached 900TB. Due to changes in business requirements, it is necessary to access some files, which account for 5%, the number of documents involved is three thousand Ten thousand. Based on the characteristics of deep cold archive files, unfreezing needs to be completed before reading data. Assume that the thaw status duration of deep cold archive settings is ten Days, during this period OSS A copy of a file of the standard storage (local redundancy) type is generated for temporary access.

Based on the above scenarios, the details of the fees paid this month are as follows:

Standard retrieval

Withdraw according to the standard, and the fee paid is 7,682.64 Yuan.

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

thaw three thousand 10000 files, accounting for 900TB Total storage capacity 5%

Deep cold archive standard retrieval request

DeepCAStdRetrievalRequest

one point six seven RMB/10000 times

three thousand 10000 times

5,010 element

Deep cold archive standard retrieval capacity

DeepCAStdRetrievalData

zero point zero one eight RMB/GB

45TB

eight hundred and twenty-nine point four four

Generate a copy of a file of standard storage (local redundancy) type for unfreeze status duration ten day Internal data access

Temporary storage capacity

TempStorageCAStd

zero point one two element GB/month

45TB storage ten day

1,843.2 Yuan

High priority retrieval

Retrieved according to high priority, and the fee paid is 28,833.6 Yuan.

operation

Billing items involved

Billing Item Code

Unit Price

Billing volume

cost

thaw three thousand 10000 files, accounting for 900TB Total storage capacity 5%

Deep cold archive high priority retrieval request

DeepCAHighPriorRetrievalRequest

7 yuan/10000 times

three thousand 10000 times

21,000 element

Deep cold archive high priority retrieval capacity

DeepCAHighPriorRetrievalData

0.13/GB

45TB

5,990.4 element

Generate a copy of a file of standard storage (local redundancy) type for unfreeze status duration ten Data access within days

Temporary storage capacity

TempStorageCAStd

0.12GB/month

45TB storage ten day

1,843.2 Yuan

Generate a copy of a file of standard storage (local redundancy) type for unfreeze status duration ten Data access within days, when 900TB The data of will be collected according to the standard storage (local redundancy) type ten Days of storage.

To help you use deep cold archive storage more economically, see Best Practices for Deep Cold Archive Storage