Cabinet server test method and system, electronic equipment and storage medium

By pre-testing and comprehensive testing of the cabinet server, we ensure that the hardware and software environment meet the requirements, solving the problems of limitations in the test scope and insufficient interconnection performance verification in traditional testing methods, and achieving overall stability verification of the cabinet server.

CN120276924AActive Publication Date: 2025-07-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510750702.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-07-08
Estimated Expiration
2045-06-06

AI Technical Summary

Technical Problem

Traditional testing methods only conduct independent testing on a single component, lack systematic verification of the overall cabinet server, it is difficult to find collaborative abnormalities between components, and the stability of interconnected nodes is not fully verified, resulting in communication bottlenecks or system crashes in actual deployment.

Method used

Provide a cabinet server testing method, including obtaining component information, performing pre-testing, determining whether the hardware and software environment meet the testing requirements, and testing the computing nodes, interconnected nodes and the overall ones in turn to ensure the stability of each node.

Benefits of technology

The test scope has been expanded, the interconnection performance of the cabinet server has been fully verified, the impact of the hardware and software environment has been avoided, and the comprehensiveness and stability of the test has been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276924A_ABST
    Figure CN120276924A_ABST
Patent Text Reader

Abstract

The invention discloses a cabinet server testing method and system, electronic equipment and a storage medium, and relates to the technical field of computers, and the method comprises the steps: carrying out the pre-detection of a cabinet server after the installation of the cabinet server is completed, so as to guarantee that the hardware and software environment meets the testing requirements, the influence of a hardware environment and a software environment on the test of the cabinet server is avoided; when the test requirements are met, the computing nodes, the interconnection nodes and the cabinet server are tested in sequence, when the computing nodes pass the test, the interconnection nodes are tested, and when the interconnection nodes pass the test, the cabinet server is tested as a whole. The technical problems of limited test range and insufficient interconnection performance verification are solved, and the technical effects of expanding the test range and fully verifying the interconnection performance are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technologies, and in particular, to a method and system for testing a cabinet server, an electronic device, and a storage medium. Background Art

[0002] In a large data center, servers are installed in cabinets, and the cabinets can provide power for the servers. When all the servers in the cabinet are powered on, a large impact will be generated on the overall cabinet server. To ensure the safety of the cabinet server during use, generally, the cabinet server will be tested to identify problems existing in the cabinet server and make improvements. Traditional testing methods only perform independent tests on single components, lacking systematic verification of the overall cabinet server and making it difficult to discover collaborative anomalies between components; traditional testing methods do not fully verify the stability of interconnected nodes, resulting in communication bottlenecks or system crashes easily occurring during actual deployment. Summary of the Invention

[0003] The present application provides a method and system for testing a cabinet server, an electronic device, and a storage medium to at least solve the problems of limited testing scope and insufficient verification of interconnection performance in related technologies.

[0004] The present application provides a method for testing a cabinet server. The cabinet server includes at least a computing node and an interconnected node. The method for testing a cabinet server includes: In response to the completion of the installation of the cabinet server, obtaining component information of the cabinet server and determining test parameters according to the component information; Performing a pre-detection on the cabinet server to obtain a pre-detection result, and judging whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; If the test requirements are met, then sequentially testing the computing node, the interconnected node, and the overall cabinet server according to the test parameters to obtain a test result, wherein when the computing node passes the test, the interconnected node is tested, and when the interconnected node passes the test, the overall cabinet server is tested; Judging the stability of the cabinet server according to the test result.

[0005] The present application further provides a system for testing a cabinet server. The cabinet server includes at least a computing node and an interconnected node. The system for testing a cabinet server includes: An obtaining module, configured to obtain component information of the cabinet server in response to the completion of the installation of the cabinet server; A determining module, configured to determine test parameters according to the component information; A pre-detection module, configured to perform a pre-detection on the cabinet server to obtain a pre-detection result; The first judgment module is used to judge whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; The test module is used to, if the test requirements are met, sequentially test the computing nodes, interconnection nodes, and the cabinet server as a whole according to the test parameters to obtain test results. Among them, when the computing node passes the test, the interconnection node is tested, and when the interconnection node passes the test, the cabinet server as a whole is tested; The second judgment module is used to judge the stability of the cabinet server according to the test results.

[0006] The present application also provides an electronic device, including: a memory for storing a computer program; a processor for, when executing the computer program, at least implementing a cabinet server test method including the following steps: In response to the completion of the installation of the cabinet server, obtain the component information of the cabinet server, and determine the test parameters according to the component information; Perform pre-detection on the cabinet server to obtain a pre-detection result, and judge whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; If the test requirements are met, sequentially test the computing nodes, interconnection nodes, and the cabinet server as a whole according to the test parameters to obtain test results. Among them, when the computing node passes the test, the interconnection node is tested, and when the interconnection node passes the test, the cabinet server as a whole is tested; Judge the stability of the cabinet server according to the test results.

[0007] The present application also provides a computer-readable storage medium, in which a computer program is stored. Among them, when the computer program is executed by a processor, it at least implements a cabinet server test method including the following steps: In response to the completion of the installation of the cabinet server, obtain the component information of the cabinet server, and determine the test parameters according to the component information; Perform pre-detection on the cabinet server to obtain a pre-detection result, and judge whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; If the test requirements are met, sequentially test the computing nodes, interconnection nodes, and the cabinet server as a whole according to the test parameters to obtain test results. Among them, when the computing node passes the test, the interconnection node is tested, and when the interconnection node passes the test, the cabinet server as a whole is tested; Judge the stability of the cabinet server according to the test results.

[0008] The present application also provides a computer program product, including a computer program, which when executed by a processor, at least implements a cabinet server test method including the following steps: Upon completion of the installation of the rack-mounted server, obtain the component information of the rack-mounted server, and determine the test parameters according to the component information; Perform a pre-detection on the rack-mounted server to obtain a pre-detection result, and determine whether the hardware environment and software environment of the rack-mounted server meet the test requirements according to the pre-detection result; If the test requirements are met, then test the computing nodes, interconnection nodes, and the entire rack-mounted server in sequence according to the test parameters to obtain test results. Among them, when the computing node test passes, test the interconnection node, and when the interconnection node test passes, test the entire rack-mounted server; Judge the stability of the rack-mounted server according to the test results.

[0009] Through the present application, after the installation of the rack-mounted server is completed, a pre-detection is performed on the rack-mounted server to ensure that the hardware and software environments meet the test requirements, and to avoid the impact of the hardware environment and software environment on the test of the rack-mounted server; when the test requirements are met, the computing nodes, interconnection nodes, and the entire rack-mounted server are tested in sequence, and when the computing node test passes, the interconnection node is tested, and when the interconnection node test passes, the entire rack-mounted server is tested, solving the technical problems of limited test scope and insufficient verification of interconnection performance, and achieving the technical effect of expanding the test scope and fully verifying the interconnection performance. Description of the Drawings

[0010] To more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0011] Figure 1 It is a schematic flowchart of a method for testing a rack-mounted server in an embodiment; Figure 2 It is a detailed flowchart of a method for testing a rack-mounted server in an embodiment; Figure 3 It is a structural block diagram of a system for testing a rack-mounted server in an embodiment; Figure 4 It is an internal structural diagram of an electronic device in an embodiment. Detailed Embodiments

[0012] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0013] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and are not used to describe a specific order or sequence.

[0014] To enable those skilled in the art of this technology to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0015] Embodiment 1 In one embodiment, as Figure 1 shown, a cabinet server testing method is provided. The cabinet server includes at least a computing node and an interconnect node. The cabinet server testing method includes: In response to the completion of the installation of the cabinet server, obtain the component information of the cabinet server, and determine the test parameters according to the component information; Perform a pre-detection on the cabinet server to obtain a pre-detection result, and determine whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; If the test requirements are met, then test the computing node, the interconnect node, and the cabinet server as a whole in sequence according to the test parameters to obtain a test result. Among them, when the computing node passes the test, the interconnect node is tested, and when the interconnect node passes the test, the cabinet server as a whole is tested; Judge the stability of the cabinet server according to the test result.

[0016] Specifically, after the cabinet server is installed, pre - detection is performed on the cabinet server to ensure that the hardware and software environments meet the test requirements and to avoid the impact of the hardware and software environments on the cabinet server test. When the test requirements are met, the computing nodes, the interconnection nodes, and the cabinet server as a whole are tested in sequence. And when the computing nodes pass the test, the interconnection nodes are tested. When the interconnection nodes pass the test, the cabinet server as a whole is tested, solving the technical problems of limited test scope and insufficient verification of interconnection performance, and achieving the technical effect of expanding the test scope and fully verifying the interconnection performance.

[0017] In a specific embodiment, before the test execution, global resource scheduling and environment configuration are performed on the heterogeneous architecture of the cabinet server, such as computing nodes, interconnection nodes, and power modules. First, identify the physical layout and logical topology of all components within the cabinet server, mainly obtaining the power supply capacity and redundancy configuration of the power module through the Intelligent Platform Management Interface or the management standard based on the Hypertext Transfer Protocol Secure service; the model, quantity, memory capacity, central processing unit core distribution, and other component information of the graphics processing units within each computing node; and the interconnection topology relationship of the interconnection nodes. Secondly, define the utilization threshold of the graphics processing unit according to the actual situation of each node, such as 90% - 100%, the interconnection bandwidth occupancy rate, the temperature difference value of the graphics processing unit, and the test duration. Finally, perform pre - inspection on the cabinet server to ensure that the hardware environment and software environment meet the test requirements.

[0018] In a specific embodiment, the computing nodes and the interconnection nodes can be tested in parallel, and only when both the computing nodes and the interconnection nodes pass the test, is the cabinet server as a whole tested. Otherwise, it is determined that the cabinet server is unstable. The test results can be saved in a triple format, and binary 1 and 0 are used to represent the pass or fail of the test results respectively. Determine whether the computing results pass the test according to the value of the first element in the triple; determine whether the interconnection nodes pass the test according to the value of the second element in the triple; determine whether to test the cabinet server as a whole based on the AND calculation result of the value of the first element and the value of the second element, and obtain the value of the third element in the triple; determine whether the cabinet server as a whole passes the test according to the value of the third element, and then determine the stability of the cabinet server. For example, if the values of the first element and the second element are both 1, it is determined that both the computing nodes and the interconnection nodes pass the test; according to the AND calculation result of the value of the first element and the value of the second element being 1, it is determined to test the cabinet server as a whole; if the value of the third element is 1, it is determined that the cabinet server as a whole passes the test and the cabinet server is stable; if the value of the third element is 0, it is determined that the cabinet server as a whole fails the test and the cabinet server is unstable.

[0019] In one embodiment, a pre - detection is performed on the cabinet server to obtain a pre - detection result, and it is determined whether the hardware environment of the cabinet server meets the test requirements according to the pre - detection result, including: Obtain the power module information in the cabinet server, and configure a power - switching script according to the power module information, where the power module information at least includes main power module information and redundant power module information; Perform a power - switching operation on the cabinet server according to the power - switching script; If the power - switching fails, it is determined that the power module of the cabinet server does not meet the test requirements; If the power - switching is successful, it is determined that the power module of the cabinet server meets the test requirements.

[0020] Specifically, through the pre - detection of the power module in the cabinet server, it is ensured that the power module meets the test requirements, avoiding the impact on the cabinet server test due to the lack of redundant power modules or other situations.

[0021] In a specific embodiment, according to the power - switching script, a single - path power failure of the main power module is simulated to ensure that the bus can seamlessly switch the power supply path.

[0022] In one embodiment, as Figure 2 shown, the number value of the test result takes the first target value, the second target value, or the third target value, and the type of the test result is pass and fail. According to the test parameters, the computing nodes, the inter - connection nodes, and the cabinet server as a whole are tested in sequence to obtain test results, including: Test the computing nodes according to the test parameters to obtain a first test result, and determine the stability of the computing nodes according to the first test result; If the computing nodes are unstable, it is determined that the number value of the test result takes the first target value, and the type of the first test result in the test result is set to fail; If the computing nodes are stable, it is determined that the number value of the test result takes the first target value, and the type of the first test result in the test result is set to pass. Then, test the inter - connection nodes according to the test parameters to obtain a second test result, and determine the stability of the inter - connection nodes according to the second test result; If the inter - connection nodes are unstable, modify the number value of the test result to the second target value, and set the type of the second test result in the test result to fail; If the inter - connection nodes are stable, modify the number value of the test result to the second target value, and set the type of the second test result to pass. Then, test the cabinet server as a whole according to the test parameters to obtain a third test result, and determine the connectivity of the cabinet server as a whole according to the third test result; If the entire cabinet server is not connected, modify the quantity value of the test result to the third target value, and set the type of the third test result in the test result to "failed". If the entire cabinet server is connected, modify the quantity value of the test result to the third target value, and set the type of the third test result in the test result to "passed".

[0023] Specifically, test the computing nodes, interconnection nodes, and the entire cabinet server in sequence to obtain test results, so as to determine the stability of the cabinet server according to the quantity value of the test result and the type of the test result.

[0024] In a specific implementation, the first target value in this embodiment is 1, the second target value is 2, and the third target value is 3. Each computing node, interconnection node, and each key device are installed on the rack to form a complete cabinet server, and the operation data of each component of the cabinet server is collected, including the temperature of the graphics processing unit, the bandwidth of the interconnection node, the communication delay, the power consumption of the power supply, and the system log, and it is determined whether the operation data is abnormal. When the operation data is normal, a stress test is performed on the computing node and the interconnection node, otherwise an alarm message is generated. And the position and power-on state of each node are automatically detected through the intelligent platform management interface command and saved in the log, so that the actual position after replacement can be obtained even if the nodes are replaced in position, thereby avoiding misidentification caused by misplacement after production or maintenance, and further avoiding the situation of program operation error or failure.

[0025] In one embodiment, judging the stability of the cabinet server according to the test result includes: Determine the quantity value of the test result; If the quantity value is the first target value or the second target value, it is determined that the cabinet server is unstable; If the quantity value is the third target value, determine the type of the third test result in the test result; If the type of the third test result is "failed", it is determined that the cabinet server is unstable; If the type of the third test result is "passed", it is determined that the cabinet server is stable.

[0026] Specifically, in the case where individual components such as computing nodes and interconnection nodes pass the test, the entire cabinet server is tested. On the premise of ensuring the stability verification of the interconnection nodes, the test scope is expanded, which is conducive to discovering the collaborative anomalies between components.

[0027] In one embodiment, testing the computing node according to the test parameters to obtain the first test result includes: Test the floating-point operation ability of the central processing unit in the computing node according to the test duration and the number of central processing unit cores in the test parameters to obtain the fourth test result; According to the test duration in the test parameters, perform read and write stress tests on the memory and hard disk in the computing node to obtain the fifth test result and the sixth test result; Determine the first test result according to the fourth test result, the fifth test result, and the sixth test result.

[0028] Specifically, determine the stability of the computing node by performing stress tests on the central processing unit, memory, and hard disk.

[0029] In a specific embodiment, perform stress tests of different intensities on components such as the central processing unit, memory, and hard disk according to the test duration, utilization threshold, and test tasks in the test parameters. Perform a stress test on the central processing unit by simulating a large number of data operation tasks, such as using a linear system software package command to perform large-scale matrix operations to test the floating-point operation ability of the central processing unit; perform stress tests on the memory and hard disk by continuously reading and writing data, such as using a disk test tool to perform stress tests of different types on the hard disk, such as sequential read and random write. And real-time monitor the performance indicators of each component, such as the central processing unit utilization rate, memory read and write speed, and hard disk input and output rate. During the stress test, the status of the baseboard management controller of the computing node, log information, and the status of each sensor will also be detected.

[0030] In a specific embodiment, the core of the cabinet server is the graphics processing unit. After ensuring that there are no abnormalities in the three major components of the central processing unit, memory, and hard disk of the computing node, eliminate hardware link and three major component problems, and then specifically test the interconnection between the interconnection node composed of the switching components separated from the computing node and the graphics processing unit of the computing node to verify the core interconnection ability in the cabinet server. Send a large number of parallel computing tasks to the graphics processing unit to simulate a high-load application scenario, such as using a parallel test program to send a large-scale matrix multiplication task to the graphics processing unit, monitor the data transmission rate between the graphics processing units, and at the same time detect the running stability of the interconnection node under high load, whether there are abnormalities such as packet loss.

[0031] In an embodiment, the computing node is connected to the interconnection node, and the interconnection node is tested according to the test parameters to obtain the second test result, including: Perform a stress test on the interconnection node according to the test parameters; Taking the time interval in the test parameters as the period, record the data transmission rate and communication delay time between the interconnection node and the computing node; Compare the data transmission rate with the data transmission rate threshold in the test parameters to obtain the first comparison result; Compare the communication delay time with the communication delay time threshold in the test parameters to obtain the second comparison result; Determine the second test result according to the first comparison result and the second comparison result.

[0032] Specifically, compare the data transmission rate and communication delay time between the interconnected node and the computing node with the corresponding thresholds in the test parameters respectively to determine the stability of the interconnected node.

[0033] In a specific embodiment, it is necessary to conduct a stress test on the interconnected node alone to ensure the stability of the interconnected node. After the interconnected node enters its own separate operating system, it obtains the Internet protocol address information of the node, etc., and then according to the received stress test instruction, sends a large amount of deep learning training sample data to the graphics processing unit to simulate the high-load data transmission requirements in complex artificial intelligence scenarios. At the same time, in the specific implementation, this embodiment records the key performance indicators such as the data transmission rate and communication delay between the interconnected node and each graphics processing unit every 10 s. If the rate does not meet the standard, etc., an error is reported in time, and the R & D personnel are requested to analyze it; each data is also recorded in parallel for subsequent order analysis.

[0034] In one embodiment, test the entire cabinet server according to the test parameters to obtain a third test result, including: Determine the peripheral node, receive the request sent by the peripheral node, and obtain the response time and packet loss rate based on the response result of the request; Compare the response time with the timeout threshold in the test parameters to obtain a third comparison result; Compare the packet loss rate with the packet loss rate threshold in the test parameters to obtain a fourth comparison result; Determine the third test result according to the third comparison result and the fourth comparison result.

[0035] Specifically, compare the response time and packet loss rate in the overall test of the cabinet server with the corresponding thresholds in the test parameters respectively to determine the connectivity of the overall cabinet server.

[0036] In a specific embodiment, first, the specifications and versions of some switches and power modules in the cabinet server are detected to prevent the wrong corresponding devices from being used. Then, the presence status of the power supply on the power module and the corresponding power consumption are tested to ensure the normal power supply of the power module. Then, either a single server is used as a peripheral or a certain node in the cabinet server is used as a peripheral node. Internally, the connection is mainly made through the Internet Protocol addresses of the baseboard management controllers of the computing nodes and the interconnect nodes, and then the overall connectivity test of the cabinet server is carried out. The connectivity of the cabinet server can be tested by sending probe data packets to each component in the cabinet server to detect whether the links between the components are unobstructed and whether the data can be transmitted normally. For example, the Internet Control Message Protocol's Internet Packet Explorer command is used to probe the Internet Protocol addresses of devices such as switches, computing nodes, and interconnect nodes to verify the network connectivity between them; a port scanning tool can also be used to detect the reachability of the open ports of each device to determine the connectivity at the service level between the devices.

[0037] In addition, a pre-detection is performed on the cabinet server to obtain a pre-detection result, and based on the pre-detection result, it is determined whether the hardware environment of the cabinet server meets the test requirements. It also includes: Verify the firmware version and physical connection status of the computing nodes and the interconnect nodes; If the verification fails, it is determined that the hardware environment of the cabinet server does not meet the test requirements; If the verification is successful, it is determined that the firmware version and physical connection status of the cabinet server meet the test requirements; Obtain the pre-boot execution environment script corresponding to the cabinet server, and calculate the first hash value of the pre-boot execution environment script; Deploy the pre-boot execution environment script, and calculate the second hash value of the pre-boot execution environment script; Compare the first hash value with the second hash value; If the first hash value is the same as the second hash value, compare the version in the pre-boot execution environment script with the corresponding version in the cabinet server; If the version in the pre-boot execution environment script is the same as the corresponding version in the cabinet server, it is determined that the software environment of the cabinet server meets the test requirements; Among them, comparing the version in the pre-boot execution environment script with the corresponding version in the cabinet server includes: Compare the first operating system version in the pre-boot execution environment script with the second operating system version in the cabinet server, compare the first kernel version in the pre-boot execution environment script with the second kernel version in the cabinet server, and compare the first driver version in the pre-boot execution environment script with the second driver version in the cabinet server.

[0038] Specifically, by determining whether the hardware environment and software environment in the cabinet server meet the test requirements, situations where the test fails due to hardware reasons are excluded, and situations where the program cannot be executed or fails due to lack of software dependencies are avoided.

[0039] In specific implementation, this embodiment mainly verifies the firmware versions and physical connection statuses of computing nodes and interconnection nodes, etc.; simulates single-path power-off of the power supply module to ensure that the bus can seamlessly switch the power supply path; since the factory has a diskless system, each time the pre-boot execution environment script is enabled to boot into the system, it is necessary to check the compatibility and integrity of the software environment such as the environment version and driver version in each script to avoid the program being unable to be executed or failing due to lack of dependencies.

[0040] In addition, for the data generated during the above test process, including the performance data of each component, the measurement time, the test results, etc., analysis and processing are carried out to display information such as the test results, performance index charts, and fault reports, which is convenient for the operator to intuitively understand the test situation and analyze the reasons. After filtering the database tables, the error messages are read and fed back to the corresponding production line managers, and the production line managers check the faults and perform corresponding component replacement processing.

[0041] It should be understood that although Figure 1 、 Figure 2 the steps in the flowchart of Figure 1 、 Figure 2 are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figure 1 、 Figure 2 at least a part of the steps in

[0042] Embodiment 2 In one embodiment, as Figure 3 shown, a cabinet server test system is provided. The cabinet server includes at least a computing node and an interconnection node. The cabinet server test system includes: An acquisition module, configured to acquire component information of the cabinet server in response to the completion of the installation of the cabinet server; A determination module, configured to determine test parameters according to the component information; A pre-detection module, configured to perform pre-detection on the cabinet server to obtain a pre-detection result; The first judgment module is used to judge whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection results; The test module is used to, if the test requirements are met, sequentially test the computing nodes, interconnection nodes, and the cabinet server as a whole according to the test parameters to obtain test results. Among them, when the computing node test passes, the interconnection node is tested, and when the interconnection node test passes, the cabinet server as a whole is tested; The second judgment module is used to judge the stability of the cabinet server according to the test results.

[0043] In one embodiment, the pre-detection module and the first judgment module are specifically used for: Obtain the power module information in the cabinet server and configure a power switching script according to the power module information, where the power module information at least includes the main power module information and redundant power module information; Execute a power switching operation on the cabinet server according to the power switching script; If the power switching fails, it is determined that the power module of the cabinet server does not meet the test requirements; If the power switching is successful, it is determined that the power module of the cabinet server meets the test requirements.

[0044] In one embodiment, the number of test results takes a first target value, a second target value, or a third target value, and the type of test results is pass and fail. The test module is specifically used for: Test the computing nodes according to the test parameters to obtain a first test result, and determine the stability of the computing nodes according to the first test result; If the computing nodes are unstable, it is determined that the number of test results takes the first target value, and the type of the first test result in the test results is set to fail; If the computing nodes are stable, it is determined that the number of test results takes the first target value, and the type of the first test result in the test results is set to pass. Test the interconnection nodes according to the test parameters to obtain a second test result, and determine the stability of the interconnection nodes according to the second test result; If the interconnection nodes are unstable, the number of test results is modified to the second target value, and the type of the second test result in the test results is set to fail; If the interconnection nodes are stable, the number of test results is modified to the second target value, and the type of the second test result is set to pass. Test the cabinet server as a whole according to the test parameters to obtain a third test result, and determine the connectivity of the cabinet server as a whole according to the third test result; If the cabinet server is not connected as a whole, modify the numerical value of the test result to the third target value, and set the type of the third test result in the test result to failed; If the cabinet server is connected as a whole, modify the numerical value of the test result to the third target value, and set the type of the third test result in the test result to passed.

[0045] In one embodiment, the second judgment module is specifically configured to: Determine the numerical value of the test result; If the numerical value is the first target value or the second target value, determine that the cabinet server is unstable; If the numerical value is the third target value, determine the type of the third test result in the test result; If the type of the third test result is failed, determine that the cabinet server is unstable; If the type of the third test result is passed, determine that the cabinet server is stable.

[0046] In one embodiment, the test module is specifically further configured to: According to the test duration and the number of central processing unit cores in the test parameters, test the floating-point operation ability of the central processing unit in the computing node to obtain a fourth test result; According to the test duration in the test parameters, perform read / write stress tests on the memory and hard disk in the computing node to obtain a fifth test result and a sixth test result; Determine the first test result according to the fourth test result, the fifth test result, and the sixth test result.

[0047] In one embodiment, the computing node is connected to the interconnection node, and the test module is specifically further configured to: Perform a stress test on the interconnection node according to the test parameters; Taking the time interval in the test parameters as a period, record the data transmission rate and communication delay time between the interconnection node and the computing node; Compare the data transmission rate with the data transmission rate threshold in the test parameters to obtain a first comparison result; Compare the communication delay time with the communication delay time threshold in the test parameters to obtain a second comparison result; Determine the second test result according to the first comparison result and the second comparison result.

[0048] In one embodiment, the test module is specifically further configured to: Determine the peripheral node, receive the request sent by the peripheral node, and based on the response result of the request, obtain the response time and packet loss rate; compare the response time with the timeout time threshold in the test parameters to obtain a third comparison result; Compare the packet loss rate with the packet loss rate threshold in the test parameters to obtain a fourth comparison result; Determine a third test result according to the third comparison result and the fourth comparison result.

[0049] For the specific limitations of the cabinet server test system, reference can be made to the limitations on the cabinet server test method in the above text, which will not be elaborated here. Each module in the above cabinet server test system can be implemented in whole or in part by software, hardware, and their combinations. The above modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.

[0050] Embodiment III In one embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: In response to the completion of the installation of the cabinet server, obtain the component information of the cabinet server, and determine the test parameters according to the component information; Perform a pre-detection on the cabinet server to obtain a pre-detection result, and determine whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; If the test requirements are met, then test the computing nodes, interconnection nodes, and the cabinet server as a whole in sequence according to the test parameters to obtain test results. Among them, when the computing node test passes, test the interconnection node, and when the interconnection node test passes, test the cabinet server as a whole; Judge the stability of the cabinet server according to the test results.

[0051] When the program instructions are read and executed by one or more processors, they can also perform operations corresponding to the steps in the above method embodiments. Reference can be made to the descriptions in the above text, which will not be elaborated here. Refer to Figure 4 , which exemplarily shows the architecture of the electronic device. Specifically, it may include a processor 410, a video display adapter 411, a disk drive 412, an input / output interface 413, a network interface 414, and a memory 420. The above processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, and the memory 420 can be communicatively connected through a communication bus 430.

[0052] Among them, the processor 410 can be implemented in the form of a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in this application.

[0053] The memory 420 can be implemented in the form of a read-only memory (ROM), a random access memory (RAM), a static storage device, a dynamic storage device, etc. The memory 420 can store an operating system 421 for controlling the operation of the electronic device 400, and a basic input / output system (BIOS) 422 for controlling the low-level operations of the electronic device 400. In addition, a web browser 423, a data storage management 424, an icon font processing system 425, etc. can also be stored. The above-mentioned icon font processing system 425 can be the application program that specifically implements the operations of the foregoing steps in the embodiments of this application. In short, when implementing the technical solutions provided in this application through software or firmware, the relevant program codes are stored in the memory 420 and are called and executed by the processor 410.

[0054] The input / output interface 413 is used to connect to an input / output module to implement information input and output. The input / output module can be configured as a component in the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Among them, the input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.

[0055] The network interface 414 is used to connect to a communication module (not shown in the figure) to implement communication interaction between this device and other devices. Among them, the communication module can implement communication through a wired method (such as USB, network cable, etc.) or can implement communication through a wireless method (such as a mobile network, WIFI, Bluetooth, etc.).

[0056] The bus 430 includes a path for transmitting information between various components of the device (such as the processor 410, the video display adapter 411, the disk drive 412, the input / output interface 413, the network interface 414, and the memory 420).

[0057] In addition, the electronic device 400 can also obtain information on specific collection conditions from the virtual resource object collection condition information database 441 for condition judgment.

[0058] It should be noted that although the above electronic device 400 only shows the processor 410, video display adapter 411, disk drive 412, input / output interface 413, network interface 414, memory 420, bus 430, etc., in the specific implementation process, the electronic device may further include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device may also only include the components necessary to implement the solution of the present application, and does not necessarily include all the components shown in the figure.

[0059] From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing an electronic device (which can be a personal computer, cloud server, or network device, etc.) to execute the methods of each embodiment or some parts of the embodiments of the present application.

[0060] Embodiment 4 In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: In response to the completion of the installation of the rack server, obtain the component information of the rack server, and determine the test parameters according to the component information; Perform a pre-detection on the rack server to obtain a pre-detection result, and determine whether the hardware environment and software environment of the rack server meet the test requirements according to the pre-detection result; If the test requirements are met, then sequentially test the computing nodes, interconnection nodes, and the rack server as a whole according to the test parameters to obtain a test result. Among them, when the computing node test passes, test the interconnection node, and when the interconnection node test passes, test the rack server as a whole; Judge the stability of the rack server according to the test result.

[0061] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in this application can include non-volatile and / or volatile memories. Non-volatile 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 many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.

[0062] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0063] The above embodiments only represent several implementation manners of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of the patent of this application should be subject to the appended claims.

[0064] Embodiment Five In one embodiment, a computer program product is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: In response to the completion of the installation of the cabinet server, obtain the component information of the cabinet server, and determine the test parameters according to the component information; Perform a pre-detection on the cabinet server to obtain a pre-detection result, and determine whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; If the test requirements are met, the computing nodes, interconnection nodes, and the entire rack-mounted server are tested in sequence according to the test parameters to obtain test results. Among them, when the computing node passes the test, the interconnection node is tested; when the interconnection node passes the test, the entire rack-mounted server is tested. Judge the stability of the rack-mounted server according to the test results.

[0065] In one embodiment, a computer program product is provided, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: In response to the completion of the installation of the rack-mounted server, obtain the component information of the rack-mounted server, and determine the test parameters according to the component information; Perform a pre-detection on the rack-mounted server to obtain a pre-detection result, and judge whether the hardware environment and software environment of the rack-mounted server meet the test requirements according to the pre-detection result; If the test requirements are met, the computing nodes, interconnection nodes, and the entire rack-mounted server are tested in sequence according to the test parameters to obtain test results. Among them, when the computing node passes the test, the interconnection node is tested; when the interconnection node passes the test, the entire rack-mounted server is tested. Judge the stability of the rack-mounted server according to the test results.

[0066] Those of ordinary skill in the art can understand that all or part of the processes in the above-described embodiment methods can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer program product. When the computer program is executed, it can include the processes of the above-described method embodiments.

[0067] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0068] The above embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several deformations and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A cabinet server testing method, the cabinet server at least includes a computing node and an interconnect node, characterized in that The method includes: In response to the completion of the installation of the cabinet server, obtaining component information of the cabinet server and determining test parameters according to the component information; Performing a pre-detection on the cabinet server to obtain a pre-detection result, and judging whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; If the test requirements are met, testing the computing nodes, the interconnection nodes, and the cabinet server as a whole in sequence according to the test parameters to obtain a test result, wherein when the computing nodes pass the test, the interconnection nodes are tested, and when the interconnection nodes pass the test, the cabinet server as a whole is tested; Judging the stability of the cabinet server according to the test result.

2. The method according to claim 1, wherein The performing a pre-detection on the cabinet server to obtain a pre-detection result, and judging whether the hardware environment of the cabinet server meets the test requirements according to the pre-detection result includes: Obtaining power module information in the cabinet server and configuring a power switching script according to the power module information, wherein the power module information includes at least main power module information and redundant power module information; Performing a power switching operation on the cabinet server according to the power switching script; If the power switching fails, determining that the power module of the cabinet server does not meet the test requirements; If the power switching is successful, determining that the power module of the cabinet server meets the test requirements.

3. The method according to claim 1, wherein The number value of the test result takes a first target value, a second target value, or a third target value, and the type of the test result is pass or fail. The testing the computing nodes, the interconnection nodes, and the cabinet server as a whole in sequence according to the test parameters to obtain a test result includes: Testing the computing nodes according to the test parameters to obtain a first test result, and determining the stability of the computing nodes according to the first test result; If the computing nodes are unstable, determining that the number value of the test result takes the first target value, and setting the type of the first test result in the test result to fail; If the computing nodes are stable, determining that the number value of the test result takes the first target value, setting the type of the first test result in the test result to pass, testing the interconnection nodes according to the test parameters to obtain a second test result, and determining the stability of the interconnection nodes according to the second test result; If the interconnection nodes are unstable, modifying the number value of the test result to the second target value, and setting the type of the second test result in the test result to fail; If the interconnection nodes are stable, modifying the number value of the test result to the second target value, setting the type of the second test result to pass, testing the cabinet server as a whole according to the test parameters to obtain a third test result, and determining the connectivity of the cabinet server as a whole according to the third test result; If the entire cabinet server is not connected, modify the value of the quantity of the test results to a third target value, and set the type of the third test result in the test results to failed; If the entire cabinet server is connected, modify the value of the quantity of the test results to a third target value, and set the type of the third test result in the test results to passed.

4. The method according to claim 3, wherein The determining the stability of the cabinet server according to the test results includes: Determining the value of the quantity of the test results; If the value of the quantity is a first target value or a second target value, determine that the cabinet server is unstable; If the value of the quantity is a third target value, determine the type of the third test result in the test results; If the type of the third test result is failed, determine that the cabinet server is unstable; If the type of the third test result is passed, determine that the cabinet server is stable.

5. The method according to claim 3, wherein The testing the computing node according to the test parameters to obtain a first test result includes: Testing the floating-point operation ability of the central processing unit in the computing node according to the test duration and the number of central processing unit cores in the test parameters to obtain a fourth test result; Performing read / write stress tests on the memory and hard disk in the computing node according to the test duration in the test parameters to obtain a fifth test result and a sixth test result; Determining the first test result according to the fourth test result, the fifth test result, and the sixth test result.

6. The method according to claim 3, characterized in that, The computing node is connected to the interconnection node, and the testing the interconnection node according to the test parameters to obtain a second test result includes: Performing a stress test on the interconnection node according to the test parameters; Recording the data transmission rate and the communication delay time between the interconnection node and the computing node at a period of the time interval in the test parameters; Comparing the data transmission rate with the data transmission rate threshold in the test parameters to obtain a first comparison result; Comparing the communication delay time with the communication delay time threshold in the test parameters to obtain a second comparison result; Determining the second test result according to the first comparison result and the second comparison result.

7. The method according to claim 3, characterized in that The testing the entire cabinet server according to the test parameters to obtain a third test result includes: Determining a peripheral node, receiving a request sent by the peripheral node, and obtaining a response time and a packet loss rate based on the response result of the request; Comparing the response time with the timeout time threshold in the test parameters to obtain a third comparison result; Comparing the packet loss rate with the packet loss rate threshold in the test parameters to obtain a fourth comparison result; Determining the third test result according to the third comparison result and the fourth comparison result.

8. A cabinet server test system, characterized in that, The cabinet server includes at least a computing node and an interconnection node, and is characterized in that the system includes: An obtaining module, configured to obtain component information of the cabinet server in response to the completion of the installation of the cabinet server; A determining module, configured to determine test parameters according to the component information; A pre-detection module for pre-detecting the cabinet server to obtain a pre-detection result; A first judgment module for judging whether the hardware environment and software environment of the cabinet server meet the test requirements according to the pre-detection result; A test module for, if the test requirements are met, sequentially testing the computing node, the interconnection node, and the cabinet server as a whole according to the test parameters to obtain a test result, wherein when the computing node passes the test, the interconnection node is tested, and when the interconnection node passes the test, the cabinet server as a whole is tested; A second judgment module for judging the stability of the cabinet server according to the test result.

9. An electronic device, characterized in that, It includes: A memory for storing a computer program; A processor for implementing the steps of the cabinet server test method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the cabinet server test method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Server testing method and device, electronic device and storage medium

    CN113434353A

  • Equipment performance test method and device, electronic equipment and storage medium

    CN116737546A

  • Server testing method, device and electronic equipment

    CN119739574A