CN104156811A - Bill generation method based on in-cloud OS - Google Patents

Bill generation method based on in-cloud OS Download PDF

Info

Publication number
CN104156811A
CN104156811A CN201410378848.8A CN201410378848A CN104156811A CN 104156811 A CN104156811 A CN 104156811A CN 201410378848 A CN201410378848 A CN 201410378848A CN 104156811 A CN104156811 A CN 104156811A
Authority
CN
China
Prior art keywords
resource
time period
time
unit price
bill
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
CN201410378848.8A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201410378848.8A priority Critical patent/CN104156811A/en
Publication of CN104156811A publication Critical patent/CN104156811A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a bill generation method based on an in-cloud OS. According to the method, the changed basic pricing factors and users or the changed data of resources used by an organization are utilized to partition expenditure presentation time for multiple times according to billing information collected by a billing subsystem in the in-cloud OS, various billing collection information is extracted, and finally, unchanged basic pricing factors and resources in each time bucket are obtained for calculation of charges, so that the generation of resource bills in in-cloud OS is realized; specifically, the collected billing information is divided into basic billing item changed information and billing object changed information according to types, the collected billing information is processed according to the time sequence so as to complete segmentation of a time shaft, and finally, precise calculation of charges is realized on the basis of the particle size of each minimum time bucket.

Description

A kind of bill generation method based on sea of clouds OS
Technical field
The present invention relates to the charging field of cloud computing, be specifically related to a kind of bill generation method based on sea of clouds OS.
Background technology
Along with the development of cloud computing, sea of clouds OS is widely used.Sea of clouds OS is a cloud computing operating system of tide (Beijing) electronics and information industry company limited independent research.Sea of clouds OS, by adopting Intel Virtualization Technology to realize the virtual and secondary distribution to computational resource in data center, reaches the object that improves resource utilization.Sea of clouds OS provides cloud computing service towards personal user, and what its user adopted is keeper-tissue-organizing user three-level schema.
In sea of clouds OS, charge subsystem is mainly realized computational resource that each tissue and lower each user of tissue are used and storage resources information statistics and is carried out according to valuation unit the detailed bill etc. that charging generates resource service condition.Charge subsystem is the effect of can not be substituted in sea of clouds OS: the first, and bill is used the expense cost of resource generation that foundation is provided for each tissue and user; The second, bill has shown benefit and the resource service condition that sea of clouds OS service produces, for service provider decision-making provides foundation.
Therefore, cloud resource data information and Pricing Principle according to gathering, generate accurate bill, is to provide the key of reliable metering data.
In sea of clouds OS charge system, metering data is divided into two classes: a class is the cloud resource that sea of clouds OS provides, and comprises CPU, internal memory, network and storage; One class is the basic valuation factor, comprises hierarchical resource and the hierarchical resource factor, organization level and organization level discount rate and resource unit price.
Summary of the invention
The object of this invention is to provide a kind of bill generation method based on sea of clouds OS.
The object of the invention is to realize in the following manner, utilize the basic valuation factor and the user who changes or organize the delta data that uses stock number, the time of entering an item of expenditure in the accounts is carried out to repeated segmentation, finally obtain not having the vicissitudinous basic valuation factor and resource in each time period, concrete steps the contents are as follows:
1) according to the initial sum termination time that generates bill, situation about changing according to resource unit price, this time period is cut apart, the time period being divided into is referred to as the unit price time period, the resource type N class of using according to bill, different resource acquisition resource unit prices is changed to list, sort from low to high according to the time, and the resource unit price of N class resource is changed and arranged according to transformation period ascending order, Gains resources unit price change sequence, finally according to resource unit price change sequence, cut apart the initial sum termination time of bill, the net result of cutting apart is the time series of a unit price time period, time totally arranges according to ascending order, and the end time of each time period point is the start time point of next time period,
2) each tissue is according to the change of rank of the resource of using, and the variation of the variation of the hierarchical resource factor and the organization level of tissue in each hierarchical resource, and the variation of organization level discount rate, each unit price time period is carried out to time cutting, the time period obtaining is referred to as to organize the time period, obtain a unit price time period, search the variation of hierarchical resource in this time period;
3) according to 1) method unit price time period that current behaviour is done cut apart, afterwards segmentation result is once carried out that hierarchical resource factor variations, organization level change and the variation of organization level discount rate is cut apart, finally, all unit prices time period in unit price time period sequence has been cut apart, obtained a new time period sequence of organizing;
4) each organizes the variation of stock number in the time period to cut the resource time period, and the time period after cutting is the resource time period;
5) in resource, in the time period, valuate grade, the hierarchical resource factor, organization level, organization level discount rate and the stock number of the factor, resource while all not changing, according to above-mentioned data, generate a bill detail, to the expense of using resource to produce in the time period, carry out accurate Calculation and obtain clear bill accurately detailed.
The described bill generation method based on sea of clouds OS, valuation factor variations is that resource unit price changes, the interface that the collection of these data is system managers by sea of clouds OS accounting module arranges and has gathered, the hierarchical resource of resource and the collection of hierarchical resource factor information are to have collected by the cloud resource management module of sea of clouds OS, the hierarchical resource of resource changes and hierarchical resource factor variations information is by RPC mode when each bill generates startup, from cloud resource module Gains resources change of rank, accounting module starts with a message queue, in organizational resources amount, change, virtual machine creating, open, close, hang up, delete and resources of virtual machine amount CPU, internal memory, during memory modify, corresponding sea of clouds OS module sends message to the message queue of charging, comprise action type, resource name and ID, the information of the resource information before changing and after changing and operation generation time, message is undertaken being saved in database after unified processing by the daemon thread of accounting module.
The invention has the beneficial effects as follows: bill generation method is the charge information gathering according to charge subsystem in sea of clouds OS system, by the method, carries out expense calculating, extracts various charging Information Monitorings, realize the method that resource bill in sea of clouds OS is generated.According to the type that gathers charge information, be divided into basic charging item change information and charging object variation information etc.The charge information gathering is processed with time sequencing, completed the cutting apart of time shaft, finally in the granularity of each minimum time section, realize accurate expense and calculate.
Accompanying drawing explanation
Fig. 1 is bill product process figure.
Embodiment
With reference to Figure of description, bill generation method of the present invention is described in detail below.
The basic thought of bill generation method is the basic valuation factor and the user to changing or organizes and use the delta data of stock number to carry out repeated segmentation to the time of entering an item of expenditure in the accounts, finally within each time period, do not have the vicissitudinous basic valuation factor and resource.
Specifically describe as follows:
1) according to the initial sum termination time that generates bill, situation about changing according to resource unit price, cut apart this time period, and the time period being divided into is referred to as the unit price time period.The resource type N class of using according to bill, different resource acquisition resource unit price is changed to list (sorting from low to high according to the time), and the resource unit price of N class resource is changed and arranged according to transformation period ascending order, Gains resources unit price change sequence, the last initial sum termination time of cutting apart bill according to resource unit price change sequence.The net result of cutting apart is the time series of a unit price time period, and the time totally arranges according to ascending order, and the end time of each time period point is the start time point of next time period;
2) variation of the variation of the hierarchical resource factor and the organization level of tissue and organization level discount rate in the change of rank of the resource that each tissue foundation is used and each hierarchical resource, each unit price time period is carried out to time cutting, and the time period obtaining is referred to as to organize the time period.Obtain a unit price time period, the variation of searching hierarchical resource in this time period, the unit price time period of current behaviour being done according to the method for step 1 is cut apart, and afterwards segmentation result is once carried out to hierarchical resource factor variations, organization level changes, and organization level discount rate changes to be cut apart.Finally, all unit prices time period in unit price time period sequence has been cut apart, obtained a new time period sequence of organizing;
3) each organizes the variation of stock number in the time period to cut the resource time period, and the time period after cutting is the resource time period;
4) in resource, in the time period, valuate grade, the hierarchical resource factor, organization level, organization level discount rate and the stock number of the factor, resource all less than changing, according to above-mentioned data, generate a bill detail, checking shows by experiment, and the method can well be carried out accurate Calculation and obtain clear bill accurately detailed the time within the time period to the expense of using resource to produce;
5) valuation factor variations is that resource unit price changes, and the interface that the collection of these data is system managers by sea of clouds OS accounting module arranges and gathered.The hierarchical resource of resource and the collection of hierarchical resource factor information are to have collected by the cloud resource management module of sea of clouds OS, the hierarchical resource of resource changes and hierarchical resource factor variations information is by RPC mode, from cloud resource module Gains resources change of rank when each bill generates startup.Accounting module starts with a message queue, in organizational resources amount, change, virtual machine creating, open, close, hang up, deletion and resources of virtual machine amount (CPU, internal memory, storage) be when revise, corresponding sea of clouds OS module to the message queue of charging send message (message content comprise action type, resource name and ID, variation before and change after resource information and the information such as operation generation time), message is undertaken being saved in database after unified processing by the daemon thread of accounting module.
Bill rise time analysis of complexity
Suppose that in the beginning and ending time that will enter an item of expenditure in the accounts be every day on the stroke of midnight by 23: 59 of the same day, variation any within this time period is all uniformly distributed.
Suppose within the time period of entering an item of expenditure in the accounts, in the sea of clouds OS of collection, data are: valuation factor variations number of times is P, and organizing quantity is M, and the change of rank number of times that tissue has resource is R 1, hierarchical resource factor variations number of times is R 2, the change of rank number of times of tissue is W 1, organization level discount rate change frequency is W 2, the change frequency that tissue has resource quantity is N.
According to assumed conditions, the change frequency of each is evenly distributed, and therefore within each time period, change frequency is X/Y (X is total change frequency, and Y is time period number).According to this hypothesis, the time complexity of bill generation method is .
Except the technical characterictic described in instructions, be the known technology of those skilled in the art.

Claims (2)

1. the bill generation method based on sea of clouds OS, it is characterized in that the charge information gathering according to charge subsystem in sea of clouds OS system, utilize the basic valuation factor and the user who changes or organize the delta data that uses stock number, the time of entering an item of expenditure in the accounts is carried out to repeated segmentation, extract various charging Information Monitorings, finally obtain not having the vicissitudinous basic valuation factor and resource to carry out expense calculating in each time period, the generation of realization to resource bill in sea of clouds OS, specifically according to the type that gathers charge information, be divided into basic charging item change information and charging object variation information, the charge information gathering is processed with time sequencing, complete cutting apart time shaft, finally in the granularity of each minimum time section, realizing accurate expense calculates, concrete steps the contents are as follows:
According to the initial sum termination time that generates bill, situation about changing according to resource unit price, this time period is cut apart, the time period being divided into is referred to as the unit price time period, the resource type N class of using according to bill, different resource acquisition resource unit prices is changed to list, sort from low to high according to the time, and the resource unit price of N class resource is changed and arranged according to transformation period ascending order, Gains resources unit price change sequence, finally according to resource unit price change sequence, cut apart the initial sum termination time of bill, the net result of cutting apart is the time series of a unit price time period, time totally arranges according to ascending order, and the end time of each time period point is the start time point of next time period,
Each tissue is according to the change of rank of the resource of using, and the variation of the variation of the hierarchical resource factor and the organization level of tissue in each hierarchical resource, and the variation of organization level discount rate, each unit price time period is carried out to time cutting, the time period obtaining is referred to as to organize the time period, obtain a unit price time period, search the variation of hierarchical resource in this time period;
According to 1) method unit price time period that current behaviour is done cut apart, afterwards segmentation result is once carried out that hierarchical resource factor variations, organization level change and the variation of organization level discount rate is cut apart, finally, all unit prices time period in unit price time period sequence has been cut apart, obtained a new time period sequence of organizing;
4) each organizes the variation of stock number in the time period to cut the resource time period, and the time period after cutting is the resource time period;
5) in resource, in the time period, valuate grade, the hierarchical resource factor, organization level, organization level discount rate and the stock number of the factor, resource while all not changing, according to above-mentioned data, generate a bill detail, to the expense of using resource to produce in the time period, carry out accurate Calculation and obtain clear bill accurately detailed.
2. the bill generation method based on sea of clouds OS according to claim 1, the factor variations that it is characterized in that valuating is that resource unit price changes, the interface that the collection of these data is system managers by sea of clouds OS accounting module arranges and has gathered, the hierarchical resource of resource and the collection of hierarchical resource factor information are to have collected by the cloud resource management module of sea of clouds OS, the hierarchical resource of resource changes and hierarchical resource factor variations information is by RPC mode when each bill generates startup, from cloud resource module Gains resources change of rank, accounting module starts with a message queue, in organizational resources amount, change, virtual machine creating, open, close, hang up, delete and resources of virtual machine amount CPU, internal memory, during memory modify, corresponding sea of clouds OS module sends message to the message queue of charging, comprise action type, resource name and ID, the information of the resource information before changing and after changing and operation generation time, message is undertaken being saved in database after unified processing by the daemon thread of accounting module.
CN201410378848.8A 2014-08-04 2014-08-04 Bill generation method based on in-cloud OS Pending CN104156811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410378848.8A CN104156811A (en) 2014-08-04 2014-08-04 Bill generation method based on in-cloud OS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410378848.8A CN104156811A (en) 2014-08-04 2014-08-04 Bill generation method based on in-cloud OS

Publications (1)

Publication Number Publication Date
CN104156811A true CN104156811A (en) 2014-11-19

Family

ID=51882306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410378848.8A Pending CN104156811A (en) 2014-08-04 2014-08-04 Bill generation method based on in-cloud OS

Country Status (1)

Country Link
CN (1) CN104156811A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104537530A (en) * 2014-12-29 2015-04-22 浪潮(北京)电子信息产业有限公司 Distributed bill processing method and system based on cloud computing
CN104574051A (en) * 2015-01-12 2015-04-29 浪潮(北京)电子信息产业有限公司 Charging method and device
CN106919578A (en) * 2015-12-24 2017-07-04 阿里巴巴集团控股有限公司 A kind of method and device of the correlated resources value for determining Internet resources
CN107395909A (en) * 2017-07-20 2017-11-24 郑州云海信息技术有限公司 A kind of far management system and method based on cloud computing management platform
CN107516199A (en) * 2017-08-01 2017-12-26 携程旅游信息技术(上海)有限公司 Container charging method, apparatus and system, equipment, the storage medium of cloud platform
CN108833123A (en) * 2018-04-11 2018-11-16 无锡华云数据技术服务有限公司 Based on according to quantity cloud host charging method and device
CN109801135A (en) * 2019-01-16 2019-05-24 金蝶软件(中国)有限公司 Bill generation method, device, computer equipment and storage medium
CN110009421A (en) * 2019-04-04 2019-07-12 杭州朗和科技有限公司 The unit price of cloud computing virtual resource determines method, medium, device and calculates equipment
CN111210273A (en) * 2020-01-03 2020-05-29 湖北省楚天云有限公司 Metering and charging method and system for government affair cloud platform resources
CN112000317A (en) * 2020-08-26 2020-11-27 济南浪潮数据技术有限公司 Resource charging method and device, electronic equipment and storage medium
CN114282919A (en) * 2021-11-18 2022-04-05 苏州浪潮智能科技有限公司 Cloud sea resource charging dynamic cost analysis optimization method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095471A (en) * 2013-01-25 2013-05-08 浪潮电子信息产业股份有限公司 Charging method based on usage amount in cloud operating system (OS)

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095471A (en) * 2013-01-25 2013-05-08 浪潮电子信息产业股份有限公司 Charging method based on usage amount in cloud operating system (OS)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104537530A (en) * 2014-12-29 2015-04-22 浪潮(北京)电子信息产业有限公司 Distributed bill processing method and system based on cloud computing
CN104537530B (en) * 2014-12-29 2018-03-20 浪潮(北京)电子信息产业有限公司 A kind of distributed bill processing method and system based on cloud computing
CN104574051A (en) * 2015-01-12 2015-04-29 浪潮(北京)电子信息产业有限公司 Charging method and device
CN106919578A (en) * 2015-12-24 2017-07-04 阿里巴巴集团控股有限公司 A kind of method and device of the correlated resources value for determining Internet resources
CN107395909A (en) * 2017-07-20 2017-11-24 郑州云海信息技术有限公司 A kind of far management system and method based on cloud computing management platform
CN107516199A (en) * 2017-08-01 2017-12-26 携程旅游信息技术(上海)有限公司 Container charging method, apparatus and system, equipment, the storage medium of cloud platform
CN108833123A (en) * 2018-04-11 2018-11-16 无锡华云数据技术服务有限公司 Based on according to quantity cloud host charging method and device
CN109801135A (en) * 2019-01-16 2019-05-24 金蝶软件(中国)有限公司 Bill generation method, device, computer equipment and storage medium
CN109801135B (en) * 2019-01-16 2021-04-13 金蝶软件(中国)有限公司 Bill generation method and device, computer equipment and storage medium
CN110009421A (en) * 2019-04-04 2019-07-12 杭州朗和科技有限公司 The unit price of cloud computing virtual resource determines method, medium, device and calculates equipment
CN110009421B (en) * 2019-04-04 2022-02-11 杭州朗和科技有限公司 Method, medium and device for determining unit price of cloud computing virtual resource and computing equipment
CN111210273A (en) * 2020-01-03 2020-05-29 湖北省楚天云有限公司 Metering and charging method and system for government affair cloud platform resources
CN112000317A (en) * 2020-08-26 2020-11-27 济南浪潮数据技术有限公司 Resource charging method and device, electronic equipment and storage medium
CN114282919A (en) * 2021-11-18 2022-04-05 苏州浪潮智能科技有限公司 Cloud sea resource charging dynamic cost analysis optimization method and system
CN114282919B (en) * 2021-11-18 2023-11-07 苏州浪潮智能科技有限公司 Cloud sea resource charging dynamic cost analysis optimization method and system

Similar Documents

Publication Publication Date Title
CN104156811A (en) Bill generation method based on in-cloud OS
CN105023196A (en) Analysis method and device for charging transaction data of charging stations
CN102404126B (en) Charging method of cloud computing during application process
CN104679743A (en) Method and device for determining preference model of user
CN104615526A (en) Monitoring system of large data platform
CN104636940A (en) Advertisement delivery method, advertisement delivery system, advertisement screening method, advertisement screening device, and server
CN103136696A (en) Management method of media placement and system thereof
CN109766950A (en) A kind of industrial user's short-term load forecasting method based on form cluster and LightGBM
CN106155817A (en) Business information processing method, server and system
CN104570081A (en) Pre-stack reverse time migration seismic data processing method and system by integral method
CN104820939A (en) Analysis method and device based on charging transaction data
CN102262664A (en) Quality estimating method and quality estimating device
CN103488705A (en) User interest model incremental update method of personalized recommendation system
CN103325067A (en) Service recommendation method and system based on electricity customer segmentation
CN109951302A (en) A kind of cloud computing charge system and method based on the customized product of data dictionary
CN104992297A (en) Electricity fee collection risk assessment device based on big data platform clustering algorithm and method thereof
CN103838754A (en) Information searching device and method
CN103095471A (en) Charging method based on usage amount in cloud operating system (OS)
CN106776859A (en) Mobile solution App commending systems based on user preference
CN108154311A (en) Top-tier customer recognition methods and device based on random forest and decision tree
CN107566148A (en) Analysis method, system, device and the terminal of terminal applies operation data
CN109657705A (en) A kind of automobile user clustering method and device based on random forests algorithm
CN113643113A (en) Automatic electric charge auditing method, system, medium and electronic equipment
CN103336844A (en) Requisite data (RD) segmentation method for big data
CN102521713B (en) Data processing equipment and data processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141119