CN117806978B - Cluster abnormity testing method and device, electronic equipment and storage medium - Google Patents

Cluster abnormity testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117806978B
CN117806978B CN202410231765.XA CN202410231765A CN117806978B CN 117806978 B CN117806978 B CN 117806978B CN 202410231765 A CN202410231765 A CN 202410231765A CN 117806978 B CN117806978 B CN 117806978B
Authority
CN
China
Prior art keywords
node
target
tested
cluster
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410231765.XA
Other languages
Chinese (zh)
Other versions
CN117806978A (en
Inventor
李首正
李志�
黄小华
吴蔡锋
夏育萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202410231765.XA priority Critical patent/CN117806978B/en
Publication of CN117806978A publication Critical patent/CN117806978A/en
Application granted granted Critical
Publication of CN117806978B publication Critical patent/CN117806978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure relates to a cluster anomaly testing method, a cluster anomaly testing device, electronic equipment and a storage medium, and relates to the technical field of computers, comprising the following steps: under the condition that a cluster node acquisition instruction is received, sending a node address acquisition instruction to a target server based on target cluster identification information so as to enable the target server to return target service cluster information; acquiring a target service test code and a target result verification code based on target node identification information of each target node; sending a corresponding node service test request to each node to be tested based on the target service test code and the target node address information of each node to be tested, so that each node to be tested returns a corresponding node service execution result; based on the target result verification code of each node to be tested and the corresponding node service execution result, carrying out result verification processing on each node to be tested to obtain a target verification result; and generating a cluster anomaly test result based on the target verification result corresponding to each node to be tested.

Description

Cluster abnormity testing method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a cluster anomaly testing method, a cluster anomaly testing device, electronic equipment and a storage medium.
Background
Service clusters are a group of mutually independent computers interconnected through a high-speed network that form a group and are managed in a single system mode. A service cluster, whether it is a CDN (Content Delivery Network ) or a storage service, runs on-line for a long period of time, carries a huge number of access requests every day, and there are always abnormal nodes that cannot provide normal processing in line with expectations. When the abnormal state of the abnormal node needs to be accessed by the client side and an abnormal request appears, the abnormal state is recorded by a detection system and reported to a detection index, and the current network operation and maintenance personnel can discover and process the current network problem and fault. At present, an abnormal testing party can write a test script aiming at a node to be tested, and after the test script is executed, the execution result of the test script is checked. However, in the method, the abnormal testing party is required to manually input the information of the nodes to be tested, node omission is easy to occur, and the testing efficiency is low.
Disclosure of Invention
In view of the above technical problems, the present disclosure provides a cluster anomaly testing method, a cluster anomaly testing device, an electronic device, and a storage medium.
According to an aspect of the disclosed embodiments, there is provided a cluster anomaly testing method, including:
Under the condition that a cluster node acquisition instruction aiming at a target service cluster is received, sending a node address acquisition instruction to a target server based on target cluster identification information in the cluster node acquisition instruction so as to enable the target server to return target service cluster information corresponding to the target service cluster, wherein the target service cluster information comprises target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information of each target node; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
Acquiring respective target service test codes of a plurality of nodes to be tested corresponding to the target service cluster and respective target result verification codes of the plurality of nodes to be tested based on the target node identification information of each target node;
Based on the target service test code of each node to be tested and the target node address information of each node to be tested, sending a node service test request corresponding to each node to be tested, so that each node to be tested returns a node service execution result corresponding to each node to be tested based on the node service test request;
Based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, carrying out result verification processing on each node to be tested to obtain a target verification result corresponding to each node to be tested;
And generating a cluster abnormity test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested.
According to another aspect of the embodiments of the present disclosure, there is provided another cluster anomaly testing method, including:
acquiring target cluster identification information corresponding to a target service cluster;
Transmitting a cluster node acquisition instruction for the target service cluster to a test server based on the target cluster identification information, so that the test server transmits a node address acquisition instruction to a target server based on the target cluster identification information, and returns target service cluster information under the condition that target service cluster information corresponding to the target service cluster returned by the target server is received, wherein the target service cluster information comprises target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information corresponding to each of the target nodes; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
Acquiring respective target service test codes of a plurality of nodes to be tested corresponding to the target service cluster and respective target result verification codes of the plurality of nodes to be tested based on the target node identification information of each target node;
the method comprises the steps of sending respective target service test codes of a plurality of nodes to be tested and respective target result verification codes of the plurality of nodes to be tested to a test server, enabling the test server to send a node service test request corresponding to each node to be tested based on the target service test codes of each node to be tested and target node address information of each node to be tested, and under the condition that a node service execution result corresponding to each node to be tested, returned by each node to be tested based on the node service test request, is received, performing result verification processing on each node to be tested based on the target result verification codes of each node to be tested and the node service execution result corresponding to each node to be tested, obtaining a target verification result corresponding to each node to be tested, and generating a cluster abnormal test result corresponding to a target service cluster based on the target verification result corresponding to each node to be tested.
According to another aspect of the embodiments of the present disclosure, there is provided a cluster anomaly testing device, including:
The first instruction sending module is used for sending a node address acquisition instruction to a target server based on target cluster identification information in the cluster node acquisition instruction under the condition that a cluster node acquisition instruction aiming at a target service cluster is received, so that the target server returns target service cluster information corresponding to the target service cluster, wherein the target service cluster information comprises target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information of each target node; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
The first code acquisition module is used for acquiring the target service test codes of the multiple nodes to be tested corresponding to the target service cluster and the target result verification codes of the multiple nodes to be tested respectively based on the target node identification information of each target node;
The first request sending module is used for sending a node service test request corresponding to each node to be tested based on a target service test code of each node to be tested and target node address information of each node to be tested, so that each node to be tested returns a node service execution result corresponding to each node to be tested based on the node service test request;
The result verification module is used for carrying out result verification processing on each node to be tested based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, so as to obtain the target verification result corresponding to each node to be tested;
And the test result generation module is used for generating a cluster abnormity test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested.
Optionally, the first instruction sending module includes:
the current data acquisition module is used for sending the node address acquisition instruction to the target server based on the target cluster identification information so that the target server acquires the target service cluster information from the current updated cluster data based on the target cluster identification information and returns the target service cluster information; the current updating cluster data is obtained by updating based on the current cluster configuration information corresponding to the plurality of service clusters.
Optionally, the apparatus further includes:
The abnormal node determining module is used for determining at least one abnormal service node corresponding to at least one target verification result under the condition that the at least one target verification result is detected to indicate that the corresponding node to be tested is abnormal;
the self-healing request sending module is used for sending a node self-healing test request corresponding to each abnormal service node based on a target service test code corresponding to each abnormal service node and target node address information corresponding to each abnormal service node, so that each abnormal service node returns a request execution result corresponding to each abnormal service node based on the node self-healing test request;
The self-healing verification module is used for carrying out result verification processing on each abnormal service node based on the request execution result corresponding to each abnormal service node and the target result verification code corresponding to each abnormal service node to obtain a self-healing verification result corresponding to each abnormal service node; the self-healing verification result corresponding to each abnormal service node represents the abnormal self-healing condition of each abnormal service node;
correspondingly, the test result generation module comprises:
The first result generating module is used for generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested and the self-healing verification result corresponding to each anomaly service node.
Optionally, the apparatus further includes:
The abnormal attribution analysis module is used for inputting target verification results corresponding to the plurality of nodes to be tested into a preset abnormal attribution model to perform abnormal attribution analysis, so as to obtain abnormal attribution results corresponding to the target service cluster;
correspondingly, the test result generation module comprises:
and the second result generation module is used for generating the cluster abnormity test result based on the target verification results corresponding to the plurality of nodes to be tested and the abnormity attribution results corresponding to the target service cluster.
Optionally, the first instruction sending module includes:
The certificate verification processing module is used for performing certificate verification processing on the cluster detection certificate under the condition that a cluster node acquisition instruction aiming at the target service cluster is received, so as to obtain a certificate verification result;
And the second instruction sending module is used for sending the node address acquisition instruction to the target server based on the target cluster identification information under the condition that the certificate verification result indicates that the cluster detection certificate passes verification.
According to another aspect of the embodiments of the present disclosure, there is provided another cluster anomaly testing device, including:
the cluster identifier acquisition module is used for acquiring target cluster identifier information corresponding to the target service cluster;
The node address acquisition module is used for sending a cluster node acquisition instruction aiming at the target service cluster to the test server based on the target cluster identification information, so that the test server sends the node address acquisition instruction to the target server based on the target cluster identification information, and returns the target service cluster information under the condition that target service cluster information corresponding to the target service cluster returned by the target server is received, wherein the target service cluster information comprises target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information corresponding to each target node; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
The second code acquisition module is used for acquiring the target service test codes of the multiple nodes to be tested corresponding to the target service cluster and the target result verification codes of the multiple nodes to be tested respectively based on the target node identification information of each target node;
The code sending module is configured to send respective target service test codes of the plurality of nodes to be tested and respective target result verification codes of the plurality of nodes to be tested to the test server, so that the test server sends a node service test request corresponding to each node to be tested based on the target service test codes of each node to be tested and the target node address information of each node to be tested, and generates a cluster abnormal test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested when receiving a node service execution result corresponding to each node to be tested, returned by each node to be tested based on the node service test request, based on the target result verification codes of each node to be tested and the node service execution result corresponding to each node to be tested, and performs result verification processing on each node to be tested to obtain the target verification result corresponding to each node to be tested.
Optionally, the second code obtaining module includes:
The first display module is used for displaying a node configuration page corresponding to the target service cluster based on the target node identification information of each target node;
The first information acquisition module is used for responding to a test range selection instruction triggered based on a test range selection control to acquire node identification information corresponding to the plurality of nodes to be tested;
the second information acquisition module is used for responding to a test code input instruction triggered based on a test code input control corresponding to each node to be tested, and acquiring a target service test code of each node to be tested;
And the third information acquisition module is used for responding to the verification code input instruction triggered based on the verification code input control corresponding to each node to be tested and acquiring the target result verification code of each node to be tested.
Optionally, the test code input control includes a first interface selection control and a test configuration input control; the second information acquisition module includes:
the first interface acquisition module is used for responding to a first interface selection instruction triggered based on a first interface selection control corresponding to each node to be tested, and acquiring first selection interface information corresponding to each node to be tested;
The first configuration acquisition module is used for responding to a test configuration input instruction triggered based on a test configuration input control corresponding to each node to be tested, and acquiring test configuration information corresponding to each node to be tested;
the first code generation module is used for generating a target service test code of each node to be tested based on the first selection interface information corresponding to each node to be tested and the test configuration information corresponding to each node to be tested.
Optionally, the test code input control includes a second interface selection control and a verification configuration input control; the third information acquisition module includes:
The second interface acquisition module is used for responding to a second interface selection instruction triggered based on a second interface selection control corresponding to each node to be tested, and acquiring second selection interface information corresponding to each node to be tested;
The second configuration acquisition module is used for responding to the verification configuration input instruction triggered based on the verification configuration input control corresponding to each node to be tested and acquiring the verification configuration information corresponding to each node to be tested;
And the second code generation module is used for generating a target result verification code of each node to be tested based on the second selection interface information corresponding to each node to be tested and the verification configuration information corresponding to each node to be tested.
Optionally, the apparatus further includes:
and the second display module is used for displaying the cluster abnormal test result under the condition that the cluster abnormal test result returned by the test server is received.
According to another aspect of the embodiments of the present disclosure, there is provided an electronic device including: a processor; a memory for storing the processor-executable instructions; the processor is configured to execute the instructions to implement the cluster anomaly testing method.
According to another aspect of the disclosed embodiments, a computer-readable storage medium is provided, which when executed by a processor of an electronic device, causes the electronic device to perform the above-described cluster anomaly testing method.
According to another aspect of the disclosed embodiments, there is provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the above-described cluster anomaly testing method.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
Under the condition that a cluster node acquisition instruction aiming at a target service cluster is received, a node address acquisition instruction is sent to a target server based on target cluster identification information in the cluster node acquisition instruction, so that the target server returns target service cluster information corresponding to the target service cluster, wherein the target server is used for updating service cluster information corresponding to each of a plurality of service clusters, thereby realizing efficient and accurate acquisition of the target service cluster information, avoiding the omission problem of part of nodes in the cluster, further improving the accuracy and efficiency of cluster anomaly test, acquiring target service test codes of each of a plurality of nodes to be tested and target result verification codes of each of a plurality of nodes to be tested corresponding to the target service cluster by combining the target node identification information of each target node, facilitating the realization of multiplexing of logic codes among the nodes in the cluster, the method can also meet the requirement of the custom test of complex scenes, further improve the code configuration efficiency, then, the target service test codes of each node to be tested and the target node address information of each node to be tested are combined, the node service test request corresponding to each node to be tested is sent to each node to be tested, so that each node to be tested returns the node service execution result corresponding to each node to be tested based on the node service test request, the result verification processing is carried out on each node to be tested based on the target result verification codes of each node to be tested and the node service execution result corresponding to each node to be tested, the target verification result corresponding to each node to be tested is obtained, the service test of each node to be tested in the cluster can be realized, then, the target verification result corresponding to each node to be tested is combined, the cluster abnormity test result corresponding to the target service cluster is generated, so that the cluster abnormity test for the target service cluster can be realized, the cluster abnormity test is more comprehensive, and the cluster abnormity can be conveniently and rapidly and accurately positioned, thereby improving the efficiency and the accuracy of the cluster abnormity test, and further ensuring the stable operation of the service cluster more effectively.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic diagram of an application system shown in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating a cluster anomaly testing method, according to an example embodiment;
FIG. 3 is a flowchart illustrating another cluster anomaly testing method, according to an example embodiment;
FIG. 4 is a diagram of a presentation page of a second interface to be selected, according to an example embodiment;
FIG. 5 is a schematic illustration of a presentation of a cluster anomaly test result, according to an example embodiment;
FIG. 6 is a diagram illustrating a presentation of detailed description information of a cluster anomaly test result, according to an example embodiment;
FIG. 7 is a diagram showing detailed description information of another cluster anomaly test result, according to an example embodiment;
FIG. 8 is an interactive schematic diagram illustrating a cluster anomaly testing method, according to an example embodiment;
FIG. 9 is a block diagram of a cluster anomaly testing device, according to an example embodiment;
FIG. 10 is a block diagram of another cluster anomaly testing device, shown in accordance with one illustrative embodiment;
FIG. 11 is a block diagram of an electronic device for cluster anomaly testing of a target service cluster, according to an example embodiment;
FIG. 12 is a block diagram of another electronic device for cluster anomaly testing of a target service cluster, according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the application will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In addition, numerous specific details are set forth in the following description in order to provide a better illustration of the application. It will be understood by those skilled in the art that the present application may be practiced without some of these specific details. In some instances, well known methods, procedures, components, and circuits have not been described in detail so as not to obscure the present application.
The system according to the embodiment of the present invention may be a distributed system formed by connecting a client and a plurality of nodes (any form of computing device in an access network, such as a server and a user terminal) through a network communication. A distributed system may refer to a loosely coupled system of processors interconnected by communication lines. With the rapid development of the internet, distributed systems are widely used in various fields. By way of example, the above-described distributed system may be comprised of a plurality of servers, which may be distributed across different geographic locations; such a framework can provide better performance and scalability, and provide better fault tolerance and user experience.
Cloud computing (closed computing) refers to the delivery and usage mode of an IT infrastructure, meaning that required resources are obtained in an on-demand, easily scalable manner through a network; generalized cloud computing refers to the delivery and usage patterns of services, meaning that the required services are obtained in an on-demand, easily scalable manner over a network. Such services may be IT, software, internet related, or other services. Cloud Computing is a product of fusion of traditional computer and network technology developments such as Grid Computing (Grid Computing), distributed Computing (DistributedComputing), parallel Computing (Parallel Computing), utility Computing (Utility Computing), network storage (Network Storage Technologies), virtualization (Virtualization), load balancing (Load Balance), and the like.
With the development of the internet, real-time data flow and diversification of connected devices, and the promotion of demands of search services, social networks, mobile commerce, open collaboration and the like, cloud computing is rapidly developed. Unlike the previous parallel distributed computing, the generation of cloud computing will promote the revolutionary transformation of the whole internet mode and enterprise management mode in concept.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application system according to an exemplary embodiment. The application system can be used for the cluster anomaly testing method. The application system may include at least a server 01, a terminal 02 and a server 03.
In the embodiment of the present application, the server 01 may refer to a test server; the test server can be used for carrying out cluster anomaly test on the target service cluster. Specifically, the server 01 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligence platforms, and the like.
In the embodiment of the present application, the terminal 02 may refer to a test terminal; the test terminal can be used for generating target cluster identification information, target service test codes and target result verification codes. The terminal 02 may include a smart phone, a desktop computer, a tablet computer, a notebook computer, a smart speaker, an in-vehicle terminal, a digital assistant, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, an intelligent wearable device, or other type of physical device, or may include software running in the physical device, such as an application program, or the like. The operating system running on the terminal 02 in the embodiment of the present application may include, but is not limited to, an android system, a GNU/Linux system, a windows system, and the like.
In the embodiment of the present application, the server 03 may refer to a target server; the target server may be configured to update service cluster information corresponding to each of the plurality of service clusters. Specifically, the server 03 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligence platforms, and the like.
In the embodiment of the present disclosure, the terminal 02, the server 01, and the server 03 may be directly or indirectly connected through wired or wireless communication, which is not limited to the present disclosure.
It should be noted that, a possible sequence of steps is shown in the drawings, and the order is not necessarily strictly required. Some steps may be performed in parallel without mutual dependency.
Specifically, fig. 2 is a flow chart illustrating a cluster anomaly testing method according to an example embodiment. As shown in fig. 2, the cluster anomaly testing method may be used in an electronic device such as a test server, and specifically may include the following steps:
s201: and under the condition that a cluster node acquisition instruction aiming at the target service cluster is received, sending a node address acquisition instruction to a target server based on target cluster identification information in the cluster node acquisition instruction so as to enable the target server to return target service cluster information corresponding to the target service cluster.
In a specific embodiment, the target service cluster may refer to a service cluster that needs to be tested. The target service cluster may comprise a plurality of target nodes. Any of the target nodes may be used to provide corresponding node services.
In a specific embodiment, the cluster node acquiring instruction may be used to instruct the target server to return the target service cluster information corresponding to the target service cluster. The cluster node acquisition instructions may include target service cluster information. The target service cluster information may include target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information of each of the target nodes. The target node identification information of any target node can be used for identifying any target node so as to distinguish any target node from other target nodes. The destination node address information of any destination node may characterize the node address of any destination node. The destination node address information of the destination node may be used to implement communication with any of the destination nodes.
In a specific embodiment, the target server may be configured to update service cluster information corresponding to each of the plurality of service clusters.
In a specific embodiment, the step S201 may include:
And sending a node address acquisition instruction to the target server based on the target cluster identification information, so that the target server acquires target service cluster information from the current updated cluster data based on the target cluster identification information, and returns the target service cluster information.
In a specific embodiment, the current updated cluster data may be updated based on current cluster configuration information corresponding to a plurality of service clusters. The current update cluster data may include service cluster information corresponding to each of the plurality of service clusters. Specifically, the cluster user side can execute cluster configuration change operation for the target service cluster through the cluster user terminal, and generate current cluster configuration information of the target service cluster so as to update nodes contained in the corresponding service cluster; correspondingly, the cluster user terminal can send the current cluster configuration information to the target server. And under the condition that the target server receives the current cluster configuration information, the service cluster information corresponding to the target service cluster can be updated based on the current cluster configuration information, and updated current updated cluster data can be obtained. It will be appreciated that the target server may implement dynamic maintenance of the current updated cluster data.
In a specific embodiment, the target server may search the target cluster identification information from the current updated cluster data when receiving the node address acquisition instruction sent by the test server; under the condition that the target cluster identification information is found, service cluster information corresponding to the found target cluster identification information can be used as target service cluster information; accordingly, the target service cluster information may be sent to the test server.
In a particular embodiment, the cluster node acquisition instruction may include cluster detection credentials. The cluster detection voucher can be used for verifying the identity and the corresponding authority of the test terminal.
In a specific embodiment, the step S201 may include:
under the condition that a cluster node acquisition instruction aiming at a target service cluster is received, carrying out credential verification processing on the cluster detection credentials to obtain a credential verification result;
and sending a node address acquisition instruction to the target server based on the target cluster identification information under the condition that the credential verification result indicates that the cluster detection credential verification is passed.
In a particular embodiment, the credential verification result may be used to indicate whether the cluster detects that the credential is verified. The credential verification results may include a first credential verification result and a second credential verification result. The first credential verification result may be used to indicate that the cluster detection credential verification passes. The second credential verification result may be used to indicate that the cluster detection credential verification described above fails.
In a specific embodiment, under the condition that a cluster node acquisition instruction of a target service cluster is received, the detection permission range corresponding to the test terminal can be acquired based on the test terminal identity information in the cluster node acquisition instruction; then, the cluster detection credentials and the detection authority range can be subjected to matching processing to obtain a target matching result; under the condition that the target matching result indicates that the cluster detection certificate belongs to the detection authority range, the certificate verification result can be determined to be a first certificate verification result; and determining that the certificate verification result is a second certificate verification result under the condition that the target matching result indicates that the cluster detection certificate does not belong to the detection authority range.
In a specific embodiment, in a case that the credential verification result is the first credential verification result, the node address obtaining instruction may be sent to the target server based on the target cluster identification information. Correspondingly, if the credential verification result is a second credential verification result, the second credential verification result may be returned to the test terminal.
In the above embodiment, based on the target cluster identification information, a node address acquisition instruction is sent to the target server, so that the target server acquires target service cluster information from the current updated cluster data based on the target cluster identification information, and returns the target service cluster information, thereby realizing efficient and accurate acquisition of the target service cluster information, avoiding the problem of omission of part of nodes in the cluster, and further improving the accuracy and efficiency of the cluster anomaly test.
S203: and acquiring respective target service test codes of a plurality of nodes to be tested corresponding to the target service cluster and respective target result verification codes of the plurality of nodes to be tested based on the target node identification information of each target node.
In a specific embodiment, the plurality of nodes to be tested corresponding to the target service cluster may refer to nodes to be tested in the plurality of target nodes corresponding to the target service cluster. The plurality of nodes to be tested may include a plurality of target nodes. It may be understood that the plurality of nodes to be tested corresponding to the target service cluster may be all nodes in the target service cluster, or may be part of nodes in the target service cluster.
In a specific embodiment, the target service test code of any node to be tested may be used to generate a service request of the node to be tested for the node to be tested, so as to receive a node service execution result returned by the node to be tested based on the service request.
In a specific embodiment, the target result verification code of any node to be tested may be used to perform result verification processing on the node service execution result of any node to be tested.
In a specific embodiment, the test server may generate a code configuration instruction based on the target node identification information of the plurality of target nodes, and send the code configuration instruction carrying the target node identification information of the plurality of target nodes to the test terminal, so that the test terminal configures to obtain the target service test codes of the plurality of nodes to be tested and the target result verification codes of the plurality of nodes to be tested based on the target node identification information of the plurality of target nodes, and sends the target service test codes of the plurality of nodes to be tested and the target result verification codes of the plurality of nodes to be tested to the test server. Correspondingly, the test server can receive the respective target service test codes of the plurality of nodes to be tested and the respective target result verification codes of the plurality of nodes to be tested, which are sent by the test terminal.
S205: and sending a node service test request corresponding to each node to be tested based on the target service test code of each node to be tested and the target node address information of each node to be tested, so that each node to be tested returns a node service execution result corresponding to each node to be tested based on the node service test request.
In a specific embodiment, the node service test request corresponding to any node to be tested may be used to request the node to be tested to execute the corresponding service operation.
In a specific embodiment, the node service execution result corresponding to any node to be tested may refer to a result of a business operation executed by any node to be tested based on the corresponding node service test request.
In a specific embodiment, the test server may execute the target service test code of each node to be tested based on the target node address information of each node to be tested, so as to send a corresponding node service test request to each node to be tested. And under the condition that any node to be tested receives the node service test request corresponding to any node to be tested, executing the business operation corresponding to the node service test request corresponding to any node to be tested to obtain the node service execution result corresponding to any node to be tested. Correspondingly, the test server may receive the node service execution result corresponding to each node to be tested returned by each node to be tested.
S207: and carrying out result verification processing on each node to be tested based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, and obtaining the target verification result corresponding to each node to be tested.
In a specific embodiment, the target verification result corresponding to any node to be tested may be used to characterize whether the node service execution result corresponding to any node to be tested matches the reference service execution result corresponding to any node to be tested. The target verification result corresponding to any node to be tested may include a first service verification result and a second service verification result. The first service verification result may be used to characterize matching between the corresponding node service execution result and the corresponding reference service execution result. The second service verification result may be used to characterize a mismatch between the corresponding node service execution result and the corresponding reference service execution result. The reference service execution result corresponding to any node to be tested may refer to a result expected to be returned by any node to be tested.
In a specific embodiment, the test server may execute the target result verification code of each node to be tested, so as to perform verification processing on the node service execution result corresponding to each node to be tested, and obtain the target verification result corresponding to each node to be tested. Specifically, the test server may perform matching processing on the node service execution result corresponding to any node to be tested and the reference service execution result corresponding to any node to be tested, so as to obtain the target verification result corresponding to any node to be tested. It can be understood that different business logics exist for different nodes, and verification logics of corresponding node service execution results are different, so that efficient and accurate verification of the node service execution results can be realized through the target result verification codes.
S209: and generating a cluster abnormity test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested.
In a specific embodiment, the cluster anomaly test result corresponding to the target service cluster may be used to characterize the service test condition of the nodes in the target service cluster.
In a specific embodiment, the test server may generate a cluster anomaly test result corresponding to the target service cluster based on target verification results corresponding to the plurality of nodes to be tested. Then, the test server may return the cluster anomaly test result to the test terminal. Correspondingly, the test terminal can display the cluster abnormity test result under the condition of receiving the cluster abnormity test result.
In a specific embodiment, the test server may send respective corresponding node service test requests to a plurality of nodes to be tested corresponding to the target service cluster at preset intervals to implement task polling in at least one preset period. Specifically, the test server may obtain target verification results corresponding to a plurality of nodes to be tested when the current time reaches the current period, and generate a cluster anomaly test result corresponding to task polling in the current period. Correspondingly, a cluster abnormity test result corresponding to each of a plurality of preset periods can be obtained through repeated task polling.
In a specific embodiment, after the step S207, the method may further include:
Determining at least one abnormal service node corresponding to the at least one target verification result under the condition that the at least one target verification result is detected to indicate that the corresponding node to be tested is abnormal;
Based on the target service test codes corresponding to each abnormal service node and the target node address information corresponding to each abnormal service node, sending a node self-healing test request corresponding to each abnormal service node, so that each abnormal service node returns a request execution result corresponding to each abnormal service node based on the node self-healing test request;
Based on the request execution result corresponding to each abnormal service node and the target result verification code corresponding to each abnormal service node, performing result verification processing on each abnormal service node to obtain a self-healing verification result corresponding to each abnormal service node;
Accordingly, the step S209 may include:
and generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested and the self-healing verification result corresponding to each anomaly service node.
In a specific embodiment, the at least one abnormal service node may refer to a node having an abnormality in a plurality of nodes to be tested corresponding to the target service cluster.
In a specific embodiment, when there is a second service verification result in the target verification results corresponding to the plurality of nodes to be tested, at least one abnormal service node corresponding to the target service cluster may be determined based on the second service verification result in the target verification results corresponding to the plurality of nodes to be tested. Specifically, the node to be tested corresponding to each second service verification result can be used as an abnormal service node.
In a specific embodiment, the node self-healing test request corresponding to any abnormal service node may be used to test the self-healing performance of any abnormal service node. Specifically, the node service requested by the node self-healing test request corresponding to any abnormal service node may be the same as the node service requested by the node service test request corresponding to any abnormal service node.
In a specific embodiment, the request execution result corresponding to any abnormal service node may refer to a result obtained by the any abnormal service node executing the corresponding service operation based on the corresponding node self-healing test request.
In a specific embodiment, a corresponding node self-healing test request may be sent to any abnormal service node based on a target service test code corresponding to any abnormal service node and target node address information corresponding to any abnormal service node, so that any abnormal service node executes a corresponding service operation, and a corresponding request execution result is returned. Specifically, under the condition that the abnormal service node receives the corresponding node self-healing test request, the preset service operation corresponding to the node self-healing test request can be executed to obtain a request execution result, and correspondingly, the abnormal service node can return the request execution result to the test server. Further, the request execution result may be the same execution result as the node service execution result corresponding to any one of the abnormal service nodes, or may be an execution result different from the node service execution result corresponding to any one of the abnormal service nodes. It can be appreciated that, in the case that the request execution result is the same as the corresponding node service execution result, it may be determined that the abnormal service node corresponding to the request execution result is not self-healing.
In a specific embodiment, the self-healing verification result corresponding to each abnormal service node may represent an abnormal self-healing condition of each abnormal service node. The self-healing verification result corresponding to any abnormal service node may include a first self-healing verification result and a second self-healing verification result. The first self-healing verification result may represent that the corresponding abnormal service node has self-healed. The second self-healing verification result may characterize that the corresponding abnormal service node is not self-healed.
In a specific embodiment, the test server may perform, by executing the target result verification code corresponding to each abnormal service node, result verification processing on each abnormal service node based on the request execution result corresponding to each abnormal service node and the result verification logic corresponding to each abnormal service node, to obtain a self-healing verification result corresponding to each abnormal service node.
In the above embodiment, when it is detected that at least one target verification result indicates that an abnormality exists in a corresponding node to be tested, at least one abnormal service node corresponding to the at least one target verification result is determined, so that determination of the abnormal service node in the target service cluster can be achieved, then, a self-healing test request of a node corresponding to each abnormal service node is sent to each abnormal service node in combination with a target service test code corresponding to each abnormal service node and target node address information corresponding to each abnormal service node, so that each abnormal service node returns a request execution result corresponding to each abnormal service node based on the node self-healing test request, and based on the request execution result corresponding to each abnormal service node and a target result verification code corresponding to each abnormal service node, result verification processing is performed on each abnormal service node to obtain a self-healing verification result corresponding to each abnormal service node, so that testing of self-healing performance of the abnormal service node in the target service cluster can be achieved, and then, a target service cluster corresponding to the target service cluster is generated based on the target verification result corresponding to each abnormal service node to be tested and the target verification result corresponding to each abnormal service node, so that the target cluster can be tested and the target service cluster can have better readable results.
In a specific embodiment, after the step S207, the method may further include:
Inputting target verification results corresponding to a plurality of nodes to be tested into a preset abnormal attribution model to perform abnormal attribution analysis, and obtaining abnormal attribution results corresponding to a target service cluster;
Accordingly, the step S209 may include:
and generating a cluster abnormity test result based on the target verification results corresponding to the plurality of nodes to be tested and the abnormity attribution results corresponding to the target service clusters.
In one particular embodiment, the anomaly attribution result may be used to indicate a predicted cause of anomaly for the target service cluster.
In a specific embodiment, the preset anomaly attribution model may be a pre-trained natural language processing model. Alternatively, the preset anomaly attribution model may comprise ChatGPT (CHAT GENERATIVE PRE-trained Transformer, chat generation pre-training transducer) or BERT (Bidirectional Encoder Representation from Transformers, bi-directional coded representation) models, or the like. Specifically, the preset language processing model may be trained based on a preset sample training set, so as to obtain the preset abnormal attribution model. The preset sample training set may include sample verification result sets corresponding to a plurality of sample clusters and label attribution results corresponding to each sample cluster; the sample verification result set corresponding to any one sample cluster may include the sample verification results of each of the plurality of sample nodes corresponding to any one sample cluster.
In the above embodiment, the target verification results corresponding to the plurality of nodes to be tested are input to the preset exception attribution model for exception attribution analysis, so as to obtain the exception attribution result corresponding to the target service cluster, so that the exception attribution analysis of the target service cluster can be realized, and then the cluster exception test result is generated by combining the target verification results corresponding to the plurality of nodes to be tested and the exception attribution result corresponding to the target service cluster, so that the diversity and the readability of the cluster exception test result of the target service cluster can be improved.
In a specific embodiment, the test server may generate the clustered exception test result based on the target verification results corresponding to the plurality of nodes to be tested, the self-healing verification result corresponding to each exception service node, and the exception attribution result corresponding to the target service cluster. Then, the test server may return the cluster anomaly test result to the test terminal. Correspondingly, the test terminal can display the cluster abnormity test result under the condition of receiving the cluster abnormity test result.
In the above embodiment, under the condition that an instruction for acquiring cluster nodes of a target service cluster is received, a node address acquisition instruction is sent to a target server based on target cluster identification information in the instruction acquired by the cluster nodes, so that the target server returns target service cluster information corresponding to the target service cluster, wherein the target server is used for updating service cluster information corresponding to each of a plurality of service clusters, efficient and accurate acquisition of the target service cluster information can be achieved, missing problems of partial nodes in the cluster can be avoided, further accuracy and efficiency of cluster abnormal testing can be improved, and then target service test codes corresponding to a plurality of nodes to be tested and target result verification codes corresponding to a plurality of nodes to be tested in the cluster are acquired based on the target node identification information of each target node, multiplexing of logic codes among the nodes in the cluster can be conveniently achieved, further the code configuration efficiency can be improved, and then the target service test codes of each node to be tested and the target node address information of each node to be tested are combined, each node to be tested is sent to each node to be tested, each node to be tested is corresponding to each node to be tested, each node to be tested is tested and each node to be tested is tested, based on each test result verification result is tested, each node to be tested, and each node to be tested is tested, and generating a cluster anomaly test result corresponding to the target service cluster by combining the target verification result corresponding to each node to be tested, so that the cluster anomaly test for the target service cluster can be realized, the cluster anomaly test is more comprehensive, and the cluster anomaly can be conveniently and rapidly and accurately positioned, thereby improving the efficiency and the accuracy of the cluster anomaly test, and further ensuring the stable operation of the service cluster more effectively.
Specifically, FIG. 3 is a flow chart illustrating another cluster anomaly testing method, according to an example embodiment. As shown in fig. 3, the cluster anomaly testing method may be used in an electronic device such as a test terminal, and specifically may include the following steps:
s301: and obtaining target cluster identification information corresponding to the target service cluster.
In a specific embodiment, the abnormal testing party may perform an identifier input operation on the testing terminal, so that the testing terminal obtains the target cluster identifier information corresponding to the target service cluster.
S303: based on the target cluster identification information, a cluster node acquisition instruction aiming at the target service cluster is sent to the test server, so that the test server sends a node address acquisition instruction to the target server based on the target cluster identification information, and returns the target service cluster information under the condition that target service cluster information corresponding to the target service cluster returned by the target server is received.
In a specific embodiment, the cluster node acquiring instruction may be used to instruct the target server to return the target service cluster information corresponding to the target service cluster.
In a specific embodiment, the target service cluster information may include target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information corresponding to each of the target nodes. The target server may be configured to update service cluster information corresponding to each of the plurality of service clusters.
In a specific embodiment, the test terminal may send a cluster node acquisition instruction for the target service cluster to the test server based on the target cluster identification information. Under the condition that the test server receives the cluster node acquisition instruction aiming at the target service cluster, the test server can send the node address acquisition instruction to the target server based on the target cluster identification information in the cluster node acquisition instruction. Under the condition that the target server receives a node address acquisition instruction sent by the test server, target cluster identification information can be searched from current updated cluster data; under the condition that the target cluster identification information is found, service cluster information corresponding to the found target cluster identification information can be used as target service cluster information; accordingly, the target service cluster information may be sent to the test server. Further, the test server may return the received target service cluster information to the test terminal.
S305: and acquiring respective target service test codes of a plurality of nodes to be tested corresponding to the target service cluster and respective target result verification codes of the plurality of nodes to be tested based on the target node identification information of each target node.
In a specific embodiment, the target service test code of any node to be tested may be used to generate a service request of the node to be tested for the node to be tested, so as to receive a node service execution result returned by the node to be tested based on the service request.
In a specific embodiment, the target result verification code of any node to be tested may be used to perform result verification processing on the node service execution result of any node to be tested.
In a specific embodiment, the step S305 may include:
based on the target node identification information of each target node, displaying a node configuration page corresponding to the target service cluster;
Responding to a test range selection instruction triggered based on a test range selection control, and acquiring node identification information corresponding to a plurality of nodes to be tested;
Responding to a test code input instruction triggered based on a test code input control corresponding to each node to be tested, and acquiring a target service test code of each node to be tested;
And responding to a verification code input instruction triggered based on a verification code input control corresponding to each node to be tested, and acquiring a target result verification code of each node to be tested.
In a specific embodiment, the test terminal may display a node configuration page including target node identification information of a plurality of nodes to be tested based on the target node identification information of each target node.
In a specific embodiment, the abnormal testing party can trigger the testing range selection instruction by executing the range selection operation on the testing range selection control, so that the testing terminal obtains node identification information corresponding to a plurality of nodes to be tested. The test scope selection control may include a plurality of test types to be selected. Specifically, the abnormal testing party can execute a range selection operation on any test type to trigger a test range selection instruction containing any test type. Further, the test terminal responds to a test range selection instruction triggered based on the test range selection control, and can acquire a corresponding preset test range based on the test type in the test range selection instruction, wherein different test types to be selected can correspond to different preset test ranges, and each preset test range can be used for determining a plurality of nodes to be tested; then, the test terminal can take a plurality of target nodes meeting the preset test range in the target service cluster as a plurality of nodes to be tested; correspondingly, the target node identification information corresponding to each of the plurality of nodes to be tested can be obtained.
In a specific embodiment, the test code input control corresponding to each node to be tested may be used to trigger the test code input instruction corresponding to each node to be tested. The test code input instructions may be used to generate a target service test code for each node to be tested.
In a specific embodiment, the test code input controls may include a first interface selection control and a test configuration input control. The first interface selection control may be used to select the first selection interface information. The test configuration input control may be used to input the acquired test configuration information.
In a specific embodiment, the obtaining, in response to the test code input instruction triggered based on the test code input control corresponding to each node to be tested, the target service test code of each node to be tested may include:
responding to a first interface selection instruction triggered based on a first interface selection control corresponding to each node to be tested, and acquiring first selection interface information corresponding to each node to be tested;
responding to a test configuration input instruction triggered based on a test configuration input control corresponding to each node to be tested, and acquiring test configuration information corresponding to each node to be tested;
And generating a target service test code of each node to be tested based on the first selection interface information corresponding to each node to be tested and the test configuration information corresponding to each node to be tested.
In a specific embodiment, the first selected interface information corresponding to any node to be tested may be used to indicate an interface selected in the target service test code for any node to be tested. Specifically, the test terminal can respond to a selection display instruction triggered based on a first interface selection control corresponding to any node to be tested, and display interface information corresponding to a plurality of first interfaces to be tested; the test terminal responds to a selection instruction triggered based on at least one first interface to be selected in the first interface selection control corresponding to any one of the nodes to be tested, and can take interface information corresponding to the at least one first interface to be selected as first selection interface information corresponding to any one of the nodes to be tested.
In a specific embodiment, the test configuration information corresponding to any node to be tested may be used to configure at least one first to-be-selected interface corresponding to the any node to be tested to generate the target service test code of the any node to be tested. The test configuration information corresponding to any node to be tested may include configuration information corresponding to each first interface to be selected in at least one first interface to be selected corresponding to any node to be tested.
In a specific embodiment, the test terminal may generate the target service test code of each node to be tested based on the first selection interface information corresponding to each node to be tested and the configuration information corresponding to at least one first interface to be tested in the test configuration information corresponding to each node to be tested.
In a specific embodiment, the verification code input control corresponding to each node to be tested may be used to trigger the verification code input instruction of each node to be tested. The verification code input instruction corresponding to each node to be tested can be used for generating a target service test code corresponding to each node to be tested.
In a specific embodiment, the test code input controls may include a second interface selection control and a verification configuration input control. The second interface selection control may be used to select the second selection interface information. The verification configuration input control may be used to input verification configuration information.
In a specific embodiment, the obtaining, in response to the verification code input instruction triggered based on the verification code input control corresponding to each node to be tested, the target result verification code of each node to be tested may include:
Responding to a second interface selection instruction triggered based on a second interface selection control corresponding to each node to be tested, and acquiring second selection interface information corresponding to each node to be tested;
Responding to a verification configuration input instruction triggered based on a verification configuration input control corresponding to each node to be tested, and acquiring verification configuration information corresponding to each node to be tested;
And generating a target result verification code of each node to be tested based on the second selection interface information corresponding to each node to be tested and the verification configuration information corresponding to each node to be tested.
In a specific embodiment, the second selected interface information corresponding to any node to be tested may be used to indicate an interface selected by the target result verification code for any node to be tested.
In a specific embodiment, the test terminal may respond to a selection display instruction triggered based on a second interface selection control corresponding to any node to be tested, and display interface information corresponding to a plurality of second interfaces to be selected; the test terminal responds to a selection instruction triggered based on at least one second interface to be selected in the second interface selection control corresponding to any one of the nodes to be tested, and can take interface information corresponding to the at least one second interface to be selected as second selection interface information corresponding to any one of the nodes to be tested. Specifically, the plurality of second interfaces to be selected may be pre-constructed by the abnormal testing party according to actual application requirements. Fig. 4 is a diagram of a presentation page of a second interface to be selected, according to an example embodiment. For example, as shown in fig. 4, the anomaly tester may construct a corresponding second interface to be selected for a plurality of different service needs.
In a specific embodiment, the verification configuration information corresponding to any node to be tested may be used to configure at least one second interface to be selected corresponding to the any node to be tested to generate the target result verification code of the any node to be tested. The verification configuration information corresponding to any node to be tested may include configuration information corresponding to each second interface to be selected in at least one second interface to be selected corresponding to any node to be tested.
In a specific embodiment, the verification configuration information corresponding to each node to be tested may refer to the above process of obtaining the test configuration information, which is not described in detail in this disclosure.
In a specific embodiment, the test terminal may generate the target result verification code of each node to be tested based on the second selection interface information corresponding to each node to be tested and the configuration information corresponding to at least one second interface to be selected in the verification configuration information corresponding to each node to be tested.
In the above embodiment, based on the target node identification information of each target node, the node configuration page corresponding to the target service cluster is displayed, the node identification information corresponding to a plurality of nodes to be tested is obtained in response to the test range selection instruction triggered based on the test range selection control, the target service test code of each node to be tested is obtained in response to the test code input instruction triggered based on the test code input control corresponding to each node to be tested, the target result verification code of each node to be tested is obtained in response to the verification code input instruction triggered based on the verification code input control corresponding to each node to be tested, multiplexing of the logic codes among the nodes in the cluster can be achieved, the user-defined test requirement of complex scenes can be met, the code configuration efficiency is improved, and the cluster test efficiency is improved.
S307: the method comprises the steps of sending respective target service test codes of a plurality of nodes to be tested and respective target result verification codes of the plurality of nodes to be tested to a test server, enabling the test server to send node service test requests corresponding to the nodes to be tested based on the target service test codes of the nodes to be tested and target node address information of the nodes to be tested, and under the condition that node service execution results corresponding to the nodes to be tested and returned by the nodes to be tested based on the node service test requests are received, performing result verification processing on the nodes to be tested based on the target result verification codes of the nodes to be tested and the node service execution results corresponding to the nodes to be tested, obtaining target verification results corresponding to the nodes to be tested, and generating cluster abnormal test results corresponding to target service clusters based on the target verification results corresponding to the nodes to be tested.
In a specific embodiment, when receiving the respective target service test codes of the plurality of nodes to be tested and the respective target result verification codes of the plurality of nodes to be tested, which are sent by the test terminal, the test server may send a node service test request corresponding to each node to be tested based on the target service test code of each node to be tested and the target node address information of each node to be tested, so that each node to be tested returns a node service execution result corresponding to each node to be tested based on the node service test request. Then, the test server may perform a result verification process on each node to be tested based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, to obtain a target verification result corresponding to each node to be tested. Then, the test server may generate a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested.
In a specific embodiment, the method may further include:
And under the condition that the cluster abnormal test result returned by the test server is received, displaying the cluster abnormal test result.
In a specific embodiment, the test terminal may display the cluster anomaly test result when receiving the cluster anomaly test result returned by the test server. FIG. 5 is a schematic illustration showing a cluster anomaly test result, according to an example embodiment. Specifically, as shown in fig. 5, by displaying the cluster anomaly test result, the anomaly positioning can be more efficiently realized by the anomaly tester, and the anomaly repair can be more efficiently realized. Further, fig. 6 is a schematic diagram showing detailed description information of one type of clustered abnormal test result according to an exemplary embodiment, and fig. 7 is a schematic diagram showing detailed description information of another type of clustered abnormal test result according to an exemplary embodiment; as shown in fig. 6 and fig. 7, the anomaly tester may perform a detail presentation operation through the test terminal to trigger presentation of detailed description information of the cluster anomaly test results for different service clusters.
In the above embodiment, by acquiring the target cluster identification information corresponding to the target service cluster, based on the target cluster identification information, a cluster node acquisition instruction for the target service cluster is sent to the test server, so that the test server sends a node address acquisition instruction to the target server based on the target cluster identification information, and returns the target service cluster information when receiving the target service cluster information corresponding to the target service cluster returned by the target server, so that efficient and accurate acquisition of the target service cluster information can be realized, missing problems of part of nodes in the cluster can be avoided, further, the accuracy and efficiency of abnormal cluster test can be improved, and then the target service test codes of a plurality of nodes to be tested corresponding to each target service cluster and the target result verification codes of a plurality of nodes to be tested respectively are acquired in combination with the target node identification information of each target node to be tested, multiplexing of logic codes among the nodes in the cluster can be realized, and further, the configuration efficiency can be improved, then, the target service test codes of a plurality of nodes to be tested respectively and the target service verification codes of a plurality of nodes to be tested respectively and the target service codes of a plurality of nodes to be tested respectively send the target service codes to the test nodes to be tested respectively, and the test nodes to be tested respectively request each node to be tested to receive the node to be tested node under the condition of each node to be tested and each node to be tested to the node to be tested node to corresponding node, based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, carrying out result verification processing on each node to be tested to obtain a target verification result corresponding to each node to be tested, and generating a cluster abnormality test result corresponding to a target service cluster based on the target verification result corresponding to each node to be tested, so that cluster abnormality test for the target service cluster can be realized, cluster abnormality test can be more comprehensive, and cluster abnormality can be conveniently, quickly and accurately positioned, thereby improving efficiency and accuracy of cluster abnormality test, and further ensuring stable operation of the service cluster more effectively.
FIG. 8 is an interactive schematic diagram illustrating a cluster anomaly testing method, according to an example embodiment. Specifically, as shown in fig. 8, the test terminal may obtain target cluster identification information corresponding to the target service cluster; the test terminal may send a cluster node acquisition instruction for the target service cluster to the test server based on the target cluster identification information. Under the condition that the test server receives the cluster node acquisition instruction aiming at the target service cluster, the test server can send the node address acquisition instruction to the target server based on the target cluster identification information in the cluster node acquisition instruction. And under the condition that the target server receives the node address acquisition instruction, acquiring target service cluster information from the current updated cluster data based on the target cluster identification information, and returning the target service cluster information. The test server can return the target service cluster information to the test terminal. The test terminal can acquire respective target service test codes of a plurality of nodes to be tested and respective target result verification codes of the plurality of nodes to be tested corresponding to the target service cluster based on the target node identification information of each target node, and send the respective target service test codes of the plurality of nodes to be tested and the respective target result verification codes of the plurality of nodes to be tested to the test server. The test server can send a node service test request corresponding to each node to be tested based on the target service test code of each node to be tested and the target node address information of each node to be tested, so that each node to be tested returns a node service execution result corresponding to each node to be tested based on the node service test request; the test server can perform result verification processing on each node to be tested based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested to obtain a target verification result corresponding to each node to be tested; the test server may generate a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested.
Fig. 9 is a block diagram illustrating a cluster anomaly testing device, according to an example embodiment. Specifically, as shown in fig. 9, the apparatus may include:
The first instruction sending module 910 may be configured to send, when receiving a cluster node obtaining instruction for a target service cluster, a node address obtaining instruction to a target server based on target cluster identification information in the cluster node obtaining instruction, so that the target server returns target service cluster information corresponding to the target service cluster, where the target service cluster information includes target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information of each of the target nodes; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
the first code obtaining module 920 may be configured to obtain, based on target node identification information of each target node, a target service test code of each of a plurality of nodes to be tested corresponding to the target service cluster and a target result verification code of each of the plurality of nodes to be tested;
The first request sending module 930 may be configured to send, to each node to be tested, a node service test request corresponding to each node to be tested based on the target service test code of each node to be tested and the target node address information of each node to be tested, so that each node to be tested returns a node service execution result corresponding to each node to be tested based on the node service test request;
The result verification module 940 may be configured to perform a result verification process on each node to be tested based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, to obtain a target verification result corresponding to each node to be tested;
the test result generating module 950 may be configured to generate a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested.
In a specific embodiment, the first instruction sending module 910 may include:
The current data acquisition module can be used for sending a node address acquisition instruction to the target server based on the target cluster identification information so that the target server acquires target service cluster information from the current updated cluster data based on the target cluster identification information and returns the target service cluster information; the current updating cluster data is obtained by updating based on the current cluster configuration information corresponding to the plurality of service clusters.
In a specific embodiment, the apparatus may further include:
The abnormal node determining module can be used for determining at least one abnormal service node corresponding to the at least one target verification result under the condition that the at least one target verification result is detected to indicate that the corresponding node to be tested is abnormal;
The self-healing request sending module can be used for sending a node self-healing test request corresponding to each abnormal service node based on the target service test code corresponding to each abnormal service node and the target node address information corresponding to each abnormal service node, so that each abnormal service node returns a request execution result corresponding to each abnormal service node based on the node self-healing test request;
The self-healing verification module can be used for carrying out result verification processing on each abnormal service node based on the request execution result corresponding to each abnormal service node and the target result verification code corresponding to each abnormal service node to obtain a self-healing verification result corresponding to each abnormal service node; the self-healing verification result corresponding to each abnormal service node represents the abnormal self-healing condition of each abnormal service node;
Accordingly, the test result generating module 950 may include:
the first result generating module may be configured to generate a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested and the self-healing verification result corresponding to each anomaly service node.
In a specific embodiment, the apparatus may further include:
The abnormal attribution analysis module can be used for inputting target verification results corresponding to the plurality of nodes to be tested into a preset abnormal attribution model to perform abnormal attribution analysis, so as to obtain abnormal attribution results corresponding to the target service cluster;
Accordingly, the test result generating module 950 may include:
the second result generating module may be configured to generate a cluster anomaly test result based on target verification results corresponding to the plurality of nodes to be tested and anomaly attribution results corresponding to the target service cluster.
In a specific embodiment, the first instruction sending module 910 may include:
The certificate verification processing module can be used for performing certificate verification processing on the cluster detection certificate under the condition that a cluster node acquisition instruction aiming at the target service cluster is received, so as to obtain a certificate verification result;
and the second instruction sending module can be used for sending a node address acquisition instruction to the target server based on the target cluster identification information under the condition that the certificate verification result indicates that the cluster detection certificate passes verification.
FIG. 10 is a block diagram illustrating another cluster anomaly testing device, according to an example embodiment. Specifically, as shown in fig. 10, the apparatus may include:
the cluster identifier obtaining module 1010 may be configured to obtain target cluster identifier information corresponding to a target service cluster;
The node address obtaining module 1020 may be configured to send, to the test server, a cluster node obtaining instruction for the target service cluster based on the target cluster identification information, so that the test server sends, to the target server, the node address obtaining instruction based on the target cluster identification information, and returns, when receiving target service cluster information corresponding to the target service cluster returned by the target server, the target service cluster information, where the target service cluster information includes target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information corresponding to each of the target nodes; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
The second code obtaining module 1030 may be configured to obtain, based on target node identification information of each target node, a target service test code of each of the plurality of nodes to be tested corresponding to the target service cluster and a target result verification code of each of the plurality of nodes to be tested;
The code sending module 1040 may be configured to send respective target service test codes of a plurality of nodes to be tested and respective target result verification codes of a plurality of nodes to be tested to a test server, so that the test server sends a node service test request corresponding to each node to be tested based on the target service test code of each node to be tested and the target node address information of each node to be tested, and when receiving a node service execution result corresponding to each node to be tested returned by each node to be tested based on the node service test request, performs result verification processing on each node to be tested based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, to obtain a target verification result corresponding to each node to be tested, and generates a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested.
In a specific embodiment, the second code obtaining module 1030 may include:
the first display module can be used for displaying a node configuration page corresponding to the target service cluster based on the target node identification information of each target node;
the first information acquisition module can be used for responding to a test range selection instruction triggered based on a test range selection control to acquire node identification information corresponding to a plurality of nodes to be tested;
The second information acquisition module can be used for responding to a test code input instruction triggered based on a test code input control corresponding to each node to be tested to acquire a target service test code of each node to be tested;
the third information obtaining module may be configured to obtain, in response to a verification code input instruction triggered based on a verification code input control corresponding to each node to be tested, a target result verification code of each node to be tested.
In a specific embodiment, the second information obtaining module may include:
the first interface acquisition module can be used for responding to a first interface selection instruction triggered based on a first interface selection control corresponding to each node to be tested to acquire first selection interface information corresponding to each node to be tested;
The first configuration acquisition module can be used for responding to a test configuration input instruction triggered based on a test configuration input control corresponding to each node to be tested to acquire test configuration information corresponding to each node to be tested;
The first code generating module may be configured to generate a target service test code of each node to be tested based on the first selection interface information corresponding to each node to be tested and the test configuration information corresponding to each node to be tested.
In a specific embodiment, the third information obtaining module may include:
the second interface acquisition module can be used for responding to a second interface selection instruction triggered based on a second interface selection control corresponding to each node to be tested to acquire second selection interface information corresponding to each node to be tested;
The second configuration acquisition module can be used for responding to the verification configuration input instruction triggered based on the verification configuration input control corresponding to each node to be tested to acquire the verification configuration information corresponding to each node to be tested;
The second code generating module may be configured to generate a target result verification code of each node to be tested based on the second selection interface information corresponding to each node to be tested and the verification configuration information corresponding to each node to be tested.
In a specific embodiment, the apparatus may further include:
the second display module can be used for displaying the cluster abnormal test result under the condition that the cluster abnormal test result returned by the test server is received.
The specific manner in which the individual modules and units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 11 is a block diagram illustrating an electronic device, which may be a server, for performing cluster anomaly testing on a target service cluster, according to an exemplary embodiment, and an internal structure diagram thereof may be as shown in fig. 11. The electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the electronic device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a cluster anomaly testing method.
Fig. 12 is a block diagram illustrating another electronic device, which may be a terminal, for performing cluster anomaly testing on a target service cluster according to an exemplary embodiment, and an internal structure diagram thereof may be as shown in fig. 12. The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the electronic device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a cluster anomaly testing method. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the electronic equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 11 or 12 are merely block diagrams of partial structures related to the present disclosure and do not constitute limitations of the electronic device to which the present disclosure is applied, and that a particular electronic device may include more or fewer components than shown in the drawings, or may combine certain components, or have different arrangements of components.
In an exemplary embodiment, there is also provided an electronic device including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement a cluster anomaly testing method as in an embodiment of the present disclosure.
In an exemplary embodiment, a computer readable storage medium is also provided, which when executed by a processor of an electronic device, enables the electronic device to perform the cluster anomaly testing method in the embodiments of the present disclosure.
In an exemplary embodiment, a computer program product containing instructions that, when run on a computer, cause the computer to perform the cluster anomaly testing method in the embodiments of the present disclosure is also provided.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
In the present embodiment, the term "module" or "unit" refers to a computer program or a part of a computer program having a predetermined function and working together with other relevant parts to achieve a predetermined object, and may be implemented in whole or in part by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Also, a processor (or multiple processors or memories) may be used to implement one or more modules or units. Furthermore, each module or unit may be part of an overall module or unit that incorporates the functionality of the module or unit.
It will be appreciated that in the specific embodiments of the present application, related data such as user information is involved, and when the above embodiments of the present application are applied to specific products or technologies, user permissions or consents need to be obtained, and the collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (21)

1. A cluster anomaly testing method, the method comprising:
Under the condition that a cluster node acquisition instruction aiming at a target service cluster is received, sending a node address acquisition instruction to a target server based on target cluster identification information in the cluster node acquisition instruction so as to enable the target server to return target service cluster information corresponding to the target service cluster, wherein the target service cluster information comprises target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information of each target node; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
Acquiring respective target service test codes of a plurality of nodes to be tested corresponding to the target service cluster and respective target result verification codes of the plurality of nodes to be tested based on the target node identification information of each target node;
Based on the target service test code of each node to be tested and the target node address information of each node to be tested, sending a node service test request corresponding to each node to be tested, so that each node to be tested returns a node service execution result corresponding to each node to be tested based on the node service test request;
Based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, carrying out result verification processing on each node to be tested to obtain a target verification result corresponding to each node to be tested;
Generating a cluster abnormity test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested;
the method further includes, after performing a result verification process on the each node to be tested based on the target result verification code of the each node to be tested and the node service execution result corresponding to the each node to be tested to obtain the target verification result corresponding to the each node to be tested:
determining at least one abnormal service node corresponding to at least one target verification result under the condition that the at least one target verification result is detected to indicate that the corresponding node to be tested is abnormal;
Based on the target service test codes corresponding to each abnormal service node and the target node address information corresponding to each abnormal service node, sending a node self-healing test request corresponding to each abnormal service node, so that each abnormal service node returns a request execution result corresponding to each abnormal service node based on the node self-healing test request;
Based on the request execution result corresponding to each abnormal service node and the target result verification code corresponding to each abnormal service node, performing result verification processing on each abnormal service node to obtain a self-healing verification result corresponding to each abnormal service node; the self-healing verification result corresponding to each abnormal service node represents the abnormal self-healing condition of each abnormal service node;
the generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested includes:
And generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested and the self-healing verification result corresponding to each anomaly service node.
2. The method according to claim 1, wherein the sending a node address acquisition instruction to a target server based on the target cluster identification information in the cluster node acquisition instruction, so that the target server returns target service cluster information corresponding to the target service cluster, includes:
based on the target cluster identification information, sending the node address acquisition instruction to the target server so that the target server acquires the target service cluster information from the current updated cluster data based on the target cluster identification information and returns the target service cluster information; the current updating cluster data is obtained by updating based on the current cluster configuration information corresponding to the plurality of service clusters.
3. The method of claim 1, wherein the performing the result verification process on each node to be tested based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, and after obtaining the target verification result corresponding to each node to be tested, the method further comprises:
inputting target verification results corresponding to the plurality of nodes to be tested into a preset abnormal attribution model to perform abnormal attribution analysis, and obtaining abnormal attribution results corresponding to the target service cluster;
the generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested includes:
And generating the cluster abnormity test result based on the target verification results corresponding to the plurality of nodes to be tested and the abnormity attribution results corresponding to the target service cluster.
4. A method according to any of claims 1-3, wherein the cluster node fetch instruction comprises a cluster detection credential; under the condition that a cluster node acquisition instruction aiming at a target service cluster is received, sending a node address acquisition instruction to a target server based on target cluster identification information in the cluster node acquisition instruction, wherein the method comprises the following steps:
under the condition that a cluster node acquisition instruction aiming at the target service cluster is received, carrying out credential verification processing on the cluster detection credentials to obtain a credential verification result;
and sending the node address acquisition instruction to the target server based on the target cluster identification information under the condition that the credential verification result indicates that the cluster detection credential verification is passed.
5. A cluster anomaly testing method, the method comprising:
acquiring target cluster identification information corresponding to a target service cluster;
Transmitting a cluster node acquisition instruction for the target service cluster to a test server based on the target cluster identification information, so that the test server transmits a node address acquisition instruction to a target server based on the target cluster identification information, and returns target service cluster information under the condition that target service cluster information corresponding to the target service cluster returned by the target server is received, wherein the target service cluster information comprises target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information corresponding to each of the target nodes; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
Acquiring respective target service test codes of a plurality of nodes to be tested corresponding to the target service cluster and respective target result verification codes of the plurality of nodes to be tested based on the target node identification information of each target node;
The method comprises the steps of sending respective target service test codes of a plurality of nodes to be tested and respective target result verification codes of the plurality of nodes to be tested to a test server, enabling the test server to send a node service test request corresponding to each node to be tested based on the target service test codes of each node to be tested and target node address information of each node to be tested, and determining at least one abnormal service node corresponding to at least one target verification result under the condition that the node service execution result corresponding to each node to be tested is received, wherein the node service execution result is returned by each node to be tested based on the node service test request, the node service execution result is based on the target result verification codes of each node to be tested and the node service execution results corresponding to each node to be tested, performing result verification processing on each node to be tested to obtain the target verification result corresponding to each node to be tested, and determining at least one abnormal service node corresponding to the at least one target verification result under the condition that the at least one target verification result is detected to indicate that the corresponding node to be tested is abnormal; the method comprises the steps that a node self-healing test request corresponding to each abnormal service node is sent to each abnormal service node based on a target service test code corresponding to each abnormal service node and target node address information corresponding to each abnormal service node, so that each abnormal service node returns a request execution result corresponding to each abnormal service node based on the node self-healing test request; and based on the request execution result corresponding to each abnormal service node and the target result verification code corresponding to each abnormal service node, performing result verification processing on each abnormal service node to obtain a self-healing verification result corresponding to each abnormal service node; the self-healing verification result corresponding to each abnormal service node represents the abnormal self-healing condition of each abnormal service node; generating a cluster abnormity test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested; the generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested includes: and generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested and the self-healing verification result corresponding to each anomaly service node.
6. The method according to claim 5, wherein the obtaining, based on the target node identification information of each target node, the target service test codes of the plurality of nodes to be tested corresponding to the target service cluster and the target result verification codes of the plurality of nodes to be tested respectively includes:
Based on the target node identification information of each target node, displaying a node configuration page corresponding to the target service cluster;
Responding to a test range selection instruction triggered based on a test range selection control, and acquiring node identification information corresponding to the plurality of nodes to be tested;
Responding to a test code input instruction triggered based on a test code input control corresponding to each node to be tested, and acquiring a target service test code of each node to be tested;
and responding to a verification code input instruction triggered based on a verification code input control corresponding to each node to be tested, and acquiring a target result verification code of each node to be tested.
7. The method of claim 6, wherein the test code input controls include a first interface selection control and a test configuration input control; the responding to the test code input instruction triggered based on the test code input control corresponding to each node to be tested obtains the target service test code of each node to be tested, and the method comprises the following steps:
responding to a first interface selection instruction triggered based on a first interface selection control corresponding to each node to be tested, and acquiring first selection interface information corresponding to each node to be tested;
responding to a test configuration input instruction triggered based on a test configuration input control corresponding to each node to be tested, and acquiring test configuration information corresponding to each node to be tested;
and generating a target service test code of each node to be tested based on the first selection interface information corresponding to each node to be tested and the test configuration information corresponding to each node to be tested.
8. The method of claim 6, wherein the test code input controls include a second interface selection control and a verification configuration input control; the responding to the verification code input instruction triggered based on the verification code input control corresponding to each node to be tested obtains the target result verification code of each node to be tested, and the method comprises the following steps:
Responding to a second interface selection instruction triggered based on a second interface selection control corresponding to each node to be tested, and acquiring second interface selection information corresponding to each node to be tested;
Responding to a verification configuration input instruction triggered based on a verification configuration input control corresponding to each node to be tested, and acquiring verification configuration information corresponding to each node to be tested;
And generating a target result verification code of each node to be tested based on the second selection interface information corresponding to each node to be tested and the verification configuration information corresponding to each node to be tested.
9. The method of claim 5, wherein the method further comprises:
and under the condition that the cluster abnormal test result returned by the test server is received, displaying the cluster abnormal test result.
10. A cluster anomaly testing device, the device comprising:
The first instruction sending module is used for sending a node address acquisition instruction to a target server based on target cluster identification information in the cluster node acquisition instruction under the condition that a cluster node acquisition instruction aiming at a target service cluster is received, so that the target server returns target service cluster information corresponding to the target service cluster, wherein the target service cluster information comprises target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information of each target node; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
The first code acquisition module is used for acquiring the target service test codes of the multiple nodes to be tested corresponding to the target service cluster and the target result verification codes of the multiple nodes to be tested respectively based on the target node identification information of each target node;
The first request sending module is used for sending a node service test request corresponding to each node to be tested based on a target service test code of each node to be tested and target node address information of each node to be tested, so that each node to be tested returns a node service execution result corresponding to each node to be tested based on the node service test request;
The result verification module is used for carrying out result verification processing on each node to be tested based on the target result verification code of each node to be tested and the node service execution result corresponding to each node to be tested, so as to obtain the target verification result corresponding to each node to be tested;
The test result generation module is used for generating a cluster abnormity test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested;
Wherein the apparatus further comprises:
The abnormal node determining module is used for determining at least one abnormal service node corresponding to at least one target verification result under the condition that the at least one target verification result is detected to indicate that the corresponding node to be tested is abnormal;
the self-healing request sending module is used for sending a node self-healing test request corresponding to each abnormal service node based on a target service test code corresponding to each abnormal service node and target node address information corresponding to each abnormal service node, so that each abnormal service node returns a request execution result corresponding to each abnormal service node based on the node self-healing test request;
The self-healing verification module is used for carrying out result verification processing on each abnormal service node based on the request execution result corresponding to each abnormal service node and the target result verification code corresponding to each abnormal service node to obtain a self-healing verification result corresponding to each abnormal service node; the self-healing verification result corresponding to each abnormal service node represents the abnormal self-healing condition of each abnormal service node;
the test result generation module comprises:
The first result generating module is used for generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested and the self-healing verification result corresponding to each anomaly service node.
11. The apparatus of claim 10, wherein the first instruction sending module comprises:
the current data acquisition module is used for sending the node address acquisition instruction to the target server based on the target cluster identification information so that the target server acquires the target service cluster information from the current updated cluster data based on the target cluster identification information and returns the target service cluster information; the current updating cluster data is obtained by updating based on the current cluster configuration information corresponding to the plurality of service clusters.
12. The apparatus of claim 10, wherein the apparatus further comprises:
The abnormal attribution analysis module is used for inputting target verification results corresponding to the plurality of nodes to be tested into a preset abnormal attribution model to perform abnormal attribution analysis, so as to obtain abnormal attribution results corresponding to the target service cluster;
the test result generation module comprises:
and the second result generation module is used for generating the cluster abnormity test result based on the target verification results corresponding to the plurality of nodes to be tested and the abnormity attribution results corresponding to the target service cluster.
13. The apparatus of any one of claims 10-12, wherein the first instruction sending module comprises:
The certificate verification processing module is used for performing certificate verification processing on the cluster detection certificate under the condition that a cluster node acquisition instruction aiming at the target service cluster is received, so as to obtain a certificate verification result;
And the second instruction sending module is used for sending the node address acquisition instruction to the target server based on the target cluster identification information under the condition that the certificate verification result indicates that the cluster detection certificate passes verification.
14. A cluster anomaly testing device, the device comprising:
the cluster identifier acquisition module is used for acquiring target cluster identifier information corresponding to the target service cluster;
The node address acquisition module is used for sending a cluster node acquisition instruction aiming at the target service cluster to the test server based on the target cluster identification information, so that the test server sends the node address acquisition instruction to the target server based on the target cluster identification information, and returns the target service cluster information under the condition that target service cluster information corresponding to the target service cluster returned by the target server is received, wherein the target service cluster information comprises target node identification information of each of a plurality of target nodes corresponding to the target service cluster and target node address information corresponding to each target node; the target server is used for updating service cluster information corresponding to each of the plurality of service clusters;
The second code acquisition module is used for acquiring the target service test codes of the multiple nodes to be tested corresponding to the target service cluster and the target result verification codes of the multiple nodes to be tested respectively based on the target node identification information of each target node;
The code sending module is configured to send respective target service test codes of the plurality of nodes to be tested and respective target result verification codes of the plurality of nodes to be tested to the test server, so that the test server sends a node service test request corresponding to each node to be tested based on the target service test codes of each node to be tested and target node address information of each node to be tested, and determines at least one abnormal service node corresponding to at least one target verification result when the node service execution result corresponding to each node to be tested, returned by each node to be tested based on the node service test request, is received, based on the target result verification codes of each node to be tested and the node service execution results corresponding to each node to be tested, to perform result verification processing on each node to be tested to obtain the target verification result corresponding to each node to be tested, and when at least one target verification result indicates that the corresponding node to be tested has an abnormality; the method comprises the steps that a node self-healing test request corresponding to each abnormal service node is sent to each abnormal service node based on a target service test code corresponding to each abnormal service node and target node address information corresponding to each abnormal service node, so that each abnormal service node returns a request execution result corresponding to each abnormal service node based on the node self-healing test request; and based on the request execution result corresponding to each abnormal service node and the target result verification code corresponding to each abnormal service node, performing result verification processing on each abnormal service node to obtain a self-healing verification result corresponding to each abnormal service node; the self-healing verification result corresponding to each abnormal service node represents the abnormal self-healing condition of each abnormal service node; generating a cluster abnormity test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested; the generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested includes: and generating a cluster anomaly test result corresponding to the target service cluster based on the target verification result corresponding to each node to be tested and the self-healing verification result corresponding to each anomaly service node.
15. The apparatus of claim 14, wherein the second code acquisition module comprises:
The first display module is used for displaying a node configuration page corresponding to the target service cluster based on the target node identification information of each target node;
The first information acquisition module is used for responding to a test range selection instruction triggered based on a test range selection control to acquire node identification information corresponding to the plurality of nodes to be tested;
the second information acquisition module is used for responding to a test code input instruction triggered based on a test code input control corresponding to each node to be tested, and acquiring a target service test code of each node to be tested;
And the third information acquisition module is used for responding to the verification code input instruction triggered based on the verification code input control corresponding to each node to be tested and acquiring the target result verification code of each node to be tested.
16. The apparatus of claim 15, wherein the test code input controls comprise a first interface selection control and a test configuration input control; the second information acquisition module includes:
the first interface acquisition module is used for responding to a first interface selection instruction triggered based on a first interface selection control corresponding to each node to be tested, and acquiring first selection interface information corresponding to each node to be tested;
The first configuration acquisition module is used for responding to a test configuration input instruction triggered based on a test configuration input control corresponding to each node to be tested, and acquiring test configuration information corresponding to each node to be tested;
the first code generation module is used for generating a target service test code of each node to be tested based on the first selection interface information corresponding to each node to be tested and the test configuration information corresponding to each node to be tested.
17. The apparatus of claim 15, wherein the test code input controls include a second interface selection control and a verification configuration input control; the third information acquisition module includes:
The second interface acquisition module is used for responding to a second interface selection instruction triggered based on a second interface selection control corresponding to each node to be tested, and acquiring second selection interface information corresponding to each node to be tested;
The second configuration acquisition module is used for responding to the verification configuration input instruction triggered based on the verification configuration input control corresponding to each node to be tested and acquiring the verification configuration information corresponding to each node to be tested;
And the second code generation module is used for generating a target result verification code of each node to be tested based on the second selection interface information corresponding to each node to be tested and the verification configuration information corresponding to each node to be tested.
18. The apparatus of claim 14, wherein the apparatus further comprises:
and the second display module is used for displaying the cluster abnormal test result under the condition that the cluster abnormal test result returned by the test server is received.
19. An electronic device, comprising:
A processor;
a memory for storing processor-executable instructions;
Wherein the processor is configured to execute the executable instructions to implement the cluster anomaly testing method of any one of claims 1 to 4 or the cluster anomaly testing method of any one of claims 5 to 9.
20. A non-transitory computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the cluster anomaly test method of any one of claims 1 to 4 or the cluster anomaly test method of any one of claims 5 to 9.
21. A computer program product comprising a computer program, characterized in that the computer program, when executed by an electronic device, implements the cluster anomaly testing method of any one of claims 1 to 4 or the cluster anomaly testing method of any one of claims 5 to 9.
CN202410231765.XA 2024-03-01 2024-03-01 Cluster abnormity testing method and device, electronic equipment and storage medium Active CN117806978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410231765.XA CN117806978B (en) 2024-03-01 2024-03-01 Cluster abnormity testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410231765.XA CN117806978B (en) 2024-03-01 2024-03-01 Cluster abnormity testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117806978A CN117806978A (en) 2024-04-02
CN117806978B true CN117806978B (en) 2024-05-14

Family

ID=90428340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410231765.XA Active CN117806978B (en) 2024-03-01 2024-03-01 Cluster abnormity testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117806978B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901171A (en) * 2020-07-29 2020-11-06 腾讯科技(深圳)有限公司 Anomaly detection and attribution method, device, equipment and computer readable storage medium
CN114884796A (en) * 2022-06-16 2022-08-09 中国工商银行股份有限公司 Fault processing method and device, electronic equipment and storage medium
CN115080449A (en) * 2022-07-29 2022-09-20 中国工商银行股份有限公司 Test method, device, equipment, medium and program product
CN115996179A (en) * 2021-10-15 2023-04-21 北京字节跳动网络技术有限公司 Service node testing method and device, readable medium and electronic equipment
CN116185740A (en) * 2023-02-22 2023-05-30 金蝶软件(中国)有限公司 Scheme testing method, device, computer equipment and storage medium
KR102616183B1 (en) * 2022-11-29 2023-12-21 쿠팡 주식회사 Method for managing test information and electronic apparatus supporting thereof
CN117368618A (en) * 2023-11-24 2024-01-09 广东电网有限责任公司 Power distribution terminal self-healing performance test system, test method and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901171A (en) * 2020-07-29 2020-11-06 腾讯科技(深圳)有限公司 Anomaly detection and attribution method, device, equipment and computer readable storage medium
CN115996179A (en) * 2021-10-15 2023-04-21 北京字节跳动网络技术有限公司 Service node testing method and device, readable medium and electronic equipment
CN114884796A (en) * 2022-06-16 2022-08-09 中国工商银行股份有限公司 Fault processing method and device, electronic equipment and storage medium
CN115080449A (en) * 2022-07-29 2022-09-20 中国工商银行股份有限公司 Test method, device, equipment, medium and program product
KR102616183B1 (en) * 2022-11-29 2023-12-21 쿠팡 주식회사 Method for managing test information and electronic apparatus supporting thereof
CN116185740A (en) * 2023-02-22 2023-05-30 金蝶软件(中国)有限公司 Scheme testing method, device, computer equipment and storage medium
CN117368618A (en) * 2023-11-24 2024-01-09 广东电网有限责任公司 Power distribution terminal self-healing performance test system, test method and storage medium

Also Published As

Publication number Publication date
CN117806978A (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN108415832B (en) Interface automation test method, device, equipment and storage medium
US10467316B2 (en) Systems and methods for web analytics testing and web development
US20190278700A1 (en) System and method for automated service layer testing and regression
CN110286897A (en) API Visual Dynamic configuration method, device, equipment and storage medium
CN111444992B (en) User information checking method and system based on information code
CN108133007A (en) A kind of method of data synchronization and system
CN111563051B (en) Crawler-based data verification method and device, computer equipment and storage medium
CN108959337A (en) Big data acquisition methods, device, equipment and storage medium
CN110069297A (en) Abnormality eliminating method, device, computer equipment and storage medium based on Spring MVC
US10382313B2 (en) Test building for testing server operation
CN109542764B (en) Webpage automatic testing method and device, computer equipment and storage medium
CN113467780A (en) Data acquisition method and device, electronic equipment and storage medium
CN114356631A (en) Fault positioning method and device, computer equipment and storage medium
CN109684093A (en) Data processing method and system
CN108460068A (en) Method, apparatus, storage medium and the terminal that report imports and exports
CN107291612A (en) A kind of method and device of test
CN117806978B (en) Cluster abnormity testing method and device, electronic equipment and storage medium
CN114371969B (en) Page performance testing method and device, electronic equipment and storage medium
CN113158497B (en) Online service experiment method, device, computer equipment and storage medium
CN112699023B (en) Project interface testing method and device, computer equipment and storage medium
CN114238129A (en) Method, device and equipment for generating interface data and storage medium
CN115220731A (en) Index data acquisition method and device, computer equipment and storage medium
CN114186216A (en) System access control method, system, computer device and storage medium
CN105512020A (en) Method and device for test
CN109766228A (en) Verification method and device on a kind of line based on interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant