Server test method, electronic equipment and storage medium

By obtaining the server's identity and power information, forming a server set and determining the test status based on the total power consumption, the problem of limited number of test stations and current overload and power outage is solved, and the refined management of power resources and the improvement of test efficiency is achieved.

CN120386675AActive Publication Date: 2025-07-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The method of reserved testing power consumption based on the maximum power consumption value in the prior art limits the number of test stations, resulting in waste of power and low efficiency in energy consumption management. The current overload and power outage caused by manual estimated power consumption seriously affects the continuity and stability of the test.

Method used

By obtaining the identity of the server to be tested, it determines its test area, test mount position and power phase, forming a set of servers with the same area, mount position and phase, and determining the test status based on the total power consumption of the set, avoiding power waste and realizing system-level power consumption control.

Benefits of technology

It effectively avoids power waste caused by reserved maximum power consumption, increases the utilization rate of the test station, solves the problems of current overload and power outage, and significantly improves the efficiency of energy consumption management and the overall efficiency and reliability of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120386675A_ABST
    Figure CN120386675A_ABST
Patent Text Reader

Abstract

The invention discloses a server testing method, electronic equipment and a storage medium, and relates to the technical field of servers, and the method comprises the steps: obtaining an identity label of a to-be-tested server, and determining a testing region, a testing rack position and an electric power phase of the to-be-tested server; according to the method, the first server set which is in the same test area, the same test rack position and the same power phase as the to-be-tested server is determined, and the test state of the to-be-tested server is determined based on the total power consumption of the first server set, so that the problem of power waste caused by reserved maximum power consumption can be effectively avoided; according to the method and the system, the utilization rate of test stations is increased, system-level power consumption control is realized, the problems that system-level control is lacked and current overload and power failure cannot be effectively avoided are solved, and the energy consumption management efficiency is remarkably improved, so that the overall efficiency and reliability of server test are comprehensively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of servers, and in particular, to a test method, an electronic device, and a storage medium for a server. Background Art

[0002] With the rapid development of information technology, servers, as the core devices for data processing and storage, have an expanding market demand. Especially with the emergence of GPT (Generative Pre-trained Transformer), the demand for AI (Artificial Intelligence) high-power servers has increased significantly. During the server production process, after the production end is assembled, a relatively large value is estimated based on the approximate power consumption of high-power machines. According to the total available power consumption on the current factory line, the machines are planned and arranged for rack testing. If the number of workstations exceeds the planned quantity, to ensure electrical safety during the testing process, other assembled machines need to wait until the previous batch of machines is successfully racked before being racked for testing.

[0003] In the current server testing process, the links with higher power consumption are mainly concentrated in the stress testing stage. In contrast, projects such as custom firmware version refreshing and basic function testing only require relatively low basic power consumption. However, the test power consumption reservation method in the related art is planned based on the maximum power consumption value, which greatly limits the number of testing workstations, resulting in difficult-to-improve test efficiency, unnecessary waste of electricity, and low energy consumption management efficiency in the overall testing process. When arranging servers for rack testing, only manual power consumption estimation can be relied on for planning. When the number of racked servers is large, due to the inability to precisely control and manage the total current, the current value often becomes too large, leading to power outages, seriously affecting the continuity and stability of the testing. Summary of the Invention

[0004] This application provides a test method, an electronic device, and a storage medium for a server, which are intended to at least solve the problems in the related art that the method of reserving test power consumption based on the maximum power consumption value limits the number of testing workstations, wastes electricity, reduces the energy consumption management efficiency, and the problem that when the number of racked servers is large due to relying on manual power consumption estimation, current overload and power outages are likely to occur, seriously affecting the continuity and stability of the testing.

[0005] The present application provides a method for testing a server, including: obtaining the identity identifier of the server to be tested, and determining the test area, test rack position, and power phase of the server to be tested according to the identity identifier of the server to be tested; when it is determined that the server to be tested, the test area, and the test rack position meet the off-peak test conditions, determining a first server set that is in the same test area, the same test rack position, and the same power phase as the server to be tested; determining the total power consumption of the first server set, and determining the test status of the server to be tested according to the total power consumption.

[0006] The present application further provides an electronic device, 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 foregoing method for testing a server is implemented.

[0007] The present application further provides a non-volatile computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the foregoing method for testing a server is implemented.

[0008] The present application further provides a computer program product, including a computer program / instructions. When the computer program / instructions are executed by a processor, the foregoing method for testing a server is implemented.

[0009] By obtaining the identity identifier of the server to be tested, determining its test area, test rack position, and power phase, determining a first server set that is in the same test area, the same test rack position, and the same power phase as the server to be tested, and determining the test status of the server to be tested based on the total power consumption of the first server set, the present application can effectively avoid the problem of power waste caused by reserving the maximum power consumption, increase the utilization rate of the test workstations, achieve system-level power consumption control, solve the problems of lack of system-level control and inability to effectively avoid current overload and power outage, significantly improve the energy consumption management efficiency, and thus comprehensively improve the overall efficiency and reliability of server testing. BRIEF 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 FIG. is a flowchart of a method for testing a server according to some embodiments of the present application; Figure 2 FIG. is a topology diagram of 380V PDU and cable connections according to some embodiments of the present application; Figure 3220V PDU and cable connection topology diagram according to some embodiments of the present application; Figure 4 Block diagram of an electronic device according to some embodiments of the present application. Detailed implementation manners

[0012] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to 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 the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within 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 variant 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 explicitly 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] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific implementation manners.

[0015] Combined with the specific application environment architecture or specific hardware architecture on which the execution of the test method of the server depends, the specific application environment architecture or specific hardware architecture is described herein.

[0016] The following refers to the accompanying drawings to describe in detail the patent names of the embodiments of the present application: a test method for a server, an electronic device, and a storage medium.

[0017] Figure 1 Flowchart of a test method for a server according to some embodiments of the present application. Refer to Figure 1 , the test method for the server in the embodiments of the present application may include the following steps: S110, obtain the identity identifier of the server to be tested, and determine the test area, test rack position, and power phase of the server to be tested according to the identity identifier of the server to be tested.

[0018] Specifically, the identity identifier of the server to be tested can be a bar code or a QR code pasted on the server chassis. The test area, test rack position, and power phase of the server to be tested can be determined by scanning the bar code or QR code. The identity identifier of the server to be tested can also be the serial number of the server to be tested, and the test area, test rack position, and power phase of the server to be tested can be determined by looking up a multi-dimensional relationship mapping table between the serial number of the server and the test area, test rack position, and power phase where the server is located. The multi-dimensional relationship mapping table includes the serial numbers of multiple servers and the test area, test rack position, and power phase corresponding to the serial number of each server. It should be noted that the power phase can be the power phase where the air switch is located.

[0019] S120. When it is determined that the server to be tested, the test area, and the test rack position meet the off-peak test conditions, determine the first server set that is in the same test area, the same test rack position, and the same power phase as the server to be tested.

[0020] Specifically, after determining the test area and test rack position of the server to be tested, it is also necessary to determine whether the server to be tested and the test area and test rack position where the server to be tested is located allow off-peak testing. When it is determined that both the server to be tested and the test area and test rack position where the server to be tested is located allow off-peak testing, it can be determined that the server to be tested, the test area, and the test rack position meet the off-peak test conditions.

[0021] After determining that the server to be tested, the test area, and the test rack position meet the off-peak test conditions, determine the servers that are in the same test area, the same test rack position, and the same power phase as the server to be tested, and record them as the first server set, where the first server set includes the server to be tested.

[0022] It should be noted that the PDU (Power Distribution Unit) and cable connection topology diagram of the 380V power supply is as Figure 2 shown, and it includes a total of 6 PDUs. Each PDU is connected to 3 power phases. For example, when PDU1 includes 24 power output interfaces, the power output interfaces 1-8 of PDU1 are connected to the first power phase, the power output interfaces 9-16 of PDU1 are connected to the second power phase, and the power output interfaces 17-24 of PDU1 are connected to the third power phase.

[0023] The PDU and cable connection topology diagram of the 220V power supply is as Figure 3As shown, each PDU is connected to one power phase. That is to say, when each PDU includes 24 power output interfaces, all 24 power output interfaces are connected to the same power phase. For example, the power output interfaces of PDU1 and PDU2 are connected to the first power phase, the power output interfaces of PDU3 and PDU4 are connected to the second power phase, and the power output interfaces of PDU5 and PDU6 are connected to the third power phase.

[0024] S130, determine the total power consumption of the first server set, and determine the test status of the server to be tested according to the total power consumption.

[0025] Specifically, the first server set includes the server to be tested and the servers in the same test area, the same test rack position, and the same power phase as the server to be tested. After determining the first server set, the total power consumption can be determined by querying the maximum power consumption of each first server in the first server set when performing the corresponding test item. For example, calculate the sum of the maximum power consumption of each first server in the first server set when performing the corresponding test item to determine the total power consumption of the first server set.

[0026] After determining the total power consumption of the first server set, the test status of the server to be tested can be determined by judging the size of the total power consumption. For example, if the total power consumption is relatively high, it means that adding the server to be tested on the current power phase will cause the PDU to be overloaded, so the server to be tested cannot be tested; if the total power consumption is relatively low, it means that adding the server to be tested on the current power phase will not cause the PDU to be overloaded, so the server to be tested can be tested.

[0027] This application obtains the identity identifier of the server to be tested and determines its test area, test rack position, and power phase, determines the first server set in the same test area, the same test rack position, and the same power phase as the server to be tested, and determines the test status of the server to be tested based on the total power consumption of the first server set, which can effectively avoid the problem of power waste caused by reserving the maximum power consumption, increase the utilization rate of the test stations, achieve system-level power consumption control, solve the problems of lack of system-level control, inability to effectively avoid current overload and power-off, significantly improve the energy consumption management efficiency, and thus comprehensively improve the overall efficiency and reliability of server testing.

[0028] In some embodiments, determining the test status of the server to be tested according to the total power consumption includes: when the total power consumption is greater than or equal to the first preset power consumption threshold, determining that the server to be tested is in a waiting test status; when the total power consumption is less than the first preset power consumption threshold, determining that the server to be tested is in a test status. The first preset power consumption threshold can be calibrated according to the actual situation and is not limited here.

[0029] Specifically, the test status of the server to be tested can be determined by comparing the total power consumption with a first preset power consumption threshold. For example, if the total power consumption is greater than or equal to the first preset power consumption threshold, it indicates that adding the server to be tested at the current power phase will cause the PDU to overload, and it is determined that the server to be tested is in a waiting test status; if the total power consumption is less than the first preset power consumption threshold, it indicates that adding the server to be tested at the current power phase will not cause the PDU to overload, and it is determined that the server to be tested is in a test status, and then the server to be tested can be controlled to execute the corresponding test items.

[0030] In some embodiments, after determining that the server to be tested is in a waiting test status, the method further includes: re-determining the test status of the server to be tested based on a first preset time interval, and controlling the server to be tested to execute the corresponding test items when it is determined that the server to be tested is in a test status. The first preset time interval can be calibrated according to the actual situation and is not specifically limited here.

[0031] Specifically, when it is determined that the test status of the server to be tested is in a waiting test status, it is necessary to re-obtain the total power consumption of the first server set at every first preset time interval, and re-determine the test status of the server to be tested according to the total power consumption of the first server set. If the total power consumption is less than the first preset power consumption threshold, it is determined that the server to be tested is in a test status, and then the server to be tested can be controlled to execute the corresponding test items. If the total power consumption is greater than or equal to the first preset power consumption threshold, it is determined that the server to be tested is in a waiting test status.

[0032] In this way, by comparing the total power consumption of the first server set with the first preset power consumption threshold to determine the test status of the server to be tested, it is possible to monitor and intelligently regulate power distribution in real time, to a certain extent avoiding the power-off risk caused by current overload, ensuring the continuity and stability of the test process; at the same time, it also significantly optimizes the energy consumption management efficiency and realizes the refined utilization of power resources.

[0033] In some embodiments, determining the total power consumption of the first server set includes: obtaining the target power consumption of each first server in the first server set; and determining the total power consumption based on the first sum of the target power consumptions of each first server.

[0034] Specifically, the first server set includes the server to be tested and the servers in the same test area, the same test fixture position, and the same power phase as the server to be tested. For each first server in the first server set, the target power consumption of the first server can be determined by collecting the power consumption of the server that executes the same test task as the first server. For example, for the first server 1, determine the server that executes the same test task as the first server 1, randomly collect the power consumption of a server that executes the same test task as the first server 1, and use this power consumption as the target power consumption of the first server 1. By analogy, the target power consumption of each first server in the first server set can be determined.

[0035] After determining the target power consumption of each first server in the first server set, calculate the first sum value of the target power consumption of each first server to determine the total power consumption of the first server set.

[0036] In some embodiments, obtaining the target power consumption of each first server in the first server set includes: obtaining the identity identifier of each first server in the first server set; determining the order in which each first server is located according to the identity identifier of each first server; and determining the target power consumption of each first server according to the order in which each first server is located.

[0037] In some embodiments, determining the target power consumption of each first server according to the order in which each first server is located includes: determining one or more second servers that execute the same test item as each first server according to the order in which each first server is located; and determining the target power consumption of the corresponding first server according to the power consumption of each second server.

[0038] Specifically, the identity identifier of each first server in the first server set can be a barcode or a QR code, and the order in which each first server is located can be determined by scanning the barcode or the QR code. The identity identifier of each first server in the first server set can also be a serial number, and the order in which the first server is located can be determined by querying the two-dimensional relationship mapping table between the serial number and the order, where the two-dimensional relationship mapping table includes multiple serial numbers and the orders corresponding to each serial number.

[0039] Each order in which a first server is located includes one or more second servers that perform the same test tasks as the server. The target power consumption of the corresponding first server can be determined based on the power consumption of each second server. For example, for the first server 1, the order in which the first server 1 is located is determined based on the identity identifier of the first server 1. The order in which the first server 1 is located includes the second server 11, the second server 22, and the second server 33. The power consumption of the second server 11, the power consumption of the second server 22, and the power consumption of the second server 33 are collected through a power meter. The target power consumption of the first server 1 is determined based on the power consumption of the second server 11, the power consumption of the second server 22, and the power consumption of the second server 33. For example, one of the power consumption of the second server 11, the power consumption of the second server 22, and the power consumption of the second server 33 is randomly selected as the target power consumption of the first server 1. And so on, the target power consumption of each first server in the first server set can be determined.

[0040] It should be noted that in the case where the order in which the first server is located includes only one second server, this second server is the first server, and the power consumption of this second server is determined as the target power consumption of the first server.

[0041] In some embodiments, determining the target power consumption of the corresponding first server based on the power consumption of each second server includes: determining the target power consumption of the corresponding first server based on the maximum value of the power consumption of the second server, the average value of the power consumption of the second server, or a preset quantile of the power consumption of the second server.

[0042] Exemplarily, for the first server 1, the order in which the first server 1 is located is determined based on the identity identifier of the first server 1. The order in which the first server 1 is located includes multiple second servers. The power consumption of the multiple second servers is collected respectively, the power consumption of the multiple second servers is compared, and the maximum power consumption among the power consumption of the multiple second servers is used as the target power consumption of the first server 1.

[0043] Alternatively, the average value of the power consumption of the multiple second servers can also be calculated, and the average power consumption is used as the target power consumption of the first server 1. However, some test items may cause a sharp increase in the power consumption of the second server. If the average power consumption of all second servers is simply calculated, the actual power consumption peak may be underestimated, resulting in power safety problems during the test, such as current overload and tripping. Therefore, the target power consumption of the first server 1 can be determined in combination with the historical average power consumption of each second server to reduce power safety problems. For example, the target power consumption of each second server is calculated through the following formula: P m2,i =αP h2,i +(1-α)P c2,i , where, Pm2,i represents the target power consumption of the i-th second server; P h2,i represents the historical average power of the i-th second server; P c2,i represents the current power of the i-th second server; α represents a preset weight parameter, where the preset weight parameter α can be calibrated according to the actual situation. For example, the preset weight parameter α can be 0.25, and there is no specific limit here.

[0044] After determining the target power consumption of each second server according to the above formula, calculate the average value, and use this average value as the target power consumption of the first server 1.

[0045] Alternatively, the preset quantile of the power consumption of the second server can be calculated, and the preset quantile can be used as the target power consumption of the first server 1. For example, assume that the power consumptions of multiple second servers are 200W, 100W, 180W, 120W, 150W respectively. After sorting the power consumptions of multiple second servers in ascending order, they are represented as 100W, 120W, 150W, 180W, 200W. Determine the preset quantile according to the sorted power consumptions of the second servers. In the embodiments of the present application, the 80% quantile is taken as an example for illustration, but it is not a limitation to the present application. The calculation formula of the 80% quantile is as follows: k = , P80% = P(k) + 0.8(n - k)(P(k + 1) - P(k)), where, P80% represents the 80% quantile; P(k) represents the k-th power consumption; n represents the number of second servers; P(k + 1) represents the (k + 1)-th power consumption; represents the floor operation.

[0046] k = = = 4, P80% = P(4) + 0.8(5 - 4)(P(5) - P(4)) = 196 W, That is to say, the 80% quantile is 196W, that is, the target power consumption of the first server 1 is 196W.

[0047] It should be noted that when calculating the preset quantile of the power consumption of the second server, the current power consumption of the second server can be used, or multiple power consumptions of the second server collected within a period of time can be used.

[0048] It should be noted that when obtaining the power consumption of the second server in an order, in order to improve the test efficiency, the power consumption of only a preset number (such as 5) of second servers can be collected and uploaded, or when collecting the power consumption of the second server, stop collecting and uploading the power consumption until the first server in the order is collected.

[0049] In some embodiments, the server to be tested, the test area, and the test fixture position include corresponding status information identifiers. Determining that the server to be tested, the test area, and the test fixture position meet the off-peak testing conditions includes: detecting the corresponding status information identifiers of the server to be tested, the test area, and the test fixture position; and determining that the off-peak testing conditions are met when the corresponding status information identifiers of the server to be tested, the test area, and the test fixture position are all in a preset state.

[0050] Specifically, the server to be tested, the test area, and the test fixture position all include corresponding status information identifiers. Before determining the test status of the server to be tested, it is also necessary to determine whether the server to be tested, the test area, and the test fixture position meet the off-peak testing conditions according to the corresponding status information identifiers of the server to be tested, the test area, and the test fixture position.

[0051] Among them, the status information identifier of the server to be tested, the status information identifier of the test area, and the status information identifier of the test fixture position can be serial numbers. For example, the status information identifier of the server to be tested is serial number 1. The status of the server to be tested can be determined according to the mapping relationship between serial number 1 and the status of the server to be tested. If it is determined that the status of the server to be tested is in a preset state, it is determined that the server to be tested allows off-peak testing; the status information identifier of the test area is serial number 2. The status of the test area can be determined according to the mapping relationship between serial number 2 and the status of the test area. If it is determined that the status of the test area is in a preset state, it is determined that the test area allows off-peak testing; the status information identifier of the test fixture position is serial number 3. The status of the test fixture position can be determined according to the mapping relationship between serial number 3 and the status of the test fixture position. If the status of the test fixture position is determined, it is determined that the test fixture position allows off-peak testing.

[0052] If it is detected that the statuses of the server to be tested, the test area, and the test fixture position are all in a preset state, it is determined that the server to be tested, the test area, and the test fixture position meet the off-peak testing conditions. In some embodiments, the above method further includes: updating the first preset power consumption threshold based on a second preset time interval. Wherein, the second preset time interval can be calibrated according to the actual situation and is not specifically limited here.

[0053] Specifically, since the power consumption of the server to be tested is calculated based on the power consumption of the second server in the order where the server to be tested is located, there may be a difference from the actual power consumption of the server to be tested, which may affect the electrical safety. Therefore, it is necessary to update the first preset power consumption threshold based on the second preset time interval, such as increasing or decreasing the first preset power consumption threshold.

[0054] In this way, by periodically adjusting the first preset power consumption threshold, the power consumption changes during actual operation can be dynamically responded to, and to a certain extent, the problems of power waste or overload caused by unreasonable threshold setting can be avoided.

[0055] In some embodiments, updating the first preset power consumption threshold based on a second preset time interval includes: collecting the actual power consumption of the power phase where the server to be tested is located based on the second preset time interval; and updating the first preset power consumption threshold according to the actual power consumption of the power phase where the server to be tested is located and the total power consumption of the first server set.

[0056] Specifically, when the power phase where the server to be tested is located is the first power phase of PDU1 of the 380V power supply, every second preset time interval, the actual power consumption of the first power phase of PDU1 can be collected by a power meter set at the power supply line of the first power phase of PDU1. Compare the actual power consumption of the first power phase of PDU1 with the total power consumption of the first server set to obtain a comparison result, and determine whether to update the first preset power consumption threshold according to the comparison result. When it is determined to update the first preset power consumption threshold, further determine how to update the first preset power consumption threshold. For example, if the actual power consumption of the first power phase of PDU1 is equal to the total power consumption of the first server set, the first preset power consumption threshold is not adjusted; if the actual power consumption of the first power phase of PDU1 is greater than the total power consumption of the first server set, the first preset power consumption threshold is increased; if the actual power consumption of the first power phase of PDU1 is less than the total power consumption of the first server set, the first preset power consumption threshold is decreased.

[0057] When the power phase where the server to be tested is located is PDU1 of the 220V power supply, every second preset time interval, the actual power consumption of PDU1 can be directly read through PDU1. Compare the actual power consumption of PDU1 with the total power consumption of the first server set to obtain a comparison result, and determine whether to update the first preset power consumption threshold according to the comparison result. When it is determined to update the first preset power consumption threshold, further determine how to update the first preset power consumption threshold. For example, if the actual power consumption of PDU1 is equal to the total power consumption of the first server set, the first preset power consumption threshold is not adjusted; if the actual power consumption of PDU1 is greater than the total power consumption of the first server set, the first preset power consumption threshold is increased; if the actual power consumption of PDU1 is less than the total power consumption of the first server set, the first preset power consumption threshold is decreased.

[0058] In this way, by regularly collecting the actual power consumption of the power phase where the server to be tested is located and adjusting the first preset power consumption threshold in combination with the total power consumption of the first server set, power consumption deviation can be detected and corrected in a timely manner, ensuring that the first preset power consumption threshold matches the actual power consumption, and to a certain extent avoiding the waste of power resources or the risk of overload caused by unreasonable setting of the first preset power consumption threshold, and optimizing the allocation and utilization efficiency of power resources.

[0059] In some embodiments, updating the first preset power consumption threshold according to the actual power consumption of the power phase where the server to be tested is located and the total power consumption of the first server set includes: determining the absolute value of the difference between the actual power consumption of the power phase where the server to be tested is located and the total power consumption of the first server set; determining an adjustment ratio based on the ratio of the absolute value to the total power consumption of the first server set; when the actual power consumption of the power phase where the server to be tested is located is greater than the total power consumption of the first server set, increasing the first preset power consumption threshold based on the adjustment ratio; when the actual power consumption of the power phase where the server to be tested is located is less than the total power consumption of the first server set, decreasing the first preset power consumption threshold based on the adjustment ratio.

[0060] Specifically, when it is determined that the first preset power consumption threshold needs to be adjusted, it can be determined whether to increase or decrease the first preset power consumption threshold according to the comparison result of the actual power consumption of the power phase where the server to be tested is located and the total power consumption of the first server set, and further determine the adjustment ratio according to the actual power consumption of the power phase where the server to be tested is located and the total power consumption of the first server set. For example, calculate the absolute value of the difference between the actual power consumption of the power phase and the total power consumption of the first server set, and determine the adjustment ratio based on the ratio of the absolute value to the total power consumption of the first server set.

[0061] Exemplarily, if the actual power consumption of the power phase where the server to be tested is located is greater than the total power consumption of the first server set, increase the first preset power consumption threshold based on the adjustment ratio. For example, assume the adjustment ratio is 12% and the first preset power consumption threshold is 300W, then the adjusted first preset power consumption threshold is 336W. It should be noted that when increasing the first preset power consumption threshold, it is necessary to ensure that the increased first preset power consumption threshold does not exceed the rated power consumption of the power phase where the server to be tested is located; if the actual power consumption of the power phase is less than the total power consumption of the first server set, decrease the first preset power consumption threshold based on the adjustment ratio. For example, assume the adjustment ratio is 12% and the first preset power consumption threshold is 300W, then the adjusted first preset power consumption threshold is 264W.

[0062] It should be noted that when increasing or decreasing the first preset power consumption threshold based on the adjustment ratio, an adjustment coefficient can be added to control the adjustment range. Exemplarily, when increasing the first preset power consumption threshold based on the adjustment ratio, assuming the adjustment ratio is 12%, the adjustment coefficient is 0.1, and the first preset power consumption threshold is 300W, then the adjusted first preset power consumption threshold is 303.6W; when decreasing the first preset power consumption threshold based on the adjustment ratio, assuming the adjustment ratio is 12%, the adjustment coefficient is 0.1, and the first preset power consumption threshold is 300W, then the adjusted first preset power consumption threshold is 296.4W.

[0063] In this way, it can be ensured to a certain extent that the first preset power consumption threshold matches the actual operating conditions, effectively avoiding the waste of power resources or the risk of overload caused by unreasonable setting of the first preset power consumption threshold, and further improving the utilization efficiency of power resources and the stability of the system.

[0064] In some embodiments, before updating the first preset power consumption threshold, the above method further includes: obtaining the actual power consumption of the test area where the server to be tested is located; determining the actual power consumption of the test area where the server to be tested is located based on the product of the actual power consumption of the test area where the server to be tested is located and the second preset time interval; determining the second sum value of the actual power consumption of the power distribution unit in the test area where the server to be tested is located; and updating the first preset power consumption threshold when the absolute value of the difference between the second sum value and the actual power consumption of the test area where the server to be tested is located is less than the second preset power consumption threshold. The second preset power consumption threshold can be calibrated according to the actual situation and is not specifically limited here.

[0065] Specifically, when the power phase of the server to be tested is the first power phase of PDU1 with a 380V power supply, the actual power consumption of the first power phase of PDU1 collected by the power meter set at the power supply line of the first power phase of PDU1 may be inaccurate due to power meter failure; when the power phase of the server to be tested is PDU1 with a 220V power supply, the actual power consumption of PDU1 directly read through PDU1 may be inaccurate due to PDU1 failure. Therefore, before updating the first preset power consumption threshold, it is possible to determine whether the actual power consumption of the power phase where the server to be tested is located is accurate by obtaining the actual power consumption of the test area where the server to be tested is located.

[0066] The actual power consumption of the test area where the server to be tested is located can be collected and obtained through the electricity meter set in this test area, and the actual power consumption of the test area where the server to be tested is located is determined based on the product of the actual power consumption of the test area where the server to be tested is located and the second preset time interval.

[0067] The test area where the server to be tested is located may include multiple power distribution units, and the actual power consumption of each power distribution unit can be directly read. After the reading is completed, calculate the second sum value of the actual power consumption of the power distribution units in the test area where the server to be tested is located.

[0068] Calculate the absolute value of the difference between the second sum value and the actual power consumption of the test area where the server to be tested is located, and compare this absolute value with the second preset power consumption threshold to obtain a comparison result. Determine whether the first preset power consumption threshold can be updated according to the comparison result.

[0069] Exemplarily, if the absolute value of the difference between the sum value and the actual power consumption of the test area where the server to be tested is located is less than the second preset power consumption threshold, it indicates that the difference between the second sum value and the actual power consumption of the test area where the server to be tested is located is relatively small, that is, it is determined that the actual power consumption of the power phase where the server to be tested is located is relatively accurate, and it is determined that the first preset power consumption threshold can be updated; if the absolute value of the difference between the sum value and the actual power consumption of the test area where the server to be tested is located is greater than or equal to the second preset power consumption threshold, it indicates that the difference between the second sum value and the actual power consumption of the test area where the server to be tested is located is relatively large, that is, it is determined that the actual power consumption of the power phase where the server to be tested is located is inaccurate, and it is determined that the first preset power consumption threshold cannot be updated.

[0070] In this way, by introducing a dual verification mechanism of the actual power consumption of the test area and the sum value of the actual power consumption of the PDU, abnormal data can be effectively filtered out, ensuring that the update of the first preset power consumption threshold is more accurate and reliable, avoiding misjudgment caused by local power consumption fluctuations or measurement errors, improving the accuracy of power consumption management, and at the same time reducing the safety risks caused by power consumption problems.

[0071] In summary, by obtaining the identity identifier of the server to be tested and determining its test area, test fixture position, and power phase, the present application can achieve precise allocation of power resources, effectively avoid the problem of power waste caused by reserving the maximum power consumption, increase the utilization rate of test stations, and effectively solve the problems of limited test stations and low test efficiency in the prior art. By determining the first server set that is in the same test area, the same test fixture position, and the same power phase as the server to be tested, and determining the test status of the server to be tested based on the total power consumption of the first server set, system-level power consumption control is achieved, and the problems of lack of system-level control, inability to effectively avoid current overload and power outage are solved, significantly improving the energy consumption management efficiency, thereby comprehensively improving the overall efficiency and reliability of server testing. At the same time, by regularly collecting the actual power consumption of the power phase where the server to be tested is located and adjusting the first preset power consumption threshold in combination with the total power consumption of the first server set, power consumption deviation can be detected and corrected in a timely manner, ensuring that the first preset power consumption threshold matches the actual power consumption, and avoiding the risk of power resource waste or overload caused by unreasonable setting of the first preset power consumption threshold, optimizing the allocation and utilization efficiency of power resources. In addition, by introducing a dual verification mechanism of the actual power consumption of the test area and the sum of the actual power consumption of the PDU, abnormal data can be effectively filtered out, ensuring that the update of the first preset power consumption threshold is more accurate and reliable, avoiding misjudgment caused by local power consumption fluctuations or measurement errors, improving the accuracy of power consumption management, and reducing the safety risk caused by power consumption problems.

[0072] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.

[0073] The embodiment of the present application also provides an electronic device. Referring to Figure 4 , the electronic device 200 includes a memory 210, a processor 220, and a computer program stored on the memory 210 and executable on the processor 220. When the processor 220 executes the computer program, the foregoing test method of the server is implemented.

[0074] The embodiment of the present application also provides a non-volatile computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the foregoing test method of the server is implemented.

[0075] In an exemplary embodiment, the non-volatile computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), mobile hard disks, magnetic disks, or optical discs.

[0076] An embodiment of the present application also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the aforementioned server testing method.

[0077] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described server testing method embodiments.

[0078] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0079] The above has introduced in detail a server testing method, an electronic device, and a storage medium provided by the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A test method for a server, characterized in that, The method includes: Obtaining the identity identifier of the server to be tested, and determining the test area, test rack position, and power phase of the server to be tested according to the identity identifier of the server to be tested; When it is determined that the server to be tested, the test area, and the test rack position meet the off-peak test conditions, determining a first server set that is in the same test area, the same test rack position, and the same power phase as the server to be tested; Determining the total power consumption of the first server set, and determining the test status of the server to be tested according to the total power consumption.

2. The test method for the server according to claim 1, characterized in that Determining the test status of the server to be tested according to the total power consumption includes: When the total power consumption is greater than or equal to a first preset power consumption threshold, determining that the server to be tested is in a waiting test state; When the total power consumption is less than the first preset power consumption threshold, determining that the server to be tested is in a test state.

3. The test method of the server according to claim 2, characterized in that After determining that the server to be tested is in a waiting test state, the method further includes: Redetermining the test status of the server to be tested based on a first preset time interval, and controlling the server to be tested to execute corresponding test items when it is determined that the server to be tested is in a test state.

4. The test method for the server according to claim 3, characterized in that Determining the total power consumption of the first server set includes: Obtaining the target power consumption of each first server in the first server set; Determining the total power consumption based on the first sum value of the target power consumption of each first server.

5. The test method of the server according to claim 4, wherein Obtaining the target power consumption of each first server in the first server set includes: Obtaining the identity identifier of each first server in the first server set; Determining the order in which each first server is located according to the identity identifier of each first server; Determining the target power consumption of each first server according to the order in which each first server is located.

6. The test method of the server according to claim 5, characterized in that, Determining the target power consumption of each first server according to the order in which each first server is located includes: Determining one or more second servers that perform the same test items as each first server according to the order in which each first server is located; Determining the target power consumption of the corresponding first server according to the power consumption of each second server.

7. The testing method of the server according to claim 6, characterized in that, Determining the target power consumption of the corresponding first server according to the power consumption of each second server includes: Determining the target power consumption of the corresponding first server according to the maximum value of the power consumption of the second server, the average value of the power consumption of the second server, or the preset quantile of the power consumption of the second server.

8. The testing method of the server according to claim 1, wherein The server to be tested, the test area, and the test rack position include corresponding status information identifiers. Determining that the server to be tested, the test area, and the test rack position meet the off-peak test conditions includes: Detecting the corresponding status information identifiers of the server to be tested, the test area, and the test rack position; When the corresponding status information identifiers of the server to be tested, the test area, and the test rack position are all in a preset state, determining that the off-peak test conditions are met.

9. The test method for the server according to claim 2, wherein The method further includes: Update the first preset power consumption threshold based on a second preset time interval.

10. The test method for the server according to claim 9, wherein Updating the first preset power consumption threshold based on a second preset time interval includes: Collecting the actual power consumption of the power phase where the server to be tested is located based on the second preset time interval; Updating the first preset power consumption threshold according to the actual power consumption of the power phase where the server to be tested is located and the total power consumption of the first server set.

11. The test method of the server according to claim 10, wherein Updating the first preset power consumption threshold according to the actual power consumption of the power phase where the server to be tested is located and the total power consumption of the first server set includes: Determining the absolute value of the difference between the actual power consumption of the power phase where the server to be tested is located and the total power consumption of the first server set; Determining an adjustment ratio based on the ratio of the absolute value to the total power consumption of the first server set; When the actual power consumption of the power phase where the server to be tested is located is greater than the total power consumption of the first server set, increasing the first preset power consumption threshold based on the adjustment ratio; When the actual power consumption of the power phase where the server to be tested is located is less than the total power consumption of the first server set, decreasing the first preset power consumption threshold based on the adjustment ratio.

12. The test method of the server according to claim 9, wherein Before updating the first preset power consumption threshold, the method further includes: Obtaining the actual power quantity of the test area where the server to be tested is located; Determining the actual power consumption of the test area where the server to be tested is located based on the product of the actual power quantity of the test area where the server to be tested is located and the second preset time interval; Determining a second sum value of the actual power consumption of the power distribution unit in the test area where the server to be tested is located; When the absolute value of the difference between the second sum value and the actual power consumption of the test area where the server to be tested is located is less than a second preset power consumption threshold, updating the first preset power consumption threshold.

13. A non-volatile computer-readable storage medium, characterized in that, A computer program is stored thereon, and when the computer program is executed by a processor, the server testing method according to any one of claims 1-12 is implemented.

14. An electronic device, characterized in that, It includes 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 server testing method according to any one of claims 1-12 is implemented.

15. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by a processor, the server testing method according to any one of claims 1-12 is implemented.

Citation Information

Patent Citations

  • Pressure testing method and device and computer readable storage medium

    CN111193634A

  • Server power consumption test method and device, control system and medium

    CN112631865A

  • Server pressure measurement scheduling method and device

    CN115543710A

  • Server pressure testing method and device

    CN116881124A

  • Data transmission energy-saving scheduling method and distributed file system

    CN118660003A