CN109903030A - It is a kind of for the charging method of cloud host, cloud host and storage medium - Google Patents
It is a kind of for the charging method of cloud host, cloud host and storage medium Download PDFInfo
- Publication number
- CN109903030A CN109903030A CN201910170880.XA CN201910170880A CN109903030A CN 109903030 A CN109903030 A CN 109903030A CN 201910170880 A CN201910170880 A CN 201910170880A CN 109903030 A CN109903030 A CN 109903030A
- Authority
- CN
- China
- Prior art keywords
- service request
- resource
- expense
- instruction
- storage resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention relates to a kind of charging methods for cloud host, belong to electronic information technical field, solve the problems, such as that existing charging mode can not efficiently use idle Service Source scheduling offer service, this method comprises: receiving the service request of user;Execute the corresponding instruction of service request;Calculate the memory usage amount for executing service request;The expense for executing service request and needing to pay is calculated according to memory usage amount.The invention has the benefit that by using the instruction to the execution serviced every time and occupying the statistics of resource and the mode of charging, change the charge mode of current cloud host extensive (according to cloud host configuring charging), the expense of calculating user that can be more accurate can reduce expenses for cloud host subscriber;The resource that cloud host can more efficiently be utilized simultaneously, reduces the waste of idle cloud host resource, effectively save resource.
Description
Technical field
The invention belongs to electronic information technologies, and in particular to a kind of for the charging method of cloud host, cloud host and storage
Medium.
Background technique
Existing cloud service charging mode to contract based on the usage time interval of resource, that is, need to the Service Source contracted into
The row normal phase occupies, and in not used situation, then the Service Source contracted is in idle state, does not simply fail to effective benefit in this way
Offer service is dispatched with idle Service Source, and increases the use cost of user, in the very valuable cloud meter of Service Source
It calculates and big data era, such charging mode will promote efficiency of service no longer for reasonable efficient scheduling slack resources
It is applicable in.
Summary of the invention
In order to solve the problems such as Service Source utilization efficiency of the existing technology is low, charging is unreasonable, the present invention is provided
A kind of charging method for cloud host, charging more reasonable the features such as efficient with the utilization of resources.
Service Source can be efficiently used the object of the present invention is to provide one kind, and the charged party for cloud host of service is provided
Method.
A kind of charging method for cloud host of specific embodiment according to the present invention, comprising:
Receive the service request of user;
Execute the corresponding instruction of the service request;
Calculate the memory usage amount for executing the service request;
The expense for executing the service request and needing to pay is calculated according to the memory usage amount.
Further, the determination process for needing the expense paid includes:
The number for executing the service request call instruction is counted;
It is counted to the occupied storage resource of service request call instruction is executed;
According to the number of the service request call instruction and the occupied storage resource of service request call instruction
Calculate the expense that the service request needs to pay that executes.
Further, described according to shared by the number of the service request call instruction and the service request call instruction
Storage resource calculates the expense that the execution service request needs are paid
According to the number computations Occupation coefficient of the service request call instruction, described instruction Occupation coefficient=instruction
Execute number/1024*100%;
Storage resource coefficient, the storage resource are calculated according to the occupied storage resource of the service request call instruction
Coefficient=memory usage amount/memory amount * 100%;
The expense for needing to pay=(instruction Occupation coefficient * instructs standard univalent+storage resource coefficient * storage resource standard
Unit price) * resource float factor, the resource float factor is the value weight of the service request.
Further, the determination process of the memory usage amount includes:
Before the instruction sequence for executing the service request, the memory for recording virtual machine in the cloud host uses feelings
Condition;
Difference before calculating current memory after described instruction sequence executes and executing obtains memory usage amount.
Further, the determination of the resource float factor is determined according to the significance level of the service request, right
The resource float factor, which is serviced, in important value is more than or equal to 1;For general value service, the resource float factor is less than
Equal to 1.
Further, the charging method further include: need the prepaid account of the expense that pays from user according to described
In directly deduct the expense of matching amount.
A kind of cloud host of specific embodiment according to the present invention, comprising:
Receiving module, for receiving the service request of user;
Execution module, for executing the corresponding instruction of the service request;
Computing module, for calculating the memory usage amount for executing the service request;And
Expenses management module, for calculating the expense for executing the service request and needing to pay according to the memory usage amount
With.
Further, the expenses management module includes:
Number statistic submodule, for being counted to the number for executing the service request call instruction;
Storage resource statistic submodule, for being carried out to the occupied storage resource of the execution service request call instruction
Statistics;And
Statistic submodule is paid, for referring to according to the number of the service request call instruction and service request calling
Occupied storage resource is enabled to calculate the expense that the service request needs to pay that executes.
Further, the payment statistic submodule includes:
Occupation coefficient computing unit is instructed, is for being occupied according to the number computations of the service request call instruction
Number, described instruction Occupation coefficient=instruction execution number/1024*100%;
Storage resource computing unit, for calculating storage according to the occupied storage resource of the service request call instruction
Resource factor, the storage resource coefficient=memory usage amount/memory amount * 100%;And
Expense generation unit generates the expense that need to be paid, the expense for needing to pay=(instruction occupancy system according to the following formula
Number * instructs standard univalent+storage resource coefficient * storage resource standard univalent) * resource float factor, the resource float factor
For the value weight of the service request.
A kind of storage medium of specific embodiment, the storage medium are stored with computer program according to the present invention, institute
When stating computer program and being executed by processor, each step in foregoing charging method is realized.
The invention has the benefit that by using the statistics and meter of instruction and occupancy resource to the execution serviced every time
The mode taken changes the charge mode of current cloud host extensive (according to cloud host configuring charging), meter that can be more accurate
The expense of user is calculated, can be reduced expenses for cloud host subscriber;The resource that cloud host can more efficiently be utilized simultaneously, reduces
The waste of idle cloud host resource, effectively save resource.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of the charging method for cloud host provided according to an exemplary embodiment;
Fig. 2 is the flow chart of the determination process for the expense that the needs provided according to an exemplary embodiment are paid;
Fig. 3 is the structural schematic diagram of the cloud host provided according to an exemplary embodiment;
Fig. 4 is the structural schematic diagram of the expenses management module provided according to an exemplary embodiment;
Fig. 5 is the structural schematic diagram of the payment statistic submodule provided according to an exemplary embodiment.
Appended drawing reference
1- receiving module;2- execution module;3- computing module;4- expenses management module;41- several statistic submodule;42-
Storage resource statistic submodule;43- pays statistic submodule;431- instructs Occupation coefficient computing unit;432- storage resource meter
Calculate unit;433- expense generation unit.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical solution of the present invention will be carried out below
Detailed description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, those of ordinary skill in the art are obtained all without making creative work
Other embodiment belongs to the range that the present invention is protected.
The embodiment provides a kind of charging methods for cloud host shown in referring to Fig.1, comprising the following steps:
101, the service request of user is received;
102, the corresponding instruction of service request is executed;
103, the memory usage amount for executing service request is calculated;
104, the expense for executing service request and needing to pay is calculated according to memory usage amount.
A kind of charging method for cloud host provided in this embodiment, by using to provide service execution instruction and
The statistics of resource and the mode of charging are occupied, the charging mould of current cloud host extensive (according to cloud host configuring charging) is changed
Formula, the expense of calculating user that can be more accurate can reduce expenses for cloud host subscriber;It simultaneously can more efficient benefit
With the resource of cloud host, the waste of idle cloud host resource, effectively save resource are reduced
Referring to shown in Fig. 2, in a specific embodiment of the invention, the determination process for the expense for needing to pay includes following
Step:
201, the number for executing service request call instruction is counted;
202, the execution occupied storage resource of service request call instruction is counted;
203, according to the number of service request call instruction and the occupied storage resource of service request call instruction
Calculate the expense that service request needs to pay that executes.
As a kind of feasible implementation of above-described embodiment, asked according to the number of service request call instruction and service
It asks the occupied storage resource of call instruction to calculate to execute service request and need the expense paid to include:
According to the number computations Occupation coefficient of service request call instruction, Occupation coefficient=instruction execution time is instructed
Number/1024*100%;
Storage resource coefficient, storage resource coefficient=interior are calculated according to the occupied storage resource of service request call instruction
Deposit usage amount/memory amount * 100%;
The expense for needing to pay=(instruction Occupation coefficient * instructs standard univalent+storage resource coefficient * storage resource standard
Unit price) * resource float factor, resource float factor is the value weight of service request.
Wherein, the determination of resource float factor is determined according to the significance level of service request, and important value is taken
Resource float factor be engaged in more than or equal to 1;For general value service, resource float factor is less than or equal to 1.
In a specific embodiment of the invention, it as soon as in annual double ten shopping section, the payment of shopping website and places an order
As high-value service, and chats and be then used as low value service, it in the actual use process can root for height value service
It is determined according to the occupancy situation to resource.
In a specific embodiment of the invention, the determination process of memory usage amount includes:
Before the instruction sequence for executing service request, the memory service condition of virtual machine in cloud host is recorded;
Difference before calculating current memory after instruction sequence executes and executing obtains memory usage amount.
In a specific embodiment of the invention, the expense paid as needed is directly detained from the prepaid account of user
Except the expense of matching amount.
As the implementation of above-described embodiment, user can check relevant data in customer center, accomplish precisely to unite
Count consumption information.Dispatch service can estimate similar operation that flexible dispatch service is asked according to predetermined protocol simultaneously
It asks, realizes resource-sharing.
Referring to shown in Fig. 3, the embodiments of the present invention also provide a kind of cloud hosts, comprising:
Receiving module 1, for receiving the service request of user;
Execution module 2, for executing the corresponding instruction of service request;
Computing module 3, for calculating the memory usage amount for executing service request;And
Expenses management module 4, for calculating the expense for executing service request and needing to pay according to memory usage amount.
Referring to shown in Fig. 4, in a specific embodiment of the invention, expenses management module 4 includes:
Number statistic submodule 41, for being counted to the number for executing service request call instruction;
Storage resource statistic submodule 42, for uniting to the execution occupied storage resource of service request call instruction
Meter;And
Statistic submodule 43 is paid, for according to shared by the number of service request call instruction and service request call instruction
Storage resource calculates the expense that service request needs to pay that executes.
Referring to Figure 5, in some embodiments of the invention, payment statistic submodule 43 includes:
Occupation coefficient computing unit 431 is instructed, is for being occupied according to the number computations of service request call instruction
Number instructs Occupation coefficient=instruction execution number/1024*100%;
Storage resource computing unit 432, for calculating storage according to the occupied storage resource of service request call instruction
Resource factor, storage resource coefficient=memory usage amount/memory amount * 100%;And
Expense generation unit 433, the expense that generation need to be paid according to the following formula, the expense for needing to pay=(instruction accounts for
Standard univalent+storage resource coefficient * storage resource standard univalent is instructed with coefficient *) * resource float factor, the resource floating
Coefficient is the value weight of the service request.
The embodiments of the present invention also provide a kind of storage medium, storage medium is stored with computer program, computer journey
When sequence is executed by processor, each step in foregoing charging method is realized.
It is provided in this embodiment a kind of for cloud host and storage medium, by using the instruction to the execution serviced every time
With the mode of the statistics and charging that occupy resource, the charging mould of current cloud host extensive (according to cloud host configuring charging) is changed
Formula, the expense of calculating user that can be more accurate can reduce expenses for cloud host subscriber;It simultaneously can more efficient benefit
With the resource of cloud host, the waste of idle cloud host resource, effectively save resource are reduced.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of charging method for cloud host characterized by comprising
Receive the service request of user;
Execute the corresponding instruction of the service request;
Calculate the memory usage amount for executing the service request;
The expense for executing the service request and needing to pay is calculated according to the memory usage amount.
2. the method according to claim 1, wherein the determination process for needing the expense paid includes:
The number for executing the service request call instruction is counted;
It is counted to the occupied storage resource of service request call instruction is executed;
It is calculated according to the number of the service request call instruction and the occupied storage resource of the service request call instruction
Execute the expense that the service request needs to pay.
3. according to the method described in claim 2, it is characterized in that, the number according to the service request call instruction and
The occupied storage resource of service request call instruction calculates the expense that the execution service request needs are paid
According to the number computations Occupation coefficient of the service request call instruction, described instruction Occupation coefficient=instruction execution
Number/1024*100%;
Storage resource coefficient, the storage resource coefficient are calculated according to the occupied storage resource of the service request call instruction
=memory usage amount/memory amount * 100%;
The expense that generation need to be paid according to the following formula, the expense for needing to pay=(instruction Occupation coefficient * instruction standard univalent+
Storage resource coefficient * storage resource standard univalent) * resource float factor, the resource float factor is the service request
It is worth weight.
4. according to the method described in claim 3, it is characterized in that, the determination process of the memory usage amount includes:
Before the instruction sequence for executing the service request, the memory service condition of virtual machine in the cloud host is recorded;
Difference before calculating current memory after described instruction sequence executes and executing obtains memory usage amount.
5. according to the method described in claim 3, it is characterized in that, the determination of the resource float factor is asked according to the service
The significance level asked is determined, is serviced the resource float factor for important value and is more than or equal to 1;General value is taken
Business, the resource float factor are less than or equal to 1.
6. according to the method described in claim 3, it is characterized by further comprising: needing the expense that pays from user according to described
Prepaid account in directly deduct the expense of matching amount.
7. a kind of cloud host characterized by comprising
Receiving module, for receiving the service request of user;
Execution module, for executing the corresponding instruction of the service request;
Computing module, for calculating the memory usage amount for executing the service request;And
Expenses management module, for calculating the expense for executing the service request and needing to pay according to the memory usage amount.
8. cloud host according to claim 7, which is characterized in that the expenses management module includes:
Number statistic submodule, for being counted to the number for executing the service request call instruction;
Storage resource statistic submodule, for uniting to the execution occupied storage resource of service request call instruction
Meter;And
Pay statistic submodule, for according to the service request call instruction number and the service request call instruction institute
The storage resource of occupancy calculates the expense that the service request needs to pay that executes.
9. cloud host according to claim 8, which is characterized in that the payment statistic submodule includes:
Occupation coefficient computing unit is instructed, for the number computations Occupation coefficient according to the service request call instruction,
Described instruction Occupation coefficient=instruction execution number/1024*100%;
Storage resource computing unit, for calculating storage resource according to the occupied storage resource of the service request call instruction
Coefficient, the storage resource coefficient=memory usage amount/memory amount * 100%;And
Expense generation unit generates the expense that need to be paid, the expense for needing to pay=(instruction Occupation coefficient * according to the following formula
Instruct standard univalent+storage resource coefficient * storage resource standard univalent) * resource float factor, the resource float factor is institute
State the value weight of service request.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program quilt
When processor executes, each step in charging method as claimed in any one of claims 1 to 6 is realized.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910170880.XA CN109903030A (en) | 2019-03-07 | 2019-03-07 | It is a kind of for the charging method of cloud host, cloud host and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910170880.XA CN109903030A (en) | 2019-03-07 | 2019-03-07 | It is a kind of for the charging method of cloud host, cloud host and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109903030A true CN109903030A (en) | 2019-06-18 |
Family
ID=66946667
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910170880.XA Pending CN109903030A (en) | 2019-03-07 | 2019-03-07 | It is a kind of for the charging method of cloud host, cloud host and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109903030A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110674190A (en) * | 2019-09-27 | 2020-01-10 | 北京金山云网络技术有限公司 | Statistical method, apparatus and server for file system tasks |
| CN112333226A (en) * | 2020-09-01 | 2021-02-05 | 中国铁路设计集团有限公司 | Cloud application platform charging method based on user activity |
| WO2021115085A1 (en) * | 2019-12-12 | 2021-06-17 | 北京金山云网络技术有限公司 | Cloud computing metering and charging method and apparatus, and electronic device and storage medium |
| CN118170826A (en) * | 2024-05-11 | 2024-06-11 | 中移(苏州)软件技术有限公司 | Usage statistics method and device and related equipment |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102111276A (en) * | 2009-12-29 | 2011-06-29 | 北京四达时代软件技术股份有限公司 | Real-time charging method and system |
| CN102143467A (en) * | 2010-08-25 | 2011-08-03 | 华为技术有限公司 | Method, device and system for implementing charging |
| CN102333103A (en) * | 2010-07-12 | 2012-01-25 | 戴元顺 | Cloud storage system |
| CN103414576A (en) * | 2013-07-24 | 2013-11-27 | 广东电子工业研究院有限公司 | A cloud computing resource usage billing method |
| CN103475495A (en) * | 2013-07-23 | 2013-12-25 | 国云科技股份有限公司 | A cloud computing virtual machine resource usage billing method |
| CN104104521A (en) * | 2014-08-08 | 2014-10-15 | 成都致云科技有限公司 | Cloud computing service flexible billing method based on actual usage |
| US20150081484A1 (en) * | 2011-04-07 | 2015-03-19 | Vmware, Inc. | Automated cost calculation for virtualized infrastructure |
| CN107222313A (en) * | 2017-08-03 | 2017-09-29 | 山东省计算中心(国家超级计算济南中心) | A kind of E-Government cloud service expense calculates monitoring method and system |
| CN108012243A (en) * | 2017-12-25 | 2018-05-08 | 苏州乐麟无线信息科技有限公司 | A kind of charging method and server |
| CN108171540A (en) * | 2017-12-26 | 2018-06-15 | 北京星河星云信息技术有限公司 | For the method and apparatus of resource metering and billing |
-
2019
- 2019-03-07 CN CN201910170880.XA patent/CN109903030A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102111276A (en) * | 2009-12-29 | 2011-06-29 | 北京四达时代软件技术股份有限公司 | Real-time charging method and system |
| CN102333103A (en) * | 2010-07-12 | 2012-01-25 | 戴元顺 | Cloud storage system |
| CN102143467A (en) * | 2010-08-25 | 2011-08-03 | 华为技术有限公司 | Method, device and system for implementing charging |
| US20150081484A1 (en) * | 2011-04-07 | 2015-03-19 | Vmware, Inc. | Automated cost calculation for virtualized infrastructure |
| CN103475495A (en) * | 2013-07-23 | 2013-12-25 | 国云科技股份有限公司 | A cloud computing virtual machine resource usage billing method |
| CN103414576A (en) * | 2013-07-24 | 2013-11-27 | 广东电子工业研究院有限公司 | A cloud computing resource usage billing method |
| CN104104521A (en) * | 2014-08-08 | 2014-10-15 | 成都致云科技有限公司 | Cloud computing service flexible billing method based on actual usage |
| CN107222313A (en) * | 2017-08-03 | 2017-09-29 | 山东省计算中心(国家超级计算济南中心) | A kind of E-Government cloud service expense calculates monitoring method and system |
| CN108012243A (en) * | 2017-12-25 | 2018-05-08 | 苏州乐麟无线信息科技有限公司 | A kind of charging method and server |
| CN108171540A (en) * | 2017-12-26 | 2018-06-15 | 北京星河星云信息技术有限公司 | For the method and apparatus of resource metering and billing |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110674190A (en) * | 2019-09-27 | 2020-01-10 | 北京金山云网络技术有限公司 | Statistical method, apparatus and server for file system tasks |
| CN110674190B (en) * | 2019-09-27 | 2022-07-15 | 北京金山云网络技术有限公司 | Statistical method and device for file system tasks and server |
| WO2021115085A1 (en) * | 2019-12-12 | 2021-06-17 | 北京金山云网络技术有限公司 | Cloud computing metering and charging method and apparatus, and electronic device and storage medium |
| CN112990952A (en) * | 2019-12-12 | 2021-06-18 | 北京金山云网络技术有限公司 | Cloud computing metering charging method and device, electronic equipment and storage medium |
| CN112333226A (en) * | 2020-09-01 | 2021-02-05 | 中国铁路设计集团有限公司 | Cloud application platform charging method based on user activity |
| CN118170826A (en) * | 2024-05-11 | 2024-06-11 | 中移(苏州)软件技术有限公司 | Usage statistics method and device and related equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10949257B2 (en) | System and method for scheduling workload based on a credit-based mechanism | |
| CN109903030A (en) | It is a kind of for the charging method of cloud host, cloud host and storage medium | |
| US10453106B2 (en) | Maximizing throughput of multi-user parallel data processing systems | |
| US20050010502A1 (en) | Apparatus and method for providing metered capacity of computer resources | |
| CN109741043B (en) | Fund management method, apparatus and storage medium | |
| CN1784659A (en) | Apparatus and method for providing metered capacity of computer resources | |
| TW201800994A (en) | Resource processing method and device | |
| CN110418022A (en) | The method and device of flow package is adjusted for multiple user identifiers | |
| CN112330320A (en) | Distributed computing-based automatic processing system and method for electricity charge copying and checking service | |
| CN107493176B (en) | A billing method and system | |
| CN111553699B (en) | A resource scheduling method and device | |
| WO2018001181A1 (en) | Charging method and charging system | |
| CN118569855A (en) | A method, system, device and medium for interaction between platform and user | |
| US20070043672A1 (en) | Per unit basis software licensing model | |
| CN113807944A (en) | Spare payment allocation method and device, electronic equipment and storage medium | |
| US20210374814A1 (en) | A reconciliation system based on hybrid cloud computing platform and its reconciliation method | |
| US8548881B1 (en) | Credit optimization to minimize latency | |
| US8781928B2 (en) | Methodology for charging of discrete resource reservation based services | |
| CN117130761A (en) | Resource management method and related device | |
| CN118446814A (en) | Cross-bank cash pool management method and system based on bank-enterprise direct connection technology | |
| CN117857228A (en) | Cloud resource billing method, cloud management platform, computing equipment and storage medium | |
| CN111861612B (en) | Resource allocation method, device, equipment and medium | |
| JP2006523875A (en) | Apparatus, method and program for providing computer resource measurement capacity | |
| CN116962096A (en) | Business processing methods and devices | |
| CN112737796A (en) | Cross-region user communication charge transfer method, device, equipment, medium and product |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190618 |