[go: up one dir, main page]

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
node device
weights
information
charge accounting
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 OR CALCULATING; 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 distributed bill processing method and system based on cloud computing to solve the above problems. The above method includes the following steps: the billing master control node device obtains the preset number organization and corresponding weight; the billing master control node device According to the preset cycle allocation strategy, the organizations are respectively assigned to the corresponding billing and settlement node devices; the billing and settlement node devices read the billing collection information of the organizations according to the assigned organization information for processing, improving the billing system The efficiency of bill generation and settlement; it is also possible to accurately calculate the cost of using resources and get clear and accurate bill details.

Description

一种基于云计算的分布式账单处理方法及系统A distributed bill processing method and system based on cloud computing

技术领域technical field

本发明属于计费控制领域,尤其涉及一种基于云计算的分布式账单处理方法及系统。The invention belongs to the field of billing control, and in particular relates to a distributed bill processing method and system based on cloud computing.

背景技术Background technique

随着云计算的发展,云海OS得到了广泛的应用,云海OS是浪潮(北京)电子信息产业有限公司自主研发的一款云计算操作系统,云海OS通过采用虚拟化技术实现对数据中心中计算资源的虚拟化和二次分配,达到提高资源利用率的目的,云海OS是面向个人用户提供云计算服务,其用户采用的是管理员-组织-组织用户三级模式。With the development of cloud computing, Yunhai OS has been widely used. Yunhai OS is a cloud computing operating system independently developed by Inspur (Beijing) Electronic Information Industry Co., Ltd. The virtualization and secondary allocation of resources achieve the purpose of improving resource utilization. Yunhai OS provides cloud computing services for individual users, and its users adopt a three-level model of administrator-organization-organization user.

云海OS中,计费子系统主要实现对每个组织和组织下每个用户使用的计算资源和存储资源信息进行采集统计并且根据计价单位进行计费生成资源使用情况的详细账单。计费子系统在云海OS中有着无可替代作用:第一,账单为每个组织和用户使用资源产生的费用成本提供了依据;第二,账单显示了云海OS服务产生的效益以及资源使用情况,为服务提供方决策提供依据。In Yunhai OS, the billing subsystem mainly implements the collection and statistics of computing resources and storage resource information used by each organization and each user under the organization, and generates detailed bills for resource usage based on billing units. The billing subsystem plays an irreplaceable role in Yunhai OS: first, the bill provides a basis for the cost of resources used by each organization and user; second, the bill shows the benefits of Yunhai OS services and resource usage , to provide a basis for service provider decision-making.

因此,根据采集的云资源数据信息和计价原则,如何生成精确的账单并且面对海量数据高效生成账单,是迫切需要解决的问题。Therefore, according to the collected cloud resource data information and pricing principles, how to generate accurate bills and generate bills efficiently in the face of massive data is an urgent problem to be solved.

发明内容Contents of the invention

本发明提供一种基于云计算的分布式账单处理方法及系统,以解决上述问题。The present invention provides a distributed bill processing method and system based on cloud computing to solve the above problems.

本发明提供一种基于云计算的分布式账单处理方法。上述方法包括以下步骤:The invention provides a distributed bill processing method based on cloud computing. The above method comprises the following steps:

计费主控节点设备获取预设数目组织及对应权值;The billing master control node device obtains the preset number organization and corresponding weight;

计费主控节点设备按照预设循环分配策略,将所述组织分别分配至对应的计费结算节点设备;The billing master control node device assigns the organizations to the corresponding billing and settlement node devices respectively according to the preset cycle allocation strategy;

计费结算节点设备根据分配的组织信息,读取所述组织的计费采集信息进行处理。The billing and settlement node device reads the billing collection information of the organization according to the assigned organization information and processes it.

本发明还提供一种基于云计算的分布式账单处理系统,包括计费主控节点设备、计费数据库节点设备、计费结算节点设备;其中,所述计费主控节点设备、所述计费数据库节点设备、所述计费结算节点设备两两相互连接;The present invention also provides a distributed bill processing system based on cloud computing, including a charging master control node device, a charging database node device, and a charging settlement node device; wherein, the charging master control node device, the accounting The billing database node device and the billing and settlement node device are connected to each other in pairs;

计费主控节点设备,用于从计费数据库节点设备中获取预设数目组织及对应权值;还用于按照预设循环分配策略,将所述组织分别分配至对应的计费结算节点设备;The billing master control node device is used to obtain the preset number of organizations and corresponding weights from the billing database node device; it is also used to assign the organizations to corresponding billing and settlement node devices according to the preset cycle allocation strategy ;

所述计费结算节点设备,用于根据分配的组织信息,从计费数据库节点设备中读取所述组织的计费采集信息进行处理。The charging and settlement node device is configured to read the charging collection information of the organization from the charging database node device for processing according to the assigned organization information.

相较于先前技术,根据本发明提供的一种基于云计算的分布式账单处理方法及系统,提高计费系统账单生成和结算的效率;还可以对使用资源产生的费用进行精确计算并且得到清晰准确的账单明细。Compared with the prior art, according to the cloud computing-based distributed bill processing method and system provided by the present invention, the bill generation and settlement efficiency of the billing system can be improved; the cost generated by using resources can also be accurately calculated and clearly obtained Accurate billing details.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1所示为本发明实施例1的基于云计算的分布式账单处理系统结构图;FIG. 1 is a structural diagram of a distributed bill processing system based on cloud computing according to Embodiment 1 of the present invention;

图2所示为本发明实施例2的基于云计算的分布式账单处理方法处理流程图。FIG. 2 is a processing flowchart of a cloud computing-based distributed bill processing method according to Embodiment 2 of the present invention.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

云海OS计费系统中,计费数据分为两类:一类是云海OS提供的云资源,包括CPU、内存、网络和存储;一类是基本的计价因子,包括资源等级和资源等级因子、组织等级和组织等级折扣率以及资源单价。资源数据是以组织为单位进行采集,计价因子是系统统一进行采集。In the Yunhai OS billing system, billing data is divided into two categories: one is cloud resources provided by Yunhai OS, including CPU, memory, network and storage; the other is basic pricing factors, including resource level and resource level factor, Organization level and organization level discount rate and resource unit price. Resource data is collected in units of organizations, and pricing factors are collected uniformly by the system.

本发明包括计费主控节点设备,计费数据库节点设备,计费结算节点设备、服务器;其中,所述计费主控节点设备、所述计费数据库节点设备、所述计费结算节点设备分别与服务器相连;所述计费主控节点设备、所述计费数据库节点设备、所述计费结算节点设备两两相互连接;The present invention includes a billing master control node device, a billing database node device, a billing settlement node device, and a server; wherein, the billing master control node device, the billing database node device, and the billing settlement node device respectively connected to the server; the charging master control node device, the charging database node device, and the charging settlement node device are connected to each other in pairs;

计费主控节点设备接收所有虚拟机操作信息后,按照操作时间先后顺序写入到计费数据库节点设备中的组织对应的文件内并且修改计费数据库节点设备中的组织对应的权值,将权值加1。After the billing master control node device receives all the virtual machine operation information, it writes the operation time sequence into the file corresponding to the organization in the billing database node device and modifies the weight corresponding to the organization in the billing database node device. Add 1 to the weight.

操作包括创建、删除、修改、开机、关机、挂起、回复。Operations include create, delete, modify, power on, power off, suspend, and resume.

所述操作信息中包括虚拟机名称信息、虚拟机ID信息、虚拟机配置信息、虚拟机所在组织ID信息、虚拟机所属用户ID信息、操作者ID信息、操作代码信息、操作时间信息。The operation information includes virtual machine name information, virtual machine ID information, virtual machine configuration information, virtual machine organization ID information, virtual machine user ID information, operator ID information, operation code information, and operation time information.

图1所示为本发明实施例1的基于云计算的分布式账单处理系统结构图,包括计费主控节点设备、计费数据库节点设备、计费结算节点设备;其中,所述计费主控节点设备、所述计费数据库节点设备、所述计费结算节点设备两两相互连接;Fig. 1 shows the structural diagram of the distributed bill processing system based on cloud computing according to Embodiment 1 of the present invention, including a charging master control node device, a charging database node device, and a charging settlement node device; wherein, the charging master The control node device, the charging database node device, and the charging and settlement node device are connected to each other in pairs;

计费主控节点设备,用于从计费数据库节点设备中获取预设数目组织及对应权值;还用于按照预设循环分配策略,将所述组织分别分配至对应的计费结算节点设备;The billing master control node device is used to obtain the preset number of organizations and corresponding weights from the billing database node device; it is also used to assign the organizations to corresponding billing and settlement node devices according to the preset cycle allocation strategy ;

所述计费结算节点设备,用于根据分配的组织信息,从计费数据库节点设备中读取所述组织的计费采集信息进行处理。The charging and settlement node device is configured to read the charging collection information of the organization from the charging database node device for processing according to the assigned organization information.

图2所示为本发明实施例2的基于云计算的分布式账单处理方法处理流程图,包括以下步骤:FIG. 2 is a flowchart of a cloud computing-based distributed bill processing method according to Embodiment 2 of the present invention, including the following steps:

步骤201:计费主控节点设备获取预设数目组织及对应权值;Step 201: The billing master control node device obtains the preset number organization and corresponding weight;

计费主控节点设备从计费数据库节点设备中获取预设数目组织及对应权值。The charging master control node device obtains the preset number organization and corresponding weight from the charging database node device.

例如:计费主控节点设备获取4个组织即组织A、组织B、组织C、组织D;组织A对应权值为14、组织B对应权值为20、组织C对应权值为100、组织D对应权值为70。For example: the billing master control node device obtains 4 organizations, namely organization A, organization B, organization C, and organization D; organization A corresponds to a weight of 14, organization B corresponds to a weight of 20, organization C corresponds to a weight of 100, and organization D corresponds to a weight of 70.

步骤202:计费主控节点设备按照预设循环分配策略,将所述组织分别分配至对应的计费结算节点设备;Step 202: The billing master control node device assigns the organizations to the corresponding billing and settlement node devices according to the preset cycle allocation strategy;

组织按照权值从大到小降序排序,计费结算节点设备按照分配到组织权值的和从小到大排序。Organizations are sorted in descending order of weights, and billing and settlement node devices are sorted according to the sum of weights assigned to organizations from small to large.

所述预设循环分配策略为:The preset cycle allocation strategy is:

List org=[组织1,组织2,组织3,组织4…组织n],其中,组织1,组织2,组织3,组织4…组织n按照权值从大到小降序排序;List org=[organization 1, organization 2, organization 3, organization 4...organization n], wherein, organization 1, organization 2, organization 3, organization 4...organization n are sorted in descending order of weight;

List nod=[计费结算节点设备甲,计费结算节点设备乙..计费结算节点设备M],其中,计费结算节点设备按照分配到组织权值的和从小到大排序;List nod=[Charging and settlement node equipment A, charging and settlement node equipment B..Charging and settlement node equipment M], wherein, the charging and settlement node equipment is sorted according to the sum of the weights assigned to the organization from small to large;

For(i=0;i<org.size();i++){For(i=0; i<org. size(); i++){

获取当前要处理的组织节点信息tempOrg;Obtain the organization node information tempOrg currently to be processed;

将计费结算节点设备按照分配组织的权值和从小到大排序;Sort the billing and settlement node devices according to the weight of the distribution organization and from small to large;

取出最小的计费结算节点设备,tempNode;Take out the smallest billing and settlement node device, tempNode;

将tempOrg分配给tempNode并且tempNode的权值=tempNode权值Assign tempOrg to tempNode and the weight of tempNode = tempNode weight

+tempOrg权值。+tempOrg weight.

}}

计费主控节点设备按照预设循环分配策略,将所述组织分别分配至对应的计费结算节点设备的过程为:The billing master control node device assigns the organizations to the corresponding billing and settlement node devices according to the preset cycle allocation strategy as follows:

若有组织A、组织B、组织C、组织D;组织A对应权值为14、组织B对应权值为20、组织C对应权值为100、组织D对应权值为70,计费结算节点设备为甲、乙,则计费主控节点设备采用预设循环分配策略,将组织A、组织B、组织C、组织D分配至对应的计费结算节点设备,其中,所述预设循环分配策略如下:If there are organization A, organization B, organization C, and organization D; the corresponding weight of organization A is 14, the corresponding weight of organization B is 20, the corresponding weight of organization C is 100, and the corresponding weight of organization D is 70, the billing settlement node If the devices are A and B, then the billing master control node device adopts the preset cyclic allocation strategy to allocate organization A, organization B, organization C, and organization D to the corresponding billing and settlement node devices, wherein the preset cyclic allocation The strategy is as follows:

List org=[C,D,B,A],List org = [C, D, B, A],

List nod=[甲,乙];List nod = [A, B];

For(i=0;i<org.size();i++){For(i=0; i<org. size(); i++){

获取当前要处理的组织节点信息tempOrg;Obtain the organization node information tempOrg currently to be processed;

将计费结算节点设备按照分配组织的权值和从小到大排序;Sort the billing and settlement node devices according to the weight of the distribution organization and from small to large;

取出最小的计费结算节点设备,tempNode;Take out the smallest billing and settlement node device, tempNode;

将tempOrg分配给tempNode并且tempNode的权值=tempNode权值Assign tempOrg to tempNode and the weight of tempNode = tempNode weight

+tempOrg权值。+tempOrg weight.

}}

步骤203:计费结算节点设备根据分配的组织信息,读取所述组织的计费采集信息进行处理。Step 203: The charging and settlement node device reads the charging collection information of the organization according to the assigned organization information and processes it.

计费结算节点设备根据分配的组织信息,从计费数据库节点设备中读取所述组织的计费采集信息进行处理。The charging and settlement node device reads the charging collection information of the organization from the charging database node device according to the assigned organization information and processes it.

计费结算节点设备每处理一组计费采集信息(N条),将所述组织的权值减少N。Each time the charging and settlement node device processes a group of charging collection information (N pieces), it reduces the weight of the organization by N.

下面进行举例进行详细说明:The following is an example to describe in detail:

目前系统拥有组织O1,O2,O3,O4,O5,O6,O7,O8,每个组织的权重(Wi)分别为100,26,44,82,74,24,20,16;计费结算节点设备有N1,N2,N3,N4,N5,初始权值为0。计费主控节点设备按照预设循环分配策略,首先按照Wi进行从大到小的排序,排序结果为O1,O4,O5,O3,O2,O6,O7,O8。计费结算节点设备按照节点权值从小到大排序结果为N1,N2,N3,N4,N5Currently, the system has organizations O 1 , O 2 , O 3 , O 4 , O 5 , O 6 , O 7 , and O 8 , and the weights (W i ) of each organization are 100, 26, 44, 82, 74, and 24 respectively. , 20, 16; the billing and settlement node equipment has N 1 , N 2 , N 3 , N 4 , N 5 , and the initial weight is 0. According to the preset cycle allocation strategy, the billing master control node device first sorts from large to small according to W i , and the sorting results are O 1 , O 4 , O 5 , O 3 , O 2 , O 6 , O 7 , O 8 . The billing and settlement node devices are sorted according to the node weights from small to large, and the results are N 1 , N 2 , N 3 , N 4 , and N 5 .

第一轮将O1分配给节点N1,组织队列和计费结算节点设备队列分别为:O4,O5,O3,O2,O6,O7,O8和N2,N3,N4,N5,N1(0,0,0,0,100);In the first round, O 1 is allocated to node N 1 , the organization queue and billing and settlement node equipment queue are: O 4 , O 5 , O 3 , O 2 , O 6 , O 7 , O 8 and N 2 , N 3 , N 4 , N 5 , N 1 (0, 0, 0, 0, 100);

第二轮将O4分配给N2,组织队列和计费结算节点设备队列分别为:O5,O3,O2,O6,O7,O8和N3,N4,N5,N2,N1(0,0,0,82,100);In the second round, O 4 is allocated to N 2 . The organization queue and billing and settlement node equipment queue are: O 5 , O 3 , O 2 , O 6 , O 7 , O 8 and N 3 , N 4 , N 5 , N 2 , N 1 (0, 0, 0, 82, 100);

依次进行,组织队列和计费结算节点设备队列变化如下:Proceeding in sequence, the organization queue and billing and settlement node equipment queue change as follows:

轮次Rounds 组织队列Organization Queue 计费结算节点队列Billing and settlement node queue 计费结算节点权值变化Changes in the weight of billing and settlement nodes 00 O1,O4,O5,O3,O2,O6,O7,O8 O 1 ,O 4 ,O 5 ,O 3 ,O 2 ,O 6 ,O 7 ,O 8 N1,N2,N3,N4,N5 N 1 , N 2 , N 3 , N 4 , N 5 0,0,0,0,00,0,0,0,0 11 O4,O5,O3,O2,O6,O7,O8 O 4 ,O 5 ,O 3 ,O 2 ,O 6 ,O 7 ,O 8 N2,N3,N4,N5,N1 N 2 ,N 3 ,N 4 ,N 5 ,N 1 0,0,0,0,1000,0,0,0,100 22 O5,O3,O2,O6,O7,O8 O 5 ,O 3 ,O 2 ,O 6 ,O 7 ,O 8 N3,N4,N5,N2,N1 N 3 ,N 4 ,N 5 ,N 2 ,N 1 0,0,0,82,1000,0,0,82,100 33 O3,O2,O6,O7,O8 O 3 ,O 2 ,O 6 ,O 7 ,O 8 N4,N5,N3,N2,N1 N 4 , N 5 , N 3 , N 2 , N 1 0,0,74,82,1000,0,74,82,100 44 O2,O6,O7,O8 O 2 ,O 6 ,O 7 ,O 8 N5,N4,N3,N2,N1 N 5 , N 4 , N 3 , N 2 , N 1 0,44,74,82,1000,44,74,82,100 55 O6,O7,O8 O 6 ,O 7 ,O 8 N5,N4,N3,N2,N1 N 5 , N 4 , N 3 , N 2 , N 1 26,44,74,82,10026,44,74,82,100 66 O7,O8 O 7 ,O 8 N4,N5,N3,N2,N1 N 4 , N 5 , N 3 , N 2 , N 1 44,50,74,82,10044,50,74,82,100 77 O8 O 8 N5,N4,N3,N2,N1 N 5 , N 4 , N 3 , N 2 , N 1 50,64,74,82,10050, 64, 74, 82, 100 88 N4,N5,N3,N2,N1 N 4 , N 5 , N 3 , N 2 , N 1 64,66,74,82,10064, 66, 74, 82, 100

最终每个计费结算节点分配的组织和每个计费结算节点的权值如下:In the end, the organization assigned by each billing and settlement node and the weight of each billing and settlement node are as follows:

计费结算节点billing settlement node 组织organize 计费结算节点权值Billing and settlement node weight N1N1 O1 O 1 100100 N2N2 O4 O 4 8282 N3N3 O5 O 5 7474 N4N4 O3,O7 O 3 ,O 7 6464 N5N5 O2,O6,O8 O 2 , O 6 , O 8 6666

相较于先前技术,根据本发明提供的一种基于云计算的分布式账单处理方法及系统,提高计费系统账单生成和结算的效率;还可以对使用资源产生的费用进行精确计算并且得到清晰准确的账单明细。Compared with the prior art, according to the cloud computing-based distributed bill processing method and system provided by the present invention, the bill generation and settlement efficiency of the billing system can be improved; the cost generated by using resources can also be accurately calculated and clearly obtained Accurate billing details.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

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
Zhang et al. Application of machine learning optimization in cloud computing resource scheduling and management
CN105900064B (en) Method and apparatus for scheduling data flow tasks
CN103778148B (en) Life cycle management method and equipment for data file of Hadoop distributed file system
CN110659693B (en) K-nearest neighbor classification-based power distribution network rapid topology identification method, system and medium
CN103548324B (en) Virtual machine distribution method and virtual machine distribution device
CN107464043A (en) The distribution method of polymorphic type task in a kind of space mass-rent
CN110287688A (en) Associated account number analysis method, device and computer readable storage medium
CN104462222A (en) Distributed storage method and system for checkpoint vehicle pass data
CN104156811A (en) Bill generation method based on in-cloud OS
CN111585798B (en) Network resource parameter configuration method, device and computer readable storage medium
CN108959399A (en) Distributed data deletes flow control method, device, electronic equipment and storage medium
CN110097302B (en) Method and device for distributing orders
CN105808341A (en) Method, apparatus and system for scheduling resources
Zhang et al. An efficient forest-based tabu search algorithm for the split-delivery vehicle routing problem
CN108833592A (en) Cloud host schedules device optimization method, device, equipment and storage medium
CN104537530B (en) A kind of distributed bill processing method and system based on cloud computing
CN106802822A (en) A kind of cloud data center cognitive resources dispatching method based on moth algorithm
CN116056018A (en) Short message service charging method and device and electronic equipment
CN103338246B (en) Virtual machine system of selection in a kind of infrastructure cloud resource allocation process and system
Xu et al. Hybrid scheduling deadline-constrained multi-DAGs based on reverse HEFT
CN106201655B (en) Virtual machine allocation method and virtual machine allocation system
CN106933873A (en) A kind of cross-platform data querying method and equipment
CN113342526A (en) Dynamic management and control method, system, terminal and medium for cloud computing mobile network resources
Ni et al. An ant colony optimization for the composite saas placement problem in the cloud
CN105704173A (en) Cluster system data distribution method and server

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