Cloud technology-based detection method and cloud management platform

By setting up multiple detection nodes and circulation channels on the cloud management platform, single-point multi-level measurement is achieved, which solves the problem of false alarms and data redundancy caused by single-point failures in cloud services, and improves the accuracy of detection results and system reliability. Fault tolerance.

WO2024179028A1PCT designated stage expired Publication Date: 2024-09-06HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Patent Information

Application Number
PCT/CN2023/130143
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-23
Filing Date
2023-11-07
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

During the use of cloud services, existing technology is difficult to achieve real-time and accurate status detection of cloud nodes. Especially when a single point of failure occurs, it may lead to false alarms and data redundancy problems, affecting the reliability and efficiency of the system.

Method used

Using a detection method based on cloud technology, by setting up multiple detection nodes and establishing circulation channels on the cloud management platform, single-point multi-level measurements are achieved, and single-point and multi-point measurements are dynamically combined to avoid inaccurate measurement results caused by single-point failures. , and reduce the redundancy problem of multi-point measurement.

Benefits of technology

It improves the accuracy of detection results and the fault tolerance rate of the system, reduces the system burden, and ensures the stable operation of cloud services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023130143_06092024_PF_FP
    Figure CN2023130143_06092024_PF_FP
Patent Text Reader

Abstract

The present application provides a cloud technology-based detection method and a cloud management platform. The method comprises that: in response to detection task related information input by a user, a cloud management platform sends a detection task to a first detection node, so as to instruct the first detection node to detect a state of a target object; and the cloud management platform receives a detection result corresponding to the detection task and sent by a second detection node, wherein the detection task of the second detection node is sent to the second detection node after the first detection node fails to execute the detection task. According to the embodiments of the present application, after a detection node fails to execute a detection task, the detection task is transferred to another detection node for continued execution, so as to implement the transfer of the detection task among different detection nodes, thereby avoiding the problem of an inaccurate measurement result caused by a single point of failure and reducing the system burden caused by measurement redundancy.
Need to check novelty before this filing date? Find Prior Art

Description

Detection method and cloud management platform based on cloud technology

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 28, 2023, with application number 202310179558.X and application name “System for controlling dual authentication of data”, and the priority to the Chinese patent application filed with the State Intellectual Property Office of China on May 23, 2023, with application number 202310586909.9 and application name “Cloud technology-based detection method and cloud management platform”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of cloud technology, and in particular to a detection method and a cloud management platform based on cloud technology. Background Art

[0003] With the development of cloud technology, the application scenarios of cloud services are becoming increasingly diverse. More and more users are purchasing cloud services such as virtual machines from cloud vendors to meet various needs. To ensure the normal operation of cloud services during the use of cloud services, it is necessary to monitor the liveness of each node in real time.

[0004] Summary of the Invention

[0005] This application provides a cloud-based detection method and cloud management platform that can achieve real-time detection of each node.

[0006] In a first aspect, embodiments of the present application provide a cloud-based detection method. The method is applied to a cloud management platform, which is used to manage the infrastructure that provides cloud services. The infrastructure includes multiple cloud data centers located in multiple regions, each region having at least one cloud data center, and at least two detection nodes located in the cloud data centers. The detection method includes: the cloud management platform provides a detection information configuration interface, which is used to obtain one or any combination of the following inputs from the tenant: a detection task name, a target object type, a target object address, a detection frequency, and a detection node region. The target object type includes a domain name, a server, a virtual machine, a container, a dedicated host, or a cloud service, and the detection node region indicates the geographic location of the detection node. The cloud management platform sends a first detection task to a first detection node, wherein the first detection task indicates the status of a first target object among the detected target objects. The cloud management platform receives a first detection result sent by a second detection node, wherein the detection task of the second detection node is sent to the second detection node after the first detection node fails to perform the first detection task on the first target object. In this way, in the embodiment of the present application, single-point measurement is combined with multi-point measurement to realize single-point multi-level measurement, so that when single-point measurement fails, multi-point measurement can be restarted, thereby realizing the dynamic combination of single-point measurement and multi-point measurement, which can avoid the problem of inaccurate measurement results caused by single-point failure and the redundancy problem of multi-point measurement, while improving the accuracy of the measurement results and reducing the overall burden of the system.

[0007] Exemplarily, the first detection result is obtained after the second detection node detects the target object. The detection result is used to indicate whether the state of the target object is normal.

[0008] Exemplarily, the failure of the first detection node to perform the detection task on the target object refers to the state in which the first detection node fails to detect the target object.

[0009] Illustratively, the geographical location of the detection node is, for example, a region, an availability zone, or other geographical location divided by a cloud vendor, which is not limited in this application.

[0010] Exemplarily, the target object can be on the cloud, such as a virtual machine, domain name, cloud service, etc., or it can be off the cloud, such as a container, dedicated host, etc.

[0011] For example, the flow of detection tasks between nodes can be executed by the detection nodes or by the cloud platform. That is, a detection task can be sent by a first detection node to a second detection node after the first detection node fails to execute the task. Alternatively, after the first detection node fails to execute the task, it sends the detection task to the cloud management platform, which then sends it to the second detection node.

[0012] In one possible implementation, the second detection node's detection task is sent to the second detection node after the third detection node fails to perform the first detection task on the first target object. The third detection node's detection task is sent to the third detection node after the first detection node fails to perform the first detection task on the first target object. In this way, the detection tasks in this embodiment of the present application can be transferred through at least two levels to avoid single points of failure, thereby further improving the accuracy of the detection results.

[0013] Exemplarily, the cloud management platform sends the detection task to the first detection node, which is the first detection node in the embodiment of the present application. The first detection node executes the detection task. If the first detection node fails to execute the detection task, that is, if the state of the target object is not detected, the detection task is sent to the third detection node. The third detection node is the second detection node in the embodiment of the present application. The third detection node executes the detection task. If the third detection node fails to execute the detection task, that is, if the state of the target object is not detected, the detection task is sent to the second detection node, and the second detection node continues to execute the detection task. The second detection node is the third detection node in the embodiment of the present application.

[0014] Exemplarily, the first detection node may include multiple first detection nodes. Each first detection node is assigned a different detection task to achieve single-point measurement of a single target object. That is, one target object corresponds to only one first-level detection node. If a first-level detection node fails to perform a detection task, the detection task is transferred to the next-level detection node, thereby achieving multi-point measurement of the target object, that is, detecting a target object through multiple detection nodes. The detection of the same target object by multiple nodes is not performed synchronously.

[0015] In one possible implementation, before the cloud management platform sends the first detection task to the first detection node, the method further includes: the cloud management platform sending first instruction information to the message module, the first instruction information being used to instruct the message module to send the detection task received from the first detection node to the second detection node. In this way, in this embodiment of the present application, a channel can be established between the detection nodes through the message module to transfer (i.e., send) the detection task of the detection node upstream of the channel to the detection node downstream of the channel for execution.

[0016] Exemplarily, the message module may also be called a distributed message module, such as Kafka.

[0017] In a possible implementation, the method further includes: the cloud management platform sends a second detection task to the first detection node, wherein the second detection task is used to indicate the status of the second target object in the detection target object; the cloud management platform receives the node overload indication information sent by the third detection node, the node overload indication information includes the identification information of the third detection node and the identification information of the first detection node, and the node overload indication information is used to indicate that after the third detection node receives the detection task sent by the first detection node, it detects that the total amount of detection tasks of the third detection node exceeds a preset threshold; the cloud management platform responds to the node overload indication information and sends a second indication information to the message module, and the second indication information is used to instruct the message module to send other detection tasks from the first detection node to the fourth detection node. In this way, the embodiment of the present application can avoid the overload of a single node by reasonably allocating detection tasks, flexibly set the flow channel, and improve the overall efficiency of the system in executing detection tasks.

[0018] In one possible implementation, the method further includes: the cloud management platform sending a status detection signal to the first detection node, and receiving a status detection response signal fed back by the first detection node; if the cloud management platform does not receive the status detection response signal fed back by the first detection node within a predetermined time period, it determines that the first detection node is abnormal; and the cloud management platform sends the detection task of the first detection node to other detection nodes. In this way, the cloud management platform in the present application can isolate the abnormal node in the event of a node abnormality by detecting the status of the node in real time. That is, the detection task will no longer be sent to the abnormal node, and the detection task will be transmitted to other nodes of the same level for execution.

[0019] Exemplarily, the cloud management platform may set up an abnormal node recovery mechanism. For example, after the abnormal node is isolated, the status of the abnormal node may be periodically detected, and after the status of the node is detected, that is, after it is determined that the node has returned to normal, the isolation of the abnormal node may be lifted.

[0020] In one possible implementation, the method further includes: the cloud management platform sending flow factor indication information to each detection node, the flow factor indication information including a flow factor, the flow factor indication information being used to indicate that when a single detection task is sent to a single detection node, the number of detection nodes through which the single detection task passes is greater than or equal to the flow factor, and the single detection node fails to detect the state of the target object, and the target object is determined to be abnormal. By setting the flow factor, the number of times a detection task circulates within the system can be limited to a specified number, thereby preventing the detection task from being excessively transferred, which could burden the system.

[0021] In a possible implementation, the method further includes: the cloud management platform receives flow feedback information fed back by the second detection node, and the flow feedback information is used to indicate that the first detection task of the second detection node is sent from the first detection node. If the cloud management platform sends the first detection task to the first detection node m times, and receives the flow feedback information corresponding to the first detection task fed back by the second detection node, then the cloud management platform sends the detection task corresponding to the target object to the second detection node, where m is a positive integer. In this way, the cloud management platform in the present application can find the optimal detection node based on the flow feedback information corresponding to the detection task, so that the detection task can be flexibly allocated in the system, avoiding multiple flows of the detection task in different cycles due to network problems between the detection node and the detected node, thereby reducing the system burden.

[0022] In one possible implementation, the first detection node and the second detection node are located in different cloud data centers. In this way, by setting detection nodes of different levels in different cloud data centers, the fault tolerance of the system can be effectively improved.

[0023] Illustratively, cloud data centers may be located in different regions or in the same region.

[0024] In the second aspect, an embodiment of the present application provides a cloud management platform, which is used to manage the infrastructure that provides cloud services. The infrastructure includes multiple cloud data centers located in different areas, each area is provided with at least one cloud data center, and at least one detection node is provided on the cloud data center. The cloud management platform includes: a detection task sending module and a detection result receiving module. The detection task sending module is used to send a first detection task to a first detection node, wherein the first detection task is used to indicate the status of a first target object in the detection target object. The detection result receiving module is used to receive a first detection result sent by a second detection node, wherein the detection task of the second detection node is to send the first detection task to the second detection node after the first detection node fails to perform the first detection task on the first target object.

[0025] In one possible implementation, the detection task of the second detection node is to send the first detection task to the second detection node after the third detection node fails to perform the first detection task on the first target object; the detection task of the third detection node is to send the first detection task to the third detection node after the first detection node fails to perform the first detection task on the first target object.

[0026] In a possible implementation, the cloud management platform further includes: an indication information sending module, configured to send first indication information to the message module, wherein the first indication information is configured to instruct the message module to send the detection task received from the first detection node to the second detection node.

[0027] In one possible implementation, the cloud management platform also includes an indication information receiving module; a detection task sending module, further used to send a second detection task to the first detection node, wherein the second detection task is used to indicate the status of the second target object in the detection target object; an indication information receiving module, used to receive node overload indication information sent by the third detection node, the node overload indication information includes the identification information of the third detection node and the identification information of the first detection node, and the node overload indication information is used to indicate that after the third detection node receives the detection task sent by the first detection node, it detects that the total amount of detection tasks of the third detection node exceeds a preset threshold; the indication information sending module is also used to send second indication information to the message module in response to the node overload indication information, and the second indication information is used to instruct the message module to send other detection tasks from the first detection node to the fourth detection node.

[0028] In one possible implementation, the cloud management platform also includes: a status detection module, which is used to send a status detection signal to the first detection node and receive a status detection response signal fed back by the first detection node; the status detection module is also used to determine that the first detection node is abnormal if the status detection response signal fed back by the first detection node is not received within a predetermined time period; and the detection task sending module is also used to send the detection task of the first detection node to other detection nodes.

[0029] In one possible implementation, the cloud management platform also includes: an indication information sending module, which is used to send flow factor indication information to each detection node. The flow factor indication information includes a flow factor. The flow factor indication information is used to indicate that when a single detection task is sent to a single detection node, the number of detection nodes through which the single detection task flows is greater than or equal to the flow factor, and the single detection node does not detect the state of the target object, and determines that the target object is abnormal.

[0030] In one possible implementation, the cloud management platform also includes: a flow feedback information receiving module, which is used to receive the flow feedback information fed back by the second detection node, and the flow feedback information is used to indicate that the first detection task of the second detection node is sent from the first detection node; if the first detection task is sent to the first detection node m times, and the flow feedback information receiving module receives the flow feedback information corresponding to the first detection task fed back by the second detection node, then the detection task sending module sends the detection task corresponding to the target object to the second detection node, and m is a positive integer.

[0031] In a possible implementation, the first detection node and the second detection node are located in different cloud data centers.

[0032] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0033] In a third aspect, embodiments of the present application provide a computing device cluster, comprising at least one computing device, each computing device including a processor and a memory. The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the method of the first aspect or any possible implementation of the first aspect.

[0034] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, characterized in that when the instructions are executed by a computing device cluster, the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0035] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it includes computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] FIG1 is a schematic diagram of an exemplary single-point detection;

[0037] FIG2 is a schematic diagram of an exemplary multi-point detection;

[0038] FIG3 is a schematic diagram illustrating an exemplary process of the deployment phase;

[0039] FIG4 is a schematic diagram showing an exemplary structure of a cloud;

[0040] FIG5 is a schematic flow chart of an exemplary detection method;

[0041] FIG6 is a schematic diagram of a user interface provided by an exemplary cloud management platform;

[0042] FIG7 is a schematic flow chart of an exemplary detection method;

[0043] FIG8 is a schematic diagram showing the structure of a cloud management platform;

[0044] FIG9 is a schematic diagram illustrating the structure of a computing device;

[0045] FIG10 is a schematic diagram illustrating the structure of a computing device;

[0046] FIG11 is a schematic diagram showing the structure of an exemplary computing device cluster. DETAILED DESCRIPTION

[0047] The technical solutions 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.

[0048] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0049] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.

[0050] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0051] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0052] Before describing the technical solutions of the embodiments of the present application, a brief introduction to the background technologies involved in the embodiments of the present application is first given:

[0053] A public cloud is a cloud platform provided by a third-party public cloud provider to individuals and businesses. In a public cloud, the hardware, software, and other infrastructure are all owned and managed by the third-party public cloud provider.

[0054] The cloud platform, which may also be referred to as a cloud management platform or cloud management platform in the embodiments of the present application, is a software system for cloud technology (also known as cloud computing technology) services provided by a cloud provider, which is used to provide an interface related to cloud services for tenants to remotely access cloud services. Tenants can log in to the cloud platform on the cloud service access page using a pre-registered account and password, and after a successful login, select and purchase the corresponding cloud service on the cloud service access page, such as object storage services, virtual machine services, container services, etc. Exemplarily, the cloud management platform can provide a unified entrance (also known as an operation and maintenance entrance), and users can access the cloud management platform through the unified entrance and manage the cloud resources (including hardware and software) of the corresponding cloud through the cloud management platform.

[0055] Cloud services include computing services, storage services, virtual machine services, network services, etc. Any device or function that a user device can access on the cloud platform can be considered a service provided by the cloud platform.

[0056] Cloud resources are hardware resources (also referred to as cloud infrastructure or infrastructure) and software resources (also referred to as public cloud services) used to provide services. For example, the hardware resources corresponding to software resources such as computing services, storage services or network services include computing resources, storage resources or network resources. Optionally, computing resources include central processing unit (CPU) resources, memory resources and / or hard disk resources. For example, a user (also referred to as a tenant) purchases a large number of virtual machine resources, and a large number of applications (also referred to as cloud applications) are deployed on the virtual machine resources. In this instance, the virtual machine and the applications in the virtual machine all belong to the cloud service (i.e., software resources), and the server and other equipment to which the virtual machine belongs are the corresponding hardware resources.

[0057] The detection node is used to detect the status of the target object (which may also be referred to as the detected node in the embodiment of this application). The detection node can be considered as a function provided by the cloud management platform. The detection node is a real-time detection tool deployed in the cloud management platform (which can also be understood as detection software or detection application). The detection node can be deployed on a cloud service (such as a virtual machine) or on a single physical server (or terminal and other devices), which is not limited in this application. Accordingly, in the embodiment of this application, the detection node may refer to a virtual machine with a detection tool deployed, or it may refer to a server with a detection tool deployed, which is not limited in this application.

[0058] Exemplarily, the detection method of a detecting node includes, but is not limited to, the following: the detecting node sends at least one detection message to the detected node. If the detected node receives a detection response message within a preset time period, the detected node is determined to be in a normal state. If the detected node does not receive a detection response message within the preset time period, the detected node is determined to be in an abnormal state, or the detecting node itself is in an abnormal state. The abnormal state of the detected node may be due to a network anomaly or device anomaly at the detected node. The abnormal state of the detecting node itself may be due to a network anomaly or device anomaly at the detected node. The abnormal state of the detecting node itself may be due to a network anomaly between the detected node and any detecting node or other nodes. For example, if the detected node is a virtual machine, a virtual machine network anomaly refers to the virtual machine being unable to communicate with other nodes in the cloud. The network anomaly of the detecting node refers to a failure in the detecting node's network that prevents the detecting node from communicating with the detected node. However, in this example, if the detected node's network is normal, the detected node can communicate normally with other nodes. Exemplarily, the device anomaly of the detected node may be a failure of the detected node itself, such as a server downtime to which the virtual machine belongs.

[0059] In the embodiments of the present application, communication between a detecting node and a detected node based on Internet Control Message Protocol (ICMP) messages is used as an example for explanation. For example, the detection message sent by the detecting node may optionally be an ICMP message. In other embodiments, other detection methods may also be used, which are not limited by the present application.

[0060] The detected node may also be referred to as the target object, target node, detected object, etc., which is not limited in this application. The detected node may optionally be a basic resource in the cloud (which may also be referred to as a physical resource or hardware resource, etc.) and / or a public cloud service (which may also be referred to as a software resource), etc. The relevant concepts of basic resources and public cloud services can be referred to above and will not be repeated here. For example, the target object may be a domain name, a server, a virtual machine, a container, a dedicated host, or a cloud service. Among them, the detection of the cloud application by the detection node may be to detect whether the domain name corresponding to the application is connectable. In the embodiment of the present application, "connectable" may optionally mean that the domain name can be pinged, that is, the detection message sent by the detection node with the destination address being the domain name of the cloud application can receive the corresponding detection response message. That is, in the embodiment of the present application, the state of the detected node can be determined to be normal only if the detection node can ping the detected node, which can also be understood as being able to receive a response message fed back by the detected node within a predetermined time period. In other embodiments, the detection node may also perform other detections on the detected node. The detection method in the embodiment of the present application is only an illustrative example, which is not limited in this application and will not be repeated below.

[0061] Single-point detection means that one detected node corresponds to one detection node, that is, a single detected node only needs one detection node to detect it. Correspondingly, in this scenario, each detected node will generate a corresponding detection result (also called detection data). The detection results include but are not limited to: the connectivity status of the node, the response time of the node, etc., which can be set according to actual needs and are not limited in this application. The connectivity status of the node refers to whether the node is connected (the concept can be referred to above), and the response time of the node is optionally the delay for the detection node to receive the response message of the detected node. Optionally, in a single-point detection scenario, a single detection node can detect multiple detected nodes, but, as mentioned above, a single detected node only corresponds to one detection node.

[0062] For example, Figure 1 is an exemplary single-point detection schematic diagram. Please refer to Figure 1. The cloud system (also referred to as a cloud environment or cloud, which is not limited in this application) includes but is not limited to: a cloud management platform (hereinafter referred to as the cloud management platform), detection node 1, detection node 2, target 1 (also referred to as detected node 1) and target 2 (also referred to as detected node 2). Among them, target 1 is virtual machine 1, and target 2 is virtual machine 2. Optionally, target 1 can also be a virtual machine, and target 2 can be an application in the virtual machine. This is only an illustrative example and is not limited in this application. For example, the cloud management platform indicates detection task 1 to detection node 1, and detection task 1 is used to instruct detection node 1 to detect the status of target 1. In addition, the cloud management platform indicates detection task 2 to detection node 2, and detection task 2 is used to instruct detection node 2 to detect the status of target 2. In response to the received detection task 1, detection node 1 detects the status of target 1 and generates a corresponding detection result 1. In response to the received detection task 2, detection node 2 detects the status of target 2 and generates a corresponding detection result 2. Detection node 1 feeds back detection result 1 to the cloud management platform, and detection node 2 feeds back detection result 2 to the cloud management platform. The cloud management platform can display detection result 1 and detection result 2 through the user interface. If detection result 1 and / or detection result 2 indicates that the corresponding target object has an abnormality, the user can quickly locate the fault based on the detection results and promptly troubleshoot the fault to restore the abnormal node to normal. However, in this scenario, if the status of the target object is normal, but due to a problem with the detection node's own network, the communication connection with the target object is interrupted, the detection node fails to detect the status of the target object, causing the detection node to mistakenly believe that the target object has an abnormality. Accordingly, the detection result generated by the detection node will indicate that the target object has an abnormality, resulting in a false alarm. In other words, the fault tolerance in the single-point measurement scenario is poor. Once a single detection node has an abnormality, it will cause a false alarm problem, distorting the detection result and causing the user to misjudge the fault in the system. It should be noted that, as mentioned above, a detection node can detect multiple target objects. In the scenario shown in Figure 1, detection node 1 and detection node 2 can also be the same detection node.

[0063] Multipoint detection means that one detected node corresponds to multiple detecting nodes. In other words, a single detected node requires two or more detecting nodes to detect it. Accordingly, in this scenario, each detected node will generate two or more corresponding detection results (also called detection data). Alternatively, in a multipoint detection scenario, a single detecting node can also detect multiple detected nodes.

[0064] For example, Figure 2 is an exemplary schematic diagram of multi-point detection. Please refer to Figure 2. The cloud system includes but is not limited to: cloud management platform, detection node 1, detection node 2, detection node 3, detection node 4, target 1 (also referred to as detected node 1) and target 2 (also referred to as detected node 2). Among them, target 1 is virtual machine 1, and target 2 is virtual machine 2. Optionally, target 1 can also be a virtual machine, and target 2 can be an application in the virtual machine. This is only an illustrative example and is not limited in this application. For example, the cloud management platform indicates detection task 1 to detection node 1 and detection node 2, and detection task 1 is used to indicate that the status of target 1 is to be detected. In addition, the cloud management platform indicates detection task 2 to detection node 3 and detection node 4, and detection task 2 is used to indicate that the status of target 2 is to be detected. In response to the received detection task 1, detection node 1 and detection node 2 respectively detect the status of target 1. Detection node 1 generates detection result 1, and detection node 2 generates detection result 2. In response to the received detection task 2, detection node 3 and detection node 4 respectively detect the status of target 2. Detection node 3 generates detection result 3, and detection node 4 generates detection result 4. Detection nodes 1, 2, 3, and 4 each feed their respective detection results back to the cloud management platform. The cloud management platform displays detection results 1, 2, 3, and 4 through the user interface. If detection results 1, 2, 3, and 4 indicate an anomaly in the corresponding target object, the user can quickly locate the fault based on the detection results and promptly troubleshoot the problem, restoring the abnormal node to normal operation. In this scenario, since the detection nodes use redundant detection, suppose the network anomaly between detection node 1 and target 1 causes detection node 1 to fail to accurately detect the status of target 1. However, the network between detection node 2 and target 1 is normal, allowing it to correctly detect the status of target 1. Based on the multiple detection results received, the cloud management platform can determine that target 1 is normal. The cloud management platform can directly display the status of target 1 as normal, or it can display multiple detection results separately. In this example, although a redundant approach is used, that is, multiple detection nodes detect the same target, it solves the problem of misjudgment of detection results caused by single point failures. However, under normal circumstances, the number of target nodes that need to be detected in the system is very large, and the execution cycle of the detection task (that is, the same detection task is executed once every certain period of time) is usually short. In addition, the use of redundant methods will generate multiple detection results for each detection, which will lead to excessive data redundancy and increase the pressure on data transmission. Furthermore, since the cloud management platform will receive multiple detection results corresponding to a target each time, if the multiple detection results are the same, it can be determined that the target status is normal. If the multiple detection results are different, the cloud management platform will also need to judge the detection results, which will increase the pressure on the cloud management platform.

[0065] An embodiment of the present application provides a detection method based on cloud technology. In this method, a combination of single-point measurement and multi-point measurement is adopted to implement single-point multi-level measurement, thereby solving the problem of low fault tolerance of single-point measurement and avoiding data redundancy.

[0066] In an embodiment of the present application, the implementation of the detection method may include a deployment phase and a detection phase. The deployment phase refers to the cloud management platform deploying detection nodes based on user instructions. The process of deploying detection nodes includes, but is not limited to, setting the detection node level, setting the detection node transfer channel, and setting the transfer factor and the maximum total number of detection tasks. For example, the detection phase refers to each detection node detecting the target object based on the detection task issued by the cloud management platform.

[0067] FIG3 is a schematic diagram of an exemplary deployment phase process. Referring to FIG3 , the process specifically includes but is not limited to the following steps:

[0068] S301, setting the detection node level.

[0069] In an embodiment of the present application, the cloud management platform provides a user setting interface for receiving setting instructions input by the user. Optionally, the user can enter setting instructions in the user interface provided by the cloud management platform. During the deployment phase, the user can deploy the detection tool, i.e., deploy the detection node, on a server or terminal (which can refer to a physical terminal or a virtual machine, not limited in this application) in the cloud data center in advance.

[0070] Figure 4 is a schematic diagram illustrating an exemplary cloud structure. As described above, the user has deployed multiple detection nodes in the cloud data center during the deployment phase. The user can use the configuration interface provided by the cloud management platform to enter detection node level configuration instructions to configure the detection node level.

[0071] For example, referring to FIG4 , the cloud management platform, in response to a received detection node level setting instruction, divides the detection nodes in the cloud data center into levels, including: level 1 detection nodes, level 2 detection nodes, and level 3 detection nodes. In the embodiments of this application, only a three-level division is used as an example. In other embodiments, the detection nodes may include more or fewer levels, and this application does not limit this.

[0072] Still referring to FIG. 4 , in this example, first-level detection nodes include, but are not limited to, detection node 11, detection node 12, detection node 13, and detection node 14. Second-level detection nodes include, but are not limited to, detection node 21, detection node 22, and detection node 23. Third-level detection nodes include, but are not limited to, detection node 31 and detection node 32.

[0073] In the embodiment of the present application, the number of detection nodes included in each level can be gradually reduced. For example, the first level detection node includes 100 detection nodes, the second level detection node can include 50 detection nodes, and the third level detection node can include 20 detection nodes. The number can be set according to actual needs and is not limited in this application. It should be noted that Figure 4 only shows some detection nodes and is not limited in this application.

[0074] Exemplarily, the cloud management platform can communicate with any detection node, and any detection node can normally communicate with any target object in the cloud resources. The cloud resources include one or more target objects (not shown in the figure), which are the detected nodes in the embodiments of this application. The description of the target objects can be found above and will not be repeated here.

[0075] In one possible implementation, in order to ensure data security and avoid the data center being affected by disasters, etc., which may lead to large-scale failures of detection nodes, in an embodiment of the present application, detection nodes at each level can be deployed in different cloud data centers. For example, a first-level detection node can be deployed in a data center located in Shanghai (i.e., the infrastructure is deployed in Shanghai), a second-level detection node can be deployed in a data center located in Shenzhen (i.e., the infrastructure is deployed in Shenzhen), and a third-level detection node can be deployed in a data center in Beijing (i.e., the infrastructure is deployed in Beijing). Furthermore, detection nodes at the same level can also be deployed in different data centers, which is not limited by this application.

[0076] S302, setting a detection node flow channel.

[0077] Exemplarily, the cloud management platform can set the flow channel between the detection nodes based on the number of detection nodes at each level. Optionally, the cloud management platform can also set the flow channel between the detection nodes based on the received user instructions, which is not limited in this application.

[0078] Exemplarily, the transfer channel is used to transfer the detection tasks of the upstream detection node to the detection node downstream of the channel. The specific implementation will be described in detail below.

[0079] For example, one end of a flow channel can be connected to one or more upstream detection nodes, and the other end can be connected to a downstream detection node. In other words, in this embodiment of the application, the detection tasks of multiple detection nodes can be transferred to the same detection node in the next level of detection nodes.

[0080] For example, referring to Figure 4, in this embodiment of the present application, the cloud management platform sets up a first transfer channel. The upstream detection nodes connected by this first transfer channel include, but are not limited to, detection nodes 11 and 12, and the downstream detection nodes include detection node 21. That is, in this example, during the detection phase, detection tasks from detection nodes 11 and 12 will be transferred to detection node 21 under certain conditions. The specific details of this transfer will be explained in detail in the following embodiments.

[0081] Still referring to Figure 4 , the cloud management platform sets up a second transfer channel. The upstream detection nodes connected to this second transfer channel include, but are not limited to, detection node 13, and the downstream detection nodes connected to this second transfer channel include detection node 22. In this example, during the detection phase, detection tasks from detection node 13 are transferred to detection node 22 under certain conditions.

[0082] The cloud management platform sets up a third transfer channel. The upstream detection nodes connected to this third transfer channel include, but are not limited to, detection node 14, and the downstream detection nodes connected to this third transfer channel include detection node 23. In this example, during the detection phase, detection tasks from detection node 14 are transferred to detection node 23 under certain conditions.

[0083] The cloud management platform sets up a fourth flow channel. The upstream detection nodes connected to the fourth flow channel include but are not limited to: detection node 21, detection node 22 and detection node 23, and the downstream connected detection nodes include detection node 31. In this example, during the detection phase, the detection tasks of detection node 21, detection node 22 and detection node 23 will be transferred to detection node 31 under certain conditions. Detection node 32 is also connected to the corresponding flow channel, which will not be repeated here. It should be noted that Figure 4 only illustrates the connection flow channels of some nodes, and this application does not limit it.

[0084] In the embodiment of the present application, the two ends of the flow channel are usually connected to the detection nodes in two adjacent levels.

[0085] In a possible implementation, one or more distributed message modules may be deployed between detection nodes at each level to implement the flow channel in the embodiment of the present application. Specifically, the cloud management platform may send distributed indication information to the distributed message module through the flow channel setting interface between the distributed message module to instruct the distributed message module to establish a corresponding flow channel. For example, the cloud management platform sends distributed indication information to the distributed message module to instruct the establishment of the first flow channel described above, and the distributed message module may establish a corresponding flow channel based on the received distributed indication information. In the embodiment of the present application, the flow channel can be understood as the correspondence between the upstream detection node and the downstream detection node established by the distributed message module. For example, the way the distributed message module establishes the flow channel is to establish a correspondence between the upstream detection node and the downstream detection node (it can also be called an association relationship or a flow relationship, which is not limited in this application). The specific establishment method can refer to the existing technical embodiments, which is not limited in this application.

[0086] In the embodiments of the present application, the distributed messaging module may also be part of the cloud management platform, for example, software deployed on the cloud management platform, such as Kafka, but this application does not limit this. In other words, the steps performed by the distributed messaging module in the embodiments of the present application can also be understood as being performed by the cloud management platform, and will not be repeated below.

[0087] S303: Set the flow factor and the maximum total number of detection tasks.

[0088] Exemplarily, in response to a received user instruction, the cloud management platform sends instruction information to each detection node, including but not limited to a flow factor and a maximum total number of detection tasks. Optionally, in the initial stage, the flow factor and the maximum total number of detection tasks may be default values, i.e., the cloud management platform pre-sets the corresponding default values ​​and sends them to each detection node without user triggering.

[0089] Exemplarily, the transfer factor indicates the maximum number of detection nodes to which a single detection task can be transferred. This means that the number of times a single detection task can be transferred within the system does not exceed (is less than or equal to) the transfer factor. The specific value of the transfer factor can be set based on actual needs and is not limited by this application.

[0090] For example, the maximum total number of detection tasks may also be referred to as the maximum detection task value or detection task threshold, etc., which is not limited in this application. This value indicates the maximum number of detection tasks that a single detection node can handle. Optionally, the maximum total number of detection tasks corresponding to each detection node can be the same or different, which is not limited in this application. The specific implementation will be described in detail below.

[0091] It should be noted that S303 can be executed at any step before or after executing S301 or S302. This application does not limit the execution order, and it is only for illustrative purposes.

[0092] It should be further explained that the cloud management platform can provide corresponding interfaces to receive user instructions and send instructions to each detection node or distributed message module, which will not be repeated below.

[0093] FIG5 is a flow chart showing an exemplary detection method. Referring to FIG5 , the detection method includes but is not limited to the following steps:

[0094] S501: The cloud management platform sends a detection task to the first detection node.

[0095] Exemplarily, a user can set a detection task on the user interface provided by the cloud management platform. The cloud management platform generates a corresponding detection task based on the user settings. The detection task includes, but is not limited to, at least one of the following: a detection task name (i.e., identification information of the detection task), a target object type, a target object address, a detection frequency, and a detection node region, or any combination thereof. The target object type includes a domain name, a server, a virtual machine, a container, a dedicated host, or a cloud service. The detection node region is used to indicate the geographical location of the detection node.

[0096] Optionally, the geographical location of the detection node is, for example, a region, an availability zone, or other geographical location divided by the cloud vendor, which is not limited in this application.

[0097] Figure 6 is a schematic diagram of a user interface provided by the cloud management platform. Referring to Figure 6, the user interface displays a site monitoring creation interface. The site monitoring creation interface includes one or more controls, including but not limited to: a name setting control, a type setting control, a site address setting control, a monitoring frequency setting control, a distributed detection point setting control, a request method setting control, and an advanced configuration setting control.

[0098] The name setting control is used to set the name of the detection task.

[0099] The Type setting control is used to set the target object type.

[0100] The Site Address setting control is used to indicate the target object address.

[0101] The monitoring frequency setting control is used to set the detection frequency, also known as the detection period in the embodiments of this application. The detection period can optionally be the time interval between each detection task that the cloud management platform has set. In other words, after the user sets a detection task, the cloud management platform can automatically execute the subsequent detection process at the start of each period if there are no other updates to the detection task.

[0102] The distributed detection node setting control is used to set the detection node region (wherein the region in the figure is only an illustrative example and is not limited in this application).

[0103] In a possible implementation, each detection node region displayed in the distributed detection node setting control corresponds to a detection node area of ​​a different level.

[0104] In another possible implementation, the cloud management platform may determine that the selected area is a first-level detection node based on the setting information of the distributed detection points, and the cloud management platform may set all the selected areas as first-level detection nodes.

[0105] In another possible implementation, the areas corresponding to one or more distributed detection points selected by the user may not be first-level detection nodes. In this case, when the cloud management platform issues tasks, it also sends them to these nodes. Unlike first-level nodes, the transfer factor of the detection tasks received by these nodes is smaller than the transfer factor corresponding to the detection tasks of first-level nodes. Alternatively, the maximum number of times these tasks can be transferred is smaller than the maximum number of times a detection task can be transferred by a first-level detection node.

[0106] In another possible implementation, the distributed detection node settings control can also display the percentage corresponding to each region, indicating the percentage of assigned detection tasks. Based on the user settings, the cloud management platform can allocate detection tasks to the detection nodes corresponding to each region according to the user-set percentage.

[0107] Specifically, the cloud management platform can generate multiple detection tasks based on user settings. Each detection task corresponds to a target object, and each detection task corresponds to a different target object. For example, detection task 1 is used to indicate the detection of the status of virtual machine 1, detection task 2 is used to indicate the detection of the status of virtual machine 2, detection task 3 is used to indicate the detection of the status of server 1, and detection task 3 is used to indicate the detection of the status of the domain name of application 1 of virtual machine 1. It can be set according to actual needs and is not limited in this application.

[0108] In conjunction with Figure 4, in an embodiment of the present application, as described above, the detection nodes are divided into multiple levels, and each level includes one or more detection nodes. In an embodiment of the present application, the first detection node can refer to any node in the first-level detection node, and it can also be understood that the first detection node is a first-level detection node, that is, the first detection node can include multiple first detection nodes. Accordingly, the cloud management platform can send one or more detection tasks to each first-level detection node to instruct the first-level detection node to perform the specified detection task.

[0109] In the embodiments of the present application, each first-level detection node is assigned an independent detection task, that is, the target object corresponding to the detection tasks of other detection nodes is different. It can be understood that each target object corresponds to only one detection node, while a detection node can correspond to one or more target objects. In other words, within the first-level detection nodes, each detection node performs detection tasks in a single-point detection manner. The description of single-point detection can be found above and will not be repeated here.

[0110] In one possible implementation, the cloud management platform can distribute all detection tasks within a cycle to each first-level detection node using a hash algorithm based on parameters such as the number of first-level detection nodes and the number of detection tasks within the cycle. Alternatively, as described above, the cloud management platform can also combine a hash algorithm with user-selected distributed detection node regions to distribute detection tasks, which is not limited in this application.

[0111] In another possible implementation, as described above, the detection tasks are executed periodically. After the cloud management platform distributes all the detection tasks in this cycle to each first-level detection node, each subsequent cycle can allocate detection tasks to each first-level detection node according to the current detection task allocation method.

[0112] In another possible implementation, if the cloud management platform, in response to a user instruction, determines that a new target object exists in the system and generates a corresponding detection task, the cloud management platform can optionally recalculate the detection task allocation method and assign detection tasks according to the new allocation method in the next cycle. Alternatively, the cloud platform can maintain the current allocation method and assign the new detection task to a designated first-level detection node based on a hash algorithm.

[0113] S502: The first detection node performs a detection task.

[0114] Exemplarily, the first detection node receives a detection task sent by the cloud management platform, and the first detection node performs the detection task. Specifically, the detection node detects the state of the target object based on the detection task.

[0115] In an embodiment of the present application, the first detection node sends at least one detection message to the target object to detect the state of the target object.

[0116] In one example, if the first detection node receives a detection response message fed back by the target object within a preset time period, it can be determined that the target object is in a normal state, that is, the detection task is successfully executed, and S503 is executed.

[0117] In another example, if the first detection node does not receive a detection response message fed back by the target object within a preset time period, it is determined that the detection task has failed, and S504 is executed. Exemplarily, the failure of the detection task may be due to an abnormal state of the target object or an abnormality of the detection node itself. Among them, the abnormal state of the target object may be a network abnormality, a device abnormality, etc. of the target object. The abnormality of the detection node itself may be a network abnormality between the target object and the detection node. It should be noted that the network abnormality of the target object refers to an abnormality in the network between the target object and any detection node or other nodes. For example, if the target object is a virtual machine, the virtual machine network abnormality refers to the inability of the virtual machine to communicate with other nodes in the cloud. The network abnormality of the detection node refers to the inability of the detection node to communicate with the target object due to a network failure of the detection node. However, in this example, when the network of the target object is normal, the target object can communicate normally with other nodes. Exemplarily, the device abnormality of the target object may optionally be a failure of the target object itself, such as a server to which the virtual machine belongs is down.

[0118] S503: The first detection node feeds back the detection result to the cloud management platform.

[0119] Exemplarily, the first detection node determines that the detection task is successfully executed, generates a detection result, and feeds the detection result back to the cloud management platform.

[0120] Among them, the detection result includes but is not limited to: identification information of the target object, identification information of the detection node, and detection result information. The identification information of the target object is used to indicate the target object, and can also be understood as being used to indicate the target object corresponding to the detection result. The identification information of the detection node is used to indicate the detection node, and can also be understood as being used to indicate the execution node of the detection task corresponding to the detection result. The detection result information is used to indicate the status of the detected target object. For example, in this example, the detection result information is used to indicate that the status of the target object is normal, and can also be understood as that the target object is connectable (the concept can be referred to above).

[0121] The cloud management platform receives the detection results from the first detection node and determines that the target object is in a normal state. Optionally, the cloud management platform can display the current state of the target object on the user interface, indicating that the target object is currently in a normal state. Alternatively, the cloud management platform may not display the normal state of the target object, but instead display an alarm only if the state of a single target object is abnormal.

[0122] S504: The first detection node transfers the detection task flow to the second detection node.

[0123] Exemplarily, after the first detection node determines that the detection task has failed, as described above, since single-point detection cannot rule out the possibility that the failure to execute the detection task is caused by the first detection node and / or the target object, in order to eliminate the misjudgment caused by the abnormality of the first detection node itself, in an embodiment of the present application, the first detection node can transfer the detection task to the second detection node, so that the second detection node continues to execute the detection task. That is, in an embodiment of the present application, when the single-point detection method cannot detect the state of the target object, multi-point detection is dynamically combined to realize a single-point multi-level detection method. It should be noted that the multi-point detection in the embodiment of the present application is different from the multi-level detection in the prior art embodiment. In the prior art embodiment, multiple detection nodes simultaneously detect a target object. In the embodiment of the present application, multiple detection nodes also detect the same target object, but the detection timing of the multiple detection nodes is different. The next-level detection node participates in the detection of the same target object after the detection of the previous-level detection node fails.

[0124] For example, based on the above principle, after the first detection node determines that the detection task has failed, it can transfer the detection task to the second detection node. The second detection node is a second-level detection node, that is, the first detection node transfers the transfer personnel to the next-level detection node.

[0125] Specifically, as described above, a transfer channel is established between detection nodes at each level. The detection tasks of each first-level detection node are transferred to the corresponding next-level detection node through the transfer channel. In other words, the detection tasks of the detection node upstream of the transfer channel are transferred to the detection node downstream of the transfer channel.

[0126] In the embodiment of the present application, the second detection node is a downstream detection node of the first detection node. Accordingly, the detection task of the first detection node will flow to the second detection node.

[0127] In an embodiment of the present application, as described above, the flow channel is maintained by a distributed message module. For example, the distributed message module maintains the corresponding relationship between upstream detection nodes and downstream detection nodes to maintain the flow channel between detection nodes of different levels. Specifically, after determining that the detection task has failed to execute, the first detection node may send a flow indication message to the distributed message module. The flow indication message includes, but is not limited to: the identification information of the first detection node (for example, it may be the name of the first detection node, etc., which is not limited in this application) and the detection task, which is used to indicate that the detection task is to be transferred to the next detection node. Based on the identification information of the first detection node, the distributed message module may determine the corresponding flow channel, that is, determine the downstream detection node associated with it, for example, the second detection node. The distributed message module transfers the detection task to the second detection node and indicates to the second detection node that the detection task was transferred from the first detection node. For example, the distributed message module may send detection task information to the second detection node. The detection task information includes, but is not limited to: the identification information of the first detection node and the detection task. The detection task includes, but is not limited to, the identification information of the target object.

[0128] S505: The second detection node determines whether you have exceeded the detection task threshold.

[0129] Exemplarily, the second detection node receives a detection task transferred from the first detection node. As described above, during the deployment phase, the cloud management platform has set a corresponding detection task threshold for each detection node, i.e., the maximum total number of detection tasks. Accordingly, after receiving the detection task, the second detection node detects whether the number of detection tasks currently being processed (including newly received but not yet processed detection tasks) exceeds (i.e., is greater than) the pre-set detection task threshold.

[0130] In one example, if the detection task threshold is exceeded, S506 is executed.

[0131] In another example, if the detection task threshold is not exceeded, S507 is executed.

[0132] It should be noted that, as described above, the correspondence between the number of detection nodes upstream and downstream of the flow channel may be many-to-one or one-to-one. As shown in Figure 4, the upstream detection nodes of detection node 21 include detection node 11, detection node 12, and detection node 13. That is, after detection node 11, detection node 12, and detection node 13 determine that their respective detection tasks have failed to execute, they will all transfer the detection tasks to detection node 21. Therefore, in some special cases, such as when a large number of detection tasks of detection nodes 11, detection node 12, and detection node 13 fail to execute, a large number of detection tasks will be transferred to detection node 21. This may cause the detection tasks received by detection node 21 to exceed the detection task threshold, which will cause the load pressure of detection node 21 to be too high, and may affect the execution results of detection tasks by detection node 21. Therefore, by setting the detection task threshold, the problem of excessive pressure at a single point can be effectively solved, so that the detection tasks can be flexibly transferred in the system.

[0133] S506: The second detection node feeds back detection task overload indication information to the cloud management platform.

[0134] Exemplarily, the second detection node detects that the detection task has exceeded the detection task threshold, and the second detection node sends a detection task overload indication message to the cloud management platform. The detection task overload indication message includes but is not limited to the identification information of the second detection node, which is used to indicate that the detection task of the second detection node has exceeded the detection task threshold.

[0135] Exemplarily, in response to the received detection task overload indication information, the cloud management platform determines that the detection task of the second detection node exceeds the detection task threshold. The cloud management platform may reset the flow channel corresponding to the second detection node.

[0136] In one possible implementation, the cloud management platform can reduce the number of detection tasks of the second detection node by reducing the upstream detection nodes of the second detection node. For example, as shown in Figure 4, the cloud management platform can send an instruction message to the distributed message module to instruct the removal of the flow channel between the detection node 12 and the detection node 21, and to establish a flow channel between the detection node 12 and the detection node 22. It should be noted that the cloud management platform can obtain the number of upstream detection nodes and downstream detection nodes corresponding to the flow channel during the flow channel setting phase. When selecting a new downstream detection node for the detection node 12, the downstream node with the least number of upstream detection nodes (for example, the detection node 22) can be selected as the new downstream detection node of the detection node 12 based on the number of upstream nodes corresponding to each downstream node. Accordingly, the distributed message module deletes the association relationship (i.e., the flow channel) between the detection node 12 and the detection node 21 based on the received instruction message, and establishes the association relationship (i.e., the flow channel) between the detection node 12 and the detection node 22. In this way, in the subsequent processing flow, when the detection node 12 determines that the detection task execution fails, its detection task will be transferred to the detection node 22 for continued execution.

[0137] In another possible implementation, after the second detection node determines that the detection task exceeds the detection task threshold, it may continue to execute the received detection task.

[0138] In another possible implementation, after the second detection node determines that the detection task exceeds the detection task threshold, it can transfer at least one detection task that exceeds the detection task threshold to other detection nodes of the same level for execution. Optionally, after the cloud management platform receives the detection task overload indication information, the cloud management platform can select a detection node from other detection nodes of the same level as the second detection node. For example, any detection node that has not fed back a detection task overload indication within the current cycle (that is, the load of the detection node is relatively small) can be selected, or the cloud management platform can select a node to replace the second detection node as the downstream detection node of the first detection node. It can be set according to actual needs and is not limited in this application. The cloud management platform can send an indication message to the second detection node, and the indication message includes identification information of the selected detection node, which is used to indicate that the detection task can be transferred to the detection node. In response to the received indication message, the second detection node transfers at least one detection task that exceeds the detection task threshold to the detection node for continued execution.

[0139] In another possible implementation, after the second detection node determines that the detection task exceeds the detection task threshold, it can feedback at least one detection task that exceeds the detection task threshold to the cloud management platform, and the cloud management platform will send the detection task to other detection nodes at the same level as the second detection node for execution.

[0140] In this way, in the embodiment of the present application, by resetting the flow channel, self-balancing between detection nodes of the same level can be achieved to avoid the problem of excessive load on a single detection node.

[0141] S507: The second detection node determines whether it is greater than or equal to the flow factor.

[0142] In the embodiments of the present application, as described above, during the deployment phase, the cloud management platform sets a transfer factor for each detection node. This transfer factor indicates the maximum number of detection nodes that a single detection task can be transferred to. This means that if a detection task fails to detect its status after being detected by multiple detection nodes, the problem can be ruled out as a fault in the detection node itself.

[0143] In an embodiment of the present application, each time a detection task is transferred, the executing detection node may mark the number of transfers when sending the task to the next detection node. For example, if the second detection node determines that the detection task has failed to execute when executing S508a, and transfers the detection task to the next-level detection node, the second detection node may mark the detection task, for example, by adding +1 to the number of transfers to indicate that the detection task has been transferred once. It should be noted that the number of transfers marked by the second detection node means that the detection task is transferred from the first detection node to the second detection node, that is, it has tried its best to transfer once. Similarly, if the third detection node fails to execute the detection task and transfers the detection task to the next detection node, the number of transfers of the detection task may be added by 1, that is, the number of transfers of the detection task will be updated to 2, to indicate that the detection task has been transferred twice, that is, from the first detection node to the second detection node, and from the second detection node to the third detection node. Optionally, in this example, the marking of the number of flows is performed by the downstream detection node, that is, the detection task received by the second detection node is usually not marked with the number of flows, so the second detection node may not execute S507 but directly execute S508b.

[0144] It should be noted that, in the embodiment of the present application, only the downstream detection node is used to mark the number of transfers for the detection task as an example. In other embodiments, the upstream detection node may also mark the number of transfers for the detection task. For example, before the first detection node transfers the detection task to the second detection node, it may mark the detection task to increase the number of transfers of the detection task by +1. Specifically, the transfer indication information sent by the first detection node to the distributed message module may include but is not limited to: the identification information of the first detection node, the detection task, and the number of transfers (that is, the number of transfers is 1), etc. Optionally, in other embodiments, the number of transfers may also be marked by the distributed message module, which is not limited in the present application.

[0145] In one possible implementation, the cloud management platform can also set a corresponding transfer factor for each detection task. Accordingly, when a downstream detection node receives a transferred detection task, it can determine whether the transfer factor is greater than or equal to the transfer factor based on the corresponding transfer factor and the number of marked transfers. The specific implementation method is consistent with the above and will not be repeated here.

[0146] In an example, if the second detection node determines that the number of transfers of the detection task is greater than or equal to the transfer factor, S508a is executed.

[0147] In another example, if the second detection node determines that the number of transfers of the detection task is less than the transfer factor, S508b is executed.

[0148] S508a: The second detection node performs the detection task.

[0149] S509: The second detection node feeds back the detection result to the cloud management platform.

[0150] Exemplarily, the second detection node performs the detection task. The specific execution method can refer to the relevant description of S502 and will not be repeated here.

[0151] In this example, since the second detection node has determined that the number of transfers of the detection task exceeds the detection factor, after executing the detection task, the second detection node will execute S509 regardless of whether the status of the target object is detected, that is, feedback the detection results to the cloud management platform.

[0152] In one example, if the second detection node detects the status of the target object, that is, in this example, the first detection node fails to detect the status of the target object, which may be due to the first detection node's own reasons, such as the abnormality of the communication link between the first detection node and the target object. Exemplarily, the detection result fed back by the second detection node to the cloud management platform may include but is not limited to: flow feedback information, identification information of the target object and status information of the target object. Among them, the identification information of the target object and the status information of the target object are used to indicate that the status of the target object is normal. The flow feedback information includes the identification information of the second detection node and the identification information of the first detection node, which is used to indicate that the detection task is transferred from the first detection node to the second detection node and is successfully detected by the second detection node.

[0153] Exemplarily, the cloud management platform can determine that the status of the target object is normal based on the received detection results. Based on the flow feedback information, the cloud management platform can determine that the detection task is transferred from the first detection node to the second detection node, and is successfully detected by the second detection node. In an embodiment of the present application, as described above, the cloud management platform will issue a detection task at each cycle triggering moment, that is, a detection task will be issued to the first-level detection node multiple times. If the cloud management platform receives a specified number of flow feedback information for a detection task, and the detection node indicated by the flow feedback information that successfully executes the detection task is the same (for example, the second detection node, or other detection nodes, just for example), the cloud management platform can directly issue the detection task to the second detection node at each cycle triggering moment in the subsequent detection process. Optionally, the cloud management platform can also promote the second detection node to a first-level detection node and redeploy the flow channel.

[0154] In another example, if the second detection node fails to detect the status of the target object, it can be determined that the status of the target object is abnormal. For example, it may be due to a device failure of the target object, resulting in both the first detection node and the second detection node failing to detect the status of the target object. Exemplarily, the detection result fed back by the second detection node to the cloud management platform may include but is not limited to: identification information of the target object and status information of the target object. Among them, the identification information of the target object and the status information of the target object are used to indicate that the status of the target object is abnormal. In response to the received detection result, the cloud management platform may display the abnormal status of the target object on the user interface. The user can repair the target object in a timely manner based on the alarm information.

[0155] S508b: The second detection node performs the detection task.

[0156] S510: The second detection node feeds back the detection result to the cloud management platform.

[0157] S511: The second detection node transfers the detection task to the third detection node.

[0158] Exemplarily, the second detection node performs the detection task. The specific execution method can refer to the relevant description of S502 and will not be repeated here.

[0159] In this example, since the second detection node has determined that the number of transfers of the detection task does not exceed the detection factor, its implementation method is the same as that of the first detection node. In one example, if the second detection node detects the status of the target object, it can be determined that the status of the target object is normal, that is, the detection task is successfully executed. That is to say, in this example, the failure of the first detection node to detect the status of the target object may be due to the first detection node's own reasons, such as the abnormality of the communication link between the first detection node and the target object. Exemplarily, the detection result fed back by the second detection node to the cloud management platform may include but is not limited to: transfer feedback information, identification information of the target object and status information of the target object. Among them, the identification information of the target object and the status information of the target object are used to indicate that the status of the target object is normal. The transfer feedback information includes the identification information of the second detection node and the identification information of the first detection node, which is used to indicate that the detection task is transferred from the first detection node to the second detection node and is successfully detected by the second detection node.

[0160] Exemplarily, the cloud management platform can determine that the status of the target object is normal based on the received detection results. Based on the flow feedback information, the cloud management platform can determine that the detection task is transferred from the first detection node to the second detection node, and is successfully detected by the second detection node. In an embodiment of the present application, as described above, the cloud management platform will issue a detection task at each cycle trigger moment, that is, a detection task will be issued to the first-level detection node multiple times. If the cloud management platform receives a specified number of flow feedback information for a detection task, and the detection node indicated by the flow feedback information that successfully executes the detection task is the same (for example, the second detection node, or other detection nodes, only for example), the cloud management platform can directly issue the detection task to the second detection node at each cycle trigger moment in the subsequent detection process. Optionally, the cloud management platform can also promote the second detection node to a first-level detection node and redeploy the flow channel. In this way, the cloud management platform can flexibly select the optimal detection node corresponding to the detection task based on the flow feedback information to avoid multiple transfers of the detection node, so as to improve the execution efficiency of the detection task and reduce the burden on the corresponding detection node.

[0161] In another example, if the second detection node fails to detect the status of the target object and determines that the detection task has failed to execute, the second detection node will transfer the detection task to the third detection node at the next level. Optionally, as described above, the second detection node marks the number of transfers, that is, the number of transfers + 1. Specifically, the second detection node may send a transfer indication information to the distributed message module, and the transfer indication information includes but is not limited to: the identification information of the first detection node, the detection task, and the number of transfers. Among them, the identification information of the first detection node is used to indicate that the initial execution node of the detection task is the first detection node. This information can be used by the third detection node to determine that the detection task has been successfully executed when executing S508a or S508b, and can be carried in the transfer feedback information, so that the cloud management platform determines that the initial sending node of the detection task is the first detection node, that is, the detection task is transferred from the first detection node to the third detection node. It should be noted that the "flow" described in the embodiments of the present application may include direct flow and indirect flow. Direct flow refers to the flow of detection tasks between the detection nodes on both sides of the flow channel, and indirect flow refers to the flow process that may pass through other detection nodes. For example, the detection task received by the third detection node can be considered to be directly transferred from the second detection node, or it can be considered to be indirectly transferred from the first detection node.

[0162] In one possible implementation, the cloud management platform can detect the online status of each detection node in real time. For example, the cloud management platform can detect the heartbeat of each detection node. The specific detection method can refer to the existing technical embodiments, and this application will not go into details. Exemplarily, if the cloud management platform detects that the status of at least one detection node is abnormal, the cloud management platform will isolate the detection node. In one example, if a first-level detection node is abnormal, the cloud management platform can distribute the detection tasks originally assigned to the detection node to other detection nodes of the same level in the next cycle, and the other detection nodes will continue to perform the corresponding detection tasks. The specific distribution method can be based on a hash algorithm, and this application will not go into details. Exemplarily, the cloud management platform can prompt the user interface that the status of at least one detection node is abnormal, so that the user can repair the abnormal detection node in time. After the user repairs the detection node, it can indicate to the cloud management platform that the detection node has been restored, and the cloud management platform can continue to assign the detection tasks originally assigned to the detection node to the detection node in the next cycle.

[0163] In another example, if a detection node at another level experiences an abnormality, the cloud management platform will transfer the corresponding flow channel to another detection node at the same level, so that no detection tasks will be transferred to the abnormal detection node in subsequent cycles. After the user repairs the detection node, they can indicate to the cloud management platform that the detection node has been restored, and the cloud management platform will restore the corresponding flow channel.

[0164] The following is a detailed description of the detection method in the embodiment of the present application with reference to Figure 4 using a specific embodiment. Figure 7 is a flow chart of an exemplary detection method. Please refer to Figure 7. At the first cycle triggering moment, the cloud management platform generates detection task 1 and detection task 2 based on user instructions. Detection task 1 is used to indicate the detection of the status of target 1 (i.e., the target object or the detected node). Detection task 2 is used to indicate the detection of the status of target 2.

[0165] The cloud management platform sends detection task 1 to detection node 11 and detection task 2 to detection node 12. Detection task 1 includes identification information of target 1. Detection task 2 includes identification information of target 2.

[0166] In response to the received detection task 1, the detection node 11 detects the state of the target 1. The specific detection method can be referred to above and will not be described here in detail.

[0167] In this example, detection node 11 fails to detect the status of target 1 and determines that the detection task has failed. Detection node 11 sends flow indication information 1 to the distributed messaging module. Flow indication information 1 includes, but is not limited to, the identification information of detection node 11 and detection task 1 (i.e., the identification information of target 1). Based on the flow channel established during the deployment phase (see Figure 4 for a detailed description), the distributed messaging module determines that the downstream detection node corresponding to detection node 11 is detection node 21. The distributed messaging module sends flow indication information 1 to detection node 21, instructing detection node 21 to execute detection task 1.

[0168] Exemplarily, detection node 12 fails to detect the status of target 2 and determines that the detection task has failed. Detection node 12 sends flow indication information 2 to the distributed messaging module. Flow indication information 2 includes, but is not limited to, the identification information of detection node 12 and detection task 2 (i.e., the identification information of target 1). Based on the flow channel established during the deployment phase (see FIG4 for a detailed description), the distributed messaging module determines that the downstream detection node corresponding to detection node 12 is detection node 21. The distributed messaging module sends flow indication information 2 to detection node 21, instructing detection node 21 to execute detection task 2.

[0169] In response to the received transfer indication information 1, detection node 21 determines that the detection task was transferred from detection node 1 and that the detection target is target 1. Detection node 21 executes S505. In this example, it is assumed that the detection node determines that the detection task does not exceed the threshold. Furthermore, in this example, the transfer factor is 1, and detection node 21 is a level-two detection node, so S507 does not need to be executed. That is, the detection node executes S508b. Exemplarily, detection node 21 detects the status of target 1. In this example, detection node 21 detects the status of target 1 and determines that the detection task was successfully executed. Detection node 21 feeds back the detection results to the cloud management platform. The detection results include, but are not limited to, transfer feedback information 1, target 1's identification information, and target 1's status information. Target 1's identification information and target 1's status information indicate that target 1 is in a normal state. Transfer feedback information 1 includes the identification information of detection node 11 and detection node 21, indicating that the detection task for target 1 was transferred from detection node 11 to detection node 21 and successfully executed by detection node 21.

[0170] In response to the received flow indication information 2, the detection node 21 determines that the detection task is transferred from the detection node 1, and the detection object is target 2. The detection node 21 executes S505. In this example, it is assumed that the detection node determines that the detection task does not exceed the threshold. In addition, in this example, the flow factor is 1, the detection node 21 is a secondary detection node, and there is no need to execute S507. That is, the detection node executes S508b. The detection node 21 detects the status of the target 2. In this example, the detection node 21 does not detect the status of the target 2 and determines that the detection task execution has failed. The distributed message module of the detection node 21 sends the flow indication information 3. The flow indication information 3 includes but is not limited to: the identification information of the detection node 11, the detection task 1 (that is, the identification information of the target 1) and the number of flows (the current number of flows is 1).

[0171] Based on the flow channel established during the deployment phase (see FIG4 for a detailed description), the distributed message module determines that the downstream detection node corresponding to detection node 21 is detection node 31. The distributed message module sends flow instruction information 3 to detection node 31, instructing detection node 31 to execute detection task 2.

[0172] In response to the received flow indication information 3, the detection node 31 determines that the detection task is transferred from the detection node 1, and the detection object is target 2. The detection node 31 executes S505. In this example, it is assumed that the detection node determines that the detection task does not exceed the threshold. And, in this example, the flow factor is 1. The detection node 31 executes S507. Based on the flow number in the flow indication information 3 (that is, the flow number is 1) and the flow factor, the detection node 31 determines that the flow number is equal to the flow factor, and then the detection node 31 executes S508a. In this example, the detection node 31 did not detect the status of target 2, and it can be determined that the status of target 2 is abnormal. The detection node 31 sends the detection results to the cloud management platform. The detection results include but are not limited to: identification information of target 2 and status information of target 2. Among them, the identification information of target 2 and the status information of target 2 are used to indicate that the status of target 2 is abnormal. The cloud management platform can display an alarm message on the user interface to indicate that the status of target 2 is abnormal, so as to prompt the user to repair target 2 in time.

[0173] At the triggering moment of the second cycle, the cloud management platform sends detection task 1 to detection node 11. Each detection node still executes according to the process shown in Figure 7. That is, detection node 11 fails to execute detection task 1, and transfers detection task 1 to detection node 21. Detection node 21 successfully executes detection task 1 and feeds back the detection result to the cloud management platform, where the detection result includes flow feedback information. The cloud management platform counts the number of feedback information corresponding to detection task 2 as 2. Assume that in this example, the cloud management platform sets the flow feedback information threshold to 2. Based on the flow feedback information threshold and the number of feedback information corresponding to detection task 2 received, the cloud management platform can determine that the number of feedback information corresponding to detection task 2 is greater than or equal to the flow feedback information threshold. Then at the triggering moment of the third cycle, the cloud management platform sends detection task 1 to detection node 21.

[0174] In this example, because Target 2 was in an abnormal state during the previous cycle, the cloud management platform may suspend issuing detection tasks for Target 2. After resolving the issue, the user can trigger the cloud management platform to resume detection of Target 2. The cloud management platform can then send detection task 2 to detection node 12 during the next cycle. In this example, detection node 12 detects the status of Target 2, determines that the detection task was successfully executed, and feeds back the detection result to the cloud management platform, indicating that Target 2 is in normal state.

[0175] An embodiment of the present application provides a cloud management platform, which is used to manage the infrastructure that provides cloud services. The infrastructure includes multiple cloud data centers set up in different areas, each area is provided with at least one cloud data center, and at least one detection node is set up on the cloud data center. Figure 8 is a structural diagram of an exemplary cloud management platform 800. Please refer to Figure 8. The cloud management platform includes: a detection task sending module 801 and a detection result receiving module 802. The detection task sending module 801 is used to send a first detection task to a first detection node, wherein the first detection task is used to indicate the status of a first target object in the detection target object. The detection result receiving module 802 is used to receive a first detection result sent by a second detection node, wherein the detection task of the second detection node is that the first detection node fails to perform the first detection task on the first target object and sends the first detection task to the second detection node.

[0176] In one possible implementation, the detection task of the second detection node is to send the first detection task to the second detection node after the third detection node fails to perform the first detection task on the first target object; the detection task of the third detection node is to send the first detection task to the third detection node after the first detection node fails to perform the first detection task on the first target object.

[0177] In a possible implementation, the cloud management platform 800 further includes: an indication information sending module 803, configured to send first indication information to the message module, wherein the first indication information is configured to instruct the message module to send the detection task received from the first detection node to the second detection node.

[0178] In one possible implementation, the cloud management platform 800 further includes an indication information receiving module 804. The detection task sending module 801 is further configured to send a second detection task to the first detection node, wherein the second detection task is configured to indicate the status of a second target object among the detection target objects; the indication information receiving module 804 is configured to receive node overload indication information sent by a third detection node, wherein the node overload indication information includes identification information of the third detection node and identification information of the first detection node, and the node overload indication information is configured to indicate that, after receiving the detection task sent by the first detection node, the third detection node detects that the total amount of detection tasks of the third detection node exceeds a preset threshold; the indication information sending module 803 is further configured to send second indication information to the message module in response to the node overload indication information, wherein the second indication information is configured to instruct the message module to send other detection tasks from the first detection node to the fourth detection node.

[0179] In one possible implementation, the cloud management platform also includes a status detection module 805, which is used to send a status detection signal to the first detection node and receive a status detection response signal fed back by the first detection node; the status detection module 805 is also used to determine that the first detection node is abnormal if the status detection response signal fed back by the first detection node is not received within a predetermined time period; the detection task sending module 801 is also used to send the detection task of the first detection node to other detection nodes.

[0180] In one possible implementation, the cloud management platform also includes an indication information sending module 803, which is used to send flow factor indication information to each detection node. The flow factor indication information includes a flow factor. The flow factor indication information is used to indicate that when a single detection task is sent to a single detection node, the number of detection nodes through which the single detection task flows is greater than or equal to the flow factor, and the single detection node does not detect the state of the target object, and determines that the target object is abnormal.

[0181] In one possible implementation, the cloud management platform also includes a flow feedback information receiving module 806, which is used to receive flow feedback information fed back by the second detection node, and the flow feedback information is used to indicate that the first detection task of the second detection node is sent from the first detection node; if the first detection task is sent to the first detection node multiple times, the flow feedback information receiving module receives the flow feedback information corresponding to the first detection task fed back by the second detection node, then the detection task sending module sends the detection task corresponding to the target object to the second detection node.

[0182] In a possible implementation, the first detection node and the second detection node are located in different cloud data centers.

[0183] Among them, the above modules can all be implemented by software, or by hardware. Among them, the module is an example of a software functional unit, and the above module may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the above computing instance may be one or more. For example, the detection task sending module may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Among them, usually a region may include multiple AZs.

[0184] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0185] As an example of a hardware functional unit, a module may include at least one computing device, such as a server. Alternatively, the module may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0186] The multiple computing devices included in the above modules can be distributed in the same region or in different regions. The multiple computing devices included in the above modules can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the above modules can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0187] It should be noted that, in other embodiments, the above modules can be used to execute the corresponding steps in Figure 5 to implement all the functions of the cloud management platform.

[0188] This application also provides a computing device 900. As shown in Figure 9, computing device 900 includes a bus 902, a processor 904, a memory 906, and a communication interface 909. Processor 904, memory 906, and communication interface 909 communicate with each other via bus 902. Computing device 900 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 900.

[0189] Bus 902 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG9 shows only one s-line, but this does not imply a single bus or type of bus. Bus 902 may include a path for transmitting information between various components of computing device 900 (e.g., memory 906, processor 904, and communication interface 909).

[0190] The processor 904 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0191] The memory 906 may include volatile memory, such as random access memory (RAM). The processor 904 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0192] The memory 906 stores executable program code. The processor 904 executes the executable program code to implement the functions of the aforementioned detection task sending module, detection result receiving module, indication information sending module, indication information receiving module, status detection module, and flow feedback information receiving module, thereby implementing the measurement method in FIG5 . In other words, the memory 906 stores instructions for executing the measurement method.

[0193] The communication interface 909 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 900 and other devices or a communication network.

[0194] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0195] As shown in FIG10 , the computing device cluster includes at least one computing device 1000. Computing device 1000 includes a bus 1002, a processor 1004, a memory 1006, and a communication interface 1008. The memory 1006 in one or more computing devices 1000 in the computing device cluster may store the same instructions for executing the measurement method shown in FIG10 .

[0196] In some possible implementations, the memory 1006 of one or more computing devices 1000 in the computing device cluster may also store partial instructions for executing the measurement method. In other words, the combination of one or more computing devices 1000 can jointly execute the instructions for executing the measurement method.

[0197] It should be noted that the memory 1006 in different computing devices 1000 in the computing device cluster can store different instructions, each used to execute a portion of the functions of the cloud management platform apparatus. In other words, the instructions stored in the memory 1006 in different computing devices 1000 can implement the functions of one or more of the following modules: the detection task sending module, the detection result receiving module, the indication information sending module, the indication information receiving module, the status detection module, and the flow feedback information receiving module.

[0198] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network or a local area network, etc. FIG11 shows a possible implementation. As shown in FIG11 , a computing device 1100A and a computing device 1100B include: a bus 1102, a processor 1104, a memory 1106, and a communication interface 1108. The two computing devices 1100A and 1100B are connected via a network. Specifically, the network is connected via the communication interface in each computing device. In this type of possible implementation, the memory 1106 in the computing device 1100A stores instructions for executing the functions of a detection task sending module and a detection result receiving module. At the same time, the memory 1106 in the computing device 1100B stores instructions for executing the functions of an indication information sending module, an indication information receiving module, a status detection module, and a flow feedback information receiving module.

[0199] It should be understood that the functionality of the computing device 1100A shown in FIG11 may also be implemented by multiple computing devices 1100. Similarly, the functionality of the computing device 1100B may also be implemented by multiple computing devices 1100.

[0200] The present application also provides another computing device cluster. The connection relationship between the computing devices in this computing device cluster can be similar to the connection methods of the computing device clusters described in Figures 9 and 11. However, the memory 1106 in one or more computing devices 1100 in this computing device cluster can store the same instructions for executing the measurement method.

[0201] In some possible implementations, the memory 1106 of one or more computing devices 1100 in the computing device cluster may also store partial instructions for executing the measurement method. In other words, the combination of one or more computing devices 1100 can jointly execute the instructions for executing the measurement method.

[0202] It should be noted that the memory 1106 in different computing devices 1100 in the computing device cluster can store different instructions for executing some functions of the cloud management platform. In other words, the instructions stored in the memory 1106 in different computing devices 1100 can implement the functions of one or more devices in the cloud management platform.

[0203] The present application also provides a computer program product comprising instructions. The computer program product may be software or a program product comprising instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device is caused to perform the measurement method described in the above embodiments.

[0204] The present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the measurement method in the above embodiment.

[0205] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A detection method based on cloud technology, characterized in that: The method is applied to a cloud management platform, the cloud management platform is used to manage the infrastructure for providing cloud services, the infrastructure includes multiple cloud data centers arranged in multiple regions, each region is provided with at least one cloud data center, at least two detection nodes are arranged in the cloud data center, the method includes: The cloud management platform provides a detection information configuration interface, which is used to obtain one or any combination of the detection task name, target object type, target object address, detection frequency, and detection node region input by the tenant, wherein the type of the target object includes one of a domain name, a server, a virtual machine, a container, a dedicated host, or a cloud service, and the detection node region is used to indicate the geographical location of the detection node; The cloud management platform sends a first detection task to the first detection node, wherein the first detection task is used to indicate the state of detecting a first target object among the target objects; The cloud management platform receives a first detection result sent by a second detection node, wherein the detection task of the second detection node is to send the first detection task to the second detection node after the first detection node fails to perform the first detection task on the first target object.

2. The method according to claim 1, characterized in that: in, The detection task of the second detection node is to send the first detection task to the second detection node after the third detection node fails to perform the first detection task on the first target object; the detection task of the third detection node is to send the first detection task to the third detection node after the first detection node fails to perform the first detection task on the first target object.

3. The method according to claim 1 or 2, characterized in that: Before the cloud management platform sends the first detection task to the first detection node, the method further includes: The cloud management platform sends first indication information to the message module, where the first indication information is used to instruct the message module to send the detection task received from the first detection node to the second detection node.

4. The method according to claim 3, characterized in that The method further comprises: The cloud management platform sends a second detection task to the first detection node, wherein the second detection task is used to indicate a state of detecting a second target object among the target objects; The cloud management platform receives node overload indication information sent by the third detection node, where the node overload indication information includes identification information of the third detection node and identification information of the first detection node, and the node overload indication information is used to indicate that after the third detection node receives the detection task sent by the first detection node, it detects that the total amount of detection tasks of the third detection node exceeds a preset threshold; The cloud management platform sends second indication information to the message module in response to the node overload indication information, where the second indication information is used to instruct the message module to send other detection tasks from the first detection node to a fourth detection node.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The cloud management platform sends a status detection signal to the first detection node, and receives a status detection response signal fed back by the first detection node; If the cloud management platform does not receive a status detection response signal fed back by the first detection node within a predetermined period of time, it is determined that the first detection node is abnormal; The cloud management platform sends the detection task of the first detection node to other detection nodes.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The cloud management platform sends flow factor indication information to each detection node, and the flow factor indication information includes a flow factor. The flow factor indication information is used to indicate that when a single detection task is sent to a single detection node, the number of detection nodes through which the single detection task flows is greater than or equal to the flow factor, and the single detection node fails to detect the state of the target object, and determines that the target object is abnormal.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The cloud management platform receives flow feedback information fed back by the second detection node, where the flow feedback information is used to indicate that the first detection task of the second detection node is sent from the first detection node; If the cloud management platform sends the first detection task to the first detection node m times and receives the flow feedback information corresponding to the first detection task fed back by the second detection node, the cloud management platform will send the detection task corresponding to the target object to the second detection node, where m is a positive integer.

8. The method according to any one of claims 1 to 7, characterized in that: The first detection node and the second detection node are located in different cloud data centers.

9. A cloud management platform, characterized in that: The cloud management platform is used to manage the infrastructure for providing cloud services, the infrastructure includes multiple cloud data centers set up in different regions, each region is provided with at least one cloud data center, at least one detection node is set up in the cloud data center, and the cloud management platform includes: A detection task sending module, used to send a first detection task to a first detection node, wherein the first detection task is used to indicate the state of detecting a first target object among the target objects; The detection result receiving module is used to receive the first detection result sent by the second detection node, wherein the detection task of the second detection node is to send the first detection task to the second detection node after the first detection node fails to perform the first detection task on the first target object.

10. The cloud management platform according to claim 9, characterized in that: in, The detection task of the second detection node is to send the first detection task to the second detection node after the third detection node fails to perform the first detection task on the first target object; the detection task of the third detection node is to send the first detection task to the third detection node after the first detection node fails to perform the first detection task on the first target object.

11. The cloud management platform according to claim 9 or 10, characterized in that: The cloud management platform also includes: The indication information sending module is used to send first indication information to the message module, where the first indication information is used to instruct the message module to send the detection task received from the first detection node to the second detection node.

12. The cloud management platform according to claim 11, characterized in that: The cloud management platform also includes an indication information receiving module; The detection task sending module is further used to send a second detection task to the first detection node, wherein the second detection task is used to indicate the state of detecting a second target object among the target objects; The indication information receiving module is used to receive node overload indication information sent by the third detection node, wherein the node overload indication information includes identification information of the third detection node and identification information of the first detection node, and the node overload indication information is used to indicate that after the third detection node receives the detection task sent by the first detection node, it detects that the total amount of detection tasks of the third detection node exceeds a preset threshold; The indication information sending module is further used to send second indication information to the message module in response to the node overload indication information, wherein the second indication information is used to instruct the message module to send other detection tasks from the first detection node to a fourth detection node.

13. The cloud management platform according to any one of claims 9 to 12, characterized in that: The cloud management platform also includes: A state detection module, configured to send a state detection signal to the first detection node, and receive a state detection response signal fed back by the first detection node; The state detection module is further configured to determine that the first detection node is abnormal if no state detection response signal fed back by the first detection node is received within a predetermined time period; The detection task sending module is further used to send the detection task of the first detection node to other detection nodes.

14. The cloud management platform according to any one of claims 9 to 13, characterized in that: The cloud management platform also includes: An indication information sending module is used to send flow factor indication information to each detection node, wherein the flow factor indication information includes a flow factor, and the flow factor indication information is used to indicate that when a single detection task is sent to a single detection node, the number of detection nodes through which the single detection task flows is greater than or equal to the flow factor, and the single detection node fails to detect the state of the target object, thereby determining that the target object is abnormal.

15. The cloud management platform according to any one of claims 9 to 14, characterized in that: The cloud management platform also includes: a flow feedback information receiving module, configured to receive flow feedback information fed back by the second detection node, wherein the flow feedback information is used to indicate that the first detection task of the second detection node is sent from the first detection node; If the first detection task is sent to the first detection node m times, and the flow feedback information receiving module receives the flow feedback information corresponding to the first detection task fed back by the second detection node, then the detection task sending module sends the detection task corresponding to the target object to the second detection node, where m is a positive integer.

16. The cloud management platform according to any one of claims 9 to 15, characterized in that: The first detection node and the second detection node are located in different cloud data centers.

17. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 8.

18. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 8.

19. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Detection node screening method and device, electronic equipment and storage medium

    CN114430383A

  • Node activity detection method, device, equipment and medium

    CN115242687A

  • Method and apparatus for checking liveness in machine to machine system

    US20210337367A1

  • Method and first node for selecting second node for transmission of indirect probe message to third node

    WO2019164426A1

Cited By

  • Network detection system and method

    CN119276807A