A cabinet equipment control method, computer equipment and storage medium
By obtaining the actual operating power sequence and safety factor of the equipment, the reference operating power of the equipment is calculated, which solves the problem of wasted cabinet capacity and improves the utilization efficiency of the cabinet.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA PETROLEUM & CHEMICAL CORP
- Filing Date
- 2022-09-06
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, using the rated power of server equipment for rack planning leads to wasted rack capacity and affects the efficiency of rack capacity utilization.
By obtaining the actual operating power sequence of the equipment to be racked, and combining it with the safety factor and the available operating power of the rack, the reference operating power of the equipment is calculated to determine whether the equipment can be racked, thus avoiding the direct use of the rated power.
It improved the utilization efficiency of rack capacity, reduced power waste, and optimized equipment racking planning.
Smart Images

Figure CN116302098B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data center technology, and in particular to a rack equipment control method, computer equipment, and storage medium. Background Technology
[0002] With the continuous development of Internet technology, users need more and more server equipment to deploy Internet services. However, the actual operating power of server equipment differs greatly from its rated power. Therefore, when planning the rack placement of server equipment, the power capacity required by the equipment is often estimated based on the rated power of the server equipment. This makes power capacity a bottleneck to improving the efficiency of rack utilization, which to some extent leads to a waste of capacity.
[0003] Therefore, there is a need to provide a rack equipment control method to solve the problem of rack capacity waste caused by using the rated power of server equipment for rack planning in the existing technology, and to improve the rack capacity utilization efficiency. Summary of the Invention
[0004] The main objective of this invention is to provide a rack equipment control method, computer equipment, and storage medium to solve the problem of wasted rack capacity caused by using the rated power of server equipment for rack planning in the prior art, and to improve the utilization efficiency of rack capacity.
[0005] In a first aspect, the present invention provides a cabinet equipment control method, comprising:
[0006] Obtain the sampled operating power sequence of the equipment to be installed, arranged from low to high operating power: , , ... ;
[0007] Obtain the safety factor of the device to be installed;
[0008] The first serial number is calculated using the following formula:
[0009] i=n*K
[0010] Where i is the first sequence number, n is the number of sampling operating power sequences of the equipment to be installed, and K is the safety factor of the equipment to be installed;
[0011] Determine whether the first sequence number is an integer;
[0012] If the first sequence number is an integer, the first operating power of the equipment to be installed is calculated using the following formula:
[0013] P=( + ) / 2
[0014] Where P is the first operating power of the equipment to be installed. This refers to the operating power numbered first in a sampled operating power sequence arranged from low to high. The operating power is the next one in the first sequence number of the sampled operating power sequence arranged from low to high.
[0015] If the first sequence number is not an integer, then the second sequence number is obtained by rounding up the first sequence number, and the first operating power of the equipment to be installed is calculated using the following formula:
[0016] P=
[0017] Where P is the first operating power of the equipment to be installed. The second-order operating power in the sampled operating power sequence arranged from low to high;
[0018] Obtain the available operating power of the server rack;
[0019] The availability of the rack's operating power and the first operating power of the device to be racked are used to determine whether the device can be racked in the rack.
[0020] Optionally, the steps for determining the available operating power of the cabinet include:
[0021] Obtain the design operating power of the cabinet;
[0022] Obtain the operating power of the equipment currently running in the cabinet;
[0023] The available operating power of the cabinet is calculated using the following formula:
[0024] C=AB
[0025] Where C is the available operating power of the cabinet, A is the designed operating power of the cabinet, and B is the operating power of the equipment currently running in the cabinet.
[0026] Optionally, the step of determining whether the device to be racked can be racked in the rack based on the available operating power of the rack and the first operating power of the device to be racked includes:
[0027] Determine whether the first operating power of the equipment to be racked is less than the available operating power of the rack;
[0028] If the first operating power of the device to be racked is less than the available operating power of the rack, then the device to be racked can be racked in the rack.
[0029] Optionally, the step of determining whether the device to be racked can be racked in the rack based on the available operating power of the rack and the first operating power of the device to be racked includes:
[0030] Obtain the insurance coefficient of the device to be installed;
[0031] The second operating power of the equipment to be installed is calculated according to the following formula:
[0032] T=P*F
[0033] Where T is the second operating power of the equipment to be installed, P is the first operating power of the equipment to be installed, and F is the safety factor of the equipment to be installed;
[0034] Determine whether the second operating power of the equipment to be racked is less than the available operating power of the rack;
[0035] If the second operating power of the device to be racked is less than the available operating power of the rack, then the device to be racked can be racked in the rack.
[0036] Optionally, the step of determining whether the device to be racked can be racked in the rack based on the available operating power of the rack and the first operating power of the device to be racked includes:
[0037] Obtain the available space in the cabinet;
[0038] Obtain the space required for the device to be installed;
[0039] Determine whether the first operating power of the device to be racked is less than the available operating power of the rack and whether the space required by the device to be racked is less than the available space of the rack;
[0040] If the first operating power of the device to be racked is less than the available operating power of the rack and the space required by the device to be racked is less than the available space of the rack, then the device to be racked can be racked in the rack.
[0041] According to a second aspect of the present invention, the present invention provides a computer device including a memory and a processor, the memory being used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the cabinet equipment control method described in any of the first aspects above.
[0042] According to a third aspect of the present invention, the present invention provides a storage medium storing a program that, when executed by a computer, implements the cabinet equipment control method described in any of the first aspects above.
[0043] Compared with the prior art, one or more embodiments of the above solutions may have the following advantages or beneficial effects:
[0044] This invention calculates the reference power of the equipment to be racked based on the sampling data of the equipment to be racked, and determines whether the equipment to be racked can be racked based on the reference power and the rack's operating power. This solves the problem of rack capacity waste caused by using the rated power of server equipment for racking planning in the prior art, and improves rack capacity utilization efficiency. Attached Figure Description
[0045] To more clearly illustrate the technical solution of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, for those who are not skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is a flowchart illustrating a cabinet equipment control method provided in an embodiment of the present invention. Detailed Implementation
[0047] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples, so that the process of how the present invention uses technical means to solve technical problems and achieve corresponding technical effects can be fully understood and implemented accordingly. The embodiments of the present invention and the various features therein can be combined with each other without conflict, and the resulting technical solutions are all within the protection scope of the present invention.
[0048] like Figure 1 As shown, an embodiment of the present invention provides a cabinet equipment control method, including the following steps S101 to S105:
[0049] Step S101: Obtain the sampled operating power sequence of the devices to be installed, arranged from low to high operating power.
[0050] The equipment to be racked refers to IT devices such as servers, switches, or routers that will be placed in the rack for operation. These IT devices all have a rated operating power, which is the power provided by the manufacturer during operation. However, in practice, the actual operating power of the IT device is often less than the rated operating power provided by the manufacturer. This is because the rated operating power provided by the manufacturer is the operating power of the IT device under full load operation. In actual application, the IT device does not operate at full load most of the time, so its actual operating power is less than the rated operating power most of the time. Therefore, the first step is to obtain a sampled operating power sequence of the equipment to be racked, arranged from low to high operating power. For example, if the equipment to be racked is a server, the actual operating power is collected every hour throughout the day. The resulting sampled operating power sequence, arranged from low to high, is, for example, [410W, 420W, 420W, 440W, 440W…480W]. This sampled operating power sequence contains 24 operating power data points, representing the operating power of the equipment to be racked at each hour of the day, arranged from low to high.
[0051] Step S102: Obtain the safety factor of the equipment to be installed.
[0052] The security factor of a device to be listed indicates its importance. The higher the security factor, the more important the device. For example, the security factor of a router is 75%, that of a server is 80%, and that of a switch is 90%.
[0053] Step S103: Calculate and obtain the first sequence number based on the sampled operating power sequence and the safety factor of the equipment to be installed.
[0054] The first serial number is calculated using the following formula:
[0055] i=n*K
[0056] Where i is the first sequence number, n is the number of sampling operating power sequences of the equipment to be installed, and K is the safety factor of the equipment to be installed;
[0057] For example, if the device to be installed is a server, its sampling operating power sequence has 24 data points, and its safety factor is 80%, then the first sequence number is 24 * 80% = 19.2.
[0058] Step S104: Determine whether the first sequence number is an integer.
[0059] For example, when the device to be listed is a server, its first sequence number is 19.2, which is not an integer. When the device to be listed is a router, its first sequence number is 18, which is an integer.
[0060] Step S105: Calculate and obtain the first operating power of the device to be installed based on the sampled operating power sequence and the first sequence number.
[0061] If the first sequence number is an integer, the first operating power of the equipment to be installed is calculated using the following formula:
[0062] P=( + ) / 2
[0063] Where P is the first operating power of the equipment to be installed. This refers to the operating power numbered first in a sampled operating power sequence arranged from low to high. The operating power is the next one in the first sequence number of the sampled operating power sequence arranged from low to high.
[0064] For example, if the 18th operating power in the sampling operating power sequence of the device to be racked is 450W and the 19th operating power in the sampling operating power sequence of the device to be racked is 460W, then the first operating power of the device to be racked is (450W+460W) / 2=455W. The first operating power represents the reference operating power of the device to be racked. Since the first number is obtained based on the safety factor of the device to be racked, and the sampling operating power sequence of the device to be racked is arranged from low to high, the larger the safety factor of the device to be racked, the larger the first operating power of the device to be racked calculated according to the above formula. This means that the more important the equipment, the larger its first operating power. When the device to be racked is running at the first operating power, its safety is relatively high. At the same time, since it has not reached the rated operating power, it is equivalent to increasing the available operating power of the rack.
[0065] Step S106: Obtain the second sequence number by rounding up the first sequence number.
[0066] If the first sequence number is not an integer, then the second sequence number is obtained by rounding up the first sequence number. For example, if the first sequence number is 19.2, then the second sequence number is 20 by rounding up the first sequence number.
[0067] Step S107: Calculate and obtain the first operating power of the device to be installed based on the sampled operating power sequence and the second sequence number.
[0068] For example, the first operating power of the equipment to be installed can be calculated using the following formula:
[0069] P=
[0070] Where P is the first operating power of the equipment to be installed. The second-order operating power in the sampled operating power sequence arranged from low to high;
[0071] For example, if the second sequence number is 20, and the 20th operating power of the sampled operating power sequence of the device to be installed is 470W, then the first operating power of the device to be installed is 470W.
[0072] Step S108: Obtain the available operating power of the rack.
[0073] The available operating power of the cabinet is the operating power that the cabinet can currently support, for example, the available operating power of the cabinet is 1500W.
[0074] Preferably, the step of obtaining the available operating power of the cabinet is as follows:
[0075] Obtain the design operating power of the cabinet, which is the maximum operating power of the equipment that the cabinet can support, provided by the cabinet manufacturer, for example, 4000W;
[0076] The operating power of the devices currently running in the cabinet is obtained. The sum of the operating power values of all devices currently running in the cabinet is the operating power of the devices currently running in the cabinet, for example, 2500W.
[0077] The available operating power of the cabinet is calculated using the following formula:
[0078] C=AB
[0079] Where C is the available operating power of the cabinet, A is the designed operating power of the cabinet, and B is the operating power of the equipment currently running in the cabinet.
[0080] For example, if the cabinet is designed to operate at 4000W and the operating power of the equipment currently running in the cabinet is 2500W, then the available operating power of the cabinet is 4000W - 2500W = 1500W.
[0081] Step S109: Determine whether the equipment to be racked can be racked based on the available operating power of the rack and the first operating power of the equipment to be racked.
[0082] For example, it can be determined whether the first operating power of the equipment to be racked is less than the available operating power of the rack;
[0083] If the first operating power of the device to be racked is less than the available operating power of the rack, then the device can be racked in the rack. For example, if the first operating power of the device to be racked is 455W, and the available operating power of the rack is 1500W, then the first operating power of the device to be racked is less than the available operating power of the rack, therefore, the rack can support the device to be racked.
[0084] Preferably, the insurance coefficient of the device to be listed is obtained. The insurance coefficient of the device to be listed is the insurance coefficient set by the user. The higher the value, the more important the device to be listed is.
[0085] The second operating power of the equipment to be installed is calculated according to the following formula:
[0086] T=P*F
[0087] Where T is the second operating power of the equipment to be installed, P is the first operating power of the equipment to be installed, and F is the safety factor of the equipment to be installed;
[0088] Determine whether the second operating power of the equipment to be racked is less than the available operating power of the rack;
[0089] If the second operating power of the device to be racked is less than the available operating power of the rack, then the device to be racked can be racked in the rack.
[0090] For example, if the first operating power of the device to be racked is 480W and the safety factor of the device to be racked is 1.05, then the second operating power of the device to be racked is 480W * 1.05 = 504W. The second operating power is calculated based on the first operating power and the safety factor of the device to be racked. Since the safety factor is greater than 1, the second operating power is greater than the first operating power, and its safety is higher. The available operating power of the rack is 1500W, so the second operating power of the device to be racked is less than the available operating power of the rack. Therefore, the rack can support the device to be racked.
[0091] Preferably, the available space of the rack is obtained. The available space of the rack is the available U-slot of the rack, that is, the slot in the rack that can be used to mount equipment. When the equipment is mounted, it will occupy the slot in the rack.
[0092] Obtain the space required by the device to be racked, where the space required by the device to be racked is the U-space required by the device to be racked;
[0093] Determine whether the first operating power of the device to be racked is less than the available operating power of the rack and whether the space required by the device to be racked is less than the available space of the rack;
[0094] If the first operating power of the device to be racked is less than the available operating power of the rack and the space required by the device to be racked is less than the available space of the rack, then the device to be racked can be racked in the rack.
[0095] For example, the available space of the rack is 8 U-slots, the space required by the device to be racked is 4 U-slots, the first operating power of the device to be racked is 470W, and the available operating power of the rack is 1500W. Therefore, the first operating power of the device to be racked is less than the available operating power of the rack, and the space required by the device to be racked is less than the available space of the rack. The rack is capable of accommodating the device to be racked.
[0096] Preferably, the continuous available space of the rack is obtained and compared with the space required by the equipment to be racked. For example, when the available space of the rack is 5 U-positions, but its continuous available space is 2 U-positions and 3 U-positions respectively, if the space required by the equipment to be racked is 4 U-positions, then the equipment already racked in the rack needs to be moved first to achieve 4 U-positions of continuous available space before the equipment to be racked can be racked. However, when the continuous available space of the rack is directly compared with the space required by the equipment to be racked, there is no need to consider the problem of moving the equipment in the existing rack.
[0097] An embodiment of the present invention provides a computer device, which may be a computer, a server, etc., including a memory and a processor. The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the rack equipment control method described in the above embodiments.
[0098] The processor is used to execute all or part of the steps in the cabinet equipment control method as described in the above embodiments. The memory is used to store various types of data, such as...
[0099] The processor may be implemented as an Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor, or other electronic components, and is used to execute the cabinet equipment control method in Embodiment 1 above.
[0100] The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0101] In the various embodiments of this invention, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program checksums.
[0102] In the embodiments provided in this disclosure, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0103] It should be noted that, in this disclosure, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0104] While the embodiments disclosed herein are as described above, the foregoing content is merely for the purpose of facilitating understanding and is not intended to limit the scope of this disclosure. Any person skilled in the art to which this disclosure pertains may make any modifications and changes in form and detail of the implementation without departing from the spirit and scope of this disclosure; however, the scope of patent protection of this disclosure shall still be determined by the scope defined in the appended claims.
Claims
1. A method for controlling cabinet equipment, characterized in that, Obtain the sampled operating power sequence of the equipment to be installed, arranged from low to high operating power: , , ... ; Obtain the safety factor of the device to be installed; The first serial number is calculated using the following formula: i=n*K Where i is the first sequence number, n is the number of sampling operating power sequences of the equipment to be installed, and K is the safety factor of the equipment to be installed; Determine whether the first sequence number is an integer; If the first sequence number is an integer, the first operating power of the equipment to be installed is calculated using the following formula: P=( + ) / 2 Where P is the first operating power of the equipment to be installed. This refers to the operating power numbered first in a sampled operating power sequence arranged from low to high. The operating power is the next one in the first sequence number of the sampled operating power sequence arranged from low to high. If the first sequence number is not an integer, then the second sequence number is obtained by rounding up the first sequence number, and the first operating power of the equipment to be installed is calculated using the following formula: P= Where P is the first operating power of the equipment to be installed. The second-order operating power in the sampled operating power sequence arranged from low to high; Obtain the available operating power of the server rack; The availability of the rack's operating power and the first operating power of the device to be racked are used to determine whether the device can be racked in the rack.
2. The method according to claim 1, characterized in that, The step of obtaining the available operating power of the rack includes: Obtain the design operating power of the cabinet; Obtain the operating power of the equipment currently running in the cabinet; The available operating power of the cabinet is calculated using the following formula: C=AB Where C is the available operating power of the cabinet, A is the designed operating power of the cabinet, and B is the operating power of the equipment currently running in the cabinet.
3. The method according to claim 1, characterized in that, The step of determining whether the equipment to be racked can be racked in the rack based on the available operating power of the rack and the first operating power of the equipment to be racked includes: Determine whether the first operating power of the equipment to be racked is less than the available operating power of the rack; If the first operating power of the device to be racked is less than the available operating power of the rack, then the device to be racked can be racked in the rack.
4. The method according to claim 1, characterized in that, The step of determining whether the equipment to be racked can be racked in the rack based on the available operating power of the rack and the first operating power of the equipment to be racked includes: Obtain the insurance coefficient of the device to be installed; The second operating power of the equipment to be installed is calculated according to the following formula: T=P*F Where T is the second operating power of the equipment to be installed, P is the first operating power of the equipment to be installed, and F is the safety factor of the equipment to be installed; Determine whether the second operating power of the equipment to be racked is less than the available operating power of the rack; If the second operating power of the device to be racked is less than the available operating power of the rack, then the device to be racked can be racked in the rack.
5. The method according to claim 1, characterized in that, The step of determining whether the equipment to be racked can be racked in the rack based on the available operating power of the rack and the first operating power of the equipment to be racked includes: Obtain the available space in the cabinet; Obtain the space required for the device to be installed; Determine whether the first operating power of the device to be racked is less than the available operating power of the rack and whether the space required by the device to be racked is less than the available space of the rack; If the first operating power of the device to be racked is less than the available operating power of the rack and the space required by the device to be racked is less than the available space of the rack, then the device to be racked can be racked in the rack.
6. A computer device, characterized in that, The system includes a memory and a processor, the memory being used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the cabinet equipment control method according to any one of claims 1 to 5.
7. A computer-readable storage medium storing a program, characterized in that, When the program is executed by a computer, it implements the cabinet equipment control method according to any one of claims 1 to 5.