Movatterモバイル変換


[0]ホーム

URL:


CN113517989B - A resource charging method and device for IaaS cloud platform - Google Patents

A resource charging method and device for IaaS cloud platform
Download PDF

Info

Publication number
CN113517989B
CN113517989BCN202111072603.9ACN202111072603ACN113517989BCN 113517989 BCN113517989 BCN 113517989BCN 202111072603 ACN202111072603 ACN 202111072603ACN 113517989 BCN113517989 BCN 113517989B
Authority
CN
China
Prior art keywords
data
abnormal
event
user
cloud platform
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
CN202111072603.9A
Other languages
Chinese (zh)
Other versions
CN113517989A (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.)
Shanghai Jiuzhou Future Qixuan Technology Co ltd
Original Assignee
Zhejiang 99Cloud Information Service 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 Zhejiang 99Cloud Information Service Co LtdfiledCriticalZhejiang 99Cloud Information Service Co Ltd
Priority to CN202111072603.9ApriorityCriticalpatent/CN113517989B/en
Publication of CN113517989ApublicationCriticalpatent/CN113517989A/en
Application grantedgrantedCritical
Publication of CN113517989BpublicationCriticalpatent/CN113517989B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供一种IaaS云平台资源计费方法及装置,所述方法包括:IaaS云平台资源计费方法,检测到用户的云平台使用需求后,根据使用需求确定对应的需求配置属性,并配置对应的用户云空间;通过预设的计费agent轮询云平台的计量系统,获取计量系统的采样数据;通过计费agent获取用户云空间的消息队列中的事件数据;进行数据整合,得到整合数据,检测整合数据中是否存在异常数据;确定异常数据,获取异常数据的前后数据,根据前后数据确定异常数据的时间信息,根据时间信息获取对应的标准数据,替换所述异常数据;结合计费标准,计算用户的最终费用。采用本方法能够在IaaS云平台数据出现异常时,对异常数据进行追溯修改,进而保证最终计算费用的准确性。

Figure 202111072603

Embodiments of the present invention provide an IaaS cloud platform resource charging method and device, the method comprising: an IaaS cloud platform resource charging method, after detecting a user's cloud platform usage requirement, determining a corresponding requirement configuration attribute according to the usage requirement, And configure the corresponding user cloud space; poll the metering system of the cloud platform through the preset billing agent to obtain the sampling data of the metering system; obtain the event data in the message queue of the user cloud space through the billing agent; perform data integration, Obtain integrated data, detect whether there is abnormal data in the integrated data; determine abnormal data, obtain the data before and after the abnormal data, determine the time information of the abnormal data according to the data before and after, obtain corresponding standard data according to the time information, and replace the abnormal data; Billing standard, calculate the final cost of the user. The method can retroactively modify the abnormal data when the data of the IaaS cloud platform is abnormal, thereby ensuring the accuracy of the final calculation fee.

Figure 202111072603

Description

Resource charging method and device for IaaS cloud platform
Technical Field
The invention relates to the technical field of cloud platforms, in particular to an IaaS cloud platform resource charging method and device.
Background
With the rapid development of cloud computing technology, more and more cloud use is accepted and adopted by enterprises, and various cloud platforms are emerging, for example, the existing IaaS cloud platform of OpenStack is an open source IaaS cloud platform, a charging scheme is provided in the IaaS cloud platform community, and the resource charging of the IaaS cloud platform is finally realized through the combination with metering service.
However, the charging service provided by the IaaS cloud platform community is not easy to use, and when data is abnormal, for example, data is lost and cannot be traced back, and when data is wrong, data cannot be deleted and revised in time, which easily causes a result error of resource charging.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides an IaaS cloud platform resource charging method and device.
The embodiment of the invention provides an IaaS cloud platform resource charging method, which comprises the following steps:
after the cloud platform use requirements of the users are detected, determining corresponding requirement configuration attributes according to the use requirements, and configuring corresponding user cloud spaces according to the requirement configuration attributes;
polling a metering system of the cloud platform through a preset billing agent to obtain sampling data in the metering system, wherein the sampling data is usage data of a user cloud space;
acquiring event data in a message queue of the user cloud space through the billing agent;
performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data;
when abnormal data exists in the integrated data, determining corresponding abnormal data, acquiring previous and subsequent data of the abnormal data, determining time information of the abnormal data in the user cloud space according to attributes of the previous and subsequent data, acquiring corresponding standard data according to the time information, and replacing the abnormal data with the standard data;
and calculating the final cost of the user according to the modified integration data by combining the charging standard.
In one embodiment, the method further comprises:
when the previous data and the next data are sampling data, acquiring a polling period of the billing agent and sampling time of the previous data and the next data;
determining the sampling time of the abnormal data according to the polling period of the billing agent and the sampling time of the previous and subsequent data, and determining the time information of the abnormal data in the user cloud space according to the sampling time of the abnormal data;
when the previous data and the next data are event data, acquiring events and event life cycles corresponding to the previous data and the next data;
and determining an event and an event life cycle corresponding to the abnormal data according to the event and the event life cycle corresponding to the previous and next data, and determining the time information of the abnormal data in the user cloud space according to the event and the event life cycle corresponding to the abnormal data.
In one embodiment, the method further comprises:
acquiring a polling period of the charging agent and an event life cycle corresponding to the event data;
and detecting whether abnormal data exist in the integrated data according to the polling period and the time life cycle.
In one embodiment, the method further comprises:
detecting whether an abnormal event occurs on the cloud platform;
when the cloud platform is detected to have abnormal events, acquiring the occurrence time periods of the abnormal events, and acquiring historical data of the occurrence time periods to replace data of corresponding time periods in the integrated data.
In one embodiment, the method further comprises:
and when abnormal data does not exist in the integrated data, calculating the final cost of the user according to the integrated data by combining the charging standard.
In one embodiment, the method further comprises:
and acquiring a preset format, and carrying out standardized processing on the sampling data and the event data according to the preset format to obtain integrated data after integration.
The embodiment of the invention provides an IaaS cloud platform resource charging device, which comprises:
the system comprises a detection module, a configuration module and a configuration module, wherein the detection module is used for determining a corresponding demand configuration attribute according to a use demand of a cloud platform of a user after detecting the use demand, and configuring a corresponding user cloud space according to the demand configuration attribute;
the polling module is used for polling a metering system of the cloud platform through a preset billing agent to acquire sampling data in the metering system, wherein the sampling data is usage data of a user cloud space;
the first acquisition module is used for acquiring event data in a message queue of the user cloud space through the billing agent;
the integration module is used for performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data;
a second obtaining module, configured to determine corresponding abnormal data when abnormal data exists in the integrated data, obtain previous and subsequent data of the abnormal data, determine time information of the abnormal data in the user cloud space according to attributes of the previous and subsequent data, obtain corresponding standard data according to the time information, and replace the abnormal data with the standard data;
and the calculation module is used for calculating the final cost of the user according to the modified integration data by combining the charging standard.
In one embodiment, the apparatus further comprises:
a third obtaining module, configured to obtain a polling period of the billing agent and sampling time of the previous and subsequent data when the previous and subsequent data are sampling data;
the first determining module is used for determining the sampling time of the abnormal data according to the polling period of the billing agent and the sampling time of the previous and subsequent data, and determining the time information of the abnormal data in the user cloud space according to the sampling time of the abnormal data;
the fourth acquisition module is used for acquiring events and event life cycles corresponding to the previous and next data when the previous and next data are event data;
and the second determining module is used for determining the event and the event life cycle corresponding to the abnormal data according to the event and the event life cycle corresponding to the previous and next data, and determining the time information of the abnormal data in the user cloud space according to the event and the event life cycle corresponding to the abnormal data.
The embodiment of the invention provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps of the IaaS cloud platform resource charging method are realized when the processor executes the program.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the IaaS cloud platform resource billing method described above.
According to the IaaS cloud platform resource charging method and device provided by the embodiment of the invention, after the cloud platform use requirements of users are detected, the corresponding requirement configuration attributes are determined according to the use requirements, and the corresponding user cloud space is configured according to the requirement configuration attributes; polling a metering system of a cloud platform through a preset billing agent to obtain sampling data in the metering system, wherein the sampling data is the use data of a user cloud space; acquiring event data in a message queue of a user cloud space through a billing agent; performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data; when abnormal data exists in the integrated data, determining corresponding abnormal data, acquiring data before and after the abnormal data, determining time information of the abnormal data in a user cloud space according to attributes of the data before and after, acquiring corresponding standard data according to the time information, and replacing the abnormal data with the standard data; and calculating the final cost of the user according to the modified integration data by combining the charging standard. Therefore, when the IaaS cloud platform data is abnormal, the abnormal data can be traced and modified, and the accuracy of final calculation cost is further ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an IaaS cloud platform resource charging method in an embodiment of the present invention;
fig. 2 is a structural diagram of an IaaS cloud platform resource charging device in the embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow diagram of an IaaS cloud platform resource charging method provided in an embodiment of the present invention, and as shown in fig. 1, an embodiment of the present invention provides an IaaS cloud platform resource charging method, including:
step S101, after detecting the cloud platform use requirement of the user, determining the corresponding requirement configuration attribute according to the use requirement, and configuring the corresponding user cloud space according to the requirement configuration attribute.
Specifically, after detecting the use requirement of the user for the cloud platform, the cloud platform server determines the corresponding requirement configuration attribute according to the use requirement of the user, where the use requirement of the user may be a space size of 60GB serving for 30 days, or a processor with 4 cores and eight threads serving for 24 hours, and after determining the requirement configuration attribute that the cloud platform needs to provide according to the use requirement of the user, the cloud platform server may further calculate the basic cost required by the user according to a charging standard preset by the cloud platform, and correspondingly configure the corresponding user cloud space for the user, such as creating a corresponding user cloud host.
Step S102, polling a metering system of the cloud platform through a preset billing agent to obtain sampling data in the metering system, wherein the sampling data is usage data of a user cloud space.
Specifically, the metering system of the cloud platform is polled through a preset billing agent, wherein the billing agent is software capable of autonomously acquiring and feeding back relevant data of a user cloud space, the metering system is a system which is owned by the cloud platform and meters user usage data, the data of the metering system is periodically sampled data, and the billing agent periodically acquires the sampled data in the metering system, for example, the usage data of a user cloud host every 1 hour.
Step S103, acquiring event data in the message queue of the user cloud space through the billing agent.
Specifically, the billing agent obtains event data in a message queue of the cloud space of the user, where the event data is a usage event of the user, and specifically may include an event that the user starts to use, the user changes a usage mode (including start and end times of the mode), the user ends to use, and the like, which may cause a change in the billing mode.
And step S104, performing data integration on the sampling data and the event data to obtain integrated data, and detecting whether abnormal data exists in the integrated data.
Specifically, data integration is performed on the sampling data and the event data to obtain integrated data after integration, a preset format can be obtained in the specific integration process, data is prepared in a standardized mode according to the preset format, then it is guaranteed that subsequent processing steps can perform unified processing on the data, and then whether abnormal data exist in the integrated data or not is detected.
In addition, the step of detecting whether abnormal data exists in the integrated data may be: acquiring a polling cycle of the billing agent and an event life cycle corresponding to the event data, wherein the polling cycle refers to the cycle time of the billing agent acquiring the metering system of the cloud platform, the event life cycle corresponding to the event data refers to the time when the user starts to use, the user changes the use mode (including the start time and the end time of the mode), the user ends to use and other events change, and then detecting whether data abnormality exists in the integrated data according to the polling cycle and the time life cycle.
Step S105, when abnormal data exists in the integrated data, corresponding abnormal data is determined, front and back data of the abnormal data are obtained, time information of the abnormal data in the user cloud space is determined according to attributes of the front and back data, corresponding standard data are obtained according to the time information, and the abnormal data are replaced by the standard data.
Specifically, when there is abnormal data in the integrated data, there is a possibility that: and determining corresponding abnormal data and acquiring preceding and following data of the abnormal data, determining time information of the abnormal data in a user cloud space according to the attributes of the preceding and following data, acquiring corresponding standard data in historical data of the user cloud space according to the time information after determining the time information of the abnormal data in the user cloud space, and replacing abnormal data with the standard data.
In addition, the step of determining the time information of the abnormal data in the user cloud space according to the attributes of the previous and next data may be divided into:
when the front data and the back data are sampling data, the abnormal data are also the sampling data, and then the polling period of the billing agent and the sampling time of the front data and the back data are obtained; the sampling time of the abnormal data can be determined according to the polling period of the billing agent and the sampling time of the previous and subsequent data, and the time information of the abnormal data in the user cloud space can be determined according to the sampling time of the abnormal data, for example, when the previous and subsequent data are sampling data of 6 points and 8 points respectively, the abnormal data is sampling data of 7 points;
when the current back data is event data, indicating that the abnormal data is also the event data, acquiring events and event life cycles corresponding to the front and back data; determining an event and an event life cycle corresponding to the abnormal data according to the event and the event life cycle corresponding to the previous and subsequent data, and determining time information of the abnormal data in the user cloud space according to the event and the event life cycle corresponding to the abnormal data, wherein for example, the previous and subsequent data are the start time of the event 1 and the start time of the event 2, and the abnormal data are the end time of the event 1.
In addition, when an abnormal event is detected to occur on the cloud platform, where the abnormal event occurs, such as a situation that the cloud platform fails to receive the user data, for example, a network is disconnected, the processing method may acquire an occurrence time period of the abnormal event, and acquire historical data of the user cloud space in the occurrence time period to replace data in a corresponding time period in the integrated data.
And step S106, combining the charging standard, and calculating to obtain the final cost of the user according to the modified integration data.
After the modified integrated data of the user on the cloud platform use condition is obtained, the final cost of the user can be calculated by combining the preset charging standard.
In addition, when there is no abnormal data in the integrated data, the final cost of the user may be calculated according to the integrated data without performing the data modification step in step S105 and directly combining the charging standard.
According to the IaaS cloud platform resource charging method provided by the embodiment of the invention, after the cloud platform use requirements of users are detected, the corresponding requirement configuration attributes are determined according to the use requirements, and the corresponding user cloud space is configured according to the requirement configuration attributes; polling a metering system of a cloud platform through a preset billing agent to obtain sampling data in the metering system, wherein the sampling data is the use data of a user cloud space; acquiring event data in a message queue of a user cloud space through a billing agent; performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data; when abnormal data exists in the integrated data, determining corresponding abnormal data, acquiring data before and after the abnormal data, determining time information of the abnormal data in a user cloud space according to attributes of the data before and after, acquiring corresponding standard data according to the time information, and replacing the abnormal data with the standard data; and calculating the final cost of the user according to the modified integration data by combining the charging standard. Therefore, when the IaaS cloud platform data is abnormal, the abnormal data can be traced, and the accuracy of final calculation cost is further ensured.
Fig. 2 is a device for charging resources of an IaaS cloud platform according to an embodiment of the present invention, including: the system comprises a detection module S201, a polling module S202, a first acquisition module S203, an integration module S204, a second acquisition module S205 and a calculation module S206, wherein:
the detection module S201 is configured to determine a corresponding requirement configuration attribute according to a use requirement after detecting the use requirement of the cloud platform of the user, and configure a corresponding cloud space of the user according to the requirement configuration attribute.
The polling module S202 is used for polling the metering system of the cloud platform through a preset billing agent to obtain sampling data in the metering system, wherein the sampling data is usage data of a user cloud space.
A first obtaining module S203, configured to obtain, through the billing agent, event data in the message queue of the user cloud space.
And the integration module S204 is used for performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data.
A second obtaining module S205, configured to determine corresponding abnormal data when there is abnormal data in the integrated data, obtain previous and subsequent data of the abnormal data, determine time information of the abnormal data in the user cloud space according to attributes of the previous and subsequent data, obtain corresponding standard data according to the time information, and replace the abnormal data with the standard data.
And the calculating module S206 is used for calculating the final cost of the user according to the modified integration data by combining the charging standard.
In one embodiment, the apparatus may further comprise:
and the third acquisition module is used for acquiring the polling period of the billing agent and the sampling time of the previous and next data when the previous and next data are sampling data.
And the first determining module is used for determining the sampling time of the abnormal data according to the polling period of the billing agent and the sampling time of the previous and subsequent data, and determining the time information of the abnormal data in the user cloud space according to the sampling time of the abnormal data.
And the fourth acquisition module is used for acquiring the events and the event life cycles corresponding to the previous and next data when the previous and next data are event data.
And the second determining module is used for determining the event and the event life cycle corresponding to the abnormal data according to the event and the event life cycle corresponding to the previous and next data, and determining the time information of the abnormal data in the user cloud space according to the event and the event life cycle corresponding to the abnormal data.
In one embodiment, the apparatus may further comprise:
and the fifth acquisition module is used for acquiring the polling period of the billing agent and the event life cycle corresponding to the event data.
And the second detection module is used for detecting whether abnormal data exist in the integrated data according to the polling cycle and the time life cycle.
In one embodiment, the apparatus may further comprise:
and the third detection module is used for detecting whether the cloud platform has abnormal events.
The sixth obtaining module is configured to, when it is detected that an abnormal event occurs in the cloud platform, obtain an occurrence time period of the abnormal event, and obtain historical data of the occurrence time period to replace data of a corresponding time period in the integrated data.
In one embodiment, the apparatus may further comprise:
and the second calculation module is used for calculating the final cost of the user according to the integrated data by combining the charging standard when abnormal data does not exist in the integrated data.
In one embodiment, the apparatus may further comprise:
and the seventh acquisition module is used for acquiring a preset format, and carrying out standardized processing on the sampling data and the event data according to the preset format to obtain integrated data after integration.
For specific limitations of the IaaS cloud platform resource charging apparatus, reference may be made to the above limitations on the IaaS cloud platform resource charging method, which is not described herein again. All or part of each module in the IaaS cloud platform resource charging device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor)301, a memory (memory)302, a communication Interface (Communications Interface)303 and acommunication bus 304, wherein theprocessor 301, thememory 302 and thecommunication Interface 303 complete communication with each other through thecommunication bus 304. Theprocessor 301 may call logic instructions in thememory 302 to perform the following method: the IaaS cloud platform resource charging method comprises the steps of determining corresponding demand configuration attributes according to use requirements after the use requirements of a cloud platform of a user are detected, and configuring corresponding user cloud spaces according to the demand configuration attributes; polling a metering system of a cloud platform through a preset billing agent to obtain sampling data in the metering system, wherein the sampling data is the use data of a user cloud space; acquiring event data in a message queue of a user cloud space through a billing agent; performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data; when abnormal data exists in the integrated data, determining corresponding abnormal data, acquiring data before and after the abnormal data, determining time information of the abnormal data in a user cloud space according to attributes of the data before and after, acquiring corresponding standard data according to the time information, and replacing the abnormal data with the standard data; and calculating the final cost of the user according to the modified integration data by combining the charging standard.
Furthermore, the logic instructions in thememory 302 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, and for example, the method includes: the IaaS cloud platform resource charging method comprises the steps of determining corresponding demand configuration attributes according to use requirements after the use requirements of a cloud platform of a user are detected, and configuring corresponding user cloud spaces according to the demand configuration attributes; polling a metering system of a cloud platform through a preset billing agent to obtain sampling data in the metering system, wherein the sampling data is the use data of a user cloud space; acquiring event data in a message queue of a user cloud space through a billing agent; performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data; when abnormal data exists in the integrated data, determining corresponding abnormal data, acquiring data before and after the abnormal data, determining time information of the abnormal data in a user cloud space according to attributes of the data before and after, acquiring corresponding standard data according to the time information, and replacing the abnormal data with the standard data; and calculating the final cost of the user according to the modified integration data by combining the charging standard.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. An IaaS cloud platform resource charging method is characterized by comprising the following steps:
after the cloud platform use requirements of the users are detected, determining corresponding requirement configuration attributes according to the use requirements, and configuring corresponding user cloud spaces according to the requirement configuration attributes;
polling a metering system of the cloud platform through a preset billing agent to obtain sampling data in the metering system, wherein the sampling data is usage data of a user cloud space;
acquiring event data in a message queue of the user cloud space through the billing agent;
performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data;
when abnormal data exists in the integrated data, determining corresponding abnormal data, acquiring previous and subsequent data of the abnormal data, determining time information of the abnormal data in the user cloud space according to attributes of the previous and subsequent data, acquiring corresponding standard data according to the time information, and replacing the abnormal data with the standard data;
calculating to obtain the final cost of the user according to the modified integration data by combining with a charging standard;
the determining the time information of the abnormal data in the user cloud space according to the attributes of the previous and next data comprises the following steps:
when the previous data and the next data are sampling data, acquiring a polling period of the billing agent and sampling time of the previous data and the next data;
determining the sampling time of the abnormal data according to the polling period of the billing agent and the sampling time of the previous and subsequent data, and determining the time information of the abnormal data in the user cloud space according to the sampling time of the abnormal data;
when the previous data and the next data are event data, acquiring events and event life cycles corresponding to the previous data and the next data;
and determining an event and an event life cycle corresponding to the abnormal data according to the event and the event life cycle corresponding to the previous and next data, and determining the time information of the abnormal data in the user cloud space according to the event and the event life cycle corresponding to the abnormal data.
2. The IaaS cloud platform resource billing method of claim 1, wherein the detecting whether the aggregated data includes abnormal data comprises:
acquiring a polling period of the charging agent and an event life cycle corresponding to the event data;
and detecting whether abnormal data exist in the integrated data according to the polling period and the event life cycle.
3. The IaaS cloud platform resource billing method of claim 1, wherein the method further comprises:
detecting whether an abnormal event occurs on the cloud platform;
when the cloud platform is detected to have abnormal events, acquiring the occurrence time periods of the abnormal events, and acquiring historical data of the occurrence time periods to replace data of corresponding time periods in the integrated data.
4. The IaaS cloud platform resource billing method of claim 1, wherein after detecting whether there is abnormal data in the aggregated data, further comprising:
and when abnormal data does not exist in the integrated data, calculating the final cost of the user according to the integrated data by combining the charging standard.
5. The IaaS cloud platform resource billing method of claim 1, wherein the performing data integration on the sample data and the event data to obtain integrated data comprises:
and acquiring a preset format, and carrying out standardized processing on the sampling data and the event data according to the preset format to obtain integrated data after integration.
6. An IaaS cloud platform resource billing apparatus, the apparatus comprising:
the system comprises a detection module, a configuration module and a configuration module, wherein the detection module is used for determining a corresponding demand configuration attribute according to a use demand of a cloud platform of a user after detecting the use demand, and configuring a corresponding user cloud space according to the demand configuration attribute;
the polling module is used for polling a metering system of the cloud platform through a preset billing agent to acquire sampling data in the metering system, wherein the sampling data is usage data of a user cloud space;
the first acquisition module is used for acquiring event data in a message queue of the user cloud space through the billing agent;
the integration module is used for performing data integration on the sampling data and the event data to obtain integrated data after integration, and detecting whether abnormal data exists in the integrated data;
a second obtaining module, configured to determine corresponding abnormal data when abnormal data exists in the integrated data, obtain previous and subsequent data of the abnormal data, determine time information of the abnormal data in the user cloud space according to attributes of the previous and subsequent data, obtain corresponding standard data according to the time information, and replace the abnormal data with the standard data;
the calculation module is used for calculating the final cost of the user according to the modified integration data by combining with a charging standard;
the device further comprises:
a third obtaining module, configured to obtain a polling period of the billing agent and sampling time of the previous and subsequent data when the previous and subsequent data are sampling data;
the first determining module is used for determining the sampling time of the abnormal data according to the polling period of the billing agent and the sampling time of the previous and subsequent data, and determining the time information of the abnormal data in the user cloud space according to the sampling time of the abnormal data;
the fourth acquisition module is used for acquiring events and event life cycles corresponding to the previous and next data when the previous and next data are event data;
and the second determining module is used for determining the event and the event life cycle corresponding to the abnormal data according to the event and the event life cycle corresponding to the previous and next data, and determining the time information of the abnormal data in the user cloud space according to the event and the event life cycle corresponding to the abnormal data.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the IaaS cloud platform resource billing method according to any of claims 1 to 5 are implemented when the processor executes the program.
8. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the IaaS cloud platform resource billing method according to any of claims 1 to 5.
CN202111072603.9A2021-09-142021-09-14 A resource charging method and device for IaaS cloud platformActiveCN113517989B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111072603.9ACN113517989B (en)2021-09-142021-09-14 A resource charging method and device for IaaS cloud platform

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111072603.9ACN113517989B (en)2021-09-142021-09-14 A resource charging method and device for IaaS cloud platform

Publications (2)

Publication NumberPublication Date
CN113517989A CN113517989A (en)2021-10-19
CN113517989Btrue CN113517989B (en)2021-12-17

Family

ID=78063071

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111072603.9AActiveCN113517989B (en)2021-09-142021-09-14 A resource charging method and device for IaaS cloud platform

Country Status (1)

CountryLink
CN (1)CN113517989B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN118840169B (en)*2024-09-232025-07-04杭州谐云科技有限公司Cloud resource metering method and system based on event

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103152393A (en)*2013-02-052013-06-12北京邮电大学Charging method and charging system for cloud computing
CN105049218A (en)*2015-06-242015-11-11上海斐讯数据通信技术有限公司PhiCloud cloud charging method and system
CN107360006A (en)*2017-06-122017-11-17北京三快在线科技有限公司A kind of resource billing method and device
CN111309758A (en)*2020-01-192020-06-19北京金堤科技有限公司Charging data verification and comparison method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9473921B2 (en)*2014-05-062016-10-18Telefonaktiebolaget Lm Ericsson (Publ)System, device and methods for billing a user for their consumption of mobile broadband services and virtualized cloud resources
CN108243012B (en)*2016-12-262021-02-09中国移动通信集团上海有限公司Charging application processing system, method and device in OCS (online charging System)
US20190058709A1 (en)*2017-08-162019-02-21Telefonaktiebolaget Lm Ericsson (Publ)Tenant management method and system in a cloud computing environment
CN108900386B (en)*2018-08-102020-07-31北京金山云网络技术有限公司 Method, device and electronic device for generating alarm information
CN109981301A (en)*2019-03-202019-07-05新华三云计算技术有限公司Cloud service charging method and system
CN111880917A (en)*2020-07-282020-11-03浙江九州云信息科技有限公司 An edge hybrid cloud management platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103152393A (en)*2013-02-052013-06-12北京邮电大学Charging method and charging system for cloud computing
CN105049218A (en)*2015-06-242015-11-11上海斐讯数据通信技术有限公司PhiCloud cloud charging method and system
CN107360006A (en)*2017-06-122017-11-17北京三快在线科技有限公司A kind of resource billing method and device
CN111309758A (en)*2020-01-192020-06-19北京金堤科技有限公司Charging data verification and comparison method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于自动补偿校正机制的铁路客票商旅服务计费系统研究;谢泽等;《铁道运输与经济》;20200815(第08期);全文*

Also Published As

Publication numberPublication date
CN113517989A (en)2021-10-19

Similar Documents

PublicationPublication DateTitle
CN110213068B (en)Message middleware monitoring method and related equipment
CN108776934B (en)Distributed data calculation method and device, computer equipment and readable storage medium
CN112311617A (en) A configuration data monitoring and alarming method and system
CN110673973B (en) Exception determination method and device for application programming interface API
CN110471821B (en)Abnormality change detection method, server, and computer-readable storage medium
CN108388507A (en)Batch script testing method and device
CN110261811A (en) Smart meter batch early warning method and system
CN110868330B (en) Evaluation method, device and evaluation system for dividing CPU resources of cloud platform
CN110569182B (en)Crash rate calculation method and device, computer equipment and storage medium
CN110806960B (en)Information processing method and device and terminal equipment
CN110955547B (en)Management method, system, equipment and readable storage medium for interface abnormal information
CN110324233B (en)Unread message corner mark prompting method, unread message corner mark prompting device, unread message corner mark prompting equipment and storage medium
CN106126384A (en)A kind of method and device of acquisition performance monitor unit PMU event
CN113517989B (en) A resource charging method and device for IaaS cloud platform
CN109936465A (en) A kind of cloud platform resource utilization evaluation method and device
WO2017012401A1 (en)Abnormal contact information detection method, server and system
CN114064408A (en) Monitoring method, device, device and storage medium based on MD5 value verification
CN111338959A (en)Data processing method and related equipment
CN110752972A (en)Network card state monitoring method, device, equipment and medium
CN117149563A (en)Micro-service monitoring method, device, equipment and storage medium
CN117236313A (en)Test data analysis method and device, electronic equipment and storage medium
CN109783312B (en) Method, device and system for measuring resource usage
CN113568769B (en)Exception handling method, device, server and storage medium
CN109271188A (en)A kind of CPLD upgrade method and relevant apparatus
CN116303811A (en)Data processing method and device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address

Address after:313000 floor 2, building C, building 9, Huzhou multimedia Industrial Park, No. 999, Wuxing Avenue, Wuxing District, Huzhou City, Zhejiang Province

Patentee after:Zhejiang Jiuzhou Future Information Technology Co.,Ltd.

Country or region after:China

Address before:313000 floor 2, building C, building 9, Huzhou multimedia Industrial Park, No. 999, Wuxing Avenue, Wuxing District, Huzhou City, Zhejiang Province

Patentee before:Zhejiang Jiuzhou cloud Mdt InfoTech Ltd.

Country or region before:China

CP03Change of name, title or address
TR01Transfer of patent right

Effective date of registration:20240607

Address after:Floors 1-3, No. 24, Lane 315, Fenggu Road, Xuhui District, Shanghai 200030

Patentee after:Shanghai Jiuzhou Future Qixuan Technology Co.,Ltd.

Country or region after:China

Address before:313000 floor 2, building C, building 9, Huzhou multimedia Industrial Park, No. 999, Wuxing Avenue, Wuxing District, Huzhou City, Zhejiang Province

Patentee before:Zhejiang Jiuzhou Future Information Technology Co.,Ltd.

Country or region before:China

TR01Transfer of patent right

[8]ページ先頭

©2009-2025 Movatter.jp