A billing method for NoSQL cloud database resource usage

Through the normalized weight determination method based on cost resource consumption, the read and write operation costs of NoSQL cloud databases are calculated, which solves the problem of inapplicability of traditional billing methods and realizes reasonable billing and cloud services for NoSQL database resource usage. Provides a simple and effective billing solution for merchants' profits.

CN114997898BActive Publication Date: 2024-10-29EAST CHINA NORMAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210414913.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-20
Publication Date
2024-10-29
Estimated Expiration
2042-04-20

AI Technical Summary

Technical Problem

The billing method of traditional relational cloud databases is not suitable for NoSQL databases, resulting in unreasonable billing, which may lead to operational losses or low user acceptance, making it difficult to ensure reasonable profits for cloud service providers and users' understanding of billing.

Method used

The normalized weight determination method based on cost resource consumption is used to calculate the resource consumption of read and write operations by obtaining the CPU, memory and IO resource consumption in different stable states. The least squares method is used to obtain the resource weight and calculate The billing unit price for reading and writing is used to calculate the cost of NoSQL cloud database resource usage.

Benefits of technology

It implements a simple, effective and standardized billing standard, ensures reasonable profitability of cloud service providers and user understanding, solves the problem of NoSQL database resource usage billing, and has good application prospects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114997898B_ABST
    Figure CN114997898B_ABST
Patent Text Reader

Abstract

The present invention discloses a billing method for NoSQL cloud database resource usage, which is characterized in that the method includes: collecting resource consumption parameters of a physical machine when the NoSQL cloud database product is stably running; collecting resource consumption when reading and writing fixed-size data; designing a normalized weight determination method based on cost resource consumption when the physical machine is stably running the NoSQL cloud database product, and using the resource consumption when reading and writing fixed-size data to determine the calculation of the reading and writing billing unit price, and then calculating the user resource usage fee and the like. Compared with the prior art, the present invention is simpler and more effective, and provides the possibility for reasonable profit and billing of NoSQL databases in the form of mathematical modeling, and better solves the problem of difficulty in billing NoSQL database resource usage, and can be widely used in resource usage fee calculation of NoSQL cloud database read and write operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud computing resource management, and in particular to a method for calculating resource usage fees for NoSQL cloud database read and write operations. Background Art

[0002] NoSQL database refers to a non-relational database that supports the storage of ultra-large-scale data. These types of data storage do not require a fixed data model and can be horizontally expanded without unnecessary operations. Based on the above characteristics, NoSQL database makes up for the shortcomings of relational database table structure that is difficult to expand, high cost of maintaining indexes and data consistency, and high IO pressure under high concurrency. Its importance and high practicality are becoming increasingly apparent.

[0003] However, precisely because NoSQL is more inclusive of data models, the traditional relational cloud database billing method is obviously no longer applicable. The choice of billing method will directly affect the profitability of cloud service operators and the degree of user recognition of cloud service products. Unreasonable billing may lead to operating losses or irregular billing standards and low user acceptance. Therefore, designing a billing method that can ensure reasonable profits for cloud service providers and is easy for users to understand has become a difficult problem. Summary of the invention

[0004] The purpose of the present invention is to design a billing method for NoSQL cloud database resource usage in response to the deficiencies of the prior art. The method adopts a normalized weight determination method based on cost resource consumption to calculate the resource consumption when reading and writing fixed-size data on a NoSQL cloud database product that is running stably on a physical machine.

[0005] To determine the billing unit price of reading and writing, and then calculate the cost of using NoSQL cloud database resources. This method is simple and effective, and the billing standard is standardized and reasonable. It solves the problem of difficult billing of NoSQL database resource usage, and provides a possibility for reasonable profit and billing of NoSQL database of cloud service providers, and has a good application prospect.

[0006] The object of the present invention is achieved by: a billing method for NoSQL cloud database resource usage, characterized in that the method specifically comprises the following steps:

[0007] Step 1: Based on the relevant parameters of different physical machines when running NoSQL cloud database products stably, obtain the resource consumption under different stable states, including: CPU resource consumption Memory resource consumption and IO resource consumption Get the operating cost TCO of a single physical machine that the operator needs to bear at this time and the expected profit rate P of a single physical machine. Get the resource consumption when reading 4KB of data in the NoSQL database, including: CPU resource consumption u cpu , memory resource consumption u mem and IO resource consumption u io ; Get the resource consumption when writing 1KB of data in the NoSQL database, including: CPU resource consumption v cpu 、Memory resource consumptionv mem and IO resource consumption v io .

[0008] Step 2: Based on the multiple stable states S obtained in step 1 i CPU resource consumption Memory resource consumption IO resource consumption The operating cost TCO and expected profit margin P of a single physical machine are obtained by the least square method to obtain the normalized weight based on cost resource consumption. The normalized weight is calculated by the following formula (a):

[0009]

[0010] Among them, w cpu is the CPU resource weight; w mem is the memory resource weight; w io It is the IO resource weight.

[0011] Step 3: Based on the normalized weights based on cost resource consumption obtained in step 2, the resource consumption generated when reading 4KB of data and writing 1KB of data is used as the physical unit for reading and writing operations, respectively, to calculate the read unit RU price RU price and Write Unit WU(Write Unit) Price WU price The reading unit RU (Read Unit) price RU price Calculated by the following formula (b):

[0012] RU price =w cpu u cpu +w mem u mem +w io u io (b);

[0013] The write unit WU (Write Unit) price WU price Calculated by the following formula (c):

[0014] WU price =w cpu v cpu +w mem v mem +w io v io (c);

[0015] Among them, RU price The fee for reading 4KB of data; WU price This is the fee incurred when writing 1KB of data.

[0016] Step 4: The logical units of measurement for read and write operations are calculated in RU and WU, respectively. The amount of data read and written by the tenant is obtained, and the resource usage fee C is calculated. The resource usage fee C in step 4 is calculated by the following formula (d):

[0017]

[0018] Among them, R is the sum of the data size of all row primary keys read in the read operation and the data size of the attribute columns actually read in each row; W is the total amount of data written in the write operation; the units of R and W are both KB.

[0019] Compared with the prior art, the present invention has the advantages of being simple and effective, and having standardized and reasonable billing standards. By means of mathematical modeling, a simple and effective billing method for NoSQL cloud database resource usage is designed, which provides the possibility for reasonable profit and billing of NoSQL database, and better solves the problem of difficult billing of NoSQL database resource usage. The present invention has good application prospects and can be widely used in resource usage fee calculation of NoSQL cloud database read and write operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0021] See also Figure 1 The present invention designs and implements a simple and easy-to-understand billing method for NoSQL cloud database resource usage. To make the purpose, technical solution and advantages of the present invention clearer, the specific implementation methods of the present invention will be further described in detail below.

[0022] Step 1: Get relevant parameters. First, get the resource usage parameters of the data center physical machine when running the NoSQL cloud database product stably. This includes CPU resource consumption. Memory resource consumption and IO resource consumption The above three parameters constitute a stable state Si Since different physical machines have different hardware configurations, they will show different resource consumption states during stable operation, thus multiple different stable states S can be obtained. i .

[0023] The operator's single physical machine operating cost TCO and the estimated profit margin P of a single physical machine are obtained to achieve reasonable profit for the operator. Secondly, multiple 4KB read operations and 1KB write operations are performed in the NoSQL database, and the average of the resource consumption is taken to obtain the CPU resource consumption u of the read operation. cpu , memory resource consumption u mem and IO resource consumption u io , and the CPU resource consumption v of the write operation cpu 、Memory resource consumptionv mem and IO resource consumption v io .

[0024] Step 2: According to the resource consumption conditions of multiple groups in a stable state, a method for determining a normalized weight based on cost resource consumption is established. The normalized weight is calculated by the following formula (a):

[0025]

[0026] Among them, the CPU resource weight w cpu 、Memory resource weight w mem and IO resource weight w io The CPU resource consumption in multiple stable states is Memory resource consumption and IO resource consumption As well as the operating cost TCO and the expected profit margin P are brought into formula (a), the CPU resource weight w can be obtained by the least squares method cpu 、Memory resource weight w mem and IO resource weight w io The value of .

[0027] Step 3: Take the resource consumption when reading 4KB of data and writing 1KB of data as the physical units for reading and writing operations, respectively, and calculate the read unit price RU (Read Unit) by combining the resource weight obtained in step 2. price and Write Unit WU(Write Unit) Price WU price The resource consumption generated by reading 4KB is multiplied by the corresponding resource weight and then added to get the RU price, which is calculated by the following formula (b):

[0028] RUprice =w cpu u cpu +w mem u mem +w io u io (b);

[0029] The WU price is obtained by multiplying the resource consumption generated by writing 1KB by the corresponding resource weight and adding them together, and is calculated by the following formula (c):

[0030] WU price =w cpu v cpu +w mem v mem +w io v io (c);

[0031] Among them, RU price The fee for reading 4KB of data; WU price This is the fee incurred when writing 1KB of data.

[0032] Step 4: To ensure that the cost of a given database operation performed on a given data set is deterministic, tenants are billed using 4KB reads and 1KB writes as logical units of measure for read operations and write operations, respectively. The amount of data R read and the amount of data W written by the tenant are obtained, and the resource usage fee C is calculated using the following formula (d):

[0033]

[0034] Among them, R is the sum of the data size of all row primary keys read in the read operation and the data size of the attribute columns actually read in each row; W is the total amount of data written in the write operation; the units of R and W are both KB.

[0035] The amount of data read and written may have a decimal part, so R and W are rounded up to obtain the actual amount of data to be charged, and it is substituted into formula (d) to obtain the fee C to be paid.

[0036] The above embodiments are only for further explanation of the present invention, and are not intended to limit the present invention. All equivalent implementations of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A billing method for NoSQL cloud database resource usage, characterized in that The normalized weight determination method based on cost resource consumption is adopted to determine the resource billing unit price of NoSQL cloud database resources by using the resource consumption when reading and writing fixed-size data in the database, and then calculate the resource usage fee. The specific steps include: Step 1: Obtain the following related parameters based on the stable operation of NoSQL cloud database products on different physical machines: 1-1: Obtain CPU resource consumption under different stable states Memory resource consumption and IO resource consumption 1-2: Obtain the operating cost TCO of a single physical machine that the operator needs to bear at this time and the expected profit margin P of a single physical machine; 1-3: Get the CPU resource consumption when reading 4KB of data in the NoSQL database cpu 、Memory resource consumption u mem and IO resource consumption u io ; 1-4: Get the CPU resource consumption when writing 1KB of data in the NoSQL database v cpu 、Memory resource consumptionv mem and IO resource consumption v io ; Step 2: CPU resource consumption under different stable states obtained in step 1 Memory resource consumption IO resource consumption The operating cost TCO and expected profit margin P of a single physical machine are used to obtain the normalized weight based on cost resource consumption through the least squares method; Step 3: Based on the normalized weights based on cost resource consumption obtained in step 2, the resource consumption generated when reading 4KB of data and writing 1KB of data is used as the physical unit for reading and writing operations, respectively, to calculate the read unit RU price RU price and Write Unit WU(Write Unit) Price WU price ; Step 4: Read operations and write operations use RU and WU as logical measurement units respectively, obtain the amount of data read and written by the tenant, and calculate the resource usage fee C.

2. The billing method for NoSQL cloud database resource usage according to claim 1 is characterized in that The normalized weight of step 2 is calculated by the following formula (a): Among them, w cpu is the CPU resource weight; w mem is the memory resource weight; w io It is the IO resource weight.

3. The billing method for NoSQL cloud database resource usage according to claim 1, characterized in that The reading unit RU (Read Unit) price of step 3 is RU price Calculated by the following formula (b): RU price =w cpu u cpu +w mem u mem +w io u io (b); The write unit WU (Write Unit) price WU price Calculated by the following formula (c): WU price =in cpu in cpu +in mem in mem +in io in io (c); Among them, RU price The fee for reading 4KB of data; WU price This is the fee incurred when writing 1KB of data.

4. The billing method for NoSQL cloud database resource usage according to claim 1, characterized in that The resource usage fee C in step 4 is calculated by the following formula (d): Among them, R is the sum of the data size of all row primary keys read in the read operation and the data size of the attribute columns actually read in each row; W is the total amount of data written in the write operation; the units of R and W are both KB.

5. The billing method for NoSQL cloud database resource usage according to claim 2, characterized in that The CPU resource weight w cpu 、Memory resource weight w mem and IO resource weight w io As the variable to be solved, the CPU resource consumption in multiple stable states is Memory resource consumption and IO resource consumption As well as the operating cost TCO and the expected profit margin P are brought into formula (a), the CPU resource weight w can be obtained by the least squares method. cpu 、Memory resource weight w mem and IO resource weight w io The value of .

Citation Information

Patent Citations

  • production of YIELDS USING UNUSED PRODUCT INVENTORY DATA.

    FR3042297A1

  • System, method and program product for obtaining digital assets

    US11308487B1