Search

CN-116302098-B - Cabinet equipment control method, computer equipment and storage medium

CN116302098BCN 116302098 BCN116302098 BCN 116302098BCN-116302098-B

Abstract

The application discloses a cabinet equipment control method, computer equipment and a storage medium. The method comprises the steps of obtaining a sampling operation power sequence of equipment to be erected according to the arrangement of operation power from low to high, obtaining a safety coefficient of the equipment to be erected, calculating a first sequence number according to the sampling operation power sequence and the safety coefficient of the equipment to be erected, calculating first operation power of the equipment to be erected based on the first sequence number and the sampling operation power sequence, obtaining available operation power of a cabinet, and determining whether the equipment to be erected can be erected on the cabinet or not based on the available operation power of the cabinet and the first operation power of the equipment to be erected. The problem of the prior art because of the power rating of using server equipment produces when carrying out the planning of putting on shelf the cabinet capacity extravagant is solved, improves cabinet capacity utilization efficiency.

Inventors

  • JIN GUANGTAO
  • WANG TAO
  • CHENG JIEPING
  • XIAO RUIGUO
  • FENG DEWEI

Assignees

  • 中国石油化工股份有限公司
  • 石化盈科信息技术有限责任公司

Dates

Publication Date
20260512
Application Date
20220906

Claims (7)

  1. 1. A control method for equipment in a cabinet is characterized in that, Acquiring a sampling operation power sequence of equipment to be erected according to the arrangement of the operation power from low to high: , , ..... ; Acquiring the safety coefficient of the to-be-erected; the first sequence number is calculated by the following formula: i=n*K wherein i is a first serial number, n is the number of sampling operation power sequences of equipment to be erected, and K is the safety coefficient of the equipment to be erected; Judging whether the first sequence number is an integer or not; If the first serial number is an integer, calculating the first running power to be erected according to the following formula: P=( + )/2 wherein P is the first operating power of the equipment to be uploaded, To run power at the first sequence number in the sequence of sampled run powers arranged from low to high, The next operation power in the first sequence number in the sampling operation power sequence which is arranged from low to high for the operation power; if the first sequence number is not an integer, a second sequence number is obtained by rounding up according to the first sequence number, and the first running power of the equipment to be erected is calculated by the following formula: P= wherein P is the first operating power of the equipment to be uploaded, Operating power at a second sequence number in a sequence of sampled operating powers arranged from low to high for operating power; Acquiring available operating power of the cabinet; And determining whether the equipment to be erected can be erected on the equipment cabinet or not based on the available operating power of the equipment to be erected and the first operating power of the equipment to be erected.
  2. 2. The method of claim 1, wherein the step of obtaining the available operating power of the cabinet comprises: acquiring the design running power of the cabinet; acquiring the running power of equipment running in the cabinet; The cabinet available operating power is calculated by the following formula: C=A-B Wherein 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 in operation of the cabinet.
  3. 3. The method of claim 1, wherein the determining whether the equipment to be shelved can be on the rack based on the available operating power of the rack and the first operating power of the equipment to be shelved comprises: judging whether the first operating power to be erected is smaller than the available operating power of the cabinet or not; And if the first operating power of the equipment to be erected is smaller than the available operating power of the equipment cabinet, the equipment to be erected can be erected on the equipment cabinet.
  4. 4. The method of claim 1, wherein the determining whether the equipment to be shelved can be on the rack based on the available operating power of the rack and the first operating power of the equipment to be shelved comprises: acquiring the safety coefficient of the to-be-erected; Calculating the second operation power of the equipment to be put on shelf according to the following formula: T=P*F Wherein T is the second operating power of the equipment to be erected, P is the first operating power of the equipment to be erected, and F is the safety factor of the equipment to be erected; judging whether the second operating power to be erected is smaller than the available operating power of the cabinet or not; and if the second operating power of the equipment to be erected is smaller than the available operating power of the equipment cabinet, the equipment to be erected can be erected on the equipment cabinet.
  5. 5. The method of claim 1, wherein the determining whether the equipment to be shelved can be on the rack based on the available operating power of the rack and the first operating power of the equipment to be shelved comprises: Acquiring an available space of the cabinet; Acquiring the occupied space required by the to-be-erected frame; judging whether the first operation power of the equipment to be erected is smaller than the available operation power of the equipment cabinet and whether the occupied space required by the equipment to be erected is smaller than the available space of the equipment cabinet; And if the first operating power of the equipment to be erected is smaller than the available operating power of the cabinet and the occupied space required by the equipment to be erected is smaller than the available space of the cabinet, the equipment to be erected can be erected on the cabinet.
  6. 6. A computer device comprising a memory and a processor, the memory for storing one or more computer instructions, wherein the one or more computer instructions when executed by the processor implement the cabinet device control method of any one of claims 1 to 5.
  7. 7. A computer-readable storage medium in which a program is stored, characterized in that the program, when executed by a computer, implements the cabinet device control method according to any one of claims 1 to 5.

Description

Cabinet equipment control method, computer equipment and storage medium Technical Field The present invention relates to the field of data centers, and in particular, to a cabinet device control method, a computer device, and a storage medium. Background With the continuous development of internet technology, users need more and more server devices to deploy internet services, but the actual running power of the server devices is greatly different from the rated power, so when the server devices are planned on a rack, the power capacity required by the devices is often estimated according to the rated power of the server devices, so that the power capacity becomes a bottleneck for improving the service efficiency of the rack, and the capacity waste is caused to a certain extent. Therefore, it is necessary to provide a control method for the equipment cabinet, which solves the problem of waste of the capacity of the equipment cabinet generated when the rated power of the server equipment is used for the on-shelf planning in the prior art, and improves the utilization efficiency of the capacity of the equipment cabinet. Disclosure of Invention The invention mainly aims to provide a cabinet equipment control method, computer equipment and a storage medium, so as to solve the problem of cabinet capacity waste generated when the rated power of server equipment is used for on-shelf planning in the prior art, and improve the cabinet capacity utilization efficiency. In a first aspect, the present invention provides a method for controlling a cabinet device, including: acquiring a sampling operation power sequence of equipment to be erected according to the arrangement of the operation power from low to high: ,,.....; Acquiring the safety coefficient of the to-be-erected; the first sequence number is calculated by the following formula: i=n*K wherein i is a first serial number, n is the number of sampling operation power sequences of equipment to be erected, and K is the safety coefficient of the equipment to be erected; Judging whether the first sequence number is an integer or not; If the first serial number is an integer, calculating the first running power to be erected according to the following formula: P=(+)/2 wherein P is the first operating power of the equipment to be uploaded, To run power at the first sequence number in the sequence of sampled run powers arranged from low to high,The next operation power in the first sequence number in the sampling operation power sequence which is arranged from low to high for the operation power; if the first sequence number is not an integer, a second sequence number is obtained by rounding up according to the first sequence number, and the first running power of the equipment to be erected is calculated by the following formula: P= wherein P is the first operating power of the equipment to be uploaded, Operating power at a second sequence number in a sequence of sampled operating powers arranged from low to high for operating power; Acquiring available operating power of the cabinet; And determining whether the equipment to be erected can be erected on the equipment cabinet or not based on the available operating power of the equipment to be erected and the first operating power of the equipment to be erected. Optionally, the step of using the operating power for the cabinet includes: acquiring the design running power of the cabinet; acquiring the running power of equipment running in the cabinet; The cabinet available operating power is calculated by the following formula: C=A-B Wherein 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 in operation of the cabinet. Optionally, the determining whether the rack to be erected can be erected on the rack based on the available operating power of the rack and the first operating power of the rack to be erected includes: judging whether the first operating power to be erected is smaller than the available operating power of the cabinet or not; And if the first operating power of the equipment to be erected is smaller than the available operating power of the equipment cabinet, the equipment to be erected can be erected on the equipment cabinet. Optionally, the determining whether the rack to be erected can be erected on the rack based on the available operating power of the rack and the first operating power of the rack to be erected includes: acquiring the safety coefficient of the to-be-erected; Calculating the second operation power of the equipment to be put on shelf according to the following formula: T=P*F Wherein T is the second operating power of the equipment to be erected, P is the first operating power of the equipment to be erected, and F is the safety factor of the equipment to be erected; judging whether the second operating power to be erected is smaller than the available operating power of the cabinet or not; a