CN104537530B - A kind of distributed bill processing method and system based on cloud computing - Google Patents

A kind of distributed bill processing method and system based on cloud computing Download PDF

Info

Publication number
CN104537530B
CN104537530B CN201410849053.0A CN201410849053A CN104537530B CN 104537530 B CN104537530 B CN 104537530B CN 201410849053 A CN201410849053 A CN 201410849053A CN 104537530 B CN104537530 B CN 104537530B
Authority
CN
China
Prior art keywords
tissue
weights
node device
charge accounting
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.)
Active
Application number
CN201410849053.0A
Other languages
Chinese (zh)
Other versions
CN104537530A (en
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 Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing 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 Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201410849053.0A priority Critical patent/CN104537530B/en
Publication of CN104537530A publication Critical patent/CN104537530A/en
Application granted granted Critical
Publication of CN104537530B publication Critical patent/CN104537530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of distributed bill processing method and system based on cloud computing, and to solve the above problems, the above method comprises the following steps:Charging main controlled node equipment obtains preset number tissue and corresponding weights;The tissue is respectively allocated to corresponding charge accounting node device by charging main controlled node equipment according to preset loop allocation strategy;According to the organizational information of distribution, the Charging Collection information for reading the tissue is handled charge accounting node device, improves the efficiency of the generation of charge system bill and clearing;Can also be detailed to clear accurately bill is accurately calculated and obtained using expense caused by resource.

Description

A kind of distributed bill processing method and system based on cloud computing
Technical field
The invention belongs to charging control field, more particularly to a kind of distributed bill processing method based on cloud computing and it is System.
Background technology
With the development of cloud computing, sea of clouds OS is widely used, and sea of clouds OS is the production of tide (Beijing) electronic information A cloud computing operating system of industry Co., Ltd independent research, sea of clouds OS are realized to data center by using virtualization technology The virtualization of middle computing resource and secondary distribution, reach the purpose for improving resource utilization, sea of clouds OS is carried towards personal user For cloud computing service, its user is using keeper-tissue-organizing user three-level schema.
In sea of clouds OS, charge subsystem mainly realize to the computing resource that uses of each user under each tissue and tissue and Storage resource information is acquired statistics and the detailed bill of charging generation resource service condition is carried out according to valuation unit.Meter Take subsystem effect of can not be substituted in sea of clouds OS:First, bill is used and taken caused by resource for each tissue and user Foundation is provided with cost;Second, bill show sea of clouds OS service caused by benefit and resource service condition, carried for service Supplier's decision-making provides foundation.
Therefore, according to the cloud resource data message and Pricing Principle of collection, accurate bill how is generated and in face of sea The problem of amount data efficient generation bill is in the urgent need to address.
The content of the invention
The present invention provides a kind of distributed bill processing method and system based on cloud computing, to solve the above problems.
The present invention provides a kind of distributed bill processing method based on cloud computing.The above method comprises the following steps:
Charging main controlled node equipment obtains preset number tissue and corresponding weights;
The tissue is respectively allocated to corresponding charging knot by charging main controlled node equipment according to preset loop allocation strategy Operator node equipment;
Charge accounting node device is read at the Charging Collection information of the tissue according to the organizational information of distribution Reason.
The present invention also provides a kind of distributed bill processing system based on cloud computing, including charging main controlled node equipment, Billing database node device, charge accounting node device;Wherein, the charging main controlled node equipment, the billing database Node device, the charge accounting node device two are two interconnected;
Charging main controlled node equipment, for obtaining preset number tissue and corresponding power from billing database node device Value;It is additionally operable to according to preset loop allocation strategy, the tissue is respectively allocated to corresponding charge accounting node device;
The charge accounting node device, for the organizational information according to distribution, read from billing database node device The Charging Collection information of the tissue is taken to be handled.
Compared to prior art, according to a kind of distributed bill processing method based on cloud computing provided by the invention and it is System, improve the efficiency of the generation of charge system bill and clearing;Can also be to carrying out accurate calculate simultaneously using expense caused by resource And it is detailed to obtain clear accurately bill.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the distributed bill processing system structure chart based on cloud computing of the embodiment of the present invention 1;
Fig. 2 show the distributed bill processing method process chart based on cloud computing of the embodiment of the present invention 2.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
In sea of clouds OS charge systems, metering data is divided into two classes:One kind is the cloud resource that sea of clouds OS is provided, including CPU, interior Deposit, network and storage;One kind is the basic valuation factor, including the hierarchical resource and hierarchical resource factor, organization level and tissue Grade discount rate and resource unit price.Resource data is acquired in units of tissue, and the valuation factor is that systematic unity is carried out Collection.
The present invention includes charging main controlled node equipment, billing database node device, charge accounting node device, service Device;Wherein, the charging main controlled node equipment, the billing database node device, charge accounting node device difference It is connected with server;The charging main controlled node equipment, the billing database node device, the charge accounting node device Two is two interconnected;
After charging main controlled node equipment receives all virtual machine operations information, meter is written to according to operating time sequencing File corresponding to tissue in expense database node equipment is interior and changes corresponding to the tissue in billing database node device Weights, by weights plus 1.
Operation includes establishment, deletion, modification, start, shutdown, hang-up, reply.
The operation information includes virtual machine name information, virtual machine id information, virtual machine configuration information, virtual machine institute In tissue id information, virtual machine owning user id information, operator's id information, operation code information, operating time information.
Fig. 1 show the distributed bill processing system structure chart based on cloud computing of the embodiment of the present invention 1, including charging Main controlled node equipment, billing database node device, charge accounting node device;Wherein, the charging main controlled node equipment, institute It is two interconnected to state billing database node device, the charge accounting node device two;
Charging main controlled node equipment, for obtaining preset number tissue and corresponding power from billing database node device Value;It is additionally operable to according to preset loop allocation strategy, the tissue is respectively allocated to corresponding charge accounting node device;
The charge accounting node device, for the organizational information according to distribution, read from billing database node device The Charging Collection information of the tissue is taken to be handled.
Fig. 2 show the distributed bill processing method process chart based on cloud computing of the embodiment of the present invention 2, including Following steps:
Step 201:Charging main controlled node equipment obtains preset number tissue and corresponding weights;
Charging main controlled node equipment obtains preset number tissue and corresponding weights from billing database node device.
Such as:It is tissue A, tissue B, tissue C, tissue D that charging main controlled node equipment, which obtains 4 tissues,;Organize A is corresponding to weigh Be worth for 14, tissue B correspond to weights be 20, tissue C correspond to that weights are 100, to organize D to correspond to weights be 70.
Step 202:The tissue is respectively allocated to correspondingly by charging main controlled node equipment according to preset loop allocation strategy Charge accounting node device;
Tissue according to weights descending sort from big to small, charge accounting node device according to be assigned to tissue weights and from It is small to be sorted to big.
The preset loop allocation strategy is:
List org=[tissue 1, tissue 2, tissue 3, tissue 4 ... tissue n], wherein, tissue 1, tissue 2, tissue 3, group Knit 4 ... and organize n according to weights descending sort from big to small;
List nod=[charge accounting node device first, charge accounting node device second .. charge accounting node devices M], Wherein, charge accounting node device is according to being assigned to tissue weights and from small to large sort;
For (i=0;i<org.size();i++){
Obtain current organization node information tempOrg to be processed;
Charge accounting node device is sorted according to the weights of distribution tissue and from small to large;
Take out minimum charge accounting node device, tempNode;
TempOrg is distributed to tempNode and tempNode weights=tempNode weights
+ tempOrg weights.
}
The tissue is respectively allocated to corresponding charging knot by charging main controlled node equipment according to preset loop allocation strategy The process of operator node equipment is:
If A, tissue B, tissue C, tissue D in a organized way;Tissue A correspond to that weights are 14, tissue B corresponds to weights and be 20, organize C Corresponding weights are 100, to correspond to weights be 70 to tissue D, and charge accounting node device is first, second, then charging main controlled node equipment is adopted With preset loop allocation strategy, tissue A, tissue B, tissue C, tissue D are distributed to corresponding charge accounting node device, its In, the preset loop allocation strategy is as follows:
List org=[C, D, B, A],
List nod=[first, second];
For (i=0;i<org.size();i++){
Obtain current organization node information tempOrg to be processed;
Charge accounting node device is sorted according to the weights of distribution tissue and from small to large;
Take out minimum charge accounting node device, tempNode;
TempOrg is distributed to tempNode and tempNode weights=tempNode weights
+ tempOrg weights.
}
Step 203:Charge accounting node device reads the Charging Collection information of the tissue according to the organizational information of distribution Handled.
Charge accounting node device reads the tissue according to the organizational information of distribution from billing database node device Charging Collection information handled.
Charge accounting node device often handles one group of Charging Collection information (N bars), and the weights of the tissue are reduced into N.
Citing is carried out below to be described in detail:
System possesses tissue O at present1, O2, O3, O4, O5, O6, O7, O8, the weight (W that each organizesi) it is respectively 100,26, 44,82,74,24,20,16;Charge accounting node device has N1, N2, N3, N4, N5, initial weight 0.Charging main controlled node equipment According to preset loop allocation strategy, W is first according toiCarry out sequence from big to small, ranking results O1, O4, O5, O3, O2, O6, O7, O8.According to node weights, ranking results are N to charge accounting node device from small to large1, N2, N3, N4, N5
The first round is by O1Distribute to node N1, tissue queue and charge accounting node device queue are respectively:O4, O5, O3, O2, O6, O7, O8And N2, N3, N4, N5, N1(0,0,0,0,100);
Second takes turns O4Distribute to N2, tissue queue and charge accounting node device queue are respectively:O5, O3, O2, O6, O7, O8And N3, N4, N5, N2, N1(0,0,0,82,100);
Carry out successively, organize queue and charge accounting node device queue change as follows:
Round Organize queue Charge accounting node queue Charge accounting node weight value changes
0 O1,O4,O5,O3,O2,O6,O7,O8 N1,N2,N3,N4,N5 0,0,0,0,0
1 O4,O5,O3,O2,O6,O7,O8 N2,N3,N4,N5,N1 0,0,0,0,100
2 O5,O3,O2,O6,O7,O8 N3,N4,N5,N2,N1 0,0,0,82,100
3 O3,O2,O6,O7,O8 N4,N5,N3,N2,N1 0,0,74,82,100
4 O2,O6,O7,O8 N5,N4,N3,N2,N1 0,44,74,82,100
5 O6,O7,O8 N5,N4,N3,N2,N1 26,44,74,82,100
6 O7,O8 N4,N5,N3,N2,N1 44,50,74,82,100
7 O8 N5,N4,N3,N2,N1 50,64,74,82,100
8 N4,N5,N3,N2,N1 64,66,74,82,100
The tissue of final each charge accounting node distribution and the weights of each charge accounting node are as follows:
Charge accounting node Tissue Charge accounting node weights
N1 O1 100
N2 O4 82
N3 O5 74
N4 O3,O7 64
N5 O2,O6,O8 66
Compared to prior art, according to a kind of distributed bill processing method based on cloud computing provided by the invention and it is System, improve the efficiency of the generation of charge system bill and clearing;Can also be to carrying out accurate calculate simultaneously using expense caused by resource And it is detailed to obtain clear accurately bill.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (9)

1. a kind of distributed bill processing method based on cloud computing, it is characterised in that comprise the following steps:
Charging main controlled node equipment obtains preset number tissue and corresponding weights;
The tissue is respectively allocated to corresponding charge accounting section by charging main controlled node equipment according to preset loop allocation strategy Point device;
According to the organizational information of distribution, the Charging Collection information for reading the tissue is handled charge accounting node device;Its In, the preset loop allocation strategy is:
List org=[tissue 1, tissue 2, tissue 3, tissue 4 ... tissue n], wherein, tissue 1, tissue 2, tissue 3, tissue 4 ... N is organized according to weights descending sort from big to small;
List nod=[charge accounting node device first, charge accounting node device second .. charge accounting node devices M], its In, charge accounting node device is according to being assigned to tissue weights and from small to large sort;
For (i=0;i<org.size();i++){
Obtain current organization node information tempOrg to be processed;
Charge accounting node device is sorted according to the weights of distribution tissue and from small to large;
Take out minimum charge accounting node device, tempNode;
TempOrg is distributed to tempNode and tempNode weights=tempNode weights+tempOrg weights;
}。
2. according to the method for claim 1, it is characterised in that charging main controlled node equipment is from billing database node device Middle acquisition preset number tissue and corresponding weights.
3. according to the method for claim 1, it is characterised in that tissue is according to weights descending sort from big to small, charging knot Operator node equipment is according to being assigned to tissue weights and from small to large sort.
4. according to the method for claim 1, it is characterised in that charging main controlled node equipment distributes plan according to preset loop Slightly, it is by the process for organizing to be respectively allocated to corresponding charge accounting node device:
If A, tissue B, tissue C, tissue D in a organized way;Tissue A correspond to that weights are 14, tissue B correspond to weights and is 20, organizes C correspondences Weights are 100, correspond to weights be 70 to tissue D, and charge accounting node device be first, second, then the use of charging main controlled node equipment is in advance If Cyclic distributed strategy, tissue A, tissue B, tissue C, tissue D are distributed to corresponding charge accounting node device, wherein, institute It is as follows to state preset loop allocation strategy:
List org=[C, D, B, A],
List nod=[first, second];
For (i=0;i<org.size();i++){
Obtain current organization node information tempOrg to be processed;
Charge accounting node device is sorted according to the weights of distribution tissue and from small to large;
Take out minimum charge accounting node device, tempNode;
TempOrg is distributed to tempNode and tempNode weights=tempNode weights+tempOrg weights;
}。
5. according to the method for claim 1, it is characterised in that charge accounting node device according to the organizational information of distribution, The Charging Collection information that the tissue is read from billing database node device is handled.
6. according to the method for claim 5, it is characterised in that charge accounting node device often handles N bars Charging Collection letter Breath, the weights of the tissue are reduced into N.
7. according to the method for claim 1, it is characterised in that charging main controlled node equipment obtains preset number tissue and right Before answering weights, in addition to:
After charging main controlled node equipment receives all virtual machine operations information, charging number is written to according to operating time sequencing According in file and changing weights corresponding to the tissue in billing database node device corresponding to the tissue in the node device of storehouse, By weights plus 1.
8. according to the method for claim 7, it is characterised in that operation includes establishment, deletion, modification, start, shutdown, extension Rise, reply;The operation information includes virtual machine name information, virtual machine id information, virtual machine configuration information, virtual machine institute In tissue id information, virtual machine owning user id information, operator's id information, operation code information, operating time information.
9. a kind of distributed bill processing system based on cloud computing, it is characterised in that including charging main controlled node equipment, charging Database node equipment, charge accounting node device;Wherein, the charging main controlled node equipment, the billing database node Equipment, the charge accounting node device two are two interconnected;
Charging main controlled node equipment, for obtaining preset number tissue and corresponding weights from billing database node device;Also For according to preset loop allocation strategy, the tissue to be respectively allocated into corresponding charge accounting node device;
The charge accounting node device, for the organizational information according to distribution, institute is read from billing database node device The Charging Collection information for stating tissue is handled;
Wherein, the preset loop allocation strategy is:
List org=[tissue 1, tissue 2, tissue 3, tissue 4 ... tissue n], wherein, tissue 1, tissue 2, tissue 3, tissue 4 ... N is organized according to weights descending sort from big to small;
List nod=[charge accounting node device first, charge accounting node device second .. charge accounting node devices M], its In, charge accounting node device is according to being assigned to tissue weights and from small to large sort;
For (i=0;i<org.size();i++){
Obtain current organization node information tempOrg to be processed;
Charge accounting node device is sorted according to the weights of distribution tissue and from small to large;
Take out minimum charge accounting node device, tempNode;
TempOrg is distributed to tempNode and tempNode weights=tempNode weights+tempOrg weights;
}。
CN201410849053.0A 2014-12-29 2014-12-29 A kind of distributed bill processing method and system based on cloud computing Active CN104537530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849053.0A CN104537530B (en) 2014-12-29 2014-12-29 A kind of distributed bill processing method and system based on cloud computing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849053.0A CN104537530B (en) 2014-12-29 2014-12-29 A kind of distributed bill processing method and system based on cloud computing

Publications (2)

Publication Number Publication Date
CN104537530A CN104537530A (en) 2015-04-22
CN104537530B true CN104537530B (en) 2018-03-20

Family

ID=52853049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849053.0A Active CN104537530B (en) 2014-12-29 2014-12-29 A kind of distributed bill processing method and system based on cloud computing

Country Status (1)

Country Link
CN (1) CN104537530B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112139A (en) * 2021-04-07 2021-07-13 上海联蔚盘云科技有限公司 Cloud platform bill processing method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333505A (en) * 2000-07-18 2002-01-30 国际商业机器公司 System and method for managing space distribution in storage equipment of caculation environment
CN102387023A (en) * 2010-08-27 2012-03-21 中兴通讯股份有限公司 Charging method and system used for cloud computing
CN104156811A (en) * 2014-08-04 2014-11-19 浪潮电子信息产业股份有限公司 Bill generation method based on in-cloud OS
CN104216786A (en) * 2014-09-01 2014-12-17 浪潮电子信息产业股份有限公司 Resource allocation method based on cloud monitoring

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333505A (en) * 2000-07-18 2002-01-30 国际商业机器公司 System and method for managing space distribution in storage equipment of caculation environment
CN102387023A (en) * 2010-08-27 2012-03-21 中兴通讯股份有限公司 Charging method and system used for cloud computing
CN104156811A (en) * 2014-08-04 2014-11-19 浪潮电子信息产业股份有限公司 Bill generation method based on in-cloud OS
CN104216786A (en) * 2014-09-01 2014-12-17 浪潮电子信息产业股份有限公司 Resource allocation method based on cloud monitoring

Also Published As

Publication number Publication date
CN104537530A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
CN106155791B (en) A kind of workflow task dispatching method under distributed environment
CN104156811A (en) Bill generation method based on in-cloud OS
Rizwan et al. SPSO based optimal integration of DGs in local distribution systems under extreme load growth for smart cities
CN104462121A (en) Data processing method, device and system
CN110503136A (en) Platform area line loss exception analysis method, computer readable storage medium and terminal device
Almalaq et al. Towards increasing hosting capacity of modern power systems through generation and transmission expansion planning
CN111612275A (en) Method and device for predicting load of regional user
CN102629220A (en) Dynamic task allocation and management method
CN110232487A (en) A kind of task allocating method and device
CN109408767A (en) A kind of complementing method towards power grid missing data
CN107450438A (en) A kind of various energy resources Optimal Control System and its control method based on garden multi-user
Zhang et al. An efficient forest-based tabu search algorithm for the split-delivery vehicle routing problem
CN104537530B (en) A kind of distributed bill processing method and system based on cloud computing
Ademulegun et al. Energy storage on a distribution network for self-consumption of wind energy and market value
CN109823223A (en) A kind of energy accumulation capacity configuration and system of electric automobile charging station
CN107886252A (en) Electricity electricity charge review method, system and terminal device
CN107861820A (en) A kind of resources of virtual machine distribution method and system
CN104331479A (en) Data ordering method based on similarity calculation method
CN109660623A (en) A kind of distribution method, device and the computer readable storage medium of cloud service resource
CN110322286A (en) Electricity price information generation method and device
CN105704173A (en) Cluster system data distribution method and server
Yang et al. Forecasting the production abilities of recycling systems: A DEA based research
Liang et al. Pseudo transformation mechanism between resource allocation and bin-packing in batching environments
CN115310736A (en) Equipment scheduling method and device, computer equipment and storage medium
CN102456166A (en) Carbon inventory management system and 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
GR01 Patent grant
GR01 Patent grant