Detection method based on cloud technology and cloud management platform

By combining single-point measurement and multi-point measurement in cloud services, and using multiple detection nodes and circulation channels, the accuracy and redundancy problems of cloud node detection are solved, and the reliability and efficiency of cloud services are improved.

CN118612110APending Publication Date: 2024-09-06HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310586909.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-28
Filing Date
2023-05-23
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 detection of cloud nodes. Especially when a single point failure occurs, the measurement results are easily distorted, and multi-point measurement leads to data redundancy and increased system burden.

Method used

Using a detection method based on cloud technology, through the combination of single-point measurement and multi-point measurement, single-point multi-level measurement is realized. The flow channel and distributed message module between multiple detection nodes are used to dynamically allocate detection tasks to avoid single-point measurement. Fault and data redundancy, improving the accuracy of measurement results and system efficiency.

Benefits of technology

It achieves the accuracy of measurement results in the case of single point failure, reduces the system burden, avoids misjudgment of measurement results and data redundancy, and improves the reliability and efficiency of cloud services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612110A
    Figure CN118612110A
Patent Text Reader

Abstract

The invention provides a detection method based on a cloud technology and a cloud management platform. The method comprises the steps that a cloud management platform responds to detection task related information input by a user and sends a detection task to a first detection node so as to indicate the first detection node to detect the state of a target object. And the cloud management platform receives a detection result corresponding to the detection task sent by the 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 embodiment of the invention, after each detection node fails to execute the detection task, the detection task is transferred to other detection nodes to be continuously executed, so that the transfer of the detection task among different detection nodes is realized, and the system burden caused by measurement redundancy is reduced while the problem of inaccurate measurement result caused by a single-point fault is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of 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 Dual Authentication of Control Data”, 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] At present, with the development of cloud technology, the application scenarios of cloud services are becoming more and more extensive. More and more users purchase cloud services such as virtual machines provided by cloud vendors to meet various different needs. In the process of using cloud services, in order to ensure the normal operation of each cloud service, it is necessary to detect the survival status of each node in real time. Summary of the invention

[0004] The present application provides a detection method and a cloud management platform based on cloud technology, which can realize real-time detection of each node.

[0005] In the first aspect, the embodiment of the present application provides a detection method based on cloud technology. The method is applied to a cloud management platform, and the cloud management platform is used to manage the infrastructure that provides cloud services. The infrastructure includes multiple cloud data centers set in multiple regions, each region is provided with at least one cloud data center, and at least two detection nodes are set in the cloud data center. The detection method includes: the cloud management platform provides a detection information configuration interface, and the detection information configuration interface 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. Among them, 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 the first target object in the detection target object. The cloud management platform receives the first detection result sent by the second detection node, wherein the detection task of the second detection node is that after the first detection node fails to perform the first detection task on the first target object, the first detection task is sent to the second detection node. In this way, in the embodiment of the present application, single-point measurement is combined with multi-point measurement to achieve 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 avoid the redundancy problem of multi-point measurement, thereby improving the accuracy of the measurement results and reducing the overall burden of the system.

[0006] 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.

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

[0008] Exemplarily, 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.

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

[0010] Exemplarily, the transfer of detection tasks between nodes can be executed by the detection node or by the cloud platform. That is, the detection task can be sent by the first detection node to the second detection node after the first detection node fails to execute the task. Alternatively, the first detection node can send the detection task to the cloud management platform after the first detection node fails to execute the task, and then the cloud management platform sends it to the second detection node.

[0011] In a possible implementation, the detection task of the second detection node is that after the third detection node fails to perform the first detection task on the first target object, the first detection task is sent to the second detection node. The detection task of the third detection node is that after the first detection node fails to perform the first detection task on the first target object, the first detection task is sent to the third detection node. In this way, the detection task in the embodiment of the present application can be transferred through at least two levels to avoid the single point failure problem, thereby further improving the accuracy of the detection result.

[0012] Exemplarily, the cloud management platform sends the detection task to the first detection node, which is the first-level 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-level detection node in the embodiment of the present application. The third 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 second detection node, and the second detection node continues to execute the detection task. The second detection node is the third-level detection node in the embodiment of the present application.

[0013] Exemplarily, the first detection node may include multiple first detection nodes. The detection tasks assigned to each first detection node are different from each other to achieve single-point measurement of a single target object. That is, one target object corresponds to only one first-level detection node. In the case where the first-level detection node fails to perform the 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 one target object through multiple detection nodes. Among them, the detection of the same target object by multiple nodes is not performed synchronously.

[0014] In a 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 sends a first indication message to the message module, and the first indication message is used to instruct the message module to send the received detection task from the first detection node to the second detection node. In this way, in the embodiment of the present application, a channel between the detection nodes can be established 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.

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

[0016] 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 state of the second target object in the detection target object; the cloud management platform receives 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 reasonably allocate detection tasks, avoid the situation of single node overload, flexibly set the flow channel, and improve the overall efficiency of the system in executing detection tasks.

[0017] In a possible implementation, the method further includes: 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 the status detection response signal fed back by the first detection node within a predetermined period of time, it determines that the first detection node is abnormal; 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 when the node is abnormal by detecting the status of the node in real time. That is, the detection task is no longer sent to the abnormal node, and the detection task is transmitted to other nodes of the same level for execution.

[0018] 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.

[0019] In a possible implementation, the method further includes: the cloud management platform sends flow factor indication information to each detection node, 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 that the single detection task flows through 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. In this way, by setting the flow factor, the number of times the detection task circulates in the system will not exceed the specified number, so as to avoid the detection task from circulating too many times, thereby causing system burden.

[0020] In one possible implementation, the method also 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.

[0021] In a 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.

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

[0023] 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 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 in the cloud data center. The cloud management platform includes: a detection task sending module and a detection result receiving module. Among them, 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.

[0024] 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.

[0025] 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.

[0026] In one possible implementation, the cloud management platform also includes an indication information receiving module; a detection task sending module, which is also used to send a second detection task to the first detection node, wherein the second detection task is used to indicate the status of a second target object in the detection target object; an indication information receiving module, which is used to receive node overload indication information sent by a third detection node, 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, which 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.

[0027] 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.

[0028] 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, 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 does not detect the state of the target object, and determines that the target object is abnormal.

[0029] In a 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.

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

[0031] 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 refer to the technical effects corresponding to the above-mentioned first aspect and any implementation of the first aspect, which will not be repeated here.

[0032] In a third aspect, an embodiment of the present application provides a computing device cluster, including at least one computing device, each computing device including a processor and a memory. The processor of at least one computing device is used to execute instructions stored in the memory of at least one computing device, so that the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0033] 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.

[0034] 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

[0035] Figure 1 is a schematic diagram of single-point detection shown as an example;

[0036] Figure 2 is a schematic diagram of multi-point detection shown as an example;

[0037] Figure 3 The figure is a schematic diagram of the deployment phase process shown as an example;

[0038] Figure 4 is a schematic diagram of a cloud structure shown as an example;

[0039] Figure 5 A schematic diagram of a flow chart of an exemplary detection method;

[0040] Figure 6 A schematic diagram of a user interface provided for an exemplary cloud management platform;

[0041] Figure 7 A schematic diagram of a flow chart of an exemplary detection method;

[0042] Figure 8 The structure diagram of the cloud management platform is shown as an example;

[0043] Fig. 9 A schematic diagram of the structure of a computing device is shown as an example;

[0044] Fig.10 A schematic diagram of the structure of a computing device is shown as an example;

[0045] Fig.11 The figure is a schematic diagram of the structure of a computing device cluster shown as an example. DETAILED DESCRIPTION

[0046] 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.

[0047] The term "and / or" in this article is merely a description of the association relationship of 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.

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

[0049] In the embodiments of the present 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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0050] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0051] Before describing the technical solution of the embodiment of the present application, the background technology involved in the embodiment of the present application is briefly introduced:

[0052] Public cloud is a cloud platform provided by third-party public cloud providers for individuals or enterprises. In the public cloud, the hardware, software and other structures are owned and managed by the third-party public cloud providers.

[0053] 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, and is used to provide interfaces 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 referred to 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.

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

[0055] 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 example, the virtual machine and the applications in the virtual machine belong to the cloud service (i.e., software resources), and the server and other devices to which the virtual machine belongs are the corresponding hardware resources.

[0056] A detection node is used to detect the state of a target object (which may also be referred to as a detected node in an embodiment of the present 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 a 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 or other device), which is not limited in this application. Accordingly, in an embodiment of the present application, a detection node may refer to a virtual machine on which a detection tool is deployed, or it may refer to a server on which a detection tool is deployed, which is not limited in this application.

[0057] Exemplarily, the detection method of the detection node includes but is not limited to: the detection node sends at least one detection message to the detected node. If the detection response message fed back by the detected node is received within the preset time, it can be determined that the state of the detected node is normal. If the detection response message fed back by the detected node is not received within the preset time, it is determined that the state of the detected node is abnormal, or the detection node itself is abnormal. Among them, the abnormal state of the detected node may be a network abnormality, a device abnormality, etc. of the detected node. The abnormality of the detection node itself may be a network abnormality between the detected node and the detection node. It should be noted that the network abnormality of the detected node refers to the abnormality of the network between the detected node and any detection node or other nodes. For example, if the detected node is a virtual machine, the virtual machine network abnormality means that the virtual machine cannot communicate with other nodes in the cloud. The network abnormality of the detection node means that the detection node cannot communicate with the detected node due to a network failure of the detection node, but in this example, when the network of the detected node is normal, the detected node can communicate normally with other nodes. Exemplarily, the device abnormality of the detected node can optionally be a failure of the detected node itself of the detected node, such as a server to which the virtual machine belongs to crashes.

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

[0059] The detected node may also be referred to as a target object, a target node, a 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 related concepts of basic resources and public cloud services may refer to the above text, 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 one of cloud services. 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 to say, in the embodiment of the present application, only the detection node can ping the detected node, which can also be understood as being able to receive the response message fed back by the detected node within a predetermined time, and the state of the detected node can be determined to be normal. 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.

[0060] 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). Among them, 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 this application does not limit it. Among them, 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.

[0061] For example, Figure 1 For an exemplary single point detection 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), a detection node 1, a detection node 2, a target 1 (also referred to as a detected node 1) and a target 2 (also referred to as a 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, which is only an illustrative example and is not limited in this application. Exemplarily, 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 state 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 state of target 2. In response to the received detection task 1, detection node 1 detects the state of target 1 and generates a corresponding detection result 1. In response to the received detection task 2, detection node 2 detects the state 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 result, and troubleshoot the fault in time to restore the abnormal node to normal. However, in this scenario, if the status of the target object is normal, but due to problems 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. Figure 1 In the scenario shown, detection node 1 and detection node 2 may also be the same detection node.

[0062] Multi-point detection means that one detected node corresponds to multiple detection nodes, that is, a single detected node requires two or more detection nodes to detect it. Accordingly, in this scenario, each detected node will generate two or more corresponding detection results (also called detection data). Optionally, in a multi-point detection scenario, a single detection node can also detect multiple detected nodes.

[0063] For example, Figure 2 For an exemplary multi-point detection diagram, 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. Exemplarily, 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 state 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 state of target 2 is to be detected. Detection node 1 and detection node 2 respectively detect the state of target 1 in response to the received detection task 1. Detection node 1 generates detection result 1, and detection node 2 generates detection result 2. Detection node 3 and detection node 4 respectively detect the state of target 2 in response to the received detection task 2. Detection node 3 generates detection result 3, and detection node 4 generates detection result 4. Detection node 1, detection node 2, detection node 3 and detection node 4 respectively feed back the detection results obtained by each of them to the cloud management platform. The cloud management platform can display detection results 1, detection results 2, detection results 3 and detection results 4 through the user interface. If detection results 1, detection results 2, detection results 3 and detection results 4 indicate that the corresponding target object is abnormal, the user can quickly locate the fault based on the detection results, and troubleshoot the fault in time to restore the abnormal node to normal. In this scenario, since the detection node adopts a redundant detection method, assuming that the network between detection node 1 and target 1 is abnormal, resulting in detection node 1 failing to accurately detect the state of target 1, while the network between detection node 2 and target 1 is normal and can correctly detect the state of target 1, the cloud management platform can determine that target 1 is normal based on the received multiple results. The cloud management platform can directly display that target 1 is normal, or it can display multiple detection results separately. In this example, although a redundant method is adopted, that is, multiple detection nodes detect the same target, the problem of misjudgment of detection results caused by single point failure is solved. However, usually, the volume 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, and each detection in a redundant manner will generate multiple detection results, which will lead to excessive data redundancy and increase the pressure of 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.

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

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

[0066] Figure 3 For an exemplary diagram of the deployment phase flow chart, please refer to Figure 3 , including but not limited to the following steps:

[0067] S301, setting the detection node level.

[0068] 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 detection tools, that is, deploy detection nodes, on the server or terminal (which can refer to a physical terminal or a virtual machine, which is not limited in this application) in the cloud data center in advance.

[0069] Figure 4 For an exemplary schematic diagram of the cloud structure, please refer to Figure 4 ,Exemplarily, as described above, the user has deployed multiple detection nodes in the cloud data center during the deployment phase. The user can input the detection node level setting instruction through the setting interface provided by the cloud management platform to deploy the level of the detection node.

[0070] For an example, please refer to Figure 4 In response to the received detection node level setting instruction, the cloud management platform divides the detection nodes in the cloud data center into levels, and the division results include: first-level detection nodes, second-level detection nodes, and third-level detection nodes. In the embodiment of the present application, only the three-level division is used as an example for explanation. In other embodiments, the detection nodes may include more or fewer levels, which is not limited in the present application.

[0071] Still refer to Figure 4In this example, the first-level detection nodes include but are not limited to: detection node 11, detection node 12, detection node 13, detection node 14, etc. The second-level detection nodes include but are not limited to: detection node 21, detection node 22, detection node 23, etc. The third-level detection nodes include but are not limited to: detection node 31 and detection node 32, etc.

[0072] In the embodiment of the present application, the number of detection nodes included in each level can be reduced level by level. 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. It can be set according to actual needs and is not limited in the present application. It should be noted that Figure 4 Only some of the detection nodes are shown, and this application does not limit them.

[0073] Exemplarily, the cloud management platform can communicate with any detection node, and any detection node can communicate with any target object in the cloud resources under normal circumstances. The cloud resources include one or more target objects (not shown in the figure), and the target object is the detected node in the embodiment of the present application. The relevant description of the target object can be referred to above and will not be repeated here.

[0074] In a possible implementation, in order to ensure data security and avoid the impact of disasters on the data center, which may cause large-scale failures of detection nodes, in an embodiment of the present application, detection nodes of various levels 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 in this application.

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

[0076] 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.

[0077] Exemplarily, the flow channel is used to transmit the detection task of the upstream detection node to the detection node downstream of the channel, and the specific implementation will be described in detail below.

[0078] Exemplarily, one end of a flow channel may be connected to one or more upstream detection nodes, and the other end may be connected to a downstream detection node. That is, in the embodiment of the present application, the detection tasks of multiple detection nodes may be transferred to the same detection node in the next level of detection nodes.

[0079] For an example, please refer to Figure 4 In the embodiment of the present application, the cloud management platform sets a first flow channel, and the upstream detection nodes connected by the first flow channel include but are not limited to: detection node 11 and detection node 12, and the downstream detection nodes include detection node 21. That is, in this example, in the detection phase, the detection tasks of detection node 11 and detection node 12 will be transferred to detection node 21 under certain conditions. The specific flow details will be described in detail in the following embodiments.

[0080] Still refer to Figure 4 The cloud management platform sets a second flow channel, and the upstream detection nodes connected to the second flow channel include but are not limited to: detection node 13, and the downstream detection nodes include detection node 22. In this example, in the detection phase, the detection task of detection node 13 will be transferred to detection node 22 under certain conditions.

[0081] The cloud management platform sets up a third flow channel, and the upstream detection nodes connected to the third flow channel include but are not limited to: detection node 14, and the downstream detection nodes include detection node 23. In this example, in the detection phase, the detection task of detection node 14 will be transferred to detection node 23 under certain conditions.

[0082] 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 detection nodes include detection node 31. In this example, during the detection phase, the detection tasks of detection nodes 21, detection nodes 22 and detection nodes 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 the connection flow channels of some nodes are illustrated, and this application does not limit them.

[0083] 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.

[0084] In a possible implementation, one or more distributed message modules may be deployed between detection nodes at each level to implement the circulation 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 circulation channel setting interface between the distributed message module to instruct the distributed message module to establish a corresponding circulation channel. For example, the cloud management platform sends distributed indication information to the distributed message module to indicate the establishment of the first circulation channel described above, and the distributed message module may establish a corresponding circulation channel based on the received distributed indication information. In the embodiment of the present application, the circulation 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 in which the distributed message module establishes the circulation channel is to establish a correspondence between the upstream detection node and the downstream detection node (it may also be called an association relationship or a circulation relationship, which is not limited in the present application). The specific establishment method can refer to the existing technical embodiments, which are not limited in the present application.

[0085] In the embodiment of the present application, the distributed message module can also be a part of the cloud management platform, for example, software deployed on the cloud management platform, such as Kafka, which is not limited in the present application. In other words, the steps performed by the distributed message module in the embodiment of the present application can also be understood as being performed by the cloud management platform, and will not be repeated below.

[0086] S303, setting the flow factor and the maximum total number of detection tasks.

[0087] Exemplarily, the cloud management platform responds to the received user instruction and sends instruction information to each detection node, including but not limited to: flow factor and maximum total detection task amount. Optionally, in the initial stage, the flow factor and maximum total detection task amount can also be default values, that is, the cloud management platform pre-sets the corresponding default values ​​and sends them to each detection node without user triggering.

[0088] Exemplarily, the flow factor is used to indicate the maximum number of detection nodes that a single detection task flows through. It can be understood that the number of flows of a single detection task in the system does not exceed (is less than or equal to) the flow factor. The specific value of the flow factor can be set according to actual needs and is not limited in this application.

[0089] Exemplarily, the maximum total amount of detection tasks may also be referred to as the maximum value of detection tasks or the detection task threshold, etc., which is not limited in this application. This value is used to indicate the maximum value of the detection tasks that can be processed by a single detection node. Optionally, the maximum total amount of detection tasks corresponding to each detection node may be the same or different, which is not limited in this application. The specific implementation will be described in detail below.

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

[0091] 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.

[0092] Figure 5 For a flow chart of an exemplary detection method, please refer to Figure 5 , including but not limited to the following steps:

[0093] S501, the cloud management platform sends a detection task to the first detection node.

[0094] Exemplarily, the user can set the detection task on the user interface provided by the cloud management platform. The cloud management platform generates the corresponding detection task based on the user settings. The detection task includes but is not limited to at least one of the following: the detection task name (i.e., the identification information of the detection task), the target object type, the target object address, the detection frequency, and the detection node region, or any combination thereof, 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.

[0095] Optionally, 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.

[0096] Figure 6 For an exemplary user interface diagram of the cloud management platform, please refer to Figure 6 The user interface is displayed as 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.

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

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

[0099] The Site Address Settings control is used to indicate the target object address.

[0100] The monitoring frequency setting control is used to set the detection frequency, that is, the detection period described in the embodiment of the present application. Among them, the detection period can be optionally the time interval for the cloud management platform to execute the detection task that the user has set each time. In other words, after the user sets the detection task, if there is no other update to the detection task, the cloud management platform can automatically execute the subsequent detection process at the start time of each cycle.

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

[0102] 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.

[0103] 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.

[0104] In another possible implementation, the area corresponding to one or more distributed detection points selected by the user may be a non-first-level detection node. When the cloud management platform issues tasks, it also issues tasks to these nodes. Unlike the first-level nodes, the flow factor of the detection tasks received by these nodes is smaller than the flow factor corresponding to the detection tasks of the first-level nodes. Or it can be understood that the maximum number of times these tasks can be circulated is smaller than the maximum number of times the detection tasks of the first-level detection nodes can be circulated.

[0105] In another possible implementation, the percentage corresponding to each area can also be displayed in the distributed detection node setting control, and the percentage is used to indicate the percentage of the assigned detection tasks. Based on the user settings, the cloud management platform can allocate the detection tasks to the detection nodes corresponding to each area according to the percentage set by the user when allocating the detection tasks.

[0106] 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.

[0107] Combination Figure 4In the 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 the embodiment of the present application, the first detection node may 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 may include multiple first detection nodes. Correspondingly, the cloud management platform may 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.

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

[0109] In one possible implementation, the cloud management platform can distribute all detection tasks in this cycle to each first-level detection node according to the hash algorithm based on the number of first-level detection nodes and the number of detection tasks in this cycle. Optionally, as described above, the cloud management platform can also combine the hash algorithm and the user's selection of distributed detection node regions to distribute detection tasks, which is not limited in this application.

[0110] 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.

[0111] In another possible implementation, if the cloud management platform determines that there is a newly added target object in the system in response to the received user instruction and generates a corresponding detection task, the cloud management platform can optionally recalculate the distribution method of the detection task and distribute the detection task according to the new distribution method in the next cycle. Alternatively, the cloud platform can also maintain the current distribution method and distribute the new detection task to the designated first-level detection node according to the hash algorithm.

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

[0113] Exemplarily, the first detection node receives the 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.

[0114] 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.

[0115] 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 state of the target object is normal, that is, the detection task is executed successfully, and S503 is executed.

[0116] In another example, if the first detection node does not receive the detection response message fed back by the target object within the preset time, it is determined that the detection task has failed to execute, 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 the abnormality of 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 means that the virtual machine cannot communicate with other nodes in the cloud. The network abnormality of the detection node means that the detection node cannot communicate with the target object due to a network failure of the detection node, but 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 is optionally a failure of the target object itself, such as a server to which the virtual machine belongs.

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

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

[0119] 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 state of the detected target object. For example, in this example, the detection result information is used to indicate that the state of the target object is normal, and can also be understood as that the target object is connected (the concept can be referred to above).

[0120] The cloud management platform receives the detection result fed back by the first detection node and can determine that the state of the target object is normal. Optionally, the cloud management platform can display the current state of the target object on the user interface, that is, the current state of the target object is normal. Optionally, the cloud management platform may not display objects with normal states, but only display alarm information when the state of a single target object is abnormal.

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

[0122] Exemplarily, after the first detection node determines that the detection task fails to execute, as described above, since single-point detection cannot exclude that the reason for the failure of the detection task is caused by the first detection node and / or the target object, therefore, in order to exclude the misjudgment caused by the abnormality of the first detection node itself, in the 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 to say, in the 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 detect a target object at the same time. 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.

[0123] Exemplarily, based on the above principle, after determining that the detection task execution fails, the first detection node 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 flow personnel to the next-level detection node.

[0124] Specifically, as described above, a transfer channel has been set up between detection nodes at each level. The detection task of each first-level detection node will be transferred to the corresponding next-level detection node through the transfer channel, that is, the detection task of the detection node upstream of the transfer channel will be transferred to the downstream detection node connected by the transfer channel.

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

[0126] In the embodiment of the present application, as described above, the flow channel is maintained by the distributed message module. For example, the distributed message module maintains the corresponding relationship between the upstream detection node and the downstream detection node to maintain the flow channel between the detection nodes of different levels. Specifically, after determining that the detection task fails to execute, the first detection node may send a flow indication message to the distributed message module, and 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 transferred to the next detection node. Based on the identification information of the first detection node, the distributed message module can determine the corresponding flow channel, that is, determine the downstream detection node associated with it, such as 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 is transferred from the first detection node. For example, the distributed message module may send detection task information to the second detection node, and 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.

[0127] S505: The second detection node determines whether you exceed the detection task threshold.

[0128] Exemplarily, the second detection node receives the detection task transferred by 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, that is, 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 the detection tasks that have just been received but not yet processed) exceeds (that is, is greater than) the pre-set detection task threshold.

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

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

[0131] It should be noted that, as described above, the number correspondence between the upstream detection nodes and the downstream detection nodes of the flow channel may be many-to-one or one-to-one. Figure 4As shown, the upstream detection nodes of the detection node 21 include the detection node 11, the detection node 12 and the detection node 13. That is to say, after determining that their respective detection tasks have failed to execute, the detection nodes 11, 12 and 13 will all transfer the detection tasks to the detection node 21. Therefore, in some special cases, such as when a large number of detection tasks of the detection nodes 11, 12 and 13 have all failed to execute, a large number of detection tasks will be transferred to the detection node 21, which may cause the detection tasks received by the detection node 21 to exceed the detection task threshold, which will cause the load pressure of the detection node 21 to be too large, and may affect the execution results of the detection tasks by the 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.

[0132] S506, the second detection node feeds back detection task overload indication information to the cloud management platform.

[0133] 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 information to the cloud management platform. The detection task overload indication information 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.

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

[0135] In a 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. Figure 4As shown, the cloud management platform can send an indication message to the distributed message module to indicate the removal of the flow channel between the detection node 12 and the detection node 21, and to establish the 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 in the flow channel setting stage. When selecting a new downstream detection node for the detection node 12, the downstream node with the least number of upstream detection nodes (such as the detection node 22) can be selected based on the number of upstream nodes corresponding to each downstream node as the new downstream detection node of the detection node 12. Correspondingly, 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 indication 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.

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

[0137] In another possible implementation, after the second detection node determines that the detection task exceeds the detection task threshold, at least one detection task that exceeds the detection task threshold can be transmitted 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 during the current cycle (that is, the load of the detection node is 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 for selecting the detection node, which is used to indicate that the detection task can be transmitted to the detection node. In response to the received indication message, the second detection node transmits at least one detection task that exceeds the detection task threshold to the detection node for continued execution.

[0138] 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.

[0139] 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.

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

[0141] In the embodiment of the present application, as described above, during the deployment phase, the cloud management platform sets a flow factor for each detection node, which is used to indicate the maximum number of detection nodes that a single detection task flows through. It can be understood that if a detection task still fails to detect its status after being detected by multiple detection nodes, it can be ruled out that the problem is caused by the detection node's own failure.

[0142] 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 execution fails 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. By analogy, 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 can be +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 circulations is performed by the downstream detection node, that is, the detection task received by the second detection node usually has not marked the number of circulations, so the second detection node may not execute S507 but directly execute S508b.

[0143] It should be noted that, in the embodiments of the present application, only the example of marking the number of transfers for the detection task by the downstream detection node is used for explanation. In other embodiments, the detection task may also be marked with the number of transfers by the upstream detection node. 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.

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

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

[0146] In another example, if the second detection node determines that the number of circulation times of the detection task is less than the circulation factor, S508b is executed.

[0147] S508a: The second detection node performs a detection task.

[0148] S509, the second detection node feeds back the detection result to the cloud management platform.

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

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

[0151] In one example, if the second detection node detects the state of the target object, that is, in this example, the first detection node fails to detect the state of the target object, which may be due to the first detection node's own reasons, such as an abnormal 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 state information of the target object. Among them, the identification information of the target object and the state information of the target object are used to indicate that the state 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.

[0152] Exemplarily, the cloud management platform can determine that the state 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, just for example), the cloud management platform can be in the subsequent detection process, at each cycle trigger moment, The detection task is directly sent to the second detection node. Optionally, the cloud management platform can also upgrade the second detection node to a first-level detection node and redeploy the flow channel.

[0153] In another example, if the second detection node fails to detect the state of the target object, it can be determined that the state of the target object is abnormal. For example, it may be due to a device failure of the target object, resulting in the failure of the first detection node and the second detection node to detect the state 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 state of the target object is abnormal. In response to the received detection result, the cloud management platform may display the abnormal state of the target object on the user interface. The user can repair the target object in a timely manner based on the alarm information.

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

[0155] S510, the second detection node feeds back the detection result to the cloud management platform.

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

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

[0158] 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 state of the target object, it can be determined that the state 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 state 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 state 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.

[0159] Exemplarily, the cloud management platform can determine that the state 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 the embodiment of the present application, as described above, the cloud management platform will issue the 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, only 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. 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.

[0160] In another example, if the second detection node fails to detect the state of the target object and determines that the detection task has failed to execute, the second detection node transfers 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 for 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 flow 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 detection nodes on both sides of the flow channel, and indirect flow refers to the flow 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.

[0161] 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 repeat them. Exemplarily, if the cloud management platform detects that the status of at least one detection node is abnormal, the cloud management platform isolates the detection node. In one example, if a first-level detection node is abnormal, the cloud management platform can distribute the detection task originally assigned to the detection node to other detection nodes of the same level in the next cycle, and other detection nodes continue to perform the corresponding detection tasks. The specific distribution method can be based on a hash algorithm, and this application will not repeat them. Exemplarily, the cloud management platform can prompt at least one detection node to be abnormal in the user interface, 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 task originally assigned to the detection node to the detection node in the next cycle.

[0162] In another example, if the status of a detection node at another level is abnormal, the cloud management platform will transfer the flow channel corresponding to the detection node to other detection nodes at the same level, so that no detection tasks will flow to the abnormal detection node in the subsequent cycle. After the user repairs the detection node, he can indicate to the cloud management platform that the detection node has been restored, and the cloud management platform can restore the flow channel corresponding to the detection node.

[0163] Combine the following Figure 4 , the detection method in the embodiment of the present application is described in detail with a specific embodiment. Figure 7 For 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 the user's instructions. Detection task 1 is used to instruct the detection of the state of target 1 (i.e., target object or detected node). Detection task 2 is used to instruct the detection of the state of target 2.

[0164] The cloud management platform sends detection task 1 to detection node 11 and sends 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.

[0165] 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 in detail here.

[0166] In this example, the detection node 11 fails to detect the status of the target 1 and determines that the detection task execution fails. The detection node 11 sends the flow indication information 1 to the distributed message module. The flow indication information 1 includes but is not limited to: the identification information of the detection node 11 and the detection task 1 (i.e., the identification information of the target 1). The distributed message module is based on the flow channel established in the deployment phase (for a detailed description, please refer to Figure 4 ), determine that the downstream detection node corresponding to the detection node 11 is the detection node 21. The distributed message module sends the flow indication information 1 to the detection node 21, which is used to instruct the detection node 21 to perform the detection task 1.

[0167] Exemplarily, the detection node 12 fails to detect the state of the target 2 and determines that the detection task execution fails. The detection node 12 sends the flow indication information 2 to the distributed message module, and the flow indication information 2 includes but is not limited to: the identification information of the detection node 12 and the detection task 2 (i.e., the identification information of the target 1). The distributed message module is based on the flow channel established in the deployment phase (for a detailed description, please refer to Figure 4 ), determine that the downstream detection node corresponding to the detection node 12 is the detection node 21. The distributed message module sends the flow indication information 2 to the detection node 21, which is used to instruct the detection node 21 to perform the detection task 2.

[0168] In response to the received flow indication information 1, the detection node 21 determines that the detection task is transferred from the detection node 1, and the detection object is the target 1. 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. Exemplarily, the detection node 21 detects the state of the target 1. In this example, the detection node 21 detects the state of the target 1 and determines that the detection task is successfully executed. The detection node 21 feeds back the detection result to the cloud management platform, and the detection result includes but is not limited to: flow feedback information 1, identification information of the target 1 and status information of the target 1. Among them, the identification information of the target 1 and the status information of the target 1 are used to indicate that the state of the target 1 is normal. The flow feedback information 1 includes the identification information of the detection node 11 and the identification information of the detection node 21, which is used to indicate that the detection task for the target 1 is transferred from the detection node 11 to the detection node 21 and successfully executed by the detection node 21.

[0169] 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 the 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 did not detect the status of the target 2 and determined that the detection task execution failed. The distributed message module of the detection node 21 sends the flow indication information 3, and 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).

[0170] The distributed message module is based on the flow channel established in the deployment phase (for a detailed description, please refer to Figure 4 ), determine that the downstream detection node corresponding to the detection node 21 is the detection node 31. The distributed message module sends the flow indication information 3 to the detection node 31, which is used to instruct the detection node 31 to perform the detection task 2.

[0171] 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 the 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. The detection node 31 determines that the flow number is equal to the flow factor based on the flow number in the flow indication information 3 (that is, the flow number is 1) and the flow factor, and then the detection node 31 executes S508a. In this example, the detection node 31 did not detect the state of the target 2, and it can be determined that the state of the target 2 is abnormal. The detection node 31 sends the detection result to the cloud management platform, and the detection result includes but is not limited to: the identification information of the target 2 and the state information of the target 2. Among them, the identification information of the target 2 and the state information of the target 2 are used to indicate that the state of the target 2 is abnormal. The cloud management platform can display an alarm message on the user interface to indicate that the state of the target 2 is abnormal, so as to prompt the user to repair the target 2 in time.

[0172] At the triggering moment of the second cycle, the cloud management platform sends detection task 1 to detection node 11. Each detection node still follows Figure 7 The process shown is executed. That is, the detection node 11 fails to execute the detection task 1, and transfers the detection task 1 to the detection node 21. The detection node 21 executes the detection task 1 successfully, and feeds back the detection result to the cloud management platform, wherein the detection result includes the flow feedback information. The cloud management platform counts the number of feedback information corresponding to the detection task 2 received 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 the detection task 2 received, the cloud management platform can determine that the number of feedback information corresponding to the 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 the detection task 1 to the detection node 21.

[0173] In this example, since the state of target 2 in the previous cycle is abnormal, the cloud management platform can suspend the issuance of the detection task corresponding to target 2. After eliminating the fault of target 2, the user can trigger the cloud management platform to continue to detect target 2. Then, the cloud management platform can send detection task 2 to detection node 12 in the next cycle. In this example, detection node 12 detects the state of target 2, determines that the detection task is successfully executed, and can feedback the detection result to the cloud management platform to indicate that the state of target 2 is normal.

[0174] An embodiment of the present application provides a cloud management platform, which 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 equipped with at least one cloud data center, and at least one detection node is set on the cloud data center. Figure 8The schematic diagram of the structure of the cloud management platform 800 is shown as an example. 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 state 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 then sends the first detection task to the second detection node.

[0175] 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.

[0176] 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.

[0177] In a possible implementation, the cloud management platform 800 also includes an indication information receiving module 804. The detection task sending module 801 is also used to send a second detection task to the first detection node, wherein the second detection task is used to indicate the state of the second target object in the detection target object; the indication information receiving module 804 is 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 803 is also used to send a 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.

[0178] 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.

[0179] 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 has not detected the state of the target object, thereby determining that the target object is abnormal.

[0180] 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, 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.

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

[0182] Among them, the above modules can all be implemented by software, or can be implemented 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. Further, 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. Further, 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 a data center or multiple data centers with similar geographical locations. Among them, usually a region may include multiple AZs.

[0183] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0184] As an example of a hardware functional unit, the module may include at least one computing device, such as a server, etc. Alternatively, the module may also be a device implemented by 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.

[0185] 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 computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0186] It should be noted that, in other embodiments, the above modules can be used to execute Figure 5 To realize the full functions of the cloud management platform, follow the corresponding steps in

[0187] The present application also provides a computing device 900. Fig. 9 As shown, the computing device 900 includes: a bus 902, a processor 904, a memory 906, and a communication interface 909. The processor 904, the memory 906, and the communication interface 909 communicate with each other through the bus 902. The computing device 900 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 900.

[0188] The bus 902 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 The bus 902 may include a path for transmitting information between various components of the computing device 900 (eg, the memory 906, the processor 904, and the communication interface 909).

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

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

[0191] The memory 906 stores executable program codes, and the processor 904 executes the executable program codes to respectively implement the functions of the aforementioned detection task sending module, detection result receiving module, indication information sending module, indication information receiving module, state detection module, and flow feedback information receiving module, thereby implementing Figure 5 That is, the memory 906 stores instructions for executing the measurement method.

[0192] 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.

[0193] The embodiment of the present application also provides 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 smart phone.

[0194] like Fig.10 As shown, the computing device cluster includes at least one computing device 1000. The memory 1006 in one or more computing devices 1000 in the computing device cluster may store the same Fig.10 Instructions for the measurement method shown.

[0195] 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 may jointly execute instructions for executing the measurement method.

[0196] It should be noted that the memory 1006 in different computing devices 1000 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the cloud management platform device. That is, the instructions stored in the memory 1006 in different computing devices 1000 can implement the functions of one or more modules among the detection task sending module, the detection result receiving module, the indication information sending module, the indication information receiving module, the state detection module and the flow feedback information receiving module.

[0197] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.11 A possible implementation is shown. Fig.11 As shown, two computing devices 1100A and 1100B are connected via a network. Specifically, the network is connected via a 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 the detection task sending module and the detection result receiving module. At the same time, the memory 1106 in the computing device 1100B stores instructions for executing the functions of the indication information sending module, the indication information receiving module, the state detection module, and the flow feedback information receiving module.

[0198] It should be understood that Fig.11 The functions of the computing device 1100A shown in FIG. 1100A may also be completed by multiple computing devices 1100. Similarly, the functions of the computing device 1100B may also be completed by multiple computing devices 1100.

[0199] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig. 9 and Fig.11 The connection mode of the computing device cluster is different in that the memory 1106 in one or more computing devices 1100 in the computing device cluster may store the same instructions for executing the measurement method.

[0200] 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 may jointly execute instructions for executing the measurement method.

[0201] It should be noted that the memory 1106 in different computing devices 1100 in the computing device cluster may store different instructions for executing some functions of the cloud management platform. That is, the instructions stored in the memory 1106 in different computing devices 1100 may implement the functions of one or more devices in the cloud management platform.

[0202] The present application also provides a computer program product comprising instructions. The computer program product may be a software or 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 executes the measurement method in the above embodiment.

[0203] The present application embodiment 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 tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to perform the measurement method in the above embodiment.

[0204] 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 cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the 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 time period, 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

Cited By

  • Domain name risk detection method and device, computer equipment and storage medium

    CN119232509A