A consistency detection method and related components of a cloud platform

By confirming the target detection range and type in the cloud platform and comparing the top-level and bottom-level cloud resource data groups, the problem of consistency detection in the cloud computing system is solved, convenient abnormal data discovery and storage is realized, and the stability and stability of the cloud platform are guaranteed. reliability.

CN115225535BActive Publication Date: 2024-08-27JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210891310.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-27
Publication Date
2024-08-27
Estimated Expiration
2042-07-27

AI Technical Summary

Technical Problem

Due to the large size and complexity of the cloud computing system, it is difficult for existing methods to comprehensively and conveniently implement consistency detection on the cloud platform, making it difficult to detect and repair potential or accidental data deviations, errors and stray issues in a timely manner, affecting the upper layers of the cloud platform. Feature availability.

Method used

By confirming the target detection range and type of cloud resources in the cloud platform, determining the top-level and bottom-level cloud resource data groups from the database and resource pool based on these ranges and types, comparing whether the two are consistent, and storing inconsistent data as abnormal data, In order to solve the consistency problem later.

Benefits of technology

It achieves comprehensive and convenient consistency detection of the cloud platform, can flexibly discover and expose abnormal data in various dimensions, ensures data accuracy and environmental security, ensures the smooth operation of the cloud platform, and improves reliability and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115225535B
    Figure CN115225535B
Patent Text Reader

Abstract

The present application discloses a consistency detection method and related components for a cloud platform, and the scheme is applied to the field of consistency detection technology. It includes: confirming the target detection range and type of cloud resources in the cloud platform; based on the target detection range and type, determining the top-level cloud resource data group from the database of the cloud platform, and determining the bottom-level cloud resource data group from the resource pool to which the target detection range belongs; treating the different data in the top-level cloud resource data group and the bottom-level cloud resource data group as abnormal data and storing them. According to the target detection range and type, the top-level cloud resource data group and the bottom-level cloud resource data group are found, and the consistency of the cloud platform is comprehensively and conveniently detected by comparing whether the two data groups are consistent, and the inconsistent data in the two data groups are treated as abnormal data and saved, so as to facilitate the subsequent resolution and repair of consistency problems of the cloud platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of consistency detection technology, and in particular to a consistency detection method and related components of a cloud platform. Background Art

[0002] If the cloud computing stack can be described as a huge pyramid ladder diagram, then the cloud platform, as the highest-level interactive hub, will occupy the top of the pyramid. The management and maintenance of all cloud infrastructure carried in the cloud environment, and the various derivative functional systems derived from it, will be aggregated to the cloud platform for unified organization, control, presentation, and performance. The diversity of cloud resources is a typical feature of the cloud platform. Almost every resource has its own composition at each level and will be reflected in different ways at different levels. This inevitably makes the cloud computing system very complex, with each link being linked together and layered together to work together to form the integrity of the cloud.

[0003] In a complex environment, when some data in an overly large cloud computing system potentially or accidentally deviates, errs, is not equal, or is free, the consistency of the cloud platform may be problematic. For example, the top-level data is still there, but the corresponding underlying resources have been cleared; the top-level data and the corresponding underlying resources are both there, but many fields between them are no longer equal; or there are some internal disorders in the lower layer, and these problems are not transparent to the upper layer, but will make the upper layer functions of the cloud platform unavailable. Therefore, it is necessary to check the consistency of the cloud platform at all times, but cloud computing is a very large system, which includes multiple organizational structures vertically, multiple resource models horizontally, and various advanced application functions. Its scale and volume are very large, and existing methods are difficult to comprehensively and conveniently implement consistency detection of the cloud platform. Summary of the invention

[0004] The purpose of this application is to provide a consistency detection method and related components for a cloud platform, which is applied to the field of consistency detection technology. According to the target detection range and type, the top-level cloud resource data group and the bottom-level cloud resource data group are found, and the consistency of the cloud platform is comprehensively and conveniently detected by comparing whether the two data groups are consistent, and the inconsistent data in the two data groups are saved as abnormal data, which is convenient for subsequent resolution and repair of consistency problems of the cloud platform.

[0005] In order to solve the above technical problems, the present application provides a consistency detection method for a cloud platform, including:

[0006] Confirm the target detection scope and type of cloud resources in the cloud platform;

[0007] Determine a top-level cloud resource data group based on the target detection range and the type, wherein the top-level cloud resource data group is composed of cloud resource data in a database of the cloud platform that belongs to the target detection range and is of the same type as the target;

[0008] Determine an underlying cloud resource data group based on the target detection range and the type, wherein the underlying cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in a resource pool to which the target detection range belongs;

[0009] The different data in the top-level cloud resource data group and the bottom-level cloud resource data group are regarded as abnormal data and stored.

[0010] Preferably, the target detection scope is a resource pool or items under the resource pool.

[0011] Preferably, determining the underlying cloud resource data group based on the target detection range and the type includes:

[0012] In the resource pool to which the target detection range belongs, cloud resource data belonging to the target detection range and of the same type stored in a preset storage location called through an interface constitutes an underlying cloud resource data group.

[0013] Preferably, after confirming the target detection range and type of cloud resources in the cloud platform, the method further includes:

[0014] Confirming that the detection content of the cloud resources in the cloud platform is redundant and residual;

[0015] Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including:

[0016] The data existing in the top-level cloud resource data group and not existing in the bottom-level cloud resource data group is taken as the first abnormal data and stored.

[0017] Preferably, after confirming the target detection range and type of cloud resources in the cloud platform, the method further includes:

[0018] Confirming that the detected content of the cloud resources in the cloud platform is free wild data;

[0019] Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including:

[0020] The data that does not exist in the top-level cloud resource data group but exists in the bottom-level cloud resource data group is taken as second abnormal data and stored.

[0021] Preferably, after confirming the target detection range and type of cloud resources in the cloud platform, the method further includes:

[0022] Confirming that the detection content of the cloud resources in the cloud platform is data consistency;

[0023] Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including:

[0024] Data that exists in both the top-level cloud resource data group and the bottom-level cloud resource data group but has different attributes is taken as third abnormal data and stored.

[0025] Preferably, before confirming the target detection range and type of cloud resources in the cloud platform, the method further includes:

[0026] Determine a total detection range according to a preset authority, wherein the preset authority is positively correlated with the total detection range;

[0027] Accordingly, confirm the target detection scope and type of cloud resources in the cloud platform, including:

[0028] The target detection range and type of cloud resources in the cloud platform are confirmed within the total detection range.

[0029] In order to solve the above technical problems, the present application also provides a consistency detection system for a cloud platform, including:

[0030] A target detection range and type confirmation unit, used to confirm the target detection range and type of cloud resources in the cloud platform;

[0031] a top-level cloud resource data group determining unit, configured to determine a top-level cloud resource data group based on the target detection range and the type, wherein the top-level cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in a database of the cloud platform;

[0032] an underlying cloud resource data group determining unit, configured to determine an underlying cloud resource data group based on the target detection range and the type, wherein the underlying cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in a resource pool to which the target detection range belongs;

[0033] The abnormal data storage unit is used to store the different data in the top-level cloud resource data group and the bottom-level cloud resource data group as abnormal data.

[0034] In order to solve the above technical problems, the present application also provides a consistency detection device for a cloud platform, including:

[0035] Memory for storing computer programs;

[0036] A processor is used to execute the computer program to implement the steps of the consistency detection method of the cloud platform.

[0037] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the consistency detection method of the cloud platform are implemented.

[0038] The present application provides a consistency detection method and related components for a cloud platform, and the solution is applied to the field of consistency detection technology. It includes: confirming the target detection range and type of cloud resources in the cloud platform; based on the target detection range and type, determining the top-level cloud resource data group from the database of the cloud platform, and determining the bottom-level cloud resource data group from the resource pool to which the target detection range belongs; treating the inconsistent data in the top-level cloud resource data group and the bottom-level cloud resource data group as abnormal data and storing them. According to the target detection range and type, the top-level cloud resource data group and the bottom-level cloud resource data group are found, and the consistency of the cloud platform is comprehensively and conveniently detected by comparing whether the two data groups are consistent, and the inconsistent data in the two data groups are treated as abnormal data and saved, so as to facilitate the subsequent resolution and repair of consistency issues of the cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the prior art and the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A flowchart of a consistency detection method for a cloud platform provided in this application;

[0041] Figure 2 A structural diagram of the relationship between a cloud platform and a resource pool provided for this application;

[0042] Figure 3 A flowchart of another consistency detection method for a cloud platform provided in this application;

[0043] Figure 4 A schematic diagram of the structure of a consistency detection system for a cloud platform provided in this application;

[0044] Figure 5 A schematic diagram of the structure of a consistency detection device for a cloud platform provided in this application. DETAILED DESCRIPTION

[0045] The core of this application is to provide a consistency detection method and related components for a cloud platform, which is applied to the field of consistency detection technology. According to the target detection range and type, the top-level cloud resource data group and the bottom-level cloud resource data group are found, and the consistency of the cloud platform is comprehensively and conveniently detected by comparing whether the two data groups are consistent, and the inconsistent data in the two data groups are saved as abnormal data, which is convenient for subsequent resolution and repair of consistency problems of the cloud platform.

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] Figure 1 A flow chart of a consistency detection method for a cloud platform provided in this application includes:

[0048] S11: Confirm the target detection scope and type of cloud resources in the cloud platform;

[0049] S12: determining a top-level cloud resource data group based on the target detection range and type, wherein the top-level cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in the database of the cloud platform;

[0050] S13: determining an underlying cloud resource data group based on the target detection range and type, wherein the underlying cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in a resource pool to which the target detection range belongs;

[0051] S14: The different data in the top-level cloud resource data group and the bottom-level cloud resource data group are regarded as abnormal data and stored.

[0052] If the cloud computing stack can be described as a huge pyramid ladder diagram, then the cloud platform, as the highest-level interactive hub, will occupy the top of the pyramid. The management and maintenance of all cloud infrastructure carried in the cloud environment, and the various derivative functional systems derived from it, will be aggregated to the cloud platform for unified organization, control, presentation, and performance. The diversity of cloud resources is a typical feature of the cloud platform. Almost every resource has its own composition at each level and will be reflected in different ways at different levels. This inevitably makes the cloud computing system very complex, with each link being linked together and layered together to work together to form the integrity of the cloud.

[0053] In a complex environment, when certain data in an overly large cloud computing system potentially or accidentally shows deviations, errors, asymmetries, freedom, etc., the existence of such data is a disaster for both the cloud platform itself and the users, because all subsequent data or business operations based on the errors will inevitably lead to the output of new errors. If no measures are taken to discover or avoid them and they are allowed to develop, the probability of greater hidden dangers will increase.

[0054] Generally speaking, from top to bottom, the physicality and atomicity of resources will become more and more prominent. On the contrary, from bottom to top, their macroscopicity and abstraction will become stronger and stronger. After various packaging in the middle, the original appearance of the lower layer of resource data may have been covered up in the upper layer, and various problems that arise in the lower layer are not easy to be captured by leaps and bounds. The sea of ​​clouds is full of many cloud resources such as network, storage, and computing. Although their functions are different and their organizational forms vary greatly, they have similar backgrounds when facing problems such as resource consistency. Although there are barriers, they have commonalities.

[0055] When some data in an overly large cloud computing system potentially or accidentally deviates, errs, is not equal, or is free, it may cause consistency problems in the cloud platform. For example, the top-level data is still there, but the corresponding underlying resources have been cleared; the top-level data and the corresponding underlying resources are both there, but many fields between them are no longer equal; or there are some internal disorders in the lower layer, and these problems are transparent to the upper layer and cannot be perceived, but will make the upper layer functions of the cloud platform unavailable. Therefore, it is necessary to check the consistency of the cloud platform at all times, but cloud computing is a very large system, which includes multiple organizational structures vertically, multiple resource models horizontally, and various advanced application functions. Its scale and volume are very large, and existing methods are difficult to comprehensively and conveniently implement consistency detection of the cloud platform.

[0056] In order to solve the above technical problems, the present application realizes consistency detection of the cloud platform by comparing the top-level cloud resource data group and the bottom-level cloud resource data group.

[0057] Specifically, in S11, since there are a large number of cloud resources in the cloud platform, it is necessary to first determine the target detection scope and type of cloud resources for consistency detection in the cloud platform. Among them, the target detection scope can be divided into two types: resource pool and project, and the project is the subordinate of the resource pool. The resource pool is the underlying cloud environment monomer that supports the cloud computing infrastructure. Each resource pool is a complete set of independent cloud service entities, which provides various services such as computing, network, storage, etc. Under normal circumstances, a cloud platform often manages multiple resource pools at the same time. The resource pool contains many categories. For example, OpenStack, VMware, Inspur Cloud, etc. can be added to the cloud platform as an independent resource pool and centrally and uniformly managed by the cloud platform. Within the resource pool, the project has the characteristics of a collection. Multiple projects can be established in the resource pool to divide different scopes. Many cloud computing resources are established in the project and can only be managed and applied in the project to which they belong, and the management and control are relatively flexible. For the type of cloud resources, it can include cloud hosts, subnets, cloud hard disks, routers, security groups, floating IPs, etc., which are all basic classifications of various cloud resources such as computing, network, storage, etc. in the cloud platform.

[0058] In S12, it is necessary to obtain cloud resource data that belongs to the target detection range and is of the same type from all cloud resource data stored in the database of the cloud platform, and then form a top-level cloud resource data group; in S13, it is necessary to obtain cloud resource data that belongs to the target detection range and is of the same type from all cloud resource data stored in the resource pool to which the target detection range belongs, and then form a bottom-level cloud resource data group. When there is no consistency problem on the cloud platform, the data in the top-level cloud resource data group and the bottom-level cloud resource data group should be one-to-one corresponding, so in S14, by comparing whether the data in the two data groups are consistent, the consistency detection of the cloud platform can be completed, and the inconsistent data is stored as abnormal data.

[0059] The consistency detection method of the present application has the advantages of being open and inclusive, flexible and agile, stable and sound, and easy to operate. It can be used as an independently integrated top-level function to gather the multi-point scattered audit elements of the vast sub-modules in the cloud platform, and by defining a set of standards, namely data comparison standards, it can realize centralized abnormal data detection, and then complete consistency detection. It has the ability to discover and summarize abnormal data, and has great potential in the cloud computing platform. It can flexibly and effectively discover and expose illegal data (abnormal data) of various dimensions, ensure data accuracy, environmental security, and system stability, and can process it in a timely manner to ensure the smooth operation of the cloud platform, bring better ease of use to the cloud platform, and improve the reliability, correctness and robustness of the cloud platform. In S14, the specific method of detecting different data can be formulated according to the actual situation, support in-depth discovery of erroneous data, potential hidden dangers, etc. at all levels of the cloud platform, and effectively ensure the smooth operation of the system and functions.

[0060] In addition, the scheduled detection program can be combined with the detection method to further remove human drive, automatically trigger the consistency detection function of numerous cloud resources in the cloud platform, and store abnormal data accordingly to facilitate subsequent analysis and problem solving.

[0061] In summary, the present application provides a consistency detection method for a cloud platform, and the solution is applied to the field of consistency detection technology. It includes: confirming the target detection range and type of cloud resources in the cloud platform; based on the target detection range and type, determining the top-level cloud resource data group from the database of the cloud platform, and determining the bottom-level cloud resource data group from the resource pool to which the target detection range belongs; treating the inconsistent data in the top-level cloud resource data group and the bottom-level cloud resource data group as abnormal data and storing them. Find the top-level cloud resource data group and the bottom-level cloud resource data group according to the target detection range and type, and comprehensively and conveniently detect the consistency of the cloud platform by comparing whether the two data groups are consistent, and treat the inconsistent data in the two data groups as abnormal data and save them, so as to facilitate the subsequent resolution and repair of consistency issues of the cloud platform.

[0062] Based on the above embodiments:

[0063] As a preferred embodiment, the target detection scope is a resource pool or items under the resource pool.

[0064] In this embodiment, the target detection range can be divided into two types: resource pool and project, and the project is the subordinate of the resource pool. The resource pool is the bottom layer of the cloud environment monomer that supports the cloud computing infrastructure. Each resource pool is a complete set of independent cloud service entities, which provides various services such as computing, network, storage, etc. Under normal circumstances, a cloud platform often manages multiple resource pools at the same time. The resource pool contains many categories. For example, OpenStack, VMware, Inspur Cloud, etc. can be added to the cloud platform as an independent resource pool and centrally and uniformly managed by the cloud platform. Inside the resource pool, the project has the characteristics of a collection. Multiple projects can be established in the resource pool to divide different scopes. Many cloud computing resources are established in projects and can only be managed and applied in the projects to which they belong, and the management and control are more flexible.

[0065] If it is a resource pool, you need to select a resource pool in the cloud platform as the target detection range; if it is a project, you need to select a project in a resource pool under the cloud platform as the target detection range.

[0066] As a preferred embodiment, determining the underlying cloud resource data group based on the target detection range and type includes:

[0067] In the resource pool to which the target detection range belongs, cloud resource data belonging to the target detection range and of the same type stored in a preset storage location are called through an interface to form an underlying cloud resource data group.

[0068] In this embodiment, the underlying cloud resource data group can be obtained from the resource pool by calling the interface. Figure 2 ,The service service02 in the controller controller01 is used to process resource consistency detection. It can obtain the top-level cloud resource data group from the database MySQL Database through the database interface DAO, and call the resource pool to which the target detection range belongs through the application programming interface API2, such as Nova (manages the life cycle of VM), Glance (manages VM images), Neutron (provides network connection services for other components, responsible for creating and managing L2 and L3 networks), Swift (provides object storage services) and Cinder (provides block storage services) in the preset storage location in Open Stack to obtain the bottom-level cloud resource data group, and compare the top-level cloud resource data group with the bottom-level cloud resource data group to obtain abnormal data. Among them, Figure 2 The rest of the part involves service service01 for processing independent consistency detection, and does not involve the relevant content in this application, so it will not be elaborated here.

[0069] It should also be noted that nowadays, the underlying cloud platforms include various cloud computing systems to support the services provided by virtualized cloud resources, such as OpenStack, VMware, Inspur Cloud, etc. Since different underlying cloud computing environments have different designs, the included detections differ mainly in design in terms of the specific content when pulling data. The execution process is the same as a whole, that is, they all pull the underlying cloud resource data groups through interface calls.

[0070] As a preferred embodiment, after confirming the target detection range and type of cloud resources in the cloud platform, the method further includes:

[0071] Confirm that the detection content of cloud resources in the cloud platform is redundant and residual;

[0072] Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including:

[0073] The data existing in the top-level cloud resource data group and not existing in the bottom-level cloud resource data group is taken as the first abnormal data and stored.

[0074] In this embodiment, the specific detection content for consistency detection can be redundant residues. At this time, it is necessary to compare the top-level cloud resource data group and the bottom-level cloud resource data group, and find out the data that exists in the top-level cloud resource data group but does not exist in the bottom-level cloud resource data group as the first abnormal data and store it.

[0075] By dividing the detection contents more finely and optimizing the consistency detection process of the cloud platform, corresponding consistency detection can be carried out for different detection contents.

[0076] As a preferred embodiment, after confirming the target detection range and type of cloud resources in the cloud platform, the method further includes:

[0077] Confirm that the detection content of cloud resources in the cloud platform is free wild data;

[0078] Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including:

[0079] The data that does not exist in the top-level cloud resource data group but exists in the bottom-level cloud resource data group is taken as the second abnormal data and stored.

[0080] In this embodiment, the specific detection content for consistency detection may be free wild data. In this case, it is necessary to compare the top-level cloud resource data group and the bottom-level cloud resource data group, and find out the data that does not exist in the top-level cloud resource data group but exists in the bottom-level cloud resource data group as the second abnormal data and store it.

[0081] By dividing the detection contents more finely and optimizing the consistency detection process of the cloud platform, corresponding consistency detection can be carried out for different detection contents.

[0082] As a preferred embodiment, after confirming the target detection range and type of cloud resources in the cloud platform, the method further includes:

[0083] Confirm that the detection content of cloud resources in the cloud platform is data consistency;

[0084] Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including:

[0085] Data that exists in both the top-level cloud resource data group and the bottom-level cloud resource data group but has different attributes is taken as third abnormal data and stored.

[0086] In this embodiment, the specific detection content of the consistency test can be data consistency. At this time, it is necessary to compare the top-level cloud resource data group and the bottom-level cloud resource data group, and find out the data that exists in both the top-level cloud resource data group and the bottom-level cloud resource data group but has different attributes as the third abnormal data and store them.

[0087] By dividing the detection contents more finely and optimizing the consistency detection process of the cloud platform, corresponding consistency detection can be carried out for different detection contents.

[0088] Combining the above three detection contents, namely, redundant residue, free wild data and data consistency, can greatly reduce the complexity of abnormal data troubleshooting, reduce manpower and material resources, and can easily discover and display problem data with one click, exposing potential risks in the most intuitive way, which is more flexible and fast. At this time, combined with all the above embodiments, the flowchart of the consistency detection method can be referred to Figure 3 :

[0089] 1) Determine whether the target detection scope is the entire resource pool or a single project under the resource pool. If it is a resource pool, you need to select a resource pool in the cloud platform as the target detection scope; if it is a project, you need to select a project in a resource pool under the cloud platform as the target detection scope;

[0090] 2) Determine the type and content of the cloud resources to be tested. Cloud resource types include cloud hosts, subnets, cloud hard disks, routers, security groups, floating IPs, etc., which are basic classifications of various cloud resources such as computing, networking, and storage in the cloud platform. The detection content is divided into redundant residues, free wild data, and data consistency;

[0091] 3) According to the determined target detection range and type, pull the top-level cloud resource data group stored in the cloud platform's own database as array A;

[0092] 4) According to the determined target detection range and type, the underlying cloud resource data group stored in the resource pool is pulled as array B through interface calling;

[0093] 5) Perform a full comparison of the two arrays based on the determined detection content:

[0094] If the detected content is redundant residue, find the data that exists in array A but does not exist in array B as the first abnormal data;

[0095] If the detected content is free wild data, find the data that does not exist in array A but exists in array B as the second abnormal data;

[0096] If the detection content is data consistency, then find out the data that exists in both array A and array B but has inconsistent attributes as the third abnormal data;

[0097] 6) The detected abnormal data is packaged and stored in the database to facilitate future front-end rendering, execution repair, etc.

[0098] There is no business dependency between multiple target detection ranges, multiple types of cloud resources, and multiple detection contents. The business lines are clearly organized, the data processing process is rigorous and flexible, the entire process is executed in parallel, has a relatively efficient execution strategy, and provides an excellent user experience.

[0099] This application focuses on the overall design concept, and does not limit specific coding languages, databases used, operating environments relied on, etc. In terms of implementation, multiple coding languages ​​can complete the development and operation of the overall business, and can also run in various types of deployment environments, using various database systems to store data. Overall, the detection methods are interconnected. Regardless of the type of cloud resources, the three types of detection content have the same implementation process, which is convenient for user operation.

[0100] As a preferred embodiment, before confirming the target detection range and type of cloud resources in the cloud platform, the method further includes:

[0101] The total detection scope is determined according to the preset authority, and the preset authority is positively correlated with the total detection scope;

[0102] Accordingly, confirm the target detection scope and type of cloud resources in the cloud platform, including:

[0103] Confirm the target detection scope and type of cloud resources in the cloud platform within the total detection scope.

[0104] Regarding the detection scope, it is divided into two types: resource pool and project. The project is the subordinate of the resource pool. The resource pool is the underlying cloud environment monomer that supports the cloud computing infrastructure. Each resource pool is a complete set of independent cloud service entities, which provides various services such as computing, network, storage, etc. Under normal circumstances, a cloud platform often manages multiple resource pools at the same time. Resource pools contain many categories. For example, OpenStack, VMware, Inspur Cloud, etc. can be added to the cloud platform as an independent resource pool and centrally and uniformly managed by the cloud platform. Within the resource pool, the project has the characteristics of a collection. Multiple projects can be established in the resource pool to divide different scopes. Many cloud computing resources are established in projects and can only be managed and applied in the projects to which they belong. The management and control are relatively flexible. These are also native mechanisms, which have a relatively obvious distinction for users with different permissions. It has good support for many scenarios such as multiple users and cross-regional. For example, senior administrators have the highest preset permissions, which allow them to detect data in the entire resource pool and projects, while virtual data center administrators only have permissions for individual projects and can only detect cloud resource data in projects within the scope of their permissions. At the same time, users with different preset permissions also have the right to detect different detection content, so when performing configuration testing, it has a highly flexible permission control feature.

[0105] Therefore, before confirming the target detection scope and type of cloud resources in the cloud platform, it is first necessary to clarify the total detection scope corresponding to the preset authority. The higher the preset authority, the larger the total detection range. Confirm the target detection scope and type within the total detection range to ensure the normal operation of the cloud platform's consistency detection.

[0106] In summary, combined with all the above embodiments, this application uses the simplest operation to detect and present abnormal data in consistency detection with extremely wide coverage and deep complexity, so as to ensure the stable operation of the cloud platform. This system links the multi-level organizational structure, and requires resource data from multiple levels to participate in direct abnormality analysis. The cloud platform has a relatively unique design in the division of resource range models. In terms of effect, it includes multiple models such as resource pools and projects. The resource pool is the widest. A resource pool corresponds to a complete set of cloud systems at the bottom layer. Projects are subsets of resource pools. A resource pool often establishes multiple projects, and users will establish various types of cloud resources they need in their own projects. Therefore, when it is actually implemented, it is necessary to fully face many other factors that are closely related to it and fully cater to various different business needs.

[0107] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of a consistency detection system for a cloud platform provided in this application includes:

[0108] The target detection range and type confirmation unit 21 is used to confirm the target detection range and type of cloud resources in the cloud platform;

[0109] A top-level cloud resource data group determination unit 22, configured to determine a top-level cloud resource data group based on the target detection range and type, wherein the top-level cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in the database of the cloud platform;

[0110] An underlying cloud resource data group determination unit 23 is used to determine an underlying cloud resource data group based on the target detection range and type, wherein the underlying cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in the resource pool to which the target detection range belongs;

[0111] The abnormal data storage unit 24 is used to store the different data in the top-level cloud resource data group and the bottom-level cloud resource data group as abnormal data.

[0112] For an introduction to a consistency detection system for a cloud platform provided in this application, please refer to the above-mentioned embodiment, and this application will not go into details here.

[0113] As a preferred embodiment, the target detection scope is a resource pool or items under the resource pool.

[0114] As a preferred embodiment, the underlying cloud resource data group determining unit 23 is specifically configured to:

[0115] In the resource pool to which the target detection range belongs, cloud resource data belonging to the target detection range and of the same type stored in a preset storage location are called through an interface to form an underlying cloud resource data group.

[0116] As a preferred embodiment, it also includes:

[0117] A first detection content determination unit, configured to confirm, after the target detection range and type confirmation unit 21, that the detection content of the cloud resources in the cloud platform is a redundant residue;

[0118] Accordingly, the abnormal data storage unit 24 is specifically used for:

[0119] The data existing in the top-level cloud resource data group and not existing in the bottom-level cloud resource data group is taken as the first abnormal data and stored.

[0120] As a preferred embodiment, it also includes:

[0121] A second detection content determination unit, configured to confirm, after the target detection range and type confirmation unit 21, that the detection content of the cloud resources in the cloud platform is free wild data;

[0122] Accordingly, the abnormal data storage unit 24 is specifically used for:

[0123] The data that does not exist in the top-level cloud resource data group but exists in the bottom-level cloud resource data group is taken as the second abnormal data and stored.

[0124] As a preferred embodiment, it also includes:

[0125] A third detection content determination unit, configured to confirm, after the target detection range and type confirmation unit 21, that the detection content of the cloud resources in the cloud platform is data consistency;

[0126] Accordingly, the abnormal data storage unit 24 is specifically used for:

[0127] Data that exists in both the top-level cloud resource data group and the bottom-level cloud resource data group but has different attributes is taken as third abnormal data and stored.

[0128] As a preferred embodiment, it also includes:

[0129] A total detection range determination unit, used to determine the total detection range according to a preset authority before the target detection range and type confirmation unit 21, and the preset authority is positively correlated with the total detection range;

[0130] Accordingly, the target detection range and type confirmation unit 21 is specifically used for:

[0131] Confirm the target detection scope and type of cloud resources in the cloud platform within the total detection scope.

[0132] Please refer to Figure 5 , Figure 5 A schematic diagram of the structure of a consistency detection device for a cloud platform provided in this application includes:

[0133] A memory 31, used for storing computer programs;

[0134] The processor 32 is used to execute the computer program to implement the steps of the consistency detection method of the cloud platform.

[0135] For an introduction to a consistency detection device for a cloud platform provided in this application, please refer to the above-mentioned embodiment, and this application will not go into details here.

[0136] The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the consistency detection method of the cloud platform are implemented.

[0137] For an introduction to a computer-readable storage medium provided in the present application, please refer to the above-mentioned embodiments, and the present application will not go into details here.

[0138] It should be noted that, in this specification, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0139] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A consistency detection method for a cloud platform, characterized in that: include: Confirm the target detection scope and type of cloud resources in the cloud platform; Determine a top-level cloud resource data group based on the target detection range and the type, wherein the top-level cloud resource data group is composed of cloud resource data in a database of the cloud platform that belongs to the target detection range and is of the same type as the target; Determine an underlying cloud resource data group based on the target detection range and the type, wherein the underlying cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in a resource pool to which the target detection range belongs; the top cloud resource data group and the underlying cloud resource data group are both obtained from all cloud resource data stored in a database of a cloud platform; According to the determined detection content, a full comparison of the top-level cloud resource data group and the bottom-level cloud resource data group is performed; wherein the detection content includes one of the following: redundant residue, free wild data and data consistency; The different data in the top-level cloud resource data group and the bottom-level cloud resource data group are regarded as abnormal data and stored.

2. The consistency detection method of the cloud platform according to claim 1, characterized in that: The target detection scope is the resource pool or the projects under the resource pool.

3. The consistency detection method of the cloud platform according to claim 1, characterized in that: Determining an underlying cloud resource data group based on the target detection range and the type includes: In the resource pool to which the target detection range belongs, cloud resource data belonging to the target detection range and of the same type stored in a preset storage location called through an interface constitutes an underlying cloud resource data group.

4. The consistency detection method of the cloud platform according to claim 1, characterized in that: After confirming the target detection scope and type of cloud resources in the cloud platform, it also includes: Confirming that the detection content of the cloud resources in the cloud platform is redundant and residual; Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including: The data existing in the top-level cloud resource data group and not existing in the bottom-level cloud resource data group is taken as the first abnormal data and stored.

5. The consistency detection method of the cloud platform according to claim 1, characterized in that: After confirming the target detection scope and type of cloud resources in the cloud platform, it also includes: Confirming that the detected content of the cloud resources in the cloud platform is free wild data; Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including: The data that does not exist in the top-level cloud resource data group but exists in the bottom-level cloud resource data group is taken as second abnormal data and stored.

6. The consistency detection method of the cloud platform according to claim 1, characterized in that: After confirming the target detection scope and type of cloud resources in the cloud platform, it also includes: Confirming that the detection content of the cloud resources in the cloud platform is data consistency; Accordingly, the different data in the top-level cloud resource data group and the bottom-level cloud resource data group are taken as abnormal data and stored, including: Data that exists in both the top-level cloud resource data group and the bottom-level cloud resource data group but has different attributes is taken as third abnormal data and stored.

7. The consistency detection method of the cloud platform according to any one of claims 1 to 6, characterized in that: Before confirming the target detection scope and type of cloud resources in the cloud platform, it also includes: Determine a total detection range according to a preset authority, wherein the preset authority is positively correlated with the total detection range; Accordingly, confirm the target detection scope and type of cloud resources in the cloud platform, including: The target detection range and type of cloud resources in the cloud platform are confirmed within the total detection range.

8. A consistency detection system for a cloud platform, characterized in that: include: A target detection range and type confirmation unit, used to confirm the target detection range and type of cloud resources in the cloud platform; a top-level cloud resource data group determining unit, configured to determine a top-level cloud resource data group based on the target detection range and the type, wherein the top-level cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in a database of the cloud platform; a bottom-layer cloud resource data group determining unit, configured to determine a bottom-layer cloud resource data group based on the target detection range and the type, wherein the bottom-layer cloud resource data group is composed of cloud resource data belonging to the target detection range and of the same type in a resource pool to which the target detection range belongs; the top-layer cloud resource data group and the bottom-layer cloud resource data group are both obtained from all cloud resource data stored in a database of a cloud platform; According to the determined detection content, a full comparison of the top-level cloud resource data group and the bottom-level cloud resource data group is performed; wherein the detection content includes one of the following: redundant residue, free wild data and data consistency; The abnormal data storage unit is used to store the different data in the top-level cloud resource data group and the bottom-level cloud resource data group as abnormal data.

9. A consistency detection device for a cloud platform, characterized in that: include: Memory for storing computer programs; A processor, used to execute the computer program to implement the steps of the consistency detection method of the cloud platform as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the consistency detection method of the cloud platform as described in any one of claims 1 to 7 are implemented.