All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Billing modes and billing items

Last updated:2020-12-28 14:55:25

Billing modes

Pay-As-You-Go

Kingsoft Cloud Log Service (KLog) supports the Pay-As-You-Go (By Traffic) and Pay-By-Daily-Config billing modes. If you want to use the Pay-By-Daily-Config billing mode, submit a ticket.

Resource packages

KLog supports a variety types of resource packages, including read and write traffic packages, storage packages, and indexing traffic packages. For more information, see Resource packages.

Billing items

This section describes the billing items that KLog supports.

Read and write traffic

  • The read and write traffic is calculated based on the compressed log data.
  • The read and write traffic includes the traffic that is generated by data consumption in streaming mode. Generally, data is consumed by using the API or SDK.

Example:

The size of the raw logs is 10 GB. After the raw logs are compressed, the size is reduced to 1.5 GB. The read and write traffic is charged based on 1.5 GB. The free quota is 200 MB. The fee is calculated based on the following equation: (1.5 GB - 200 MB) × 0.16 = CNY 0.208.

Storage space

  • The storage space indicates the sum of the raw data volume after compression and index data volume. The relationship between the raw data volume and index data volume is expressed with this equation: Index data volume = Raw data volume before compression × 0.6.
  • The index data is generated after the raw data is written to KLog and occupies additional data storage. The index data is used for accelerated queries.
  • The storage space is calculated based on the data volume in the previous day.

Example:

A total of 1 GB log data is generated each day. The data compression rate is 20%. The size is reduced to 200 MB after the data is compressed. Indexing is enabled for all data. The index data occupies 0.6 GB storage space. The log data is stored for one day. The free quota is 200 MB. The fees in three consecutive days are calculated based on the following equations:
Day 1: Charged storage space = 0.6 GB + 200 MB - 200 MB = 0.6 GB, Storage fee = 0.6 × 0.011 = CNY 0.0066
Day 2: Charged storage space = 0.6 GB + 0.8 GB = 1.4 GB, Storage fee = 1.4 × 0.011 = CNY 0.0154
Day 3: Charged storage space = 1.4 GB + 0.8 GB - 0.6 GB = 1.6 GB, Storage fee = 1.6 × 0.011 = CNY 0.0176.

Indexing traffic

  • The indexing traffic is generated when indexes are generated for data. By default, the full-text index and field index are enabled.

Example:

When 10 GB log data is indexed, 10 GB indexing traffic is generated. The free quota is 200 MB. The fee is calculated based on the following equation: (10 GB – 200 MB) × 0.34 = CNY 3.332.

Number of partitions

  • KLog charges you for the total number of partitions in all LogPools.
  • The fee is calculated based on the maximum number of partitions in a day.

Example:

A LogPool contains five partitions, and you change the number of partitions to four. The fee in the bill of tomorrow is still calculated based on five partitions.

Number of reads and writes

  • KLog charges you for the number of times that log data is written to KLog and the number of times that log data is consumed.

Example:

On day 1, data is written to KLog by using the API, which generates one million writes. The free quota is one million times. Therefore, the fee on day 1 is CNY 0. On day 2, data is written to KLog by using the API, which also generates one million writes. The fee for the one million writes on day 2 is CNY 0.1.

Read traffic from the Internet

  • KLog charges you for the traffic generated by reads from the Internet, for example, when you consume data over the Internet.
  • KLog does not charge you for the traffic generated when you upload data from the Internet. However, the reliability of the data upload is not guaranteed.

Example:

When you deliver 2 GB data to a third-party service over the Internet, 2 GB read traffic from the Internet is generated. KLog charges you CNY 1.6.

Pricing

Read and write traffic Storage space Indexing traffic Number of partitions Number of reads and writes Read traffic from the Internet
Price(CNY) ¥0.16/GB ¥0.011/GB/Day ¥0.34/GB ¥0.04/Day/Partition ¥0.1/One million times ¥0.8/GB

Free quotas

KLog provides free quotas for you each month. The following table lists the free quotas for specific billing items.

Read and write traffic Storage space Indexing traffic Number of partitions Number of reads and writes Read traffic from the Internet
Free quota/month 200 MB 200 MB 200 MB 9 1 million N/A
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback