CN104601338A - Charging method and device for system - Google Patents

Charging method and device for system Download PDF

Info

Publication number
CN104601338A
CN104601338A CN201410854477.6A CN201410854477A CN104601338A CN 104601338 A CN104601338 A CN 104601338A CN 201410854477 A CN201410854477 A CN 201410854477A CN 104601338 A CN104601338 A CN 104601338A
Authority
CN
China
Prior art keywords
information
resource
business
target service
resource information
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
Application number
CN201410854477.6A
Other languages
Chinese (zh)
Inventor
李媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201410854477.6A priority Critical patent/CN104601338A/en
Publication of CN104601338A publication Critical patent/CN104601338A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a charging method and device for a system. The method comprises the following steps: monitoring the operational business at real time, determining the job parameter information of the business finishing operating; analyzing the job parameter information for determining the resource information of the business finishing operating; analyzing the received cost query command, determining the target business corresponding to the cost query command; reading the resource information corresponding to the target business from the resource information; calculating the resource information corresponding to the target business according to the preset accounting strategy and generating the cost information corresponding to the target business. The method and device monitor the operating business at real time, calculate the resource information of the business finishing operating, find the suitable business resource information according to the received cost query command, calculate the cost information according to the preset accounting strategy and flexibly charge the business resource.

Description

The charging method of system and device
Technical field
The present invention relates to system charging field, specifically, relate to a kind of charging method and device of system.
Background technology
In the prior art, in order to realize the charging to system, the solution adopted is generally just directly be configured in the middle of system by the charging policy of this system in the development process of system, so when system development complete come into operation time, charging policy for this system will be fixed within the system, that is, for existing system after deployment completes, its charging policy also cannot change thereupon fixing, but, in the actual use procedure of system, for the resource of charging in system may be exist change, but due to the charging policy of system, namely charging method is fixed and cannot change, this obviously can bring the charging method of system cannot match with the actual conditions of resource in system, easily cause the unfairness of resource charge and unreasonable.
For the problems referred to above in correlation technique, at present effective solution is not yet proposed.
Summary of the invention
For the problems referred to above in correlation technique, the present invention proposes a kind of charging method and device of system, can carry out flexible charging to the resource of system.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, a kind of charging method of system is provided.
This charging method comprises:
By monitoring in real time the business run, determine the job parameter information of the business run;
By analyzing the resource information of the business determining to have run to job parameter information;
By analyzing the inquiry into expenses instruction received, determine this target service corresponding to inquiry into expenses instruction;
The resource information of corresponding target service is read in resource information;
Calculate according to the resource information of predetermined charging policy to corresponding target service, generate the cost information of corresponding target service.
Wherein, resource information can comprise business resource object shared in running and the use information to this resource object.
Wherein, the type of resource object can comprise logical resource and/or physical resource.
In addition, target service can comprise one or more business.
Optionally, this charging method comprises further:
Cost information is generated bill information and is supplied to user.
According to a further aspect in the invention, a kind of message accounting of system is provided.
This message accounting comprises:
Monitoring module, for by monitoring in real time the business run, determines the job parameter information of the business run;
First analysis module, for the resource information by analyzing the business determining to have run to job parameter information;
Second analysis module, for by analyzing the inquiry into expenses instruction received, determines this target service corresponding to inquiry into expenses instruction;
Read module, for reading the resource information of corresponding target service in resource information;
Computing module, for calculating according to the resource information of predetermined charging policy to corresponding target service, generates the cost information of corresponding target service.
Wherein, resource information can comprise business resource object shared in running and the use information to this resource object.
Wherein, the type of resource object can comprise logical resource and/or physical resource.
In addition, target service can comprise one or more business.
Optionally, this message accounting comprises further:
Module is provided, is supplied to user for cost information is generated bill information.
The present invention is by monitoring in real time the business run, can add up the resource information of the business run, and the resource information of the business met can be searched according to the inquiry into expenses instruction received, and the cost information of this business is calculated according to predetermined charging policy, achieve the flexible charging of the resource to business.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the charging method of system according to the embodiment of the present invention;
Fig. 2 is the block diagram of the message accounting of system according to the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of charging method of system.
As shown in Figure 1, comprise according to the charging method of the system of the embodiment of the present invention:
Step S101, by monitoring in real time the business run, determines the job parameter information of the business run;
Step S103, by analyzing the resource information of the business determining to have run to job parameter information;
Step S105, by analyzing the inquiry into expenses instruction received, determines this target service corresponding to inquiry into expenses instruction;
Step S107, reads the resource information of corresponding target service in resource information;
Step S109, calculates according to the resource information of predetermined charging policy to corresponding target service, generates the cost information of corresponding target service.
Technique scheme for a better understanding of the present invention, is described in detail technique scheme of the present invention below in conjunction with a specific embodiment.
Job scheduling accounting module, data processing module, interactive module and accounting engine is relate to when stating technical scheme in the present embodiment in realization, concrete, in system operation, charging method of the present invention can be monitored in real time to the business that each runs, thus determine complete business, job scheduling billing analysis module then can be monitored the details of complete business (completed operation) in real time, thus determines the parameter information of completed operation and be sent to data processing module;
Data processing module can receive the data from job scheduling billing analysis module, the i.e. parameter information of completed operation, and the resource information that obtains this completed operation is resolved to this parameter information and stores in a database, wherein, in the present embodiment, this resource information is the resource object of completed operation shared by running and the use information to this resource object, certainly, in actual applications, also can be completed operation resource object shared in running or the use information to this resource object, wherein, the type of this resource object can be logical resource (such as queue), also can be physical resource (such as CPU, internal memory), it can also be the combination of the two.
On the other hand, (namely system receives the accounting request of user by interactive module, inquiry into expenses instruction for system), and send it to accounting engine, and accounting engine is by analyzing this inquiry into expenses instruction, thus determining this target service (target job) corresponding to inquiry into expenses instruction, that is, user wants the target service of carrying out inquiry into expenses.
And for the accounting request of user, can be inquire about according to the time started of operation, also can be inquire about according to job name, certainly can also be the inquiry into expenses carrying out operation according to other modes, so when according to this accounting request determination target service, target job corresponding to this accounting request can be then one, also can be multiple.
And accounting engine is when the target service that the accounting request lock determining user is corresponding, read should the resource information of target service (target job) in the resource information of the completed operation that just can store from database; Then accounting engine just can calculate according to the resource information of predetermined charging policy to this target job, thus generates should the cost information of target job, and cost information is generated expense bill and be supplied to user.
Wherein, for the charging policy that this is predetermined, in the present embodiment, expense=influencing factor 1* factor of influence 1* unit price+influencing factor 2* factor of influence * unit price 2+ influencing factor 3* factor of influence 3* the unit price of an operation+... + influencing factor n* factor of influence n* unit price, wherein, this influencing factor i.e. certain attribute of this operation, generally the resource object of this operation shared by running, wherein, each resource object all has factor of influence and unit price information one to one, wherein, after system is disposed, keeper can set the influencing factor (resource object) of charging to operation, namely can increase or delete certain influencing factor, factor of influence and the unit price information of this influencing factor can also be set simultaneously, wherein, the value of this factor of influence is the arbitrary numerical value between 0 to 1, boundary value 0 can be got simultaneously, 1, such keeper just can carry out the flexible configuration of charging policy according to the actual conditions of the billing needs of reality and system, such as target job in this example (namely, a completed target job) resource information (resource object shared in running is CPU, internal memory, queue), the queue * unit price * factor of influence that internal memory * time * internal memory unit price * factor of influence+operation that CPU number * time * CPU unit price * factor of influence+operation that so this target job expense (operation)=operation uses uses uses, so just achieve the flexible charging to system, when adding new resource object in system, the charging policy that keeper can arrange this resource object to match with the actual conditions of system.
It should be noted that, the charging policy that this predetermined charging policy is necessarily corresponding with the resource information of target service, such as, the resource object shared by this target service is CPU, and so this charging policy is then the CPU number * time * CPU unit price * factor of influence that operating cost=operation uses.
Can be found out by foregoing description, the present invention can the use resource situation of real-time statistics operation, and realizes the charging process of operation.
According to embodiments of the invention, additionally provide a kind of message accounting of system.
As shown in Figure 2, comprise according to the message accounting of the system of the embodiment of the present invention:
Monitoring module 21, for by monitoring in real time the business run, determines the job parameter information of the business run;
First analysis module 22, for the resource information by analyzing the business determining to have run to job parameter information;
Second analysis module 23, for by analyzing the inquiry into expenses instruction received, determines this target service corresponding to inquiry into expenses instruction;
Read module 24, for reading the resource information of corresponding target service in resource information;
Computing module 25, for calculating according to the resource information of predetermined charging policy to corresponding target service, generates the cost information of corresponding target service.
Wherein, in one embodiment, resource information can comprise business resource object shared in running and the use information to this resource object.
Wherein, in another embodiment, the type of this resource object can comprise logical resource and/or physical resource.
In addition, in another embodiment, this target service can comprise one or more business.
Optionally, can comprise further according to the message accounting of the embodiment of the present invention:
Module (not shown) is provided, is supplied to user for cost information is generated bill information.
In sum, by means of technique scheme of the present invention, by analyzing the service data of operation, after the process such as statistics, in conjunction with charging policy flexibly, can be fair and reasonable charge according to resource service condition, for charge provides more reliable believable foundation, further, after user's submit job, need not go to be concerned about to be that system cloud gray model carries out charge calculating to which step to correcting students' papers, as long as after operation completes, user just can inquire resource service condition and expense situation.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a charging method for system, is characterized in that, comprising:
By monitoring in real time the business run, determine the job parameter information of the business run;
By analyzing the resource information determining the business that described operation completes to described job parameter information;
By analyzing the inquiry into expenses instruction received, determine this target service corresponding to inquiry into expenses instruction;
The resource information of corresponding described target service is read in described resource information;
Calculate according to the resource information of predetermined charging policy to the described target service of correspondence, generate the cost information of corresponding described target service.
2. charging method according to claim 1, is characterized in that, described resource information comprises described business resource object shared in running and the use information to this resource object.
3. charging method according to claim 2, is characterized in that, the type of described resource object comprises logical resource and/or physical resource.
4. charging method according to claim 1, is characterized in that, described target service comprises one or more business.
5. charging method according to claim 1, is characterized in that, comprises further:
Described cost information is generated bill information and is supplied to user.
6. a message accounting for system, is characterized in that, comprising:
Monitoring module, for by monitoring in real time the business run, determines the job parameter information of the business run;
First analysis module, for by analyzing the resource information determining the business that described operation completes to described job parameter information;
Second analysis module, for by analyzing the inquiry into expenses instruction received, determines this target service corresponding to inquiry into expenses instruction;
Read module, for reading the resource information of corresponding described target service in described resource information;
Computing module, for calculating according to the resource information of predetermined charging policy to the described target service of correspondence, generates the cost information of corresponding described target service.
7. message accounting according to claim 6, is characterized in that, described resource information comprises described business resource object shared in running and the use information to this resource object.
8. message accounting according to claim 7, is characterized in that, the type of described resource object comprises logical resource and/or physical resource.
9. message accounting according to claim 6, is characterized in that, described target service comprises one or more business.
10. message accounting according to claim 6, is characterized in that, comprises further:
Module is provided, is supplied to user for described cost information is generated bill information.
CN201410854477.6A 2014-12-31 2014-12-31 Charging method and device for system Pending CN104601338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410854477.6A CN104601338A (en) 2014-12-31 2014-12-31 Charging method and device for system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410854477.6A CN104601338A (en) 2014-12-31 2014-12-31 Charging method and device for system

Publications (1)

Publication Number Publication Date
CN104601338A true CN104601338A (en) 2015-05-06

Family

ID=53126868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410854477.6A Pending CN104601338A (en) 2014-12-31 2014-12-31 Charging method and device for system

Country Status (1)

Country Link
CN (1) CN104601338A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107919968A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of charging method and device
CN109951302A (en) * 2019-02-26 2019-06-28 启迪云计算有限公司 A kind of cloud computing charge system and method based on the customized product of data dictionary
CN112822028A (en) * 2020-12-29 2021-05-18 北京浪潮数据技术有限公司 Slurm cluster charging method, system, electronic equipment and storage medium
CN113986658A (en) * 2021-10-18 2022-01-28 苏州浪潮智能科技有限公司 Charging method, device, equipment and medium based on computing management platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404126A (en) * 2011-11-25 2012-04-04 浪潮电子信息产业股份有限公司 Charging method of cloud computing during application process
CN102521622A (en) * 2011-11-18 2012-06-27 常州蓝城信息科技有限公司 Face detecting system based on advertisement putting
CN104243179A (en) * 2013-06-07 2014-12-24 曙光信息产业(北京)有限公司 Flexible billing strategy method
EP2009840B1 (en) * 2006-04-28 2015-05-27 Huawei Technologies Co., Ltd. An accounting method, apparatus and system based on roles in the business of push-to-talk over cellular

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2009840B1 (en) * 2006-04-28 2015-05-27 Huawei Technologies Co., Ltd. An accounting method, apparatus and system based on roles in the business of push-to-talk over cellular
CN102521622A (en) * 2011-11-18 2012-06-27 常州蓝城信息科技有限公司 Face detecting system based on advertisement putting
CN102404126A (en) * 2011-11-25 2012-04-04 浪潮电子信息产业股份有限公司 Charging method of cloud computing during application process
CN104243179A (en) * 2013-06-07 2014-12-24 曙光信息产业(北京)有限公司 Flexible billing strategy method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107919968A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of charging method and device
CN109951302A (en) * 2019-02-26 2019-06-28 启迪云计算有限公司 A kind of cloud computing charge system and method based on the customized product of data dictionary
CN112822028A (en) * 2020-12-29 2021-05-18 北京浪潮数据技术有限公司 Slurm cluster charging method, system, electronic equipment and storage medium
CN113986658A (en) * 2021-10-18 2022-01-28 苏州浪潮智能科技有限公司 Charging method, device, equipment and medium based on computing management platform
CN113986658B (en) * 2021-10-18 2023-11-17 苏州浪潮智能科技有限公司 Charging method, device, equipment and medium based on computing management platform

Similar Documents

Publication Publication Date Title
US8789061B2 (en) System and method for datacenter power management
CN103164279B (en) Cloud computing resources distribution method and system
CN106453146B (en) Method, system, device and readable storage medium for allocating private cloud computing resources
CN105007998B (en) Analyze router and analysis method
CN108763389B (en) Data integration method and device, storage medium and terminal
US20140046874A1 (en) Real time dynamic vehicle parking price management methods, systems and processor-readable media
WO2020082611A1 (en) Method for carrying out deep learning on basis of blockchain platform and electronic device
Bauer et al. On-demand automotive fleet electrification can catalyze global transportation decarbonization and smart urban mobility
CN104601338A (en) Charging method and device for system
US20170337568A1 (en) Data processing method, system and computer device based on electronic payment behaviors
CN109377389A (en) A kind of payment based reminding method, server and computer readable storage medium
WO2018086487A1 (en) Method and device for sharing message in region
CN110659110A (en) Block chain based distributed computing method and system
CN105808341A (en) Method, apparatus and system for scheduling resources
CN107071036A (en) A kind of method, the webserver and system for downloading driving file
CN109978502A (en) Automatic budget method, system and computer storage medium are changed in engineering design
US20120226484A1 (en) Calculation simulation system and method thereof
US11461210B2 (en) Real-time calculation of data center power usage effectiveness
Dorokhova et al. A blockchain-supported framework for charging management of electric vehicles
CN108765142A (en) Electronic device, multi-tiling chain integral traffic control method and computer readable storage medium
CN105681384B (en) A kind of expired processing method and processing device of information
CN109711035A (en) City model construction method and device
CN104243179A (en) Flexible billing strategy method
CN108153841B (en) Pipe gallery management system based on three-dimensional scene and routing planning method thereof
CN109754221A (en) A kind of method and device improving power grid enterprises' audit coverage rate

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination