Server average mobility testing method and device, equipment and storage medium

By determining the identification information of the bottom board management controller in the server, establishing a connection with the power supply unit based on the communication protocol, collecting current information to determine the current equalization, the problem of inaccurate current equalization in the prior art is solved, and accurate monitoring of the load condition of the server power supply unit is achieved.

CN119902608APending Publication Date: 2025-04-29NETTRIX INFORMATION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311409964.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The prior art is difficult to accurately monitor the current information of each power supply unit in the server, resulting in inaccurate current equalization and affecting the safe and effective operation of the server.

Method used

By responding to the current equality test request for the target server, the identification information of the baseboard management controller is determined, and the communication connection with the power units of the target server is established based on the preset communication protocol, current information is collected and target current equality is determined.

Benefits of technology

It realizes accurate monitoring of the current information of each power unit of the server, ensures the accuracy of current equalization, effectively monitors the load status of the server power unit, and ensures the safe and effective operation of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902608A_ABST
    Figure CN119902608A_ABST
Patent Text Reader

Abstract

The invention discloses a server average mobility testing method, device and equipment and a storage medium. The method comprises the following steps: in response to a current sharing degree test request for a power supply unit in a target server, determining identification information of a bottom plate management controller corresponding to the target server; establishing a communication connection with each power supply unit in the target server by adopting the identification information based on a preset communication protocol, collecting current information of each power supply unit in the target server by adopting the communication connection, and determining a target current-sharing degree; and detecting whether a preset test ending condition is met, and if yes, generating a current-sharing degree test result of the server according to the target current-sharing degree, the identification information and a preset current-sharing degree threshold value. According to the technical scheme, the current information of each power supply unit in the server can be monitored, so that the accurate current sharing degree can be determined in time, the load condition of the power supply unit of the server is effectively monitored, and safe and effective operation of the server is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method, device, equipment and storage medium for testing server flow average. Background Art

[0002] Servers provide computing or application services to other clients (such as PCs (Personal Computers), smart phones, ATMs (Automated Teller Machines) and other terminals, and even large equipment such as train systems) in the network. They are widely used, and the current balance of the server power supply affects the operating life of the entire server.

[0003] Therefore, how to monitor the current information of each power supply unit in the server to timely determine the accurate current sharing, effectively monitor the load of the server power supply unit, and ensure the safe and efficient operation of the server is a problem that needs to be solved urgently. Summary of the invention

[0004] The present invention provides a server current sharing test method, device, equipment and storage medium, which can monitor the current information of each power supply unit in the server, timely determine the accurate current sharing, effectively monitor the load condition of the server power supply unit, and ensure the safe and effective operation of the server.

[0005] According to one aspect of the present invention, a method for testing server flow rate is provided, comprising:

[0006] In response to a current sharing test request for a power supply unit in a target server, determining identification information of a baseboard management controller corresponding to the target server;

[0007] Establishing a communication connection with each power supply unit in the target server using identification information based on a preset communication protocol, and collecting current information of each power supply unit in the target server using the communication connection and determining a target current sharing degree;

[0008] Check whether the preset test end conditions are met. If so, generate the server's flow rate test result based on the target flow rate, identification information and preset flow rate threshold.

[0009] Optionally, establishing a communication connection with each power supply unit in the target server using identification information based on a preset communication protocol, and using the communication connection to collect current information of each power supply unit in the target server and determine a target current sharing degree, including:

[0010] Acquire the communication address of each power supply unit in the target server by using the identification information based on the preset communication protocol to establish a communication connection with each power supply unit in the target server;

[0011] According to the communication address and the preset time interval, the current information of each power supply unit in the target server is periodically collected and the target current sharing degree is determined.

[0012] The advantage of this setting is that by using the communication protocol to establish a connection with each power supply unit in the target server, the communication address of each power supply unit can be determined, so that the accurate current information of each power supply unit can be collected in a timely manner, which helps to determine the accurate current sharing of the server and effectively monitor the load condition of the server power supply unit.

[0013] Optionally, the number of the power supply units is at least two, and accordingly, according to the communication address and the preset time interval, the current information of each power supply unit in the target server is periodically collected and the target current sharing degree is determined, including:

[0014] Determine a first collection time period and a second collection time period according to a preset time interval;

[0015] According to the communication address, current information of each power supply unit in the target server is collected in a first collection time period and a second collection time period, and a first target current sharing degree and a second target current sharing degree are determined according to the current information.

[0016] The advantage of this setting is that when there are multiple power supply units, by collecting power supply information of the power supply units in sequence at different collection time periods, multiple groups of current sharing degrees can be determined, which will help to conduct a more comprehensive analysis of the server load situation later.

[0017] Optionally, determining a first target current sharing degree according to the current information includes:

[0018] Determine the maximum value and the minimum value of the current of each power supply unit in the first acquisition time period according to the current information, and determine the first calculation parameter and the second calculation parameter according to the maximum value and the minimum value;

[0019] The ratio of the first calculation parameter to the second calculation parameter is determined as the first target average flow degree.

[0020] The advantage of this setting is that by providing an implementable method for determining the current sharing degree based on the current information according to the maximum and minimum current values ​​of the power supply unit during the acquisition time period, the accurate target current sharing degree can be determined, which is helpful for subsequent analysis of the server load situation.

[0021] Optionally, check whether the preset test end conditions are met, including:

[0022] If it is detected that the number of times the current information is collected reaches a preset number threshold, it is determined that the preset test end condition is met; and / or

[0023] If it is detected that the total duration of collecting the current information is greater than or equal to the preset test duration, it is determined that the preset test end condition is met.

[0024] The advantage of this setting is that two possible implementation methods for determining whether the test is finished are provided through a preset number threshold or a preset test duration. When the test end conditions are met, the test results of this round of server current equalization can be evaluated in time, which will help relevant personnel to perform subsequent current tuning operations on each power supply unit of the server.

[0025] Optionally, according to the target average flow rate, the identification information and the preset average flow rate threshold, a server average flow rate test result is generated, including:

[0026] If the number of target average flow rates is at least two, determining the number of imbalances in which the target average flow rate exceeds the preset average flow rate threshold according to the target average flow rate and the preset average flow rate threshold;

[0027] Generate server flow balance test results based on the number of imbalances and identification information.

[0028] The advantage of this setting is that by comparing the relationship between the target current balance and the current balance threshold determined in multiple rounds, the number of current imbalances in the server power supply unit can be evaluated, thereby allowing a more comprehensive analysis of the server load conditions, which is helpful for subsequent timely adjustment of the power supply unit current.

[0029] Optionally, the preset communication protocol is a power management bus protocol.

[0030] The advantage of this arrangement is that by limiting the specific communication protocol to the power management bus protocol, an implementable method for realizing communication between the test equipment and the server is provided, which can communicate with each power supply unit of the server more quickly and effectively to obtain accurate current information.

[0031] According to another aspect of the present invention, a server flow average test device is provided, comprising:

[0032] A first determination module, configured to determine identification information of a baseboard management controller corresponding to the target server in response to a current balancing test request for a power supply unit in the target server;

[0033] A second determination module is used to establish a communication connection with each power supply unit in the target server using identification information based on a preset communication protocol, and to collect current information of each power supply unit in the target server using the communication connection and determine a target current sharing degree;

[0034] The generation module is used to detect whether the preset test end conditions are met. If so, the server's flow rate test results are generated based on the target flow rate, identification information and preset flow rate threshold.

[0035] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0036] at least one processor; and

[0037] a memory communicatively connected to the at least one processor; wherein,

[0038] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the server flow average test method described in any embodiment of the present invention.

[0039] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the server flow average test method described in any embodiment of the present invention when executed.

[0040] The technical solution of the embodiment of the present invention, in response to the current sharing test request for the power supply unit in the target server, determines the identification information of the baseboard management controller corresponding to the target server; uses the identification information to establish a communication connection with each power supply unit in the target server based on the preset communication protocol, and uses the communication connection to collect the current information of each power supply unit in the target server and determine the target current sharing; detects whether the preset test end condition is met, and if so, generates the server's current sharing test result based on the target current sharing, identification information and preset current sharing threshold. In this way, the current information of each power supply unit in the server can be monitored to timely determine the accurate current sharing, effectively monitor the load condition of the server power supply unit, and ensure the safe and effective operation of the server.

[0041] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 A flow chart of a method for testing the average flow of a server provided in the first embodiment of the present invention;

[0044] Figure 2 A flow chart of a method for testing the average flow of a server provided in the second embodiment of the present invention;

[0045] Figure 3 A flow chart of a method for testing the average flow of a server provided in Embodiment 3 of the present invention;

[0046] Figure 4 A schematic diagram of the structure of a server flow rate testing device provided in Embodiment 4 of the present invention;

[0047] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0049] It should be noted that the terms "first", "second", "target", "candidate", "alternative", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0050] In the related art, the monitoring test of the current balance of the PSU (power supply unit) power supply unit is often implemented through the IPMI Tool based on the IIC (Inter-Integrated Circuit). However, the conversion method through the BMC (baseboard management controller) has the problems of precision loss and slow data reading. At the same time, the IPMI Tool will capture all sensor information in the server, which will also cause excessive interference data. To address the above problems, the present application proposes a current balance test scheme that uses a preset communication protocol to directly obtain the current information of each power supply unit of the server, which can more accurately and effectively evaluate the degree of output current balance between the power supply units of the server. The specific implementation method will be described in detail in the subsequent embodiments.

[0051] Embodiment 1

[0052] Figure 1 This is a flow chart of a server current balancing test method provided in the first embodiment of the present invention; this embodiment can be applied to the situation where the server current balancing is tested in response to a current balancing test request of the power supply unit in the target server to achieve real-time monitoring of the server load condition. The method can be executed by a server current balancing test device, which can be implemented in the form of hardware and / or software, and the server current balancing test device can be configured in an electronic device. Figure 1 As shown, the server average flow test method includes:

[0053] S101 : In response to a current sharing test request for a power supply unit in a target server, determine identification information of a baseboard management controller corresponding to the target server.

[0054] Among them, the target server refers to the server on which the current balancing test is performed. The power supply unit (PSU) refers to the power supply unit contained in the target server. The number of power supply units contained in the target server can be at least one. Current balancing is a parameter that measures the load balancing degree of the output current of the server power supply. The baseboard management controller (BMC) is a processor configured in the server. Identification information refers to information that can uniquely identify the target server. The identification information can be, for example, the IP (Internet Protocol) address information of the baseboard management controller corresponding to the server.

[0055] Optionally, when a current equalization test instruction for the target server is actively issued by the tester, it can be considered that a current equalization test request for the power supply unit in the target server is detected; or based on a preset test cycle, a current equalization test request for the power supply unit in the target server can be automatically generated when the time requirement is met.

[0056] Optionally, the flow averaging test request can be parsed based on preset rules to determine the identification information of the baseboard management controller corresponding to the target server; the information contained in the flow averaging test request can also be input into a pre-trained information extraction model to output the identification information of the baseboard management controller corresponding to the target server.

[0057] S102: Establish a communication connection with each power supply unit in the target server using identification information based on a preset communication protocol, and use the communication connection to collect current information of each power supply unit in the target server and determine a target current sharing degree.

[0058] The communication protocol refers to a preset protocol to be followed when communicating with each power supply unit in the target server. The preset communication protocol may be a power management bus protocol (PM Bus). Current information refers to information that can characterize the power consumption of each power supply unit load, and the current information may be, for example, a current value and a voltage value. The target current balance can measure the load balance of the server power supply output current at the current moment.

[0059] It should be noted that: by limiting the specific communication protocol to the power management bus protocol, an implementable method for realizing communication between the test equipment and the server is provided, which can communicate with each power supply unit of the server more quickly and effectively to obtain accurate current information.

[0060] Optionally, if the current equalization test request is issued by a tester, after determining the identification information of the baseboard management controller corresponding to the target server, security verification can be performed based on the user name and password information entered by the tester, and if the security verification passes, the identification information can be used to establish a communication connection with each power supply unit in the target server based on a preset communication protocol.

[0061] Optionally, a communication request can be generated based on the identification information and the communication standard information of the preset communication protocol, and the communication request can be sent to the baseboard management controller of the target server to instruct the baseboard management controller to scan the communication address of each power supply unit and provide feedback. Based on the communication address of each power supply unit, a communication connection can be established with each power supply unit in the target server.

[0062] Optionally, the power information of each power unit in the target server may be collected respectively through the communication address of each power unit, and the power information may be calculated according to a preset calculation rule to obtain the current target current sharing degree of the target server.

[0063] S103, detecting whether a preset test end condition is met, and if so, generating a flow rate test result of the server according to the target flow rate, identification information and a preset flow rate threshold.

[0064] The preset test end condition refers to the preset condition for stopping the server flow rate test, and the preset flow rate threshold refers to the preset threshold for measuring whether the target flow rate is too high. The flow rate test result may include the comparison between the target flow rate and the preset flow rate threshold, and may also include the conclusion of whether the test is passed based on the comparison, and may also include hardware information such as the number, manufacturer, and model of the power supply units of the target server.

[0065] Optionally, detecting whether a preset test termination condition is met includes: if it is detected that the number of times the current information is collected reaches a preset number threshold, determining that it is detected that the preset test termination condition is met; and / or if it is detected that the total collection time of the current information is greater than or equal to the preset test time, determining that it is detected that the preset test termination condition is met.

[0066] The total collection duration refers to the duration consumed by performing multiple current information collection operations. The preset test duration refers to the preset duration for performing the server current averaging test, and the preset test duration may be, for example, 12 hours.

[0067] Optionally, multiple rounds of current information of each power supply unit in the target server can be periodically collected, and the actual collection duration of each round can be recorded. When it is detected that the sum of the actual collection duration of each round is greater than or equal to the preset test duration, it is considered that the preset test end condition is met.

[0068] Optionally, when it is detected that the number of times the current information is collected reaches a preset number threshold, it can be further determined whether the total collection time of the current information is greater than or equal to a preset test time. If so, it is determined that the preset test end condition is met.

[0069] Optionally, when a stop test script process written by a relevant person is detected, it is considered that the preset test end condition is met.

[0070] It should be noted that: through the preset number threshold or the preset test duration, two feasible implementation methods are given to determine whether the test is completed. When the test end conditions are met, the test results of this round of server current sharing can be timely evaluated, which will help relevant personnel to perform subsequent current tuning operations on each power supply unit of the server.

[0071] Optionally, after detecting that the preset test end conditions are met, the detected target average flow rate can be compared with a preset average flow rate threshold based on preset rules, and the server's average flow rate test result can be generated further based on the comparison result and identification information.

[0072] Optionally, based on the target average flow rate, identification information and preset average flow rate threshold, the average flow rate test result of the server is generated, including: if the number of target average flows is at least two, then based on the target average flow rate and the preset average flow rate threshold, determine the number of imbalances when the target average flow rate exceeds the preset average flow rate threshold; based on the number of imbalances and identification information, generate the test result of the server average flow rate. Among them, the number of imbalances refers to the number of times the target average flow rate of the server is greater than the preset average flow rate threshold.

[0073] Optionally, a test result of the current averaging of the server power supply unit may be generated based on the current averaging, a preset current averaging threshold, and hardware information of the test machine.

[0074] Exemplarily, a preset script program can be used to summarize the hardware information of the target server, such as the number of power units, manufacturer, model, etc., and the target average current calculated in each round of power information collection, and further draw a conclusion on whether the test has passed or failed based on the number of times the target average current exceeds a preset average current threshold (such as the default test duration of 12 hours, which is not allowed to exceed 3 times), so as to generate a test result for the server average current.

[0075] It should be noted that by comparing the relationship between the target current balance determined in multiple rounds and the current balance threshold, the number of current imbalances in the server power supply unit can be evaluated, so that the server load situation can be analyzed more comprehensively, which is helpful for the subsequent timely adjustment of the power supply unit current.

[0076] The technical solution of the embodiment of the present invention, in response to the current sharing test request for the power supply unit in the target server, determines the identification information of the baseboard management controller corresponding to the target server; uses the identification information to establish a communication connection with each power supply unit in the target server based on the preset communication protocol, and uses the communication connection to collect the current information of each power supply unit in the target server and determine the target current sharing; detects whether the preset test end condition is met, and if so, generates the server's current sharing test result based on the target current sharing, identification information and preset current sharing threshold. In this way, the current information of each power supply unit in the server can be monitored to timely determine the accurate current sharing, effectively monitor the load condition of the server power supply unit, and ensure the safe and effective operation of the server.

[0077] Embodiment 2

[0078] Figure 2A flow chart of a server flow rate test method provided in the second embodiment of the present invention; this embodiment is optimized and improved on the basis of the above-mentioned technical solutions.

[0079] Further, "based on a preset communication protocol, using identification information to establish a communication connection with each power supply unit in the target server, and using the communication connection to collect current information of each power supply unit in the target server and determine the target current sharing" is refined into "based on a preset communication protocol, using identification information to obtain the communication address of each power supply unit in the target server to establish a communication connection with each power supply unit in the target server; based on the communication address and a preset time interval, periodically collect current information of each power supply unit in the target server and determine the target current sharing" to improve the specific method of determining the target current sharing.

[0080] Furthermore, "according to the communication address and preset time interval, periodically collect the current information of each power supply unit in the target server and determine the target current sharing degree" is refined into "according to the preset time interval, determine the first collection time period and the second collection time period; according to the communication address, collect the current information of each power supply unit in the target server in the first collection time period and the second collection time period respectively, and determine the first target current sharing degree and the second target current sharing degree based on the current information" to improve the method of collecting current information separately when the number of target current sharing degrees is multiple.

[0081] Furthermore, "determine the first target average current according to the current information" is refined into "determine the maximum and minimum values ​​of the current of each power unit in the first acquisition time period according to the current information, and determine the first calculation parameter and the second calculation parameter according to the maximum and minimum values; determine the ratio of the first calculation parameter to the second calculation parameter as the first target average current" to improve the method of performing the average current calculation separately when there are multiple target average currents.

[0082] like Figure 2 As shown, the method comprises the following specific steps:

[0083] S201: In response to a current sharing test request for a power supply unit in a target server, determine identification information of a baseboard management controller corresponding to the target server.

[0084] S202: Acquire the communication address of each power supply unit in the target server using identification information based on a preset communication protocol to establish a communication connection with each power supply unit in the target server.

[0085] If the preset communication protocol is the PM Bus communication protocol, the communication address may be, for example, a PM Bus communication address.

[0086] Optionally, a preset scanning script may be called according to the identification information to directly scan and obtain the communication address of each power supply unit in the target server through a preset communication protocol, and further based on the communication address, a communication signal is sent to each power supply unit in the target server respectively, and the number of power supply units in the target server is determined according to the feedback of each power supply unit, and a communication connection is established with each power supply unit according to the communication address of the power supply unit with return information. If the power supply unit does not return information, a communication connection with the power supply unit is not established, and a reminder message is sent to relevant personnel.

[0087] S203: According to the communication address and the preset time interval, periodically collect the current information of each power supply unit in the target server and determine the target current sharing degree.

[0088] The preset time interval may be, for example, 10 seconds.

[0089] Optionally, at the current moment, the current information of each power supply unit in the target server can be collected according to the communication address and a target current equalization degree can be preliminarily determined. Further, after a preset time interval, the current information of each power supply unit in the target server can be collected again according to the communication address and a target current equalization degree can be determined again. And so on, to achieve periodic collection of current information of each power supply unit in the target server and determination of the target current equalization degree.

[0090] Optionally, according to the communication address and the preset time interval, the current information of each power supply unit in the target server can be periodically collected in chronological order; or the current information of each power supply unit in the target server can be periodically collected at the same time, and the present invention does not impose any restrictions on this.

[0091] Optionally, the number of power supply units is at least two, and accordingly, according to the communication address and the preset time interval, the current information of each power supply unit in the target server is periodically collected and the target current sharing degree is determined, including: determining a first collection time period and a second collection time period according to the preset time interval; according to the communication address, collecting the current information of each power supply unit in the target server in the first collection time period and the second collection time period, respectively, and determining the first target current sharing degree and the second target current sharing degree based on the current information.

[0092] Optionally, the first collection time period refers to a time period corresponding to the current time plus one preset time interval, and the second collection time period refers to a time period corresponding to the current time plus two preset time intervals.

[0093] Optionally, if the number of power supply units is at least two, current information of each power supply unit in the target server can be collected in a first collection time period to determine a first target current equalization degree, and further, current information of each power supply unit in the target server can be collected in a second collection time period to determine a second target current equalization degree.

[0094] Optionally, the maximum and minimum values ​​of the collected currents of multiple power supply units PSUs may be determined in each collection cycle, and the target current sharing degree may be calculated based on the maximum and minimum values ​​by taking the difference between the two and the sum of the two.

[0095] It should be noted that: by collecting power information of the power supply units in sequence during different collection time periods when there are multiple power supply units, multiple groups of current sharing degrees can be determined, which will help to conduct a more comprehensive analysis of the server load situation later.

[0096] Optionally, a first target current equalization degree is determined based on the current information, including: determining the maximum and minimum values ​​of the current of each power supply unit in a first acquisition time period based on the current information, and determining a first calculation parameter and a second calculation parameter based on the maximum and minimum values; and determining the ratio of the first calculation parameter to the second calculation parameter as the first target current equalization degree.

[0097] The first calculation parameter may be the difference between the maximum value and the minimum value, and the second calculation parameter may be the sum of the maximum value and the minimum value.

[0098] It should be noted that the method for determining the second target average flow degree is the same as that for determining the first target average flow degree, which will not be described in detail here.

[0099] It should be noted that: by providing an implementable method for determining the current sharing degree based on the current information according to the maximum and minimum current values ​​of the power supply unit during the acquisition time period, the accurate target current sharing degree can be determined, which is helpful for the subsequent analysis of the server load condition.

[0100] It should be noted that the present invention can directly obtain the real-time status data of the server power supply unit current through the power management bus, so as to determine the accurate current sharing degree, effectively measure whether the server has current overload, and generate comprehensive test results.

[0101] S204: Detect whether the preset test end condition is met. If so, generate the server flow average test result according to the target flow average, identification information and preset flow average threshold.

[0102] The technical solution of the present invention, by using a communication protocol to establish a connection with each power supply unit in the target server, can determine the communication address of each power supply unit, so that accurate current information of each power supply unit can be collected in a timely manner, which helps to determine the accurate current sharing of the server and effectively monitor the load condition of the server power supply unit.

[0103] Embodiment 3

[0104] Figure 3This is a flow chart of a server flow average testing method provided in Embodiment 3 of the present invention; this embodiment provides a preferred example based on the above embodiments.

[0105] like Figure 3 As shown, the method comprises the following specific steps:

[0106] S301 : In response to a current sharing test request for a power supply unit in a target server, determine identification information of a baseboard management controller corresponding to the target server.

[0107] S302: Acquire the communication address of each power supply unit in the target server using identification information based on a preset communication protocol to establish a communication connection with each power supply unit in the target server.

[0108] S303: Determine a first collection time period and a second collection time period according to a preset time interval.

[0109] S304. According to the communication address, collect current information of each power supply unit in the target server in a first collection time period and a second collection time period, and determine a first target current sharing degree and a second target current sharing degree according to the current information.

[0110] S305: If it is detected that the total duration of collecting the current information is greater than or equal to the preset test duration, it is determined that the preset test end condition is met.

[0111] S306: If the number of target average flows is at least two, determine the number of imbalances when the target average flow exceeds the preset average flow threshold according to the target average flow and the preset average flow threshold.

[0112] S307: Generate a test result of the server flow rate according to the number of imbalances and the identification information.

[0113] Embodiment 4

[0114] Figure 4 This is a schematic diagram of the structure of a server current balancing test device provided in the fourth embodiment of the present invention; the server current balancing test device provided in the embodiment of the present invention can be used to test the server current balancing in response to a current balancing test request of a power supply unit in a target server to achieve real-time monitoring of the server load condition. The server current balancing test device can be implemented in the form of hardware and / or software, and the server current balancing test device can be configured in an electronic device. Figure 4 As shown, the device specifically includes: a first determining module 401, a second determining module 402 and a generating module 403.

[0115] The first determination module 401 is used to determine the identification information of the baseboard management controller corresponding to the target server in response to a current balancing test request for the power supply unit in the target server;

[0116] A second determination module 402 is used to establish a communication connection with each power supply unit in the target server using identification information based on a preset communication protocol, and to collect current information of each power supply unit in the target server using the communication connection and determine a target current sharing degree;

[0117] The generation module 403 is used to detect whether the preset test end condition is met. If it is met, the server flow rate test result is generated according to the target flow rate, identification information and the preset flow rate threshold.

[0118] The technical solution of the embodiment of the present invention, in response to the current sharing test request for the power supply unit in the target server, determines the identification information of the baseboard management controller corresponding to the target server; uses the identification information to establish a communication connection with each power supply unit in the target server based on the preset communication protocol, and uses the communication connection to collect the current information of each power supply unit in the target server and determine the target current sharing; detects whether the preset test end condition is met, and if so, generates the server's current sharing test result based on the target current sharing, identification information and preset current sharing threshold. In this way, the current information of each power supply unit in the server can be monitored to timely determine the accurate current sharing, effectively monitor the load condition of the server power supply unit, and ensure the safe and effective operation of the server.

[0119] Further, the second determining module 402 may include:

[0120] An establishing unit, configured to acquire the communication address of each power supply unit in the target server by using the identification information based on a preset communication protocol, so as to establish a communication connection with each power supply unit in the target server;

[0121] The determination unit is used to periodically collect current information of each power supply unit in the target server and determine a target current sharing degree according to the communication address and a preset time interval.

[0122] Further, the number of the power supply units is at least two, and accordingly, the determining unit may include:

[0123] A time period determination subunit, used to determine a first collection time period and a second collection time period according to a preset time interval;

[0124] The current averaging determination subunit is used to collect current information of each power supply unit in the target server in the first collection time period and the second collection time period according to the communication address, and determine the first target current averaging and the second target current averaging according to the current information.

[0125] Furthermore, the average flow determination subunit is specifically used for:

[0126] Determine the maximum value and the minimum value of the current of each power supply unit in the first acquisition time period according to the current information, and determine the first calculation parameter and the second calculation parameter according to the maximum value and the minimum value;

[0127] The ratio of the first calculation parameter to the second calculation parameter is determined as the first target average flow degree.

[0128] Furthermore, the generating module 403 is specifically used for:

[0129] If it is detected that the number of times the current information is collected reaches a preset number threshold, it is determined that the preset test end condition is met; and / or

[0130] If it is detected that the total duration of collecting the current information is greater than or equal to the preset test duration, it is determined that the preset test end condition is met.

[0131] Furthermore, the generating module 403 is also used for:

[0132] If the number of target average flow rates is at least two, determining the number of imbalances in which the target average flow rate exceeds the preset average flow rate threshold according to the target average flow rate and the preset average flow rate threshold;

[0133] Generate server flow balance test results based on the number of imbalances and identification information.

[0134] Furthermore, the preset communication protocol is a power management bus protocol.

[0135] Embodiment 5

[0136] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0137] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0138] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0139] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the server average flow test method.

[0140] In some embodiments, the server flow average test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the server flow average test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the server flow average test method in any other appropriate manner (e.g., by means of firmware).

[0141] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0142] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0143] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0144] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0145] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0146] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0148] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A server flow rate test method, characterized in that: include: In response to a current sharing test request for a power supply unit in a target server, determining identification information of a baseboard management controller corresponding to the target server; Establishing a communication connection with each power supply unit in the target server using identification information based on a preset communication protocol, and collecting current information of each power supply unit in the target server using the communication connection and determining a target current sharing degree; Check whether the preset test end conditions are met. If so, generate the server's flow rate test result based on the target flow rate, identification information and preset flow rate threshold.

2. The method according to claim 1, characterized in that Based on a preset communication protocol, a communication connection is established with each power supply unit in the target server using identification information, and current information of each power supply unit in the target server is collected using the communication connection and a target current sharing degree is determined, including: Acquire the communication address of each power supply unit in the target server by using the identification information based on the preset communication protocol to establish a communication connection with each power supply unit in the target server; According to the communication address and the preset time interval, the current information of each power supply unit in the target server is periodically collected and the target current sharing degree is determined.

3. The method according to claim 2, characterized in that The number of the power supply units is at least two, and accordingly, according to the communication address and the preset time interval, the current information of each power supply unit in the target server is periodically collected and the target current sharing degree is determined, including: Determine a first collection time period and a second collection time period according to a preset time interval; According to the communication address, current information of each power supply unit in the target server is collected in a first collection time period and a second collection time period, and a first target current sharing degree and a second target current sharing degree are determined according to the current information.

4. The method according to claim 3, characterized in that Determining a first target current sharing degree according to the current information includes: Determine the maximum value and the minimum value of the current of each power supply unit in the first acquisition time period according to the current information, and determine the first calculation parameter and the second calculation parameter according to the maximum value and the minimum value; The ratio of the first calculation parameter to the second calculation parameter is determined as the first target average flow degree.

5. The method according to claim 1, characterized in that Check whether the preset test end conditions are met, including: If it is detected that the number of times the current information is collected reaches a preset number threshold, it is determined that the preset test end condition is met; and / or If it is detected that the total duration of collecting the current information is greater than or equal to the preset test duration, it is determined that the preset test end condition is met.

6. The method according to claim 1, characterized in that Generate the server's average flow test results based on the target average flow, identification information, and preset average flow threshold, including: If the number of target average flow rates is at least two, determining the number of imbalances in which the target average flow rate exceeds the preset average flow rate threshold according to the target average flow rate and the preset average flow rate threshold; Generate server traffic balance test results based on the number of imbalances and identification information.

7. The method according to claim 1, characterized in that in, The default communication protocol is the power management bus protocol.

8. A server flow rate test device, characterized in that: include: A first determination module, configured to determine identification information of a baseboard management controller corresponding to the target server in response to a current balancing test request for a power supply unit in the target server; A second determination module is used to establish a communication connection with each power supply unit in the target server using identification information based on a preset communication protocol, and to collect current information of each power supply unit in the target server using the communication connection and determine a target current sharing degree; The generation module is used to detect whether the preset test end conditions are met. If so, the server's flow rate test results are generated based on the target flow rate, identification information and preset flow rate threshold.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the server flow average test method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the server flow average test method described in any one of claims 1-7 when executed.