tencent cloud

COS Cost Optimization Solutions
Last updated: 2025-08-22 10:41:49
COS Cost Optimization Solutions
Last updated: 2025-08-22 10:41:49
With the increasing number of enterprises migrating to the cloud, cost control has become a key concern. Business growth often results in massive storage demands. How can enterprises optimize costs when storing data in the cloud to reduce operational burdens?
Before optimizing costs, it is important to understand the cost composition of Tencent Cloud Object Storage (COS). The main billing items of object storage include five categories: storage capacity fees, data transfer fees, request fees, data retrieval fees, and management function fees.

For most enterprises, storage capacity fees and data transfer fees constitute the majority of cloud storage costs. Regarding storage fees, Tencent Cloud Object Storage offers multiple storage classes, such as Standard Storage, Infrequent Access Storage, Archive Storage, and Deep Archive Storage, with different product specifications and pricing. Enterprises can select the storage class that balances cost-effectiveness with their business requirements. For traffic fees, there are various types including external internet egress traffic, CDN origin pull traffic, cross-region replication traffic, and global acceleration traffic. Different business models result in different compositions of traffic fees. For example, an e-commerce website with a large volume of image distribution will typically incur greater costs from CDN origin pull traffic.

Optimization 1: Choose the suitable storage type and business region

Selecting the right storage class and business region based on your business model can significantly optimize enterprise storage costs.
Object storage offers a diverse range of storage types for enterprises, allowing them to choose different storage types based on their performance, data durability, and business availability requirements, while incurring varying costs. Standard Storage has relatively higher storage fees but provides the lowest read latency. Infrequent Access Storage, Archive Storage, and Deep Archive Storage have lower storage capacity fees, but when downloading data, additional data retrieval fees are incurred, and longer retrieval times are required. Therefore, these storage types are more suitable for scenarios with infrequent data access.
The following table illustrates the storage costs for storing 100 TB of business data in the Guangzhou region for one month using different storage types:
Metric
STANDARD
Infrequent Access Storage
ARCHIVE
DEEP ARCHIVE
MAZ_STANDARD
MAZ_STANDARD_IA
Storage Price (USD/GB/month)
0.016
0.01
0.004
0.0016
0.0195
0.0132
Traffic Price (USD/GB)
0.1
0.1
0.1
0.1
0.1
0.1
Request Unit Price (USD per 10,000 requests)
0.002
0.01
0.002
Read/write Requests: 0.07 Standard retrieval Request: 1
0.002
0.01
Data Retrieval Price (USD/GB)
0
0.002
Standard Retrieval:0.01
Standard Retrieval: 0.02
0
0.002
Total Cost (100TB storage + no downloads)
1638.40
1024.00
409.60
163.84
1996.80
1351.68
Total cost (100TB storage + 100TB download + 1 million requests + 100TB retrieval)
11638.60
11229.80
11433.80
12318.84
11997.00
11557.48
Total cost (100TB storage + 500TB download + 1 million requests + 500TB retrieval)
51638.60
52049.00
55529.80
60510.84
51997.00
52376.68
Note:
To learn about the unit prices for other regions and storage types, please refer to the COS Pricing page.
As seen in the table, if the business data download volume is low, choosing Archive Storage or even Deep Archive Storage can effectively reduce storage costs, with the coldest Deep Archive Storage saving up to 90% of storage fees compared to Standard Storage. However, if the business data requires frequent downloads, the retrieval fees of Infrequent Access Storage, Archive Storage, and Deep Archive Storage will result in additional cost overheads, leading to higher overall expenses.
In specific business scenarios, we recommend:
1. Frequent read-write scenarios: For businesses with more reads than writes, such as UGC scenarios and e-commerce images, Standard Storage can be used. If the business requires high availability and data durability, consider using Multi-AZ Standard Storage.
2. Low-frequency read scenarios (once a month): For businesses such as log data analysis and cloud storage data, where the read frequency is low but high performance is required during reads, Infrequent Access Storage can be used. For businesses with high requirements for availability and data durability, Infrequent Access Storage (multi-AZ) is recommended.
3. Very infrequent read scenarios (once every three months): For businesses such as video surveillance and log data archiving, where the read frequency is extremely low and read performance requirements are minimal, Archive Storage can be used.
4. Infrequent access scenarios (accessed once every six months): For businesses such as medical imaging and archival materials that only require long-term backups and have virtually no demand for read performance, Deep Archive Storage can be used.
Additionally, when selecting different storage types, we recommend that enterprises pay attention to the minimum storage duration and minimum storage unit restrictions for some storage types, as well as the performance differences between them. The following table provides a simple comparison.
Comparison Item
STANDARD
Infrequent Access Storage
ARCHIVE
DEEP ARCHIVE
MAZ_STANDARD
MAZ_STANDARD_IA
Time to First Byte (TTFB)
Milliseconds
Milliseconds
Minimum 1-minute recovery time.
Restore within a minimum of 12 hours.
Milliseconds
Milliseconds
Minimum Storage Unit
No limit
64KB
64KB
64KB
No limit
No limit
Minimum Storage Time
No limit
30 days
90 days
180 days
No limit
30 days
Data durability
Eleven nines
Eleven nines
Eleven nines
Eleven nines
Twelve nines
Twelve nines
Designing for availability in business operations.
99.95%
99.95%
99.95%
99.95%
99.995%
99.995%
Note:
Minimum storage duration: The shortest time a file must be stored in a specific storage type. If the actual storage time is shorter than the minimum duration, the fee will be calculated based on the minimum duration. For example, if a file in Infrequent Access Storage is stored for only 1 day and then deleted, the fee will still be calculated based on a 30-day storage period, as the minimum storage duration for Infrequent Access Storage is 30 days.
Minimum Storage Unit: The minimum file capacity required when a file is stored in a specific storage type. If the file capacity does not meet the minimum requirement, it will be calculated based on the minimum file capacity. For example, Infrequent Access Storage requires a minimum of 64KB. If a file in this storage type only occupies 1KB, the fee will still be calculated based on 64KB.

Optimization 2: Analyze access patterns and implement data tiering

1. Regularly analyze data access patterns using inventory and access log features

Analyzing data access patterns can provide data analytics support for selecting a reasonable storage type. Tencent Cloud Object Storage (COS) offers inventory and access log features, which record file metadata information and file access records, respectively, and transfer this information to the user's storage bucket.
Note:
For a detailed introduction to the inventory feature, see Inventory Feature Overview.
For a detailed introduction to the access log management feature, please refer to Log Management Overview.
Object Storage offers the COS Select feature, which allows you to search the contents of files. If you have generated a large number of inventory files or log records, you can also purchase an Elastic Map Reduce cluster and set up a Presto cluster for data analysis.
Note:
For an overview of the COS Select feature, see Select Overview.
For information on using EMR for analysis, please refer to Analyzing Data in COS with Presto.
Taking the example of retrieving and analyzing data from an inventory file, once the inventory report is delivered to the specified bucket, you can access the console to analyze the designated report. The analysis operation guide is as follows:
Note:
For instructions on generating inventory reports, please refer to Enabling Inventory Feature
The console only supports searching for files smaller than 128MB. If the inventory report has a large capacity or a high number of reports, you can opt for using tools, SDKs, or APIs to make the call.
1. Log in to the COS Console.
2. Click the name of the bucket you wish to configure to enter the bucket list page.
3. Locate the corresponding report list, and in the Operation column on the right, select More > Retrieve.
4. On the object retrieval page, configure the corresponding input parameters, enter the retrieval statement, and click Run SQL to view the retrieval results on the results card page.
Here are some common retrieval statements for inventory reports:
Query the number of files for a specific storage type on a particular day:
select count(*) from cosobject s where s._7 = <storage_class>
select count(*) from cosobject s where s._7 = 'Standard'
Query the storage capacity in MB for a specific storage type on a particular day:
select SUM(CAST(s._4 AS FLOAT))/1024/1024 from cosobject s where s._7 = <storage_class>
select SUM(CAST(s._4 AS FLOAT))/1024/1024 from cosobject s where s._7 = 'Standard'
Query the number of files smaller than 64KB for a specific storage type:
select count(*) from cosobject s where s._7 = <storage_class> and CAST(s._4 AS FLOAT) < <SIZE>
select count(*) from cosobject s where s._7 = 'Standard_IA' and s._4 < 64*1024
Query the number of files with cross-region replication failures within the bucket:
select count(*) from cosobject s where s._9 = 'Failed'
Note:
The inventory report does not include header information, so you can only search by entering the corresponding field's serial number. The header and serial number correspondence information for the inventory report is as follows:
Appid
Bucket
Key
Size
LastModifiedDate
ETag
StorageClass
IsMultipartUploaded
ReplicationStatus
s._1
s._2
s._3
s._4
s._5
s._6
s._7
s._8
s._9

2. Transition data using lifecycle policies and batch processing

During business development, data access patterns are constantly changing. By periodically analyzing data access patterns using inventory and access log features, you can "cool down" business data based on the analysis report.
For most data, the access frequency tends to decrease as the storage duration increases. Therefore, enterprises need to adjust their data storage types based on the changing access patterns of their business data to achieve optimal cost control.
Object storage offers a lifecycle feature that helps enterprises periodically transition storage types. Enterprises can analyze their business data access patterns using inventory and access logs, and establish reasonable lifecycle transition rules based on these access patterns.
Taking a customer from a community platform as an example, they use object storage services to store user-uploaded image data. Generally, image data is frequently accessed shortly after being uploaded, and after some time, most data gradually "cools down," with access frequency decreasing. Assuming that for this customer, the access frequency of most image data drops below once per month after 90 days and is virtually not accessed after 365 days, we can compare the cost scenarios when setting a lifecycle policy and not setting a lifecycle policy:
Comparison Item
Use Standard Storage only.
Use Standard Storage for hot data, and transition to Infrequent Access Storage after 90 days.
Utilize Standard Storage for hot data, transition to Infrequent Access Storage after 90 days, and move to Archive Storage after 365 days.
Storage unit price (USD/GB/month, using Guangzhou region as an example)
Standard Storage: 0.016
Standard Storage: 0.016
Infrequent Access Storage: 0.01
Standard Storage: 0.016
Infrequent Access Storage: 0.01
Archive Storage: 0.004
Storage Time
Twenty-four months
Twenty-four months
(3 months of Standard Storage + 21 months of Infrequent Access Storage)
Twenty-four months
(3 months of Standard Storage + 9 months of Infrequent Access Storage + 12 months of Archive Storage)
Total Storage Fees (USD)
39321.60
26419.20
19046.40
As observed, using lifecycle rules to manage objects in storage buckets can substantially reduce data storage costs. For long-term data storage, properly configuring lifecycle rules can help businesses reduce storage costs by more than 50%.
In addition to managing the storage type of business data, the lifecycle feature can also be used to manage file fragments and historical version files in storage buckets. File fragments are incomplete file chunks generated when the transmission of large files fails due to unexpected interruptions, such as network disconnections. If there are numerous file fragments in the business data, you can use lifecycle rules to delete expired fragments. Historical version files are old file information generated after enabling version control. These files can be used for data recovery and rollback in case of accidental deletion but will occupy storage space. Businesses can also set an expiration time for deleting historical version files that are no longer in use, achieving a balance between data security and cost.
Refer to Setting Lifecycle to add rules and enable Manage Historical Version Files for downgrading or deleting historical version files. Select Delete Fragments and set an expiration time to clean up any potential file fragments.
For specific businesses that require a one-time conversion of a large number of files to colder storage types without fixed rules (such as specified prefixes or tags), users can utilize the COS Batch Processing (Batch) feature. This feature allows for batch replication of data to other storage types. Additionally, you can add object tags to your business data to set lifecycle rules for batch deletion. The operation steps are as follows:
1. Export the list of files pending processing and consolidate them into a CSV format file.
2. Create a COSBatch bulk processing task and import the file list.
3. Initiate a batch processing task and wait for its completion.
For detailed instructions, refer to Batch Processing.

Conduct a cost review.

Cost optimization should be implemented throughout the entire business process, not just during the initial cloud migration planning. Businesses need to periodically review their costs. On the one hand, as the business grows, storage demands and data access patterns are constantly changing. On the other hand, Tencent Cloud Object Storage is committed to providing users with lower-cost storage services to help reduce costs and increase efficiency. Therefore, conducting regular cost reviews and planning the cloud storage architecture according to business needs is beneficial for reducing storage costs.
In addition, you can also:
1. Go to the Bill Download page in the Billing Center to download your Tencent Cloud billing statement and understand your cloud storage usage details. Analyze your cloud storage consumption and optimize it accordingly.
2. Follow the Tencent Cloud Storage WeChat Official Account or visit the Object Storage Console Overview page to stay informed about new product releases and cost optimization-related updates.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback