General FAQs

Last updated: 2019-11-12 11:30:23

PDF

What is COS?

Tencent Cloud Cloud Object Storage (COS) is a cloud-based non-hierarchical distributed storage service that provides cost-effective, fast, and reliable data storage solutions. COS stores your data across multiple AZs in a redundant manner and allows multiple clients or application threads to read or write your data at the same time.

You can use web APIs to store and retrieve data on a CVM instance or over the internet. You can also use the URL of the specified domain name to store and retrieve individual data object in COS over the HTTP or HTTPS protocol.

For more information on COS, see COS Product Overview.

What is the difference between COS and CFS?

COS has no limit on directory hierarchy or data format and can store any amounts of data. There is no upper limit on the storage capacity of buckets where no partitioning is required. It supports HA deployment to ensure the eventual consistency of data but not features such as file locking. Its APIs are provided for data access using the HTTP or HTTPS protocol, and its SDKs and tools can be integrated into your businesses. Objects uploaded to COS can be accessed or downloaded directly through URL.

Cloud File Storage (CFS) uses common network file transfer protocols, can create file systems and implement large-scale expansion, but needs to be mounted onto CVM. It can store data for a wide range of applications such as websites, online distribution, and archiving. Featuring high computing throughput and extremely high availability and persistence, it is also suitable for scenarios demanding high concurrence or shared storage.

What is the difference between COS and Cloud Block Storage (CBS)?

COS has no limits on file systems, directory structure, number of files, and storage capacity. It needs to be managed and accessed via web APIs. It offers various SDKs and tools for integration, which can also be used separately without CVM. COS supports access to massive amounts of data but is not suitable for scenarios involving millisecond-level response or random I/O.

Cloud Block Storage (CBS) needs to be used together with CVM and can only be mounted and used after the file system is partitioned or formatted. It comes in different types with varous performance metrics such as IOPS and throughput for different scenarios.

You can go to the object details page in the COS Console to get the object address and signature link.

If your file is public-read:

  • If you want to make it accessible to others all the time, you are recommended to directly use the object address.
  • If you want to make it accessible to others for a certain period of time, you are recommended to directly copy the signature link, which carries the signature parameter and is valid for 1 hour.

If your file is private:

  • If you want to make it accessible to others all the time, you are recommended to change its access permission to public-read/private-write and use the object address.
  • If you want to make it accessible to others for a certain period of time, you are recommended to directly copy the signature link, which carries the signature parameter and is valid for 1 hour.

What is "folder" or "directory" in COS?

The concepts of folder and directory do not apply to COS. However, taking into account the usage habits of different users, COS simulates the display mode of folders in the console based on the directory structure of traditional file management. For more information, see Folder and Directory.

Can COS files be recovered after being deleted?

The data redundancy storage mechanism of COS is designed for scenarios where it is necessary to recover data in case of failures in hardware such as servers. If you manually delete your data from COS or configure automated deletion, Tencent Cloud will delete the data as requested in an irrecoverable manner.

You can proactively delete files in the following ways:

  • Delete a single file, delete files in batches, clear incomplete multipart uploads, or empty buckets in the COS Console.
  • Delete files using COSCMD or COSBrowser.
  • Delete files using the COS APIs or SDKs.
  • Configure the system to delete files regularly through the lifecycle management feature of COS.
  • Sync the CRUD operations between buckets in different regions using the full sync feature of cross-region replication in COS, so that existing files with the same name will be overwritten or deleted.

How can I avoid accidental deletion?

  • Back up the files in your bucket on a regular basis:
    • Download the objects in COS to your local file system or third-party servers using the COSCMD.
    • Perform intra-region or cross-region bucket data backup using the COS Migration tool or the cross-region replication feature.
    • Regularly back up your data to other COS buckets using the COS APIs or SDKs.
    • Save your historical versions of data using versioning.
  • Use COS permission management. For more information, see Cloud Access Management Practices:
    • Separate read permission and write permission. For businesses where it is only necessary to read data, use a sub-account with read permission or a temporary key to access the data.
    • Separate the permission to different buckets. For different businesses, only authorize the corresponding buckets, directories, and operations as needed.
    • Do not use a root account to access COS.
    • Use a temporary key to access COS.
    • Keep the credentials for data access properly, such as Tencent Cloud account password, CAM sub-account access credentials, and TencentCloud API key.

Does COS have the statistics collection feature?

COS is capable of monitoring stored data and displaying details and trends of various metrics in the monitor window. To view general data trends, go to the Overview page in the COS Console where you can view data such as storage size, number of requests, and traffic by storage class.
To view statistics of a single bucket, see Querying Monitoring Reports.

In addition, you can also go to Cloud Monitor to view the monitoring data of different buckets and configure different alarm policies based on your business needs.

Does COS support image compression?

COS is a distributed storage service for unstructured data and does not support image compression.

Does COS support thumbnails?

COS is a distributed storage service for unstructured data and does not support thumbnails.

Does COS support transcoding video files?

COS is a distributed storage service for unstructured data and does not support transcoding video files.

Does COS support automatic decompression of uploaded files?

COS is a distributed storage service for unstructured data and does not support file decompression; however, you can use the SCF service to decompress files. For more information, see Using SCF to Decompress Zip Packages.

What are the specifications and limits of COS?

For more information, see Specifications and Limits.

Which version of COS should I use, a legacy version or the current version?

The implementation of legacy versions and that of the current version of COS are quite different. The current version has more features that will not be added to legacy versions. You are recommended to use the current version for a better experience. If you are using a legacy version, submit a ticket to activate the current version.

The current version comes with different APIs and SDKs from those in legacy versions. JSON APIs are used in legacy versions, while XML APIs are used in the current version. Both types of APIs have the same underlying architecture where data is interoperable; however, they are incompatible with each other and have different domain names.

How do I monitor error codes?

You can use Cloud Monitor to get different types of HTTP return codes and messages. For more information, see Monitoring and Alarming.

How do I calculate the availability of COS?

Below is an example of calculating the availability of COS for your reference:
Tom uses COS to run his ecommerce business. Assume that his business incurred fees of 100 USD from November 1 to 30, 2018, during which two unavailability events occurred as shown below:

Unavailability Event No. Duration 5-Minute Record of Unavailability Event HTTP Return Code Number of Failing Requests Number of Valid Requests
1
15 minutes November 15, 2018, 10:00 - 10:05 503 100 100
November 15, 2018, 10:05 - 10:10 503 99 100
November 15, 2018, 10:10 - 10:15 503 98 100
2
15 minutes November 20, 2018, 16:00 - 16:05 500 150 150
November 20, 2018, 16:05 - 16:10 500 148 150
November 20, 2018, 16:10 - 16:15 500 140 150

In other periods of time, Tom's requests were successful with 200 status codes returned.

In this case, the overall availability of the service month is as follows:

1. Calculate the 5-minute error rate for the current month

As shown in the example, when Tom's business was normal, the 5-minute error rate was 0%.

Unavailability event 1: The duration was November 15, 2018, 10:00 - 10:15, and the 5-minute error rate was:

  • 100 / 100 * 100% = 100%
  • 99 / 100 * 100% = 99%
  • 98 / 100 * 100% = 98%

Unavailability event 2: The duration was November 20, 2018, 16:00 - 16:15, and the 5-minute error rate was:

  • 150 / 150 * 100% = 100%
  • 148 / 150 * 100% = 98.67%
  • 140 / 150 * 100% = 93.33%

2. Calculate the service availability of the service month

In this example:

  • Total duration of the service month: 30 days * 24 hours/day * 60 minutes/hour = 43,200 minutes
  • Total number of 5-minute periods in the service month: 43,200 minutes / 5 minutes = 8,640
  • Total number of unavailable 5-minute periods in the service month: (15+15) minutes / 5 minutes = 6
  • Sum of the 5-minute error rates in the service month: (100%+99%+98%+100%+98.67%+93.33%)+(8,640-6) * 0% = 589%

Service availability for the month: (1-589%/8640) * 100% = 99.93%

3. Calculate the indemnification

In this example, the service availability is 99.93%, which is lower than the standard 99.95% but higher than 99.9%. According to the indemnification standard, Tom is eligible for indemnification equivalent to 20% of the total monthly service fees, i.e., 20 USD.
Tom only needs to submit a ticket to apply for indemnification within sixty (60) calendar days after the end of the service month, i.e., prior to January 29, 2019, and Tencent Cloud will indemnify Tom for his losses by issuing a voucher.