A method, device and storage medium for determining data center machine capacity
By determining the actual remaining power and seat status of server cabinets in the data center, the problem of poor statistical accuracy of seat capacity in the existing technology is solved, and accurate statistics of the seat capacity of the data center and reliable expansion support are achieved.
Patent Information
- Application Number
- CN202011312285.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-11-20
AI Technical Summary
The existing technology only relies on theoretical data when determining the capacity of the data center, resulting in poor accuracy of statistical results.
By determining the actual remaining power when the server cabinet generates power consumption, obtaining the number of idle and unavailable seats, and dynamically adjusting the status of the slots based on these parameters to ensure the accuracy of the idle status, thereby realizing the optimization of the data center slot capacity. Accurate statistics.
It achieves accurate statistics of data center machine capacity, provides a reliable basis for capacity expansion, and improves the accuracy of statistical results.
Smart Images

Figure CN112381434B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of data center slot management in financial technology (Fintech), and relate to but are not limited to a method, device, and computer-readable storage medium for determining the capacity of a data center slot. Background Art
[0002] With the development of computer technology, more and more technologies are being applied in the financial field. Traditional finance is gradually transforming into financial technology (Fintech). However, due to the security and real-time requirements of the financial industry, Fintech also places higher demands on technology.
[0003] In the field of financial technology, Internet Technology (IT) architecture planners use the following scheme to count and predict the capacity of data center slots. First, count the number of all slots. Specifically, roughly calculate how many servers can be placed in a cabinet under theoretical conditions based on the different server cabinet powers and the maximum power servers in different data centers. For example, the server cabinet power of data center A is 4400W, and the maximum server power is 350W. Then use 4400W / 350W to get 12.57, so this server cabinet can hold up to 12 servers; then multiply 12 by the number of server cabinets to get the number of all slots. Then subtract the number of existing servers from the number of all slots to determine the remaining capacity of the current data center slots.
[0004] However, the above method only relies on theoretical data when determining the capacity of data center slots, resulting in poor accuracy of statistical results. Summary of the invention
[0005] The embodiments of the present application provide a method, device and computer-readable storage medium for determining the capacity of a data center machine position, which solves the problem in the related art that when determining the capacity of a data center machine position, only theoretical data is relied upon, resulting in poor accuracy of statistical results. When a server cabinet consumes power, actual working parameters of the server cabinet are obtained, including the initial number of machine positions available for adding servers under actual remaining power, the number of idle machine positions and the number of unavailable machine positions, and the machine position status is dynamically adjusted based on the above-mentioned actual working parameters obtained, so that the machine positions in the idle state are accurate, and then the accurate number of idle machine positions is used as the actual number of machine positions available for adding servers, thereby achieving accurate statistics of the machine position capacity of the data center and providing a reliable basis for capacity expansion.
[0006] The technical solution of the embodiment of the present application is implemented as follows:
[0007] The present application provides a method for determining the capacity of a data center, including:
[0008] In the case where the server cabinet generates power consumption, determining the actual remaining power of the server cabinet;
[0009] Based on the actual remaining power, determining an initial number of slots on the server cabinet available for adding servers;
[0010] Obtaining the number of idle slots and the number of unavailable slots; wherein the number of idle slots includes the number of slots in an idle state on the server cabinet, and the number of unavailable slots includes the number of slots in an unavailable state;
[0011] Determining a correlation relationship between the initial number, the number of idle aircraft seats, and the number of unavailable aircraft seats;
[0012] Based on the association relationship, the actual number of slots on the server cabinet available for adding servers is generated.
[0013] The embodiment of the present application provides a device for determining the capacity of a data center unit, including:
[0014] The memory is used to store executable instructions; the processor is used to implement the above method when executing the executable instructions stored in the memory.
[0015] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute and implement the above method.
[0016] The embodiments of the present application have the following beneficial effects:
[0017] By determining the actual remaining power of the server cabinet when the server cabinet generates power consumption; determining the initial number of slots on the server cabinet that can be used to add servers based on the actual remaining power; obtaining the number of idle slots and the number of unavailable slots; wherein the number of idle slots includes the number of slots in an idle state on the server cabinet, and the number of unavailable slots includes the number of slots in an unavailable state; determining the correlation between the initial number, the number of idle slots and the number of unavailable slots; and generating the actual number of slots on the server cabinet that can be used to add servers based on the correlation; that is, when the server cabinet generates power consumption, obtaining the actual working parameters of the server cabinet including the initial number of slots that can be used to add servers under the actual remaining power, the number of idle slots and the number of unavailable slots, and dynamically adjusting the slot status based on the above-mentioned actual working parameters obtained, so that the idle slots are accurate, and then using the accurate number of idle slots as the actual number of slots that can be used to add servers, thereby achieving accurate statistics of the slot capacity of the data center and providing a reliable basis for capacity expansion. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is an optional architecture diagram of a server provided in an embodiment of the present application;
[0019] Figure 2 This is an optional flow chart of a method for determining the capacity of a data center unit provided in an embodiment of the present application;
[0020] Figure 3 This is an optional flow chart of a method for determining the capacity of a data center unit provided in an embodiment of the present application;
[0021] Figure 4 This is an optional flow chart of a method for determining the capacity of a data center unit provided in an embodiment of the present application;
[0022] Figure 5 This is an optional flow chart of a method for determining the capacity of a data center unit provided in an embodiment of the present application;
[0023] Figure 6 This is an optional flow chart of a method for determining the capacity of a data center unit provided in an embodiment of the present application;
[0024] Figure 7 is a schematic diagram of a WECLOUD display interface provided in an embodiment of the present application;
[0025] Figure 8 It is a schematic diagram of a machine position template required for R-DCN capacity expansion provided in an embodiment of the present application;
[0026] Fig. 9 This is a schematic diagram of an interface for displaying current cabinet information of a CMDB provided in an embodiment of the present application;
[0027] Fig.10 It is a schematic diagram of a curve corresponding to the number of all non-idle seats and a curve corresponding to the capacity of the seats in the computer room provided in an embodiment of the present application;
[0028] Fig.11 It is a schematic diagram of the interface of the aircraft capacity analysis-aircraft capacity planning report provided in the embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0030] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the technical field of the embodiments of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0031] 1) Configuration Management Database (CMDB): The configuration management system is an internal IT system. As an important part of the IT Infrastructure Library (ITIL), CMDB is responsible for the maintenance and management of IT basic data, including IT personnel permissions, computer rooms, networks, logical areas, hosts, databases, services, instances, application configurations, etc.
[0032] 2) U: is a unit used to measure the height of the server and the height of the server position. 1U refers to 4.45 cm and 2U refers to 8.9 cm (both refer to the upper and lower heights of the front panel).
[0033] 3) Data Center Cloud Management Platform (WECLOUD): It integrates the management of the Infrastructure as a Service (IAAS) layer: physical servers, network equipment, Internet Protocol (IP) resources, virtualized resources such as Cloud Virtual Machine (CVM) and containers; the entire WECLOUD platform undertakes the management of all underlying resources (computing, network, storage) of the data center, and currently provides CVM, load balancing (Tencent GateWay, TGW), distributed database (Titan Distribute SQL, TDSQL), network attached storage (NAS) and other basic key core products; at the same time, through the complete connection with the bank's Platform as a Service (PAAS) layer, it provides a variety of middleware products. Provide external operation and maintenance personnel management portals, and application programming interfaces (APIs) to connect to external operating systems. Data center basic information and server basic information are synchronized to CMDB by WECLOUD.
[0034] 4) Server cabinet: usually 42U height.
[0035] 5) Server cabinet power: refers to the maximum power that a server cabinet can support. Due to the contractual agreement with the supplier, the total power of the servers in each cabinet needs to be kept within the maximum power to ensure the quality and safety of the supplier's services.
[0036] 6) Rated power of the server: Each model of server has the maximum power of the server when it is running, provided by the manufacturer.
[0037] 7) Idle: CMDB identifies the status of the cabinet, indicating that the cabinet is not in use.
[0038] 8) Pre-occupancy: CMDB identifies the state of a machine position, indicating that the machine position is not currently in use, but is planned to be used.
[0039] 9) Occupancy: CMDB identifies the state of the machine position, indicating that the machine position has been used.
[0040] 10) Network area: Due to different production business requirements, different businesses need to be deployed in different network areas, and the cabinets and positions in the data center have corresponding different network areas, such as: Server Farm (SF) area is the main area where business servers are located, such as Add-drop Multiplexer (ADM)\Central Server (CS)\Photonics add and drop multiplexer (PADM) and various application servers. The logical area in CMDB is the service binding Server-bonding or BDP-bonding area; Remote management port (MGMT) area is the area where management equipment is located, such as server deployment tools\IP Multimedia Subsystem (IMS)\CMDB\network management monitoring equipment\(Network Time Protocol, NTP) server, etc. The logical area in CMDB is the management-bonding area; QZ area is the area where enterprise IT production business is located, such as a new generation of bastion hosts such as Citrix, bastion hosts, customer service business, etc.; Electronic communication network (External Connection The ECN (Electronic Content Provider Network) zone is an external enterprise interconnection zone, connecting third-party partners such as the People's Bank of China, UnionPay, funds, insurance, and other financial institutions. The Demilitarized Zone (DMZ) zone is an Internet access zone that directly accesses the public network.
[0041] 11) Data Center Node (DCN) is a highly redundant solution as an independent functional unit. Each group of DCN can independently run the functional components (business units) required for business processing. Each IDC room will contain multiple DCNs, and DCNs will be divided into retail customer R-DCN, corporate customer C-DCN, backend ADM, etc. based on the product + customer dimension. A type of DCN can have multiple groups of DCNs, and the number depends on the number of customers of the DCN. A group of DCNs has 2 physical DCNs in the same city production room and 1 physical DCN in a remote disaster recovery room. These three physical DCNs form a group of DCNs.
[0042] Here, the method for determining the capacity of the data center machine positions provided by this application is briefly introduced. From a microscopic perspective, this solution dynamically adjusts the machine position status by analyzing the data of the existing server power, the power of the computer room cabinet, the idle machine positions, and the data of different network areas plus the server-related data of the planned pre-occupied machine positions, so that the idle machine positions are accurate. From a macroscopic perspective, by analyzing the data of the existing server power, the power of the server cabinet, the idle machine positions, and the data of different network areas, a statistical method for available machine positions is established and implemented in the CMDB system. Through the system statistics on the current number of available machine positions, timely warning of insufficient machine positions is issued, and by combining the business development trend to predict the number of machine positions required, the expansion machine positions required in the future are evaluated under the DCN architecture to predict the number of days that the current number of available machine positions can support, providing data support for possible subsequent expansion.
[0043] The following describes an exemplary application of the device for determining the capacity of a data center slot provided by an embodiment of the present application. The device for determining the capacity of a data center slot provided by an embodiment of the present application can be implemented as a server. The following describes an exemplary application of the device for determining the capacity of a data center slot implemented as a server.
[0044] See also Figure 1 , Figure 1 is a schematic diagram of the structure of the server 100 provided in an embodiment of the present application, Figure 1 The server 100 shown includes: at least one processor 110, at least one network interface 120, a user interface 130 and a memory 150. The various components in the server 100 are coupled together via a bus system 140. It is understood that the bus system 140 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 140 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 140 is not described in detail. Figure 1 Various buses are labeled as bus system 140 .
[0045] The processor 110 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0046] The user interface 130 includes one or more output devices 131 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 130 also includes one or more input devices 132, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0047] The memory 150 may be removable, non-removable or a combination thereof. Exemplarily, hardware devices include solid-state memory, hard disk drive, optical disk drive, etc. The memory 150 may optionally include one or more storage devices physically away from the processor 110. The memory 150 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 150 described in the embodiments of the present application is intended to include any suitable type of memory. In some embodiments, the memory 150 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as exemplarily described below.
[0048] Operating system 151, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0049] A network communication module 152, for reaching other computing devices via one or more (wired or wireless) network interfaces 120, exemplary network interfaces 120 include: Bluetooth, Wireless Fidelity (WiFi), and Universal Serial Bus (USB);
[0050] The input processing module 153 is used to detect one or more user inputs or interactions from one of the one or more input devices 132 and translate the detected inputs or interactions.
[0051] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 1 A device 154 for determining the capacity of a data center slot stored in the memory 150 is shown. The device 154 for determining the capacity of a data center slot can be a device for determining the capacity of a data center slot in the server 100. The device 154 can be software in the form of a program or a plug-in, and includes the following software modules: a determination module 1541, an acquisition module 1542, and a processing module 1543. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0052] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the method for determining the capacity of a data center unit provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), DSP, programmable logic device (Programmable Logic Device, PLD), complex programmable logic device (Complex Programmable Logic Device, CPLD), field programmable gate array (Field-Programmable Gate Array, FPGA) or other electronic components.
[0053] The following will be combined with the exemplary application and implementation of the server 100 provided in the embodiment of the present application to illustrate the method for determining the capacity of the data center slots provided in the embodiment of the present application. The server 100 can be set at the IAAS layer of WECLOUD, so that on the basis of the server 100 implementing the method for determining the capacity of the data center slots, WECLOUD can determine the slot capacity and available slots based on the server power, server cabinet power, number of slots, and actual data sources of the network area.
[0054] Here, the parameters involved in this application are explained;
[0055] Different data centers may be provided by different suppliers, so the server cabinet currents specified in the contracts are also different. For example, the server cabinet current of the first supplier is 25A, and the power P (watt) = voltage U (volt) × current I (ampere), which is converted into server cabinet power of 25 × 220 = 5500W. If the server cabinet current of the second supplier is 20A, then the server cabinet power is 20 × 220 = 4400W. Here, the server cabinet power is defined as P, and the server cabinet powers of different suppliers are P1, P2, P3 ... Pn, where n is the number of different suppliers.
[0056] The number of cabinets in different network areas in different data centers is also different. The number of cabinets is defined as G, such as G(All) represents the number of all cabinets, G(SF) represents the number of cabinets in the SF area, and G(ECN) represents the number of cabinets in the ECN area.
[0057] The height of a typical server cabinet is 42U, but only 20 cabinets will be built. When WECLOUD is created, 20 2U cabinets will be created for each server cabinet, and the other 2U is used to place switches. The number of cabinets is defined as N, where N(XXXX-XXX) is the number of cabinets in a server cabinet, such as N(0502-A03) for cabinet A03 in room 0502. N(All) is the number of cabinets in all server cabinets.
[0058] The seats have different states: idle (ɑ), pre-occupied Unavailable (Υ), occupied (£). N ɑ (All) represents the number of idle slots, N 6 (0502-A03) represents the number of pre-occupied slots in cabinet A03 in room 502; N £ (SF) indicates the number of occupied seats in the SF area.
[0059] Different server models have different rated powers due to different configurations. The rated power of the server is defined as P S The rated power of different server models is P S 1, P S 2, P S 3……P S n , n is the number of different server models.
[0060] See also Figure 2 , Figure 2 is an optional flow chart of a method for determining the capacity of a data center provided in an embodiment of the present application, which will be combined with Figure 2 The steps shown are explained;
[0061] Step S201: when the server cabinet consumes power, determine the actual remaining power of the server cabinet.
[0062] In one achievable scenario of the present application, each server cabinet has a switch in addition to a server, for example, the power of the switch is about 300W. At the same time, taking into account the specifications of the computer room management, the utilization rate of the server cabinet is within 95% for optimal use. In this case, when the server cabinet generates power consumption, the above-mentioned utilization rate and the power of the switch need to be taken into account when determining the actual remaining power of the server cabinet. Of course, if in actual applications, the server cabinet only has servers and the utilization rate reaches an ideal state, then, when the server cabinet generates power consumption, the above-mentioned utilization rate and the power of the switch are no longer considered when determining the actual remaining power of the server cabinet.
[0063] Step S202: determining the initial number of slots on the server cabinet available for adding servers based on the actual remaining power.
[0064] In the embodiment of the present application, when the actual remaining power is determined, the initial number of slots available for adding servers on the server cabinet can be determined based on the actual remaining power. The initial number is used as the number to be adjusted, and the basis for adjusting the initial number will be given below.
[0065] Step S203, obtaining the number of idle seats and the number of unavailable seats.
[0066] The number of idle slots includes the number of slots in an idle state on the server cabinet, and the number of unavailable slots includes the number of slots in an unavailable state.
[0067] Step S204, determining the correlation between the initial number, the number of idle aircraft positions, and the number of unavailable aircraft positions.
[0068] In the embodiment of the present application, the determined association relationship between the initial number, the number of idle slots, and the number of unavailable slots is used as the basis for adjusting the initial number to determine the actual number of slots available for adding servers on the server cabinet. The association relationship is determined by the size relationship between the initial number, the number of idle slots, and the number of unavailable slots. Here, when the absolute value of the difference between the initial number and the number of idle slots is determined, the above association relationship can be determined based on the size relationship between the initial number and the number of idle slots, and the size relationship between the absolute value and the number of unavailable slots.
[0069] Step S205: Based on the association relationship, the actual number of slots available for adding servers on the server cabinet is generated.
[0070] In the embodiment of the present application, the actual number of slots available for adding servers on the server cabinet is generated based on the association relationship. That is, based on the relationship between the determined initial number, the number of idle slots, and the number of unavailable slots, the initial number is adjusted to obtain the actual number of slots available for adding servers on the server cabinet.
[0071] The method for determining the capacity of a data center machine position provided in the present application determines the actual remaining power of a server cabinet when the server cabinet generates power consumption; determines the initial number of machine positions on the server cabinet that can be used to add servers based on the actual remaining power; obtains the number of idle machine positions and the number of unavailable machine positions; wherein the number of idle machine positions includes the number of machine positions in an idle state on the server cabinet, and the number of unavailable machine positions includes the number of machine positions in an unavailable state; determines the association relationship between the initial number, the number of idle machine positions, and the number of unavailable machine positions; and generates the actual number of machine positions on the server cabinet that can be used to add servers based on the association relationship; that is, when the server cabinet generates power consumption, obtains the actual working parameters of the server cabinet including the initial number of machine positions that can be used to add servers under the actual remaining power, the number of idle machine positions, and the number of unavailable machine positions, and dynamically adjusts the machine position status based on the above-mentioned actual working parameters obtained, so that the idle machine positions are accurate, and then uses the accurate number of idle machine positions as the actual number of machine positions that can be used to add servers, thereby achieving accurate statistics of the machine position capacity of the data center and providing a reliable basis for capacity expansion.
[0072] See also Figure 3 , Figure 3 is an optional flow chart of a method for determining the capacity of a data center provided in an embodiment of the present application, which will be combined with Figure 3 The steps shown are explained;
[0073] Step S301: when a server cabinet consumes power, obtain the initial power of the server cabinet that can be used by the server.
[0074] Here, when the server cabinet generates power consumption, the actual remaining power of the server cabinet is determined by taking the usage rate and the power of the switch into consideration. At this time, the initial power P(a)=P n ×95%-300, it can be understood that 95% is the utilization rate of the server cabinet in the best usage state, and 300, 300 is the power of the switch in the above example. These two values are not limited. In other embodiments, they can be set to other values according to actual needs. For ease of understanding, 95% and 300 are used as examples for explanation below.
[0075] Step S302: Obtain the sum of first rated powers of at least one server in an occupied position on a server cabinet.
[0076] Here, for the server cabinet, the sum of the first rated powers P(u) of at least one server in an occupied position in the server cabinet is calculated by adding up the rated powers.
[0077]
[0078] Step S303: Obtain the sum of the second rated powers of at least one server in a server position in a pre-occupied state on the server cabinet.
[0079] Here, for the server cabinet, the second rated power sum P(p) of at least one server in the pre-occupied position of the server cabinet is calculated in a manner of adding up the rated powers.
[0080]
[0081] Step S304: determining the actual remaining power based on the initial power, the sum of the first rated power, and the sum of the second rated power.
[0082] Here, for the server cabinet, the actual remaining power P(r) is determined based on the initial power P(a), the sum of the first rated power P(u), and the sum of the second rated power P(p).
[0083]
[0084] Based on the description of steps S301 to S304, it can be known that in the process of determining the actual remaining power, the present application at least involves the initial power available to the server, the sum of the powers of the servers in the occupied positions, and the sum of the powers of the servers in the pre-occupied positions, that is, the actual power consumption is fully considered to ensure that the actual remaining power obtained is accurate.
[0085] Step S305: Obtain the target rated power corresponding to the network area to which the server cabinet belongs.
[0086] In the embodiment of the present application, for example, different network areas have different business requirements, so the machine models used in each network area are not the same. The present application matches the network area, server model, and server power. For example, taking the server model updated every year as an example, for the current analysis, only the server model that will be purchased this year can be considered. In this way, the scope of analysis will be narrowed, and the analysis will be combined with the server model configured in the network area, avoiding the problem of using only the power of one model of server for analysis, which will cause deviations in the analysis results.
[0087] The following configuration table provides examples of server models, server configurations, and rated powers corresponding to different network areas. Combined with the configuration table, it can be seen that the rated powers of network areas SF, MGMT, ECN, DMZ, and QZ are 330 W, 450 W, 390 W, 390 W, and 390 W, respectively.
[0088]
[0089] Step S306: determine the quotient of the actual remaining power divided by the target rated power as the initial quantity.
[0090] Here, for the server cabinet, based on the actual remaining power P(r) and the target rated power P S Determine the initial number of slots NU available for adding servers on the server cabinet.
[0091]
[0092] Step S307, obtaining the number of idle seats and the number of unavailable seats.
[0093] The number of idle slots includes the number of slots in the server cabinet that are idle, and the number of unavailable slots includes the number of slots that are unavailable. a Indicates the number of unavailable seats N γ express.
[0094] In the embodiment of the present application, when the state of any machine position on the server cabinet changes, the initial number NU of servers available for use with the actual remaining power calculated in step S306 is compared with the number N of machines currently in the idle (ɑ) state on the server cabinet. a A comparison is made to further determine whether it is necessary to change the status of the idle seats to unavailable status, or to change the status of the unavailable seats to idle status, so as to ensure that the idle seats are accurate, that is, the number of seats that can access the server and the seats that can access the server are accurate.
[0095] Step S308, determining the correlation between the initial number, the number of idle aircraft positions, and the number of unavailable aircraft positions.
[0096] Step S309: Based on the association relationship, the actual number of slots available for adding servers on the server cabinet is generated.
[0097] See also Figure 4In one possible scenario, step S309 generates the actual number of slots on the server cabinet available for adding servers based on the association relationship, which can be implemented by the following steps S30911 and S30913, or can be implemented by the following steps S30912 and S30913;
[0098] Step S30911: If the initial number of association relationship representations is greater than the number of idle seats, and the first difference obtained by subtracting the number of idle seats from the initial number is less than or equal to the number of unavailable seats, the status of the first difference number of seats in the unavailable state is adjusted to an idle state.
[0099] Here, in determining the association relationship representation NU>N a , and NU-N a ≤N γ In the case of NU-N a If the first difference is within the number of unavailable positions, adjust the number of NU-N in the unavailable positions. a The state of the position is idle, that is, the adjusted NU-N a In practical applications, for example, the number of seats can be selected from small to large according to the strategy of the seat number, until the number of seats selected is NU-N a At this time, it is convenient to centrally place and manage the newly added servers.
[0100] Step S30912: If the initial number of association relationship representations is greater than the number of idle aircraft positions, and the first difference obtained by subtracting the number of idle aircraft positions from the initial number is greater than the number of unavailable aircraft positions, the state of the unavailable aircraft positions is adjusted to an idle state.
[0101] Here, the relationship is determined to represent NU>Na, and NU-N a >N γ In the case of NU-N a If the first difference of is greater than the number of unavailable seats, the state of the unavailable seats is adjusted to the idle state, that is, N is adjusted. γ The number of seats available for accessing the server.
[0102] Step S30913, determining whether the total number of idle seats after adjustment is the actual number.
[0103] Here, NU>N a In the case of a situation where some or all of the unavailable seats are adjusted to an idle state for accessing the server. At this time, the total number of idle seats after adjustment, i.e., the actual number, is greater than the initial number, thus ensuring the accuracy of the actual number of seats that can access the server.
[0104] See also Figure 5 In another possible implementation scenario, step S309 generates the actual number of slots available for adding servers on the server cabinet based on the association relationship, which can be implemented by the following steps S30921 and S30923, or can be implemented by the following steps S30922 and S30923;
[0105] Step S30921: If the initial number of association relationship representations is less than the number of idle aircraft positions, and the second difference obtained by subtracting the initial number from the number of idle aircraft positions is less than or equal to the number of unavailable aircraft positions, adjust the status of the second difference aircraft positions in the idle state to an unavailable state.
[0106] Here, in determining the association relationship representation NU<N a , and N a -NU≤N γ In the case of N, adjust the idle position a -NU seats are in unavailable state, that is, the N seats that have been adjusted a -NU seats are not available for the server. In practical applications, for example, the number of seats can be selected from large to small until the number of seats is N. a -NU, at this time, it is convenient to centrally place and manage the newly added servers.
[0107] Step S30922: If the initial number of association relationship representations is less than the number of idle aircraft positions, and the second difference obtained by subtracting the initial number from the number of idle aircraft positions is greater than the number of unavailable aircraft positions, the state of the idle aircraft positions is adjusted to an unavailable state.
[0108] Here, in determining the association relationship representation NU<N a , and N a -NU>N γ In the case of , the idle position is adjusted to an unavailable state, that is, N a The seat cannot be used to access the server.
[0109] Step S30923, determining whether the total number of idle seats after adjustment is the actual number.
[0110] Here, when NU<N a In the case of a problem, the status of some or all idle seats is adjusted to an unavailable state to prohibit access to the server. At this time, the total number of idle seats after adjustment, that is, the actual number, is less than the initial number, thus ensuring the accuracy of the actual number of seats that can access the server.
[0111] See also Figure 6 , Figure 6is an optional flow chart of a method for determining the capacity of a data center provided in an embodiment of the present application, which will be combined with Figure 6 The steps shown are explained;
[0112] Step S401: when the server cabinet consumes power, determine the actual remaining power of the server cabinet.
[0113] Step S402: determining the initial number of slots on the server cabinet available for adding servers based on the actual remaining power.
[0114] Step S403, obtaining the number of idle aircraft seats and the number of unavailable aircraft seats.
[0115] The number of idle slots includes the number of slots in an idle state on the server cabinet, and the number of unavailable slots includes the number of slots in an unavailable state.
[0116] Step S404: determining the correlation between the initial number, the number of idle aircraft seats, and the number of unavailable aircraft seats.
[0117] Step S405: Based on the association relationship, the actual number of slots on the server cabinet available for adding servers is generated.
[0118] Step S406, predicting the total number of server cabinets within a first target time period after the current time period.
[0119] Here, the first target period is at least one period after the current period.
[0120] Step S407: if the total number of seats and the actual number meet the expansion condition, generate expansion prompt information.
[0121] The expansion prompt information is used to prompt the start of the expansion service in the second target period before the first target period. Here, the total number of seats and the actual number meet the expansion condition, including that the third difference between the total number of seats and the actual number is close to the total number of seats, that is, the difference between the third difference and the total number of seats is less than the threshold value. At this time, it is determined that the total number of non-idle seats is about to reach the total number of the room seat capacity.
[0122] Step S408: determine whether the current time period reaches the second target time period, and output capacity expansion prompt information.
[0123] Here, when it is determined that the total number of aircraft seats meets the actual number to meet the expansion conditions, the preset time period is pushed forward from the first target time period, and the second target time period is determined as the time period when the expansion prompt should be issued. When it is determined that the current time period reaches the second target time period, the expansion prompt information is output, thereby timely reminding the expansion and realizing timely warning.
[0124] In the embodiment of the present application, WECLOUD provides planning for the use of future aircraft positions and records it in the database. On the one hand, for servers that have not yet been formally ordered, there are only planned needs. These servers are often planned in the near future. For example, the aircraft positions that will be occupied by demand within 1 to 2 months will not affect the status of the aircraft positions, but will be used by the system for subsequent analysis. Exemplarily, the following fields are involved when presented on the display interface: data center, computer room management unit, network area, purpose, model, quantity and expected arrival time. Combined with Figure 7 As shown, the WECLOUD display interface presents the planning requirements of data center A and data center B when planning future servers.
[0125] On the other hand, for some companies that only have business growth forecasts but have not yet formed server procurement needs, their demand for machine space is predicted through the customer growth forecast model of important key DCNs.
[0126] Here, a feasible prediction scenario is used to further describe the implementation process of predicting the total number of server cabinets in the first target period after the current period in step S406. First, before predicting the total number of cabinets, a cabinet template required for the expansion of different DCNs is built. Figure 8 As shown, it can be seen that the number of machines required for an R-DCN is the number of machines for application (Application, APP) + the number of machines for database (Database, DB), that is, 14.83+14.83+10.38+12+19+17+33, which is about 121.
[0127] In some embodiments, the number of slots (J) required for a DCN may be determined based on the following calculation formula: J = (1 + 1 + 0.7) × A RDCN +D RDCN ×2+(D RDCN +2)+(D RDCN +2)×2+13+7, where A RDCN Refers to the number of machines for a single-node APP resource. 1+1+0.7 corresponds to the architecture of the APP resource. Because the APP resource needs to produce two nodes in a multi-active architecture, and the disaster recovery is 0.7 times the production of a single-node resource, the number of machines required for the APP is (1+1+0.7) multiplied by A. RDCN .
[0128] It should be understood that the above values are taken according to the cases of the present invention, and the actual calculation formula is J = the number of machines corresponding to different nodes included in the APP architecture + the number of machines corresponding to different nodes included in the DB architecture + the number of machines corresponding to the gateway + the number of machines corresponding to the management cluster + the number of machines required for disaster recovery.
[0129] D RDCN Refers to the number of machines in a single-node DB resource data node. The DB architecture is composed of SET nodes, gateways, and management clusters. SET node production requires three nodes, one of which requires two more machines, i.e., D RDCN ×2+(D RDCN +2), disaster recovery requires two nodes (D RDCN +2)×2; the gateway and management cluster production requires three nodes 1+6+6, that is, 13, and disaster recovery requires one node, that is, 7.
[0130] The number of customers (C) that a DCN can support is C = 5 million. Therefore, it can be concluded that 5 million R-DCN customers require approximately 121 seats.
[0131] Secondly, WECLOUD synchronizes the cabinet, machine position information and machine position planning information determined in the previous article to CMDB, and performs machine position capacity analysis in CMDB. The current cabinet information in CMDB is displayed as follows Fig. 9 As shown, the number of used machines, network area, machine name, machine number, rack number, machine height, and machine status of the computer room management unit are displayed for users to query and understand.
[0132] In other embodiments of the present application, the current aircraft slot usage can be combined with the aircraft slot planning information to output an aircraft slot planning capacity report on a quarterly basis, so as to understand how long the current aircraft slot capacity can be supported and when the aircraft slot capacity needs to be expanded.
[0133] Further, as time goes by, in the process of executing step S406 to predict the total number of server cabinets in the first target period after the current period, the number of machine positions N(All) is predicted or counted monthly (on the 1st of each month), where N(All) is the total number of machine positions. The statistics can be filtered by network area. This is the total capacity of the entire machine position, which will increase when the computer room is expanded. That is, in this embodiment, the total number of machine positions N(All) on the 1st of each month after the current period is selected for multiple first target periods after the current period.
[0134] Monthly seat statistics N(All)-N a (All), that is, the number of all non-idle seats, N a (All) is the actual number determined based on the method for determining the capacity of the data center machine positions provided in this application, that is, the machine positions that are truly idle are counted as the machine positions that can be used to connect to the server, and the statistics can be filtered by network zone.
[0135] Here, considering that the expansion of the data center involves a long construction period, for example, 6 months, we define the demand to be made 6 months before the capacity of the machine is fully loaded, that is, when D month N(All)-Na (All)<N(All) and D+1monthN(All)-N a When (All)>N(All), D is the full load date, and the warning date is 6 months back. For example, in October 2021, N(All) is 7017, N(All)-N a (All) is 6912, at this time 6912<7017, and in November 2021 N(All) is 7017, N(All)-N a (All) is 7081. At this time, 7017<7081, so October 2021 is determined as the full load date, and the warning date is 6 months ago, that is, April 2021. Then, when the time is moved to April 1, 2021, the output expansion prompt information is determined.
[0136] See also Fig.10 As shown, the corresponding curve chart is generated according to the above statistics for a more intuitive display and presented on the system display page. Based on the curve corresponding to the total number of non-idle seats and the curve corresponding to the computer room seat capacity, it can be clearly seen that October 2021 is the full load date. Based on this trend chart, an expansion warning is defined in April 2021.
[0137] In other embodiments of the present application, in addition to counting all the number of seats, you can also count by network area to view the seat capacity planning report of different network areas. Fig.11 As shown in the figure, the display interface of the aircraft capacity analysis-aircraft capacity planning report is shown in the figure. By clicking different network areas, you can view the aircraft capacity planning reports of different network areas.
[0138] Of course, in other embodiments, WECLOUD synchronizes the aforementioned cabinet, machine position information and machine position planning information to CMDB, and performs machine position capacity analysis in CMDB. If there is no CMDB as a platform for analysis and display, you can consider exporting the WECLOUD data to an EXCEL table and using EXCEL to generate a curve chart, so that you can still accurately determine the machine position capacity of different network areas.
[0139] The following is a description of an exemplary structure of the data center unit capacity determination device 154 provided in the embodiment of the present application implemented as a software module. In some embodiments, for example, Figure 1 As shown, the software module stored in the data center slot capacity determination device 154 of the memory 150 may be a data center slot capacity determination device in the server 100, including:
[0140] The determination module 1541 is used to determine the actual remaining power of the server cabinet when the server cabinet consumes power, and is also used to determine the initial number of slots on the server cabinet that can be used to add servers based on the actual remaining power.
[0141] The acquisition module 1542 is used to acquire the number of idle slots and the number of unavailable slots; wherein the number of idle slots includes the number of slots in an idle state on the server cabinet, and the number of unavailable slots includes the number of slots in an unavailable state.
[0142] The determination module 1541 is further configured to determine a correlation between the initial number, the number of idle aircraft seats, and the number of unavailable aircraft seats.
[0143] The processing module 1543 is used to generate the actual number of slots on the server cabinet that can be used to add servers based on the association relationship.
[0144] In some embodiments, the acquisition module 1542 is further used to acquire the initial power of the server cabinet available for use by the server when the server cabinet generates power consumption; acquire the sum of the first rated power of at least one server in the machine position in the occupied state on the server cabinet; acquire the sum of the second rated power of at least one server in the machine position in the pre-occupied state on the server cabinet;
[0145] The determination module 1541 is further configured to determine the actual remaining power based on the initial power, the sum of the first rated power, and the sum of the second rated power.
[0146] In some embodiments, the acquisition module 1542 is further used to acquire a target rated power corresponding to the network area to which the server cabinet belongs;
[0147] The determination module 1541 is further configured to determine a quotient of the actual remaining power divided by the target rated power as the initial quantity.
[0148] In some embodiments, the processing module 1543 is also used to adjust the status of the first difference number of aircraft positions in the unavailable state to an idle state if the association relationship represents that the initial number is greater than the number of idle aircraft positions, and the first difference obtained by subtracting the number of idle aircraft positions from the initial number is less than or equal to the number of unavailable aircraft positions; the processing module 1543 is also used to adjust the status of the aircraft positions in the unavailable state to an idle state if the association relationship represents that the initial number is greater than the number of idle aircraft positions, and the first difference obtained by subtracting the number of idle aircraft positions from the initial number is greater than the number of unavailable aircraft positions; the determination module 1541 is also used to determine that the total number of aircraft positions in the idle state after adjustment is the actual number.
[0149] In some embodiments, the processing module 1543 is also used to adjust the status of the idle aircraft positions by the second difference to an unavailable status if the association relationship represents that the initial number is less than the number of idle aircraft positions, and the second difference obtained by subtracting the initial number from the number of idle aircraft positions is less than or equal to the number of unavailable aircraft positions; the processing module 1543 is also used to adjust the status of the idle aircraft positions to an unavailable status if the association relationship represents that the initial number is less than the number of idle aircraft positions, and the second difference obtained by subtracting the initial number from the number of idle aircraft positions is greater than the number of unavailable aircraft positions; the determination module 1541 is also used to determine that the total number of idle aircraft positions after adjustment is the actual number.
[0150] In some embodiments, the processing module 1543 is further used to predict the total number of slots of the server cabinet in a first target period after the current period; if the total number of slots and the actual number meet the expansion condition, generate expansion prompt information; wherein the expansion prompt information is used to prompt to start the expansion service in a second target period before the first target period;
[0151] The determination module 1541 is further configured to determine whether the current time period reaches the second target time period, and output the capacity expansion prompt information.
[0152] The device for determining the capacity of a data center machine position provided by the present application determines the actual remaining power of a server cabinet when the server cabinet generates power consumption; determines the initial number of machine positions on the server cabinet that can be used to add servers based on the actual remaining power; obtains the number of idle machine positions and the number of unavailable machine positions; wherein the number of idle machine positions includes the number of machine positions in an idle state on the server cabinet, and the number of unavailable machine positions includes the number of machine positions in an unavailable state; determines the association relationship between the initial number, the number of idle machine positions, and the number of unavailable machine positions; and generates the actual number of machine positions on the server cabinet that can be used to add servers based on the association relationship; that is, when the server cabinet generates power consumption, obtains the actual working parameters of the server cabinet including the initial number of machine positions that can be used to add servers under the actual remaining power, the number of idle machine positions, and the number of unavailable machine positions, and dynamically adjusts the machine position status based on the above-mentioned actual working parameters obtained, so that the machine positions in the idle state are accurate, and then uses the accurate number of idle machine positions as the actual number of machine positions that can be used to add servers, thereby achieving accurate statistics of the machine position capacity of the data center and providing a reliable basis for capacity expansion.
[0153] It should be noted that the description of the device of the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment, so it is not repeated. For technical details not disclosed in the embodiment of the device, please refer to the description of the method embodiment of the present application for understanding.
[0154] The embodiment of the present application provides a storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will be caused to execute the method provided in the embodiment of the present application to implement the following steps:
[0155] In the case where the server cabinet generates power consumption, determining the actual remaining power of the server cabinet;
[0156] Based on the actual remaining power, determining an initial number of slots on the server cabinet available for adding servers;
[0157] Obtaining the number of idle slots and the number of unavailable slots; wherein the number of idle slots includes the number of slots in an idle state on the server cabinet, and the number of unavailable slots includes the number of slots in an unavailable state;
[0158] Determining a correlation relationship between the initial number, the number of idle aircraft seats, and the number of unavailable aircraft seats;
[0159] Based on the association relationship, the actual number of slots on the server cabinet available for adding servers is generated.
[0160] In other embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:
[0161] In the case where the server cabinet generates power consumption, obtaining initial power of the server cabinet that can be used by the server;
[0162] Obtaining a sum of first rated powers of at least one server in an occupied position on the server cabinet;
[0163] Obtaining a sum of second rated powers of at least one server in a position in a pre-occupied state on the server cabinet;
[0164] The actual remaining power is determined based on the initial power, the sum of the first rated power, and the sum of the second rated power.
[0165] In other embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:
[0166] Obtain a target rated power corresponding to the network area to which the server cabinet belongs;
[0167] A quotient of the actual remaining power divided by the target rated power is determined as the initial quantity.
[0168] In other embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:
[0169] If the association relationship indicates that the initial number is greater than the number of idle aircraft positions, and a first difference value obtained by subtracting the number of idle aircraft positions from the initial number is less than or equal to the number of unavailable aircraft positions, adjusting the states of the aircraft positions of the first difference number in the unavailable aircraft positions to an idle state;
[0170] The total number of aircraft positions in an idle state after adjustment is determined to be the actual number.
[0171] In other embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:
[0172] If the association relationship indicates that the initial number is greater than the number of idle aircraft positions, and a first difference obtained by subtracting the number of idle aircraft positions from the initial number is greater than the number of unavailable aircraft positions, the state of the unavailable aircraft positions is adjusted to an idle state.
[0173] In other embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:
[0174] If the association relationship indicates that the initial number is less than the number of idle aircraft positions, and a second difference value obtained by subtracting the initial number from the number of idle aircraft positions is less than or equal to the number of unavailable aircraft positions, adjusting the states of the aircraft positions of the second difference number in the idle state to an unavailable state;
[0175] The total number of aircraft positions in an idle state after adjustment is determined to be the actual number.
[0176] In other embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:
[0177] If the association relationship indicates that the initial number is less than the number of idle aircraft positions, and a second difference value obtained by subtracting the initial number from the number of idle aircraft positions is greater than the number of unavailable aircraft positions, the state of the idle aircraft positions is adjusted to an unavailable state.
[0178] In other embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:
[0179] Predicting the total number of slots of the server cabinet in a first target time period after the current time period;
[0180] If the total number of seats and the actual number satisfy the capacity expansion condition, generating capacity expansion prompt information; wherein the capacity expansion prompt information is used to prompt the start of the capacity expansion service in the second target time period before the first target time period;
[0181] It is determined that the current time period reaches the second target time period, and the capacity expansion prompt information is output.
[0182] The storage medium provided by the present application determines the actual remaining power of the server cabinet when the server cabinet generates power consumption; determines the initial number of machine positions on the server cabinet that can be used to add servers based on the actual remaining power; obtains the number of idle machine positions and the number of unavailable machine positions; wherein the number of idle machine positions includes the number of machine positions in an idle state on the server cabinet, and the number of unavailable machine positions includes the number of machine positions in an unavailable state; determines the association relationship between the initial number, the number of idle machine positions, and the number of unavailable machine positions; based on the association relationship, generates the actual number of machine positions on the server cabinet that can be used to add servers; that is, when the server cabinet generates power consumption, obtains the actual working parameters of the server cabinet including the initial number of machine positions that can be used to add servers under the actual remaining power, the number of idle machine positions, and the number of unavailable machine positions, and dynamically adjusts the machine position status based on the above-mentioned actual working parameters obtained, so that the idle machine positions are accurate, and then the accurate number of idle machine positions is used as the actual number of machine positions that can be used to add servers, thereby realizing accurate statistics of the machine position capacity of the data center and providing a reliable basis for capacity expansion.
[0183] In some embodiments, the storage medium can be a computer-readable storage medium, for example, a ferroelectric random access memory (FRAM), a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a compact disk read-only memory (CD-ROM); it can also be various devices including one or any combination of the above memories.
[0184] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0185] As examples, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions). As examples, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.
[0186] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A method for determining the capacity of a data center, characterized in that: include: In the case where the server cabinet generates power consumption, determining the actual remaining power of the server cabinet; The determining of the actual remaining power of the server cabinet when the server cabinet generates power consumption includes: obtaining the initial power of the server cabinet available for use by the server when the server cabinet generates power consumption; obtaining the sum of the first rated power of at least one server on the machine position in the occupied state on the server cabinet; obtaining the sum of the second rated power of at least one server on the machine position in the pre-occupied state on the server cabinet; and determining the actual remaining power based on the initial power, the sum of the first rated power, and the sum of the second rated power; Based on the actual remaining power, determining the initial number of slots on the server cabinet that are available for adding servers; the determining the initial number of slots on the server cabinet that are available for adding servers based on the actual remaining power includes: obtaining a target rated power corresponding to the network area to which the server cabinet belongs; determining the quotient of the actual remaining power divided by the target rated power as the initial number; Obtaining the number of idle slots and the number of unavailable slots; wherein the number of idle slots includes the number of slots in an idle state on the server cabinet, and the number of unavailable slots includes the number of slots in an unavailable state; Determining a correlation relationship between the initial number, the number of idle aircraft seats, and the number of unavailable aircraft seats; Based on the association relationship, the actual number of slots on the server cabinet available for adding servers is generated.
2. The method according to claim 1, characterized in that The step of generating the actual number of slots on the server cabinet available for adding servers based on the association relationship includes: If the association relationship indicates that the initial number is greater than the number of idle aircraft positions, and a first difference value obtained by subtracting the number of idle aircraft positions from the initial number is less than or equal to the number of unavailable aircraft positions, adjusting the states of the aircraft positions of the first difference number in the unavailable aircraft positions to an idle state; The total number of aircraft positions in an idle state after adjustment is determined to be the actual number.
3. The method according to claim 2, characterized in that Before determining that the total number of idle aircraft seats after adjustment is the actual number, the method includes: If the association relationship indicates that the initial number is greater than the number of idle aircraft positions, and a first difference obtained by subtracting the number of idle aircraft positions from the initial number is greater than the number of unavailable aircraft positions, the state of the unavailable aircraft positions is adjusted to an idle state.
4. The method according to claim 1, characterized in that The step of generating the actual number of slots on the server cabinet available for adding servers based on the association relationship includes: If the association relationship indicates that the initial number is less than the number of idle aircraft positions, and a second difference value obtained by subtracting the initial number from the number of idle aircraft positions is less than or equal to the number of unavailable aircraft positions, adjusting the states of the aircraft positions of the second difference number in the idle state to an unavailable state; The total number of aircraft positions in an idle state after adjustment is determined to be the actual number.
5. The method according to claim 4, characterized in that Before determining that the total number of idle aircraft seats after adjustment is the actual number, the method includes: If the association relationship indicates that the initial number is less than the number of idle aircraft positions, and a second difference value obtained by subtracting the initial number from the number of idle aircraft positions is greater than the number of unavailable aircraft positions, the state of the idle aircraft positions is adjusted to an unavailable state.
6. The method according to any one of claims 1 to 5, characterized in that After the actual number of slots available for adding servers on the server cabinet is generated based on the association relationship, the method includes: Predicting the total number of slots of the server cabinet in a first target time period after the current time period; If the total number of seats and the actual number satisfy the capacity expansion condition, generating capacity expansion prompt information; wherein the capacity expansion prompt information is used to prompt the start of the capacity expansion service in the second target time period before the first target time period; It is determined that the current time period reaches the second target time period, and the capacity expansion prompt information is output.
7. A device for determining the capacity of a data center, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the method according to any one of claims 1 to 6 when executing the executable instructions stored in the memory.
8. A computer-readable storage medium, characterized in that: Executable instructions are stored, which are used to cause a processor to execute and implement the method described in any one of claims 1 to 6.
