CN115022328A - Server cluster, server cluster testing method and device and electronic equipment - Google Patents

Server cluster, server cluster testing method and device and electronic equipment Download PDF

Info

Publication number
CN115022328A
CN115022328A CN202210729319.2A CN202210729319A CN115022328A CN 115022328 A CN115022328 A CN 115022328A CN 202210729319 A CN202210729319 A CN 202210729319A CN 115022328 A CN115022328 A CN 115022328A
Authority
CN
China
Prior art keywords
server
test
data
test instruction
network card
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.)
Granted
Application number
CN202210729319.2A
Other languages
Chinese (zh)
Other versions
CN115022328B (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.)
Lemon Inc Cayman Island
Original Assignee
Lemon Inc Cayman Island
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 Lemon Inc Cayman Island filed Critical Lemon Inc Cayman Island
Priority to CN202210729319.2A priority Critical patent/CN115022328B/en
Publication of CN115022328A publication Critical patent/CN115022328A/en
Application granted granted Critical
Publication of CN115022328B publication Critical patent/CN115022328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The embodiment of the disclosure discloses a server cluster, a test method and a test device of the server cluster and electronic equipment, wherein the server cluster comprises: a scheduling server, at least one second server; the scheduling server is used for receiving the user information processing request and generating a test instruction according to the user information processing request; sending the test instruction to each second server, and receiving a test result returned by each second server; the test instruction is used for testing the RDMA network card; processing the test data returned by each second server to generate a displayable test result; the second server is used for operating the received test instruction and realizing the reading/writing of the transmission data between different second servers by using the RDMA network card when the test instruction is operated; the test data of the RDMA network card are generated and sent to the scheduling server, so that the labor cost required by the manual test repeated operation can be saved, and the test result deviation caused by human errors is reduced.

Description

Server cluster, server cluster testing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a server cluster, a method and an apparatus for testing the server cluster, and an electronic device.
Background
With the development of internet technology, data centers are increasingly loaded. In order to provide data services for users, information interaction is required between servers of a data center.
Conventional servers use network cards that support the TCP/IP protocol. Data transmission between traditional servers requires a CPU in the server to participate in the data transmission, including control of a network card, processing of interrupts, encapsulation and analysis of messages, and the like.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a server cluster, a test method and a test device of the server cluster and electronic equipment.
In a first aspect, an embodiment of the present disclosure provides a server cluster, where the cluster includes: a scheduling server, at least one second server; each second server is respectively connected with the scheduling server; each second server is provided with an RDMA network card; the scheduling server is used for receiving a user information processing request and generating a test instruction according to the user information processing request; sending the test instruction to each second server, and receiving a test result returned by each second server; the test instructions are used for testing the RDMA network card; processing the test data returned by each second server to generate a displayable test result; the second server is used for operating the received test instruction, and when the test instruction is operated, the RDMA network card is used for realizing the read/write of the transmission data between different second servers; and generating test data of the RDMA network card, and sending the test data to the scheduling server.
In a second aspect, an embodiment of the present disclosure provides a method for testing a server cluster, which is applied to a scheduling server of the server cluster, and the method includes: generating a test instruction according to the received user information processing request; the test instruction is used for testing the RDMA network card of the second server; sending the test instruction to at least one second server so as to enable the second server to run the test instruction, wherein the second server uses an RDMA (remote direct memory access) network card to realize read/write of transmission data between different second servers when running the test instruction; receiving test data which is sent by the second server and obtained by running the test instruction, and generating a displayable test result according to the test data; and displaying the test result.
In a third aspect, an embodiment of the present disclosure provides a server cluster testing method, which is applied to a second server in a server cluster, and the method includes: receiving a test instruction sent by a scheduling server, wherein the test instruction is generated by the scheduling server according to a received user test request; running the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data; receiving feedback information of the target second server, and generating test data, wherein the test data at least comprises one of the following: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data; and sending the test data to the scheduling server.
In a fourth aspect, an embodiment of the present disclosure provides a server cluster testing apparatus, where the apparatus includes: the test instruction generating unit is used for generating a test instruction according to the received user information processing request; the test instruction is used for testing the RDMA network card of the second server; the instruction sending unit is used for sending the test instruction to at least one second server so as to enable the second server to run the test instruction, wherein when the second server runs the test instruction, the RDMA network card is used for realizing the reading/writing of transmission data between different second servers; the test data processing unit is used for receiving test data which is sent by the second server and obtained by running the test instruction, and generating a displayable test result according to the test data; and the display unit is used for displaying the test result.
In a fifth aspect, an embodiment of the present disclosure provides a server cluster testing apparatus, including: the first receiving unit is used for receiving a test instruction sent by the scheduling server, and the test instruction is generated by the scheduling server according to the received user information processing request; the instruction running unit is used for running the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data; a test data generating unit, configured to receive feedback information of the target second server, and generate test data, where the test data includes at least one of: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data; and the sending unit is used for sending the test data to the scheduling server.
In a sixth aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; a storage device having at least one program stored thereon, which when executed by the at least one processor causes the at least one processor to implement the server cluster testing method of the second aspect or the third aspect.
In a seventh aspect, the disclosed embodiments provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the server cluster testing method according to the second or third aspect.
According to the server cluster, the server cluster testing method and device and the electronic equipment, the scheduling server is arranged in the server cluster, when testing is conducted in the server, the scheduling server generates the testing instruction according to the user testing request, the testing instruction is sent to each server to conduct testing, the scheduling server can further process the testing result and generate a displayable testing result, and compared with a manual testing method needing a large number of repeated operations, on one hand, the scheme provided by the disclosure can save labor cost required by repeated operations of manual testing, and reduces deviation of the testing result caused by human errors; on the other hand, the dispatching server analyzes and processes the test result and displays the result, thereby being beneficial to the user to intuitively know the test result.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a schematic block diagram of some embodiments of a server cluster provided by the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a method of testing a cluster of servers according to the present disclosure;
FIG. 3 is a schematic flow chart diagram of some embodiments of a method for testing a cluster of servers according to the present disclosure;
FIG. 4 is a schematic structural diagram of some embodiments of a testing apparatus for a cluster of servers according to the present disclosure;
FIG. 5 is a schematic block diagram of some examples of testing devices of a server cluster according to the present disclosure;
FIG. 6 is an exemplary system architecture to which a server cluster testing method or server cluster testing apparatus may be applied, according to some embodiments of the present disclosure;
fig. 7 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
It should be noted that, in the present disclosure, the embodiments and the features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, a schematic block diagram of some embodiments of a server cluster provided by the present disclosure is shown. As shown in fig. 1, the server cluster 10 includes a scheduling server 11 and at least one second server 12. Each second server 12 is connected to the scheduling server 11. The second server 12 installs a Remote Direct Memory Access (RDMA) network card. RDMA is a technology that performs remote memory access directly. By using the RDMA technology, data can be rapidly migrated from one electronic device to the memory of another electronic device in a remote way without causing any influence on the operating system of the electronic device.
By using the RDMA technology for data transmission, the central processor is not required to participate in the data transmission process, so that the consumption of the central processor can be reduced. The RDMA network card supports RDMA technology. When data transmission is carried out between two electronic devices provided with the RDMA network card, the data can be stored in a designated storage area of a receiving party without the participation of a central processing unit.
Network cards can be installed on the scheduling server 11 and the second server 12 of the server cluster in the present disclosure. The second server 12 may have an RDMA network card installed thereon. Each second server 12 may be connected to the first server 11 through wired or wireless communication.
The scheduling server 11 may be a physical server or a virtual server running on the electronic device. The number of the scheduling servers 11 may be 1 or 2 or more.
The dispatch server 11 may be communicatively connected to each second server 12 via a wired connection or a wireless connection.
The scheduling server 11 may also be in communication connection with the electronic devices used by the users. The user here may be a development user. The user can send a test request to the scheduling server 11 using the electronic device he uses. The test request includes an identification corresponding to at least one second server 12 to be tested. In some application scenarios, the identifier of the second server may be an IP address corresponding to the second server.
The dispatch server 11 generates a test instruction according to the test request of the user, and sends the test instruction to each second server.
After receiving the test command, the second server 12 executes the test command. And when the test instruction is run, the RDMA network card is used for realizing the reading/writing of the transmission data between different second servers.
The second server 12 may generate test data of the RDMA network card by executing the test instruction, and transmit the test data to the scheduling server 11.
The dispatch server 11 receives the test data returned by each second server 12, and analyzes and processes the test data to generate a displayable test result.
In the server cluster provided by this embodiment, the scheduling server is provided for the plurality of second servers provided with the RDMA network cards, when the scheduling server performs testing in the servers, the scheduling server generates a test instruction according to a user test request, and sends the test instruction to each server for testing, and the scheduling server can also process the test result and generate a displayable test result, compared with a manual test method requiring a large number of repeated operations, the scheme provided by the present disclosure can save labor cost required by the repeated operations on one hand, and reduce test result deviation caused by human errors on the other hand; on the other hand, the dispatching server analyzes and processes the test result and displays the result, thereby being beneficial to the user to intuitively know the test result.
In some optional implementation manners, the server cluster further includes a preset database 13, and the preset database 13 is configured to store historical operation data of each second server. The dispatch server 11 is further configured to: inputting the historical operating data into a scene model to be trained according to a test request of a user to obtain a trained scene model; determining the test instruction based on an output resulting from operating the scene model.
In some application scenarios, the historical operation data includes historical operation data of at least one second server when an abnormality occurs.
The test request of the user may be an exception verification request. Such as a request for an anomaly reproduction test in the network, or a test request for a modification of the network to an anomaly. In these test requests, a scene at the time of occurrence of an abnormality needs to be reproduced. The abnormality may include, for example, that the data transmission delay exceeds a preset duration; and in a preset time, the number of data sending packets of the data sending party is not matched with the number of data receiving packets of the data receiving party, and the like.
In these alternative implementations, the scene model may be trained using historical operating data of the second servers stored in a preset database. I.e. the training data is historical data. The training data may include data over a plurality of different historical time periods. Each training data may correspond to data over a historical period of time. The training data may include input data and labeled output data. The input data may include a completion time, latency, median operation completion, RDMA network card latency, amount of receive/transmit data of the RDMA network card of at least one operation. The output data may include operation type parameters (e.g., read or write) corresponding to the history data, RDMA gateway parameters (e.g., size of data packet, frequency of data packet transmission, routing of transmission, etc.). The input data in the training data may be used as an input of a scene model, and the output data may be used as an output to train the scene model. After training according to the preset times or after the trained scene model meets the preset conditions, the training can be finished.
After receiving the test request of the user, the scheduling server may extract a plurality of pieces of history data corresponding to the abnormality indicated by the test request from a preset database. And using a plurality of pieces of historical data which correspond in sequence as the input of a pre-trained scene model. And outputting parameters such as predicted operation type parameters, RDMA network card parameters and the like by the scene model.
The test command may be generated according to the above-described operation type parameters, RDMA network card parameters, and the like. For example, the operation to be executed by the second server to be tested is generated according to the operation type parameters. Adding specific commands capable of realizing the RDMA network card parameters into the test commands according to the RDMA network card parameters and the like. The dispatch server may encapsulate the test command to generate a test command.
In these optional implementation manners, the scene model outputs history related parameters according to the history operation data, generates a test instruction based on the history related parameters, and outputs parameters of multiple dimensions related to the history data according to the scene model, which is helpful for improving the reality degree of a reproduced scene corresponding to the history operation data.
Referring to fig. 2, a flow chart of one embodiment of a testing method of a server cluster provided by the present disclosure is shown. The test method is applied to the dispatching server of the server cluster. As shown in fig. 2, the method for testing a server cluster includes the following steps 201 to 204.
Step 201, generating a test instruction according to a received user test request; the test instructions are for testing an RDMA network card of the at least one second server.
The dispatch server may receive a test request sent by a user through the terminal device it uses. The user test request may include identification information of the at least one second server, for example, IP address information of the at least one second server.
The at least one second server may be a second server in one of a plurality of nodes in the server network, or may be a second server in a different node of the plurality of nodes in the server network.
The user test request includes IP address information of at least one second server. For example, the IP address information may be an IP address field corresponding to at least one second server located in the same node. Alternatively, the IP address information may include IP addresses respectively corresponding to the second servers.
In this embodiment, the user may send the test request to the scheduling server when a plurality of second servers are newly deployed in the server network (RDMA network cards are installed on the second servers). Or a test request initiated at a verification of some new function. It may also be a test request initiated based on verification of an exception.
After receiving the test request, the dispatch server may generate a test instruction according to the test request.
The test instructions may include a plurality of test commands. The test commands are used to generate test stresses. The test command may include, for example, access to data, etc. In some application scenarios, the test command may be used to generate a plurality of test stresses every preset time period. In other application scenarios, the test command is used to generate a predetermined amount of test stress.
The test stress may be, for example, instructing a second server to send data read/write requests to other second servers.
The dispatch server may encapsulate the plurality of test commands into test instructions.
In some optional implementation manners, the user test request includes an exception verification request, and the test instruction is generated according to the received user information processing request, including the following steps:
firstly, historical operating data of a second server is obtained and input into a pre-trained scene model.
The obtaining of the historical operating data of the second server may include obtaining historical operating data of a plurality of second servers at and before the occurrence of the abnormality.
The scene model can be an artificial neural network model, a deep learning model and the like.
For the pre-trained content of the scene model, reference may be made to the above related parts, which are not described herein again.
Secondly, determining the test instruction based on the output obtained by operating the scene model; the test instruction comprises a plurality of operation parameters corresponding to the historical operation of the second server.
The historical operating data comprises historical abnormal operating data; and the plurality of operating parameters comprise a plurality of corresponding operating parameters before and after the second server has the historical abnormality.
After receiving the test request of the user, the scheduling server may extract a plurality of pieces of history data (history data corresponding to the at least one second server) corresponding to the abnormality indicated by the test request from a preset database. And using a plurality of pieces of historical data which correspond in sequence as the input of a pre-trained scene model. And outputting parameters such as predicted operation type parameters, RDMA network card parameters and the like by the scene model.
The scheduling server may generate the test command according to the operation type parameter, the RDMA network card parameter, and the like. For example, the operation to be executed by the second server to be tested is generated according to the operation type parameters. Adding specific commands capable of realizing the RDMA network card parameters into the test commands according to the RDMA network card parameters and the like. The dispatch server may encapsulate the test command to generate a test command.
In these optional implementation manners, the scene model outputs history related parameters according to the history operation data, generates a test instruction based on the history related parameters, and outputs parameters of multiple dimensions related to the history data according to the scene model, which is helpful for improving the reality degree of a reproduced scene corresponding to the history operation data.
The scheduling server can generate general test instructions corresponding to different types of RDMA network cards. For the universal test instruction, after the second server receives the universal test instruction, the second server may parse the test instruction and execute the test command in the test instruction by the RDMA network card.
In some optional implementation manners, the generating a test instruction according to the received user test request includes: and generating a test instruction matched with the target type based on the pre-acquired target type of the RDMA network card in the second server.
In these application scenarios, if the scheduling server obtains the RDMA network card type of the second server according to the communication information between the scheduling server and the second server in advance, a test instruction matching the RDMA network card type may be generated according to the known RDMA network card type of the second server. In this way, the scheduling server can generate respective corresponding test instructions for different RDMA network card types, and steps of converting the general test instructions into the test instructions executable by the RDMA network card by the second server can be reduced.
Step 202, sending the test instruction to at least one second server, so that the at least one second server runs the test instruction, wherein when the second server runs the test instruction, an RDMA network card is used for realizing reading/writing of transmission data between different second servers.
In some application scenarios, sending the test instructions to at least one second server includes sending the test instructions to the second server based on a TCP/IP protocol or an RDMA protocol.
That is, if the RDMA gateway is not installed in the scheduling server, the scheduling server may send the test instruction to each second server according to the TCP/IP protocol.
In some application scenarios, if the RDMA network card is installed in the scheduling server, the scheduling server may install an RDMA gateway protocol to send the test instruction to each second server.
Optionally, the historical operating data comprises historical abnormal operating data; and the plurality of operating parameters comprise a plurality of corresponding operating parameters before and after the second server has the historical abnormality.
The second server may execute the test command in the test instruction. For example, data read/write operations are performed according to the test command. For example, according to the test command, a plurality of data read/write requests are sent to other second servers indicated by the test command, so that the other second servers execute a plurality of read/write operations.
Step 203, receiving the test data obtained by running the test instruction sent by the second server, and generating a displayable test result according to the test data.
When executing the test instruction, the second server may send the test data generated when the local terminal executes the test instruction to the scheduling server.
In some application scenarios, the second server may send a data read/write request to another second server, and the another second server may feed back data information obtained by performing an operation corresponding to the data read/write request to the second server. The second server may transmit the data information to the dispatch server as test data of the other second server according to the test command.
The dispatching server can analyze and process the test data to obtain a displayable test result. The displayable test results may include graphical test results. The graphical test results may include graphs, histograms, scatter plots, pie charts, and the like.
And step 204, displaying the test result.
As an implementation manner, the dispatch server may send the displayable test result to a terminal device of a user, and the terminal device of the user may display the displayable test result.
In the embodiment, a test instruction is generated according to a received user test request; the test instructions are used for testing the RDMA network card of at least one second server; sending the test instruction to at least one second server so as to enable the at least one second server to run the test instruction, wherein the second server uses an RDMA network card to realize read/write of transmission data between different second servers when running the test instruction; receiving test data which is sent by the second server and obtained by running the test instruction, and generating a displayable test result according to the test data; the test result is displayed, so that on one hand, the labor cost required by the repeated operation of the manual test can be saved, and the deviation of the test result caused by human error is reduced; on the other hand, the dispatching server analyzes and processes the test result and displays the result, thereby being beneficial to the user to intuitively know the test result.
Referring to fig. 3, a flow chart of one embodiment of a testing method of a server cluster provided by the present disclosure is shown. The test method of the server cluster is applied to the second server shown in fig. 1. As shown in fig. 3, the method for testing a server cluster includes the following steps 301 to 304.
Step 301, receiving a test instruction sent by the dispatch server, where the test instruction is generated by the dispatch server according to the received user test request.
The test instructions are used to test the RDMA network card on the second server.
The scheduling server may receive a test request sent by a terminal device used by a user. The test request may include identification information of the second server to be tested. The identification information of the second server may include IP address information of the second server.
The dispatch server may generate the test instruction according to the test request. Specifically, reference may be made to relevant contents of the embodiment shown in fig. 2, which are not described herein again.
The scheduling server may send the generated test instruction to the second server indicated by the test request.
The second server may receive the test instruction sent by the scheduling server.
Step 302, operating the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data.
After receiving the test instruction, the second server may execute the test instruction, for example, parse the test instruction, and parse the test command and the RDMA network card parameter from the test instruction. The second server may execute the test command. The test instructions may direct the at least one transfer data to be sent to the target second server using the RDMA network card. The number of the target second servers may be one or more.
In some application scenarios, the test instruction may further include a multi-dimensional parameter, such as an RDMA gateway parameter, which includes but is not limited to: the size of the transmitted data packet, the transmission frequency of the data packet, the routing of the transmission and the like, and the operation type parameters corresponding to the transmission data.
In these application scenarios, when the second server executes the test instruction, the second server sets a corresponding environment according to the parameters indicated in the test instruction. For example, according to the RDMA gateway parameters in the test command, the size of the sending data packet, the transmission frequency of the data packet, the transmission route of the data packet, etc. are set. And for example, the target second server is instructed in the test instruction to execute the operation indicated by the operation type parameter. Alternatively, an operation indicated by the operation type in the test instruction is executed in accordance with the test instruction.
In these application scenarios, the RDMA gateway parameter and/or the operation type parameter may be an output result obtained by using the historical operation data of the at least one second server as an input of a pre-trained scenario model. The scene model may run on a scheduling server. And the dispatching server generates a test instruction according to the output result. The output result comprises the RDMA gateway parameter, the operation type parameter and the like.
In these application scenarios, the at least one second server may reproduce the history scenario through the test instruction. If the test command is generated according to historical abnormal data, the reproduced historical scene can facilitate a user to analyze the historical abnormal data.
The sending of the at least one transmission data to the target second server using the RDMA network card includes sending the at least one transmission data to the target second server within a preset time period.
The first target RDMA network card may be installed in the target second server. The RDMA network card can directly store the transmission data into the first preset storage area. The first preset storage area may be an area which is determined in advance and can be used for directly reading/storing data by the RDMA network card. In some application scenarios, the second server of the data sender sends a test request (data storage request) to the second server of the data receiver, where the test request may include data to be stored, information of the first preset storage area, and the like. The second server of the data sending party can use the RDMA network card installed thereon to send the test request to the RDMA network card of the second server of the data receiving party. The RDMA network card of the second server of the receiving party can store the data to be stored into the first preset storage area indicated by the test request according to the test request.
In addition, the target second server may be a second server of the data sender. The second server executing the test method may send, to the target second server, a test request instructing the target second server to send transmission data to the second server according to the test instruction. The target server may send transmission data to the second server according to the test request. Specifically, the target second server may send the transfer data to the RDMA network card of the second server using the RDMA network card. The second server may store the transmission data in a second preset storage area after receiving the transmission data.
Step 303, receiving feedback information of the target second server, and generating test data, where the test data at least includes one of: the sending information of the at least one transmission data, the feedback information of the target second server and the read/write operation information of the second server to the transmission data.
Here, the transmission information of the at least one transmission data includes a transmission packet size, a transmission frequency, a transmission time, and the like.
The feedback information includes information on success or failure of the reading operation of the transmission data, information on success or failure of storage of the transmission data, and the like.
The target second server may send at least one transfer data to the second server via the RDMA network card according to the test instruction. The second server may perform a read/write operation on the at least one transfer data after receiving the indication of the one transfer data.
Step 304, sending the test data to the dispatch server.
The second server may send the test data to the dispatch server. The dispatching server can analyze and process the test data, so that a test result which can be displayed is obtained.
In this embodiment, by receiving a test instruction sent by a scheduling server, the test instruction is generated by the scheduling server according to a received user test request; running the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data; receiving feedback information of the target second server, and generating test data, wherein the test data at least comprises one of the following: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data; the test data are sent to the scheduling server, so that on one hand, the labor cost required by the repeated operation of the manual test can be saved, and the test result deviation caused by human errors is reduced; on the other hand, the dispatching server analyzes and processes the test result and displays the result, thereby being beneficial to the user to intuitively know the test result.
Referring to fig. 4, a schematic structural diagram of an embodiment of a testing apparatus for a server cluster according to the present disclosure is shown.
As shown in fig. 4, the test apparatus of the server cluster includes a test instruction generation unit 401, an instruction transmission unit 402, a test data processing unit 403, and a display unit 404. The test instruction generating unit 401 is configured to generate a test instruction according to a received user test request; the test instructions are used for testing the RDMA network card of at least one second server; an instruction sending unit 402, configured to send the test instruction to at least one second server, so as to enable the at least one second server to execute the test instruction, where the second server implements, when executing the test instruction, reading/writing of transmission data between different second servers using an RDMA network card; a test data processing unit 403, configured to receive test data obtained by running the test instruction sent by the second server, and generate a displayable test result from the test data; and a display unit 404, configured to display the test result.
It should be noted that specific processing of the test instruction generating unit 401, the instruction sending unit 402, the test data processing unit 403, and the display unit 404 of the testing apparatus of the server cluster and technical effects brought by the processing can refer to the related descriptions of step 201 to step 204 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations, the user test request includes identification information of the at least one second server.
In some optional implementations, the instruction sending unit 402 is further configured to: sending the test instruction to the second server based on a TCP/IP protocol or an RDMA protocol.
In some optional implementations, the test instruction generation unit 401 is further configured to: and generating a test instruction matched with the target type based on the pre-acquired target type of the RDMA network card in the second server.
In some optional implementations, the test instruction generation unit 401 is further configured to: acquiring historical operating data of a second server, and inputting the historical operating data into a pre-trained scene model; determining the test instruction based on an output obtained by operating the scene model; the test instruction comprises a plurality of operation parameters corresponding to the historical operation of the second server.
Please refer to fig. 5, which shows a schematic structural diagram of an embodiment of a testing apparatus of a server cluster according to the present disclosure. The testing means of the server cluster may be arranged in a second server as shown in fig. 1.
As shown in fig. 5, the test apparatus of the server cluster includes a first receiving unit 501, an instruction executing unit 502, a test data generating unit 503, and a transmitting unit 504. The first receiving unit 501 is configured to receive a test instruction sent by a scheduling server, where the test instruction is generated by the scheduling server according to a received user test request; an instruction execution unit 502, configured to execute the test instruction, and send at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction, so as to perform a read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data; a test data generating unit 503, configured to receive the feedback information of the target second server, and generate test data, where the test data includes at least one of: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data; a sending unit 504, configured to send the test data to the scheduling server.
It should be noted that specific processing of the first receiving unit 501, the instruction executing unit 502, the test data generating unit 503, and the sending unit 504 of the testing apparatus of the server cluster and technical effects brought by the processing can refer to the related descriptions of step 301 to step 304 in the corresponding embodiment of fig. 3, and are not described herein again.
Referring to fig. 6, an exemplary system architecture to which the method of testing a cluster of servers of one embodiment of the present disclosure may be applied is shown.
As shown in fig. 6, the system architecture may include a terminal device 601, a scheduling server 602, and second servers 603, 604, 605. The terminal device 601 and the scheduling server 602 are connected in communication via a network between the scheduling server 602 and the second servers 603, 604, 605, and between the second servers 603, 604, 605. The network may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. The terminal device 601 and the scheduling server 602, and the scheduling server 602 and the second servers 603, 604, 605 may communicate with each other by using any currently known or future developed network Protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., Ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The terminal device 601 may receive or transmit a message or the like by interacting with the scheduling server 602. Various client applications, such as software testing-type applications, may be installed on the terminal device 601.
The terminal device 601 may be hardware or software. When the terminal device 601 is hardware, it may be various electronic devices having a display screen and supporting web browsing, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 4), a laptop computer, a desktop computer, and the like. When the terminal device 601 is software, it can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The scheduling server 602 may be a server that provides various services, for example, receives an information processing request transmitted by the terminal apparatus 601, performs analysis processing on the processing request, and transmits an analysis processing result (e.g., a test result) to the terminal apparatus 601.
The second servers 603, 604, 605 may be servers providing various services, for example, receiving instructions of the scheduling server, performing corresponding operations according to the instructions of the scheduling server, and sending results obtained by the operations to the scheduling server 602.
It should be noted that the test method for the server cluster provided in the embodiment of the present disclosure may be executed by the scheduling server, or may be executed by the second server, and accordingly, the test apparatus for the server cluster may be disposed in the scheduling server, or may be disposed in the second server.
It should be understood that the number of terminal devices, scheduling servers, and second servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and scheduling servers and second servers, as desired for implementation.
Referring now to fig. 7, shown is a schematic block diagram of an electronic device (e.g., the dispatch server or second server of fig. 6) suitable for use in implementing embodiments of the present disclosure. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, the electronic device may include a processing device (e.g., central processing unit, graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage device 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708, including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: a scheduling server, at least one second server; each second server is respectively connected with the scheduling server; the second server is provided with an RDMA network card; the scheduling server is used for receiving a test request of a user and generating a test instruction according to the test request; sending the test instruction to each second server, and receiving test data returned by each second server; the test instructions are used for testing the RDMA network card; processing the test data returned by each second server to generate a displayable test result; the second server is used for operating the received test instruction, and when the test instruction is operated, the RDMA network card is used for realizing the read/write of transmission data between different second servers; and generating test data of the RDMA network card, and sending the test data to the scheduling server. Or
Receiving a test instruction sent by a scheduling server, wherein the test instruction is generated by the scheduling server according to a received user test request; running the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data; receiving feedback information of the target second server, and generating test data, wherein the test data at least comprises one of the following: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data; sending the test data to the dispatch server
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not in some cases constitute a limitation on the unit itself, and for example, the determining module 301 may also be described as a module that determines a stem corresponding to each word in the initial spoken language information and obtains an initial spoken stem vector corresponding to the initial spoken language information based on the stem corresponding to each word.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A server cluster provided in accordance with one or more embodiments of the present disclosure includes: a scheduling server, at least one second server; each second server is respectively connected with the scheduling server; the second server is provided with an RDMA network card; the scheduling server is used for receiving a test request of a user and generating a test instruction according to the test request; sending the test instruction to each second server, and receiving test data returned by each second server; the test instructions are used for testing the RDMA network card; processing the test data returned by each second server to generate a displayable test result; the second server is used for operating the received test instruction, and when the test instruction is operated, the RDMA network card is used for realizing the read/write of the transmission data between different second servers; and generating test data of the RDMA network card, and sending the test data to the scheduling server.
According to one or more embodiments of the present disclosure, the server cluster further includes a preset database, where the preset database is used to store historical operating data of each second server; and the dispatch server is further to: inputting the historical operation data into a pre-trained scene model according to a test request of a user to obtain a trained scene model; determining the test instruction based on an output resulting from operating the scene model.
According to one or more embodiments of the present disclosure, the historical operating data includes data when an abnormality occurs in the at least one second server.
The method for testing the server cluster provided by one or more embodiments of the disclosure comprises the following steps: generating a test instruction according to the received user test request; the test instructions are used for testing the RDMA network card of at least one second server; sending the test instruction to at least one second server to enable the at least one second server to run the test instruction, wherein when the second server runs the test instruction, an RDMA network card is used for realizing the read/write of transmission data between different second servers; receiving test data which is sent by the second server and obtained by running the test instruction, and generating a displayable test result according to the test data; and displaying the test result.
According to one or more embodiments of the present disclosure, the user test request includes identification information of at least one second server.
According to one or more embodiments of the present disclosure, the sending the test instructions to the at least one second server includes sending the test instructions to the at least one second server based on a TCP/IP protocol or an RDMA protocol.
According to one or more embodiments of the present disclosure, the generating a test instruction according to a received user information processing request includes: and generating a test instruction matched with the target type based on the pre-acquired target type of the RDMA network card in the second server.
According to one or more embodiments of the present disclosure, the generating a test instruction according to the received user information processing request includes: acquiring historical operating data of a second server, and inputting the historical operating data into a pre-trained scene model; determining the test instruction based on an output obtained by operating the scene model; the test instruction comprises a plurality of operation parameters corresponding to the historical operation of the second server.
According to one or more embodiments of the present disclosure, the historical operating data includes historical abnormal operating data; and the plurality of operating parameters comprise a plurality of corresponding operating parameters before and after the second server has the historical abnormality.
The method for testing the server cluster provided by one or more embodiments of the disclosure comprises the following steps: receiving a test instruction sent by a scheduling server, wherein the test instruction is generated by the scheduling server according to a received user test request; running the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data; receiving feedback information of the target second server, and generating test data, wherein the test data at least comprises one of the following: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data; and sending the test data to the scheduling server.
According to one or more embodiments of the present disclosure, a testing apparatus for a server cluster is provided, including: the test instruction generating unit is used for generating a test instruction according to the received user information processing request; the test instruction is used for testing the RDMA network card of the second server; the instruction sending unit is used for sending the test instruction to at least one second server so as to enable the at least one second server to run the test instruction, wherein the second server uses an RDMA (remote direct memory access) network card to read/write transmission data between different second servers when running the test instruction; the test data processing unit is used for receiving test data which is sent by the second server and obtained by running the test instruction, and generating a displayable test result according to the test data; and the display unit is used for displaying the test result.
According to one or more embodiments of the present disclosure, the user test request includes identification information of at least one second server.
According to one or more embodiments of the present disclosure, the instruction sending unit is further configured to: sending the test instructions to the at least one second server based on a TCP/IP protocol or an RDMA protocol.
According to one or more embodiments of the present disclosure, the test instruction generation unit is further configured to: and generating a test instruction matched with the target type based on the pre-acquired target type of the RDMA network card in the second server.
According to one or more embodiments of the present disclosure, the user test request includes an exception verification request, and the test instruction generation unit is further configured to: acquiring historical operating data of a second server, and inputting the historical operating data into a pre-trained scene model; determining the test instruction based on an output obtained by operating the scene model; the test instruction comprises a plurality of operation parameters corresponding to the historical operation of the second server.
According to one or more embodiments of the present disclosure, the historical operating data includes historical abnormal operating data; and the plurality of operating parameters comprise a plurality of corresponding operating parameters before and after the second server has the historical abnormality.
According to one or more embodiments of the present disclosure, a testing apparatus for a server cluster is provided, including: the first receiving unit is used for receiving a test instruction sent by the scheduling server, and the test instruction is generated by the scheduling server according to the received user information processing request; the instruction running unit is used for running the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data; a test data generating unit, configured to receive feedback information of the target second server, and generate test data, where the test data includes at least one of: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data; and the sending unit is used for sending the test data to the scheduling server.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (14)

1. A cluster of servers, comprising:
a scheduling server, at least one second server; each second server is respectively connected with the scheduling server; the second server is provided with an RDMA network card;
the scheduling server is used for receiving a test request of a user and generating a test instruction according to the test request; sending the test instruction to each second server, and receiving test data returned by each second server; the test instructions are used for testing the RDMA network card; processing the test data returned by each second server to generate a displayable test result;
the second server is used for operating the received test instruction, and when the test instruction is operated, the RDMA network card is used for realizing the read/write of the transmission data between different second servers; and generating test data of the RDMA network card, and sending the test data to the scheduling server.
2. The server cluster according to claim 1, wherein the server cluster further comprises a preset database for storing historical operating data of each second server; and
the dispatch server is further to: inputting the historical operation data into a pre-trained scene model according to a test request of a user to obtain a trained scene model; determining the test instruction based on an output resulting from operating the scene model.
3. The server cluster of claim 2, wherein the historical operating data comprises data of at least one second server when an anomaly occurred.
4. A test method of a server cluster is applied to a scheduling server of the server cluster, and comprises the following steps:
generating a test instruction according to a received user test request; the test instructions are used for testing the RDMA network card of at least one second server;
sending the test instruction to at least one second server so as to enable the at least one second server to run the test instruction, wherein the second server uses an RDMA network card to realize read/write of transmission data between different second servers when running the test instruction;
receiving test data which is sent by the second server and obtained by running the test instruction, and generating a displayable test result according to the test data;
and displaying the test result.
5. The method of claim 4, wherein the user test request includes identification information of at least one second server.
6. The method of claim 4, wherein said sending said test instructions to at least one second server comprises:
sending the test instructions to the at least one second server based on a TCP/IP protocol or an RDMA protocol.
7. The method of claim 4, wherein the generating test instructions according to the received user information processing request comprises:
and generating a test instruction matched with the target type based on the pre-acquired target type of the RDMA network card in the second server.
8. The method of claim 4, wherein the user test request comprises an exception verification request, and the generating a test instruction according to the received user information processing request comprises:
acquiring historical operating data of a second server, and inputting the historical operating data into a pre-trained scene model;
determining the test instruction based on an output obtained by operating the scene model; the test instruction comprises a plurality of operation parameters corresponding to the historical operation of the second server.
9. The method of claim 8, wherein the historical operating data includes historical abnormal operating data; and the plurality of operating parameters comprise a plurality of corresponding operating parameters before and after the second server has the historical abnormality.
10. A test method of a server cluster is applied to a second server in a server cluster, and comprises the following steps:
receiving a test instruction sent by a scheduling server, wherein the test instruction is generated by the scheduling server according to a received user test request;
running the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data;
receiving feedback information of the target second server for executing the read/write operation, and generating test data, wherein the test data at least comprises one of the following data: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data;
and sending the test data to the scheduling server.
11. A test apparatus for a server cluster, comprising:
the test instruction generating unit is used for generating a test instruction according to the received user information processing request; the test instruction is used for testing the RDMA network card of the second server;
the instruction sending unit is used for sending the test instruction to at least one second server so as to enable the at least one second server to run the test instruction, wherein when the second server runs the test instruction, the RDMA network card is used for realizing reading/writing of transmission data between different second servers;
the test data processing unit is used for receiving test data which is sent by the second server and obtained by running the test instruction, and generating a displayable test result according to the test data;
and the display unit is used for displaying the test result.
12. A test apparatus for a server cluster, comprising:
the first receiving unit is used for receiving a test instruction sent by the scheduling server, and the test instruction is generated by the scheduling server according to the received user information processing request;
the instruction running unit is used for running the test instruction, and sending at least one piece of transmission data indicated by the test instruction to a first target RDMA network card of a target second server by using the RDMA network card according to the test instruction so as to execute read/write operation on the transmission data by the first target RDMA network card; or receiving at least one transmission data sent by the target second server through the target RDMA network card according to the test instruction, and executing read/write operation on the transmission data;
a test data generating unit, configured to receive feedback information of the target second server, and generate test data, where the test data includes at least one of: sending information of the at least one transmission data, feedback information of the target second server and read/write operation information of the second server on the transmission data;
and the sending unit is used for sending the test data to the scheduling server.
13. An electronic device, comprising:
at least one processor;
storage means having stored thereon at least one program which, when executed by the at least one processor, causes the at least one processor to carry out the method of any one of claims 4-10.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 4-10.
CN202210729319.2A 2022-06-24 2022-06-24 Server cluster, testing method and device of server cluster and electronic equipment Active CN115022328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210729319.2A CN115022328B (en) 2022-06-24 2022-06-24 Server cluster, testing method and device of server cluster and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210729319.2A CN115022328B (en) 2022-06-24 2022-06-24 Server cluster, testing method and device of server cluster and electronic equipment

Publications (2)

Publication Number Publication Date
CN115022328A true CN115022328A (en) 2022-09-06
CN115022328B CN115022328B (en) 2023-08-08

Family

ID=83077438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210729319.2A Active CN115022328B (en) 2022-06-24 2022-06-24 Server cluster, testing method and device of server cluster and electronic equipment

Country Status (1)

Country Link
CN (1) CN115022328B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115622929A (en) * 2022-12-20 2023-01-17 珠海星云智联科技有限公司 Remote direct data access RDMA (remote direct memory Access) test method and related device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130138758A1 (en) * 2005-08-09 2013-05-30 Xsigo Systems, Inc. Efficient data transfer between servers and remote peripherals
US20140165057A1 (en) * 2008-06-27 2014-06-12 Netapp, Inc. Operating A Storage Server On A Virtual Machine
CN109800160A (en) * 2018-12-27 2019-05-24 深圳云天励飞技术有限公司 Cluster server fault testing method and relevant apparatus in machine learning system
CN111181801A (en) * 2019-12-04 2020-05-19 腾讯云计算(北京)有限责任公司 Node cluster testing method and device, electronic equipment and storage medium
CN111176961A (en) * 2019-12-05 2020-05-19 腾讯科技(深圳)有限公司 Application program testing method and device and storage medium
US20200396288A1 (en) * 2019-06-16 2020-12-17 Purdue Research Foundation Distributed data store with persistent memory
CN112596960A (en) * 2020-11-25 2021-04-02 新华三云计算技术有限公司 Distributed storage service switching method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130138758A1 (en) * 2005-08-09 2013-05-30 Xsigo Systems, Inc. Efficient data transfer between servers and remote peripherals
US20140165057A1 (en) * 2008-06-27 2014-06-12 Netapp, Inc. Operating A Storage Server On A Virtual Machine
CN109800160A (en) * 2018-12-27 2019-05-24 深圳云天励飞技术有限公司 Cluster server fault testing method and relevant apparatus in machine learning system
US20200396288A1 (en) * 2019-06-16 2020-12-17 Purdue Research Foundation Distributed data store with persistent memory
CN111181801A (en) * 2019-12-04 2020-05-19 腾讯云计算(北京)有限责任公司 Node cluster testing method and device, electronic equipment and storage medium
CN111176961A (en) * 2019-12-05 2020-05-19 腾讯科技(深圳)有限公司 Application program testing method and device and storage medium
CN112596960A (en) * 2020-11-25 2021-04-02 新华三云计算技术有限公司 Distributed storage service switching method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TENG MA ET AL.: "X-RDMA: Effective RDMA Middleware in Large-scale Production Environment", 《2019 IEEE INTERNATIONAL CONFERENCE ON CLUSTER COMPUTING(CLUSTER)》 *
万勇: "集群系统中的网络性能优化方法研究", 《中国博士学位论文全文数据库(电子期刊)》 *
冯浩: "浅析服务器集群的设计、实现与测试", 《信息系统工程》, no. 3 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115622929A (en) * 2022-12-20 2023-01-17 珠海星云智联科技有限公司 Remote direct data access RDMA (remote direct memory Access) test method and related device
CN115622929B (en) * 2022-12-20 2023-03-07 珠海星云智联科技有限公司 Remote direct data access RDMA (remote direct memory Access) test method and related device

Also Published As

Publication number Publication date
CN115022328B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US11016716B2 (en) Picture interface display method and apparatus according to jump protocol
US11412070B2 (en) Method and apparatus for generating information
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111354345B (en) Method, apparatus, device and medium for generating speech model and speech recognition
CN112434620B (en) Scene text recognition method, device, equipment and computer readable medium
CN113505520A (en) Method, device and system for supporting heterogeneous federated learning
CN110764983A (en) Test method, device, medium and electronic equipment
CN115022328B (en) Server cluster, testing method and device of server cluster and electronic equipment
CN110910469A (en) Method, device, medium and electronic equipment for drawing handwriting
US20200007959A1 (en) Method and apparatus for publishing information, and method and apparatus for processing information
CN110879729A (en) Channel configuration method and device for live broadcast room, readable medium and electronic equipment
CN110837334A (en) Method, device, terminal and storage medium for interactive control
CN111612434B (en) Method, apparatus, electronic device and medium for generating processing flow
CN109819042A (en) For providing the method and apparatus of Software Development Kit
CN109840109B (en) Method and apparatus for generating software development toolkit
CN111324470A (en) Method and device for generating information
CN111626802A (en) Method and apparatus for processing information
CN110532115B (en) System, method and apparatus for developing smart contracts
CN112346870A (en) Model processing method and system
CN112543228A (en) Data transmission method and device, electronic equipment and computer readable medium
CN111680754A (en) Image classification method and device, electronic equipment and computer-readable storage medium
CN111831530A (en) Test method and device
CN114356295B (en) Three-dimensional model construction method and device and electronic equipment
CN114125684B (en) Smart speaker testing method and device, electronic equipment and storage medium
CN112862110B (en) Model generation method and device and electronic equipment

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