CN103067185B - Charging method in cloud computing system - Google Patents
Charging method in cloud computing system Download PDFInfo
- Publication number
- CN103067185B CN103067185B CN201210586172.2A CN201210586172A CN103067185B CN 103067185 B CN103067185 B CN 103067185B CN 201210586172 A CN201210586172 A CN 201210586172A CN 103067185 B CN103067185 B CN 103067185B
- Authority
- CN
- China
- Prior art keywords
- resource
- unit
- charging
- cloud computing
- computing system
- 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.)
- Active
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses the charging method in a kind of cloud computing system, including: generate charge information unit and metering data unit according to the resource of user's application;Charge information unit is set;Calculate the expense of the resource that user applies in the scheduled time according to charge information unit, and expense is write metering data unit.By the charging method in cloud computing system described in the invention, it is possible to increase the charging efficiency of cloud computing system, simplify the charging step of cloud computing system.
Description
Technical field
The invention relates essentially to field of cloud calculation, more specifically for, relate to a kind of cloud computing system
In charging method.
Background technology
The present invention relates to cloud computing environment management, relate to assets in a kind of cloud computing environment and pay after on-demand
Expense, bandwidth expense pay the most afterwards by paying after flow, applying calculating, storage method.At cloud meter
In calculation system, computer resource is virtualized by cloud computing, software resource is supplied to client as service,
The charging of cloud computing has following characteristics: the charging for cloud computing service is broadly divided into hardware service charging
Charging with software application service.When can be divided into again bag according to charging way pre-payment and assets are on-demand,
On time, pay the most afterwards by paying, application service after flow.Charging policy exists by the grade of service
Rate ratio, user class special discount etc..Accounting component, software application rate often adjust.With
These factors upper, this makes cloud computing calculating of charging when non-packet, inquiry, report generation become multiple
Miscellaneous.
Charging when calculating assets non-packet at present, it is common that the service condition of obtaining widget from daily record, so
Afterwards according to price and the expense of charging policy calculating unit of parts.If parts price or charging policy
Exist and repeatedly change, need to preserve the value that multiple change is forward and backward, take different values according to the time of daily record
Calculate.Service condition is saved in data base by preferential also need for user class, is calculating
Multilist is inquired about and updates when expense and generation form, cause charging to calculate, store complexity,
The problem that occupying system resources is serious.
Summary of the invention
In order to overcome drawbacks described above of the prior art, the invention provides in a kind of cloud computing system
Charging method, thus solve the technical problem of the charging efficiency how improving cloud computing system.
The invention provides the charging method in a kind of cloud computing system, including step S1: according to
The resource of family application generates charge information unit and metering data unit;Step S2: described charging is set
Information unit;Step S3: calculate described user Shen according to described charge information unit in the scheduled time
The expense of resource please, and described expense is write described metering data unit.
In charging method in described cloud computing system, described step S1 includes: step S11: use
Family application uses the resource in described cloud computing system;Step S12: the described resource to user's application
Examine;Step S13: charging described in the described resource passed through according to examination & approval and predetermined template generation
Information unit and described metering data unit.
In charging method in described cloud computing system, described step S2 includes: according to resource content,
Resource unit price and charging policy arrange described charge information unit.
In charging method in described cloud computing system, described step S2 also includes: if described money
Source contents, described resource unit price or the change of described charging policy, then by described charge information unit
Resource content change mark, resource unit price change mark or charging policy change mark be set to
Change.
In charging method in described cloud computing system, described step S3 includes: step S31:
Content in described charge information unit is sent to computing unit by the scheduled time;Step S32: described
Computing unit calculates described use according to described resource content, described resource unit price and described charging policy
The expense of the resource of family request;And step S33: described expense is write described metering data unit.
In charging method in described cloud computing system, described step S32 includes: if described money
Source contents change mark, described resource unit price change mark or described charging policy change mark are arranged
For changing, then computing unit is according to the described resource unit price in described charge information unit and described meter
Expense policy calculation goes out the expense of the resource of described user request.
In charging method in described cloud computing system, described step S3 also includes: by described resource
Content alteration mark, described resource unit price change mark or described charging policy change mark are set to
Do not change.
In charging method in described cloud computing system, described method also includes: step S4: often
During the moon first day zero, the content in described metering data unit is write in history metering data unit.
In charging method in described cloud computing system, when the described scheduled time includes every day zero.
In charging method in described cloud computing system, described charging policy includes discount ratio.
By the charging method in cloud computing system described in the invention, it is possible to increase cloud computing system
Charging efficiency, simplify cloud computing system charging step.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, with
Embodiments of the invention are used for explaining the present invention together, are not intended that limitation of the present invention.At accompanying drawing
In:
Fig. 1 is the overview flow chart according to the charging method in a kind of cloud computing system of the present invention;
Fig. 2 is the particular flow sheet according to the charging method in a kind of cloud computing system of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that this place is retouched
The preferred embodiment stated is merely to illustrate and explains the present invention, is not intended to limit the present invention.
Fig. 1 is the overview flow chart according to the charging method in a kind of cloud computing system of the present invention.?
In Fig. 1:
Step S100: generate charge information unit and metering data unit according to the resource of user's application.
Step S102: charge information unit is set.Wherein, this step may further include: according to
Resource content, resource unit price and charging policy arrange charge information unit.Wherein, resource content includes
User is asked resource component and the quantity, such as resources of virtual machine etc. used;Resource unit price includes
User is asked the price of the unit resource used;Charging policy includes discount ratio.Wherein it is possible to
Pay required for obtaining user by resource component and quantity, the price of unit resource and discount ratio
Expense.
Step S104: calculate the expense of the resource that user applies for according to charge information unit in the scheduled time
With, and expense is write metering data unit.Wherein, when the scheduled time can be every day zero, also may be used
To be other special times of every day.
By the charging method in the cloud computing system described by the present embodiment, it is possible to increase cloud computing system
The charging efficiency of system, simplifies the charging step of cloud computing system.
Fig. 2 is the particular flow sheet according to the charging method in a kind of cloud computing system of the present invention.?
In Fig. 2:
Step S200: user applies for using the resource in cloud computing system.
Step S202: the resource of user's application is examined.Wherein, approval process includes judging to use
Family account is the most legal, user's request is the most legal, user's requested resource is the most legal and uses
Whether family has corresponding authority etc..
Step S204: the resource passed through according to examination & approval and predetermined template generation charge information unit and charging
Data cell.Wherein, pre-solid plate can correspond to user's requested resource type.
Step S206: charge information unit is set according to resource content, resource unit price and charging policy.
Step S208: if resource content, resource unit price or charging policy change, the most just charging
Resource content change mark, resource unit price change mark or charging policy change mark in information unit
Know and be set to change.For example, it is possible to by resource content change mark, resource unit price change mark or
Person's charging policy change mark is set to FALSE.
Step S210: the content in charge information unit is sent to computing unit in the scheduled time.Its
In, when the scheduled time can be every day zero, it is also possible to be other special times of every day.
Step S212: if resource content change mark, resource unit price change mark or charging policy
Change mark is set to change, then computing unit is according to the resource unit price in charge information unit and meter
Expense policy calculation goes out the expense of the resource of user's request.
Step S214: resource content change mark, resource unit price change mark or charging policy are become
More mark is set to not change.For example, it is possible to by resource content change mark, resource unit price change mark
Know or charging policy change mark is set to TRUE.
Step S216: expense is write metering data unit.
Step S218: when monthly first day zero, writes history meter by the content in metering data unit
Take in data cell.After the content in metering data unit is write in history metering data unit,
Metering data unit can be regenerated or the content in metering data unit is emptied.
By the charging method in the cloud computing system described by the present embodiment, it is possible to increase cloud computing system
The charging efficiency of system, simplifies the charging step of cloud computing system.Additionally, can also by the present embodiment
Carry out DayEndProcess and the end of the month processes, it is possible to obtain historical data, convenient inquiry and the generation of form.
One example of the charging method in cloud computing system explained below.In this example, assets
Implication be: user application computer resource examination & approval by after become user's assets, a user
Assets include one or more accounting component.
At two attributes defined in cloud computing assets, being made up of two data structures, one becomes assets
Charge information unit, another is assets metering data unit.When assets generate, the two attribute
According to template generation object.
Assets charge information unit include parts that assets are comprised, parts use the time (flow),
Current unit price data message, the lower limit reaching discount and parts unit price change mark, asset component become
More mark, charging policy change mark.Every everyday terminal hour updates data message.
Assets metering data unit monthly regenerates, and comprises this month to current charging total value, each portion
The current total value of part, each parts list of charges by date.Day terminal hour collection resource uses data, updates number
According to.The of that month day bill of assets charging can directly be produced by assets metering data unit, it is no longer necessary to pass
Connection multi-table query.Assets metering data unit object dumped in billing history table when the end of the month.Charging
History lists monthly deposits assets metering data unit, and billing statement afterwards can thus produce by object.
The job step of assets charging is as follows:
Step 1), parts in new assets registered assetss, generate assets charge information unit and assets
Metering data unit.
User apply for the resource in cloud computing system, by examination & approval after become assets, will assets comprise
Parts include that software application is registered, generate charge information unit and assets according to template and parts
Metering data unit.
Step 2), initialize charge information unit and assets metering data unit.
The current unit price of all parts of assets and preferential is calculated according to parts schedule of rates, charging policy table
Strategy lower limit, writes assets charge information unit.Parts unit price change mark, asset component are become
More mark, charging policy change traffic sign placement are FALSE.
Step 3), DayEndProcess.
Cloud computing system carries out DayEndProcess every day, automatically can perform in system after every day 0:00, and day is eventually
The important function processed is to calculate the account situation on the same day and change new charge information, specifically walks
Rapid as follows: 1, to pass to calculate function as parameter using assets charge information unit object, calculate function
Data are used to calculate the same day according to the parts unit price in assets Charging Detail Record unit object and the resource collected
The expense of each parts, and the resource on the same day is used data accumulation write this portion of assets charge information unit
The time of use altogether (flow) of part, this value can be as the foundation calculating customer rebates.2, return respectively
Parts expense on the same day, increases to assets metering data unit, and this data accumulation is of that month to these parts
Expense summation.3, the expense summation calculating whole parts of that month is total as this month current expense of assets
With, and recorded assets metering data unit.4, modification information (seeing the process of modification information) is processed.
Step 4), the end of the month process.
Monthly the data of last month were processed in first, groundwork, by assets metering data unit
Object copies, in history lists, generates new assets metering data unit for assets.
Asset component, parts price, the change of charging policy process:
The increase of asset component, change (in asset management), directly change assets charge information list
Unit's asset component change is masked as True, and registers the parts of change.
The change (in accounting management) of parts price, searches the assets of this component registration, by these
In the assets charge information unit of parts, the change of change parts unit price is masked as True.
The change (in accounting management) of charging policy, changes the assets charge information list of all assets
In unit, charging policy change is masked as True.
Every everyday last task whole is to process change, and system is only to the charge information being masked as True
Unit processes.For the change of asset component, by the component information write assets charging after change
Information unit, changes mark into FALSE.For parts price and the change of charging policy, need again
Calculate current part strike price, and change mark into FALSE.
After, the end of the month whole by day processes, assets charge information unit remains all parts of these assets
The up-to-date execution unit price of (including software application).Assets metering data unit then saves this money
Produce the expense that of that month expense, each parts of these assets are of that month, every in each parts this month in these assets
The expense of one day.The billing statement of assets can be directly generated by this object.
Below by detailed description of the invention, the method for the present invention is illustrated.
Assets charge information unit XML is described as follows:
Calculating expense interface on the same day is as follows:
Public int calTodayFee(BillMessage billMessage);
The charge information unit object of these assets of billMessage;
CalTodayFee interface definition calculates assets expense interface on the same day.
Realize this interface and can get the expense of all parts under assets on the same day.It is implemented as follows: object
The price that billMessage comprises all parts of these assets and parts currently perform.First from book keeping operation table
Inquire about the use data on these parts same day, calculate parts expense on the same day according to performing unit price, will take
BillMessage object is write by value.
DayEndProcess interface is as follows:
Public int doEveryDay (Asset asset, BillMessage billMessage, BillData
billData);
Asset assets object;
The charge information unit object of these assets of billMessage;
The metering data unit object of these assets of billData.
Realize this interface, the metering data on the same day is write metering data unit, and to charge information list
Unit updates, and including processing change mark, calculates new execution unit price.From asset component, parts price,
The change handling process of charging policy is it will be seen that owing to assets are creating or carry out parts during change
Registration, the change of only influential on capital asset parts just can recalculate strike price, necessarily
Calculating resource and database resource is saved in degree.
The end of the month, Processing Interface was as follows:
Public int doEveryMonth (Asset asset, BillData billData);
Parameter describes whole Processing Interface on the same day
Assets metering data unit is carried out unloading and regenerates.
This example, with assets for object charge information, simplifies the calculating of charging;Reasonably process assets,
Price, the change of charging policy;And store billing history data, convenient inquiry with assets for object
And report generation.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for
For those skilled in the art, the present invention can have various modifications and variations.All essences in the present invention
Within god and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention
Protection domain within.
Claims (8)
1. the charging method in a cloud computing system, it is characterised in that including:
Step S1: generate charge information unit and metering data unit according to the resource of user's application;
Step S2: described charge information unit is set;Wherein,
Described step S2 includes: arrange described charging according to resource content, resource unit price and charging policy
Information unit;And
Described step S2 also includes: if described resource content, described resource unit price or described charging
Strategy change, then change mark, the change of resource unit price by the resource content in described charge information unit
Mark or charging policy change mark are set to change;
Step S3: calculate the money of described user application according to described charge information unit in the scheduled time
The expense in source, and described expense is write described metering data unit.
Charging method in cloud computing system the most according to claim 1, it is characterised in that institute
State step S1 to include:
Step S11: user applies for using the resource in described cloud computing system;
Step S12: the described resource of user's application is examined;
Step S13: charge information list described in the described resource passed through according to examination & approval and predetermined template generation
First and described metering data unit.
Charging method in cloud computing system the most according to claim 1, it is characterised in that institute
State step S3 to include:
Step S31: the content in described charge information unit is sent to computing unit in the scheduled time;
Step S32: described computing unit is according to described resource content, described resource unit price and described meter
Expense policy calculation goes out the expense of the resource of described user request;And
Step S33: described expense is write described metering data unit.
Charging method in cloud computing system the most according to claim 3, it is characterised in that institute
State step S32 to include: if described resource content change mark, described resource unit price change mark or
Described in person, charging policy change mark is set to change, then computing unit is according to described charge information list
Described resource unit price in unit and described charging policy calculate the expense of the resource of described user request.
Charging method in cloud computing system the most according to claim 4, it is characterised in that institute
State step S3 also to include: by described resource content change mark, described resource unit price change mark or
Described charging policy change mark is set to not change.
6. according to the charging method in the cloud computing system described in any one in claim 1 to 5,
It is characterized in that, described method also includes: step S4: when monthly first day zero, by described charging
In content write history metering data unit in data cell.
Charging method in cloud computing system the most according to any one of claim 1 to 5, its
It is characterised by, when the described scheduled time includes every day zero.
Charging method in cloud computing system the most according to any one of claim 1 to 5, its
Being characterised by, described charging policy includes discount ratio.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210586172.2A CN103067185B (en) | 2012-12-28 | 2012-12-28 | Charging method in cloud computing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210586172.2A CN103067185B (en) | 2012-12-28 | 2012-12-28 | Charging method in cloud computing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103067185A CN103067185A (en) | 2013-04-24 |
CN103067185B true CN103067185B (en) | 2016-09-14 |
Family
ID=48109656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210586172.2A Active CN103067185B (en) | 2012-12-28 | 2012-12-28 | Charging method in cloud computing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103067185B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104113424A (en) * | 2014-06-23 | 2014-10-22 | 汉柏科技有限公司 | Resource authorization method and system |
CN104320266A (en) * | 2014-10-17 | 2015-01-28 | 浪潮(北京)电子信息产业有限公司 | Charging method and device under cloud computing operation system |
CN104574051A (en) * | 2015-01-12 | 2015-04-29 | 浪潮(北京)电子信息产业有限公司 | Charging method and device |
CN107919968A (en) * | 2016-10-08 | 2018-04-17 | 中兴通讯股份有限公司 | A kind of charging method and device |
CN108092783A (en) * | 2016-11-22 | 2018-05-29 | 清华大学 | A kind of charging method of grid computing |
CN106600326B (en) * | 2016-12-14 | 2020-10-23 | 中国航空结算有限责任公司 | Airport charging management method and system |
CN106600245A (en) * | 2016-12-15 | 2017-04-26 | 国云科技股份有限公司 | Cloud computing resource scheduling system and realizing method thereof |
MX2020010922A (en) * | 2018-04-16 | 2021-01-08 | Cloudblue Llc | System and method for matching revenue streams in a cloud service broker platform. |
CN110300000B (en) * | 2019-06-27 | 2022-03-04 | 北京金山云网络技术有限公司 | Charging mode changing method and device, electronic equipment and readable storage medium |
CN110674190B (en) * | 2019-09-27 | 2022-07-15 | 北京金山云网络技术有限公司 | Statistical method and device for file system tasks and server |
CN112000317A (en) * | 2020-08-26 | 2020-11-27 | 济南浪潮数据技术有限公司 | Resource charging method and device, electronic equipment and storage medium |
CN113822701B (en) * | 2021-08-28 | 2023-12-26 | 济南浪潮数据技术有限公司 | Cloud platform third party resource computing method, device, equipment and readable medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521662A (en) * | 2011-11-29 | 2012-06-27 | 曙光信息产业(北京)有限公司 | Consumption charging method in cloud computing environment |
CN102594576A (en) * | 2012-03-19 | 2012-07-18 | 广州亦云信息技术有限公司 | Charging method based on cloud platform service |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102387023A (en) * | 2010-08-27 | 2012-03-21 | 中兴通讯股份有限公司 | Charging method and system used for cloud computing |
US20120297066A1 (en) * | 2011-05-19 | 2012-11-22 | Siemens Aktiengesellschaft | Method and system for apparatus means for providing a service requested by a client in a public cloud infrastructure |
-
2012
- 2012-12-28 CN CN201210586172.2A patent/CN103067185B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521662A (en) * | 2011-11-29 | 2012-06-27 | 曙光信息产业(北京)有限公司 | Consumption charging method in cloud computing environment |
CN102594576A (en) * | 2012-03-19 | 2012-07-18 | 广州亦云信息技术有限公司 | Charging method based on cloud platform service |
Also Published As
Publication number | Publication date |
---|---|
CN103067185A (en) | 2013-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103067185B (en) | Charging method in cloud computing system | |
US8036962B2 (en) | Systems and methods for determining payers in a billing environment | |
CN108805632B (en) | Charging method and device | |
US10192206B2 (en) | Method and system for integrating discrete invoices into a personal financial management and bill payment system and then aggregating discrete invoices having the same payor user and the same payee business into a single payment due item for processing | |
AU2011237500A1 (en) | Facilitating billing of embedded applications | |
US20170032432A1 (en) | Integrated System | |
US20150178699A1 (en) | SaaS SETTLEMENT SYSTEM, SaaS USAGE-FEE SETTLEMENT METHOD, AND PROGRAM | |
US20070011092A1 (en) | System and method for controlling on-demand service delivery costs | |
CN105528682A (en) | Payment method and system for enterprise multi-payment orders | |
CN107508687A (en) | A kind of method, apparatus of charging, Internet of Things application platform and accounting server | |
US20180032978A1 (en) | Method and system for integrating discrete invoices into a personal financial management and bill payment system and then aggregating discrete invoices having the same payee business into a single payment transfer transaction | |
US8838067B2 (en) | Account and asset loader tool | |
US8527411B2 (en) | Mass billing systems and methods | |
CN111798012A (en) | Logistics park sharing operation management system | |
CN111401873A (en) | Task creation method and device, storage medium and electronic equipment | |
Schwanengel et al. | Challenges with tenant-specific cost determination in multi-tenant applications | |
JP2004133514A (en) | Credit erasure processor, credit erasure processing method, computer program and record medium | |
CN102982495B (en) | Adaptive data processing equipment and data processing method | |
JP6183867B1 (en) | Notional pooling system and notional pooling method | |
CN107424036A (en) | Data processing method and device | |
JP5744636B2 (en) | Transfer receipt details split system and transfer receipt details split method | |
Maase et al. | EV Charging Data Management, five issues to solve | |
JP5456868B2 (en) | Collection support system, collection support method, and collection support program | |
KR102447568B1 (en) | System and method for contracting credit card chain | |
CN115379007B (en) | Bill verification method, device, equipment and storage medium based on SaaS |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |