CN112306686A - Cabinet resource management method, device, equipment and computer readable storage medium - Google Patents

Cabinet resource management method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112306686A
CN112306686A CN202011192326.0A CN202011192326A CN112306686A CN 112306686 A CN112306686 A CN 112306686A CN 202011192326 A CN202011192326 A CN 202011192326A CN 112306686 A CN112306686 A CN 112306686A
Authority
CN
China
Prior art keywords
cabinet
server
current
determining
peak value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011192326.0A
Other languages
Chinese (zh)
Inventor
冯期明
卢道和
罗锶
曾可
李悦
谢军
关俊
陈楚曦
万亿兵
陈亚锋
邵海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202011192326.0A priority Critical patent/CN112306686A/en
Publication of CN112306686A publication Critical patent/CN112306686A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a cabinet resource management method, a device, equipment and a computer readable storage medium, comprising the following steps: acquiring a server average current peak value of a server and a cabinet average current peak value of a cabinet, and generating a corresponding server current curve and a corresponding cabinet current curve; determining the enclosed areas of the server current curve, the cabinet current curve and the X axis; and determining migration of the servers in the cabinet through forward coupling matching and determining migration of the servers in the cabinet through reverse coupling matching based on the closed area. The migration in and migration out of the server are determined based on the server current curve and the cabinet current curve, so that the difference value of the sealing area between the cabinet current curve and the server current curve gradually tends to be stable, the rationalization of cabinet utilization is improved, resources and cost are saved, the stability of operation of the server and the cabinet is improved, the server and/or the cabinet are prevented from being powered off due to current overload, even the circuit is short-circuited, and further the server and/or the cabinet are enabled to operate abnormally.

Description

Cabinet resource management method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of resource management in financial technology (Fintech), and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for managing rack resources.
Background
With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually changing to financial technology (Fintech), but higher requirements are also put forward on the technologies due to the requirements of the financial industry on safety and real-time performance.
With the popularization of distributed architecture, the use of servers has developed at a huge scale. Most of the bank data centers adopt a mode of renting cabinets integrally, the servers and the cabinets are reasonably managed, the utilization rate of the cabinets is improved to the maximum extent, expenditure is saved, and great challenges are brought to data center managers.
In current cabinet management, generally, the migration of a server is arranged after the current of a cabinet is overloaded, so that data cannot be timely and effectively stored when the server migrates; if the migration is carried out in excess, the migration can be set in advance, and a new server is replaced in advance to prevent data loss, but the reasonable utilization of the cabinet is difficult to realize, and if the current is overloaded, the server and/or the cabinet are powered off, even the circuit is short-circuited, and the server and/or the cabinet are abnormal in operation.
Disclosure of Invention
The invention provides a cabinet resource management method, a device, equipment and a computer readable storage medium, aiming at improving the rationalization of cabinet utilization, saving resources and cost and improving the stability of operation of a server and a cabinet.
In order to achieve the above object, the present invention provides a rack resource management method, including:
acquiring a server average current peak value of a server and a cabinet average current peak value of a cabinet, and generating a corresponding server current curve and a corresponding cabinet current curve;
determining a first closed area of the server current curve and an X axis, and determining a second closed area of the cabinet current curve and the X axis;
and determining migration of the servers in the cabinet through forward coupling matching and determining migration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area.
Optionally, the obtaining a server average current peak value of the server and a cabinet average current peak value of the cabinet, and generating a corresponding server current curve and a corresponding cabinet current curve further includes:
acquiring server current peak values of servers of the same service and type in a plurality of time periods within a preset time length;
determining a server daily average current peak value in the preset time length based on the server current peak value;
the obtaining of the server average current peak value of the server includes:
and obtaining the average current peak value of the server of the same service & type server based on the average value of the average current peak value of the server day.
Optionally, the obtaining a server average current peak value of the server and a cabinet average current peak value of the cabinet, and generating a corresponding server current curve and a corresponding cabinet current curve further includes:
acquiring cabinet current peak values of each cabinet in a plurality of time periods within a preset time length so as to determine a cabinet daily average current peak value based on the plurality of cabinet current peak values, wherein the time period for acquiring the cabinet current peak values is the same as the time period for acquiring the server average current peak value;
determining the cabinet average current peak value based on the cabinet daily average current peak value.
Optionally, the determining a first enclosed area of the server current curve and the X-axis and determining a second enclosed area of the cabinet current curve and the X-axis include:
determining an included angle between an average current peak value of adjacent time periods and an X axis based on a cosine law, wherein the average current peak value comprises the server average current peak value and the cabinet average current peak value;
calculating sub-closed areas of current curves corresponding to adjacent time periods and an X axis based on the included angle, wherein the current curves comprise the server current curve and the cabinet current curve;
and respectively determining the first closed area of the current curve and the X axis and the second closed area of the cabinet current curve and the X axis based on all the sub-closed areas.
Optionally, the determining migration of servers in the cabinet through forward coupling matching and determining migration of servers in the cabinet through backward coupling matching based on the first closed area and the second closed area includes:
calculating the sum of the average current peak value of the server and the average current peak value of the cabinet to obtain a total current peak value, and comparing the total current peak value with a preset safe current value;
if the total current peak value is smaller than the safe current value, determining the immigration of the server in the cabinet through forward coupling matching;
and if the total current peak value is larger than the safe current value, determining the emigration of the server in the cabinet through reverse coupling matching.
Optionally, the determining migration of the servers in the cabinet through forward coupling matching includes:
determining a target service & type of a server to be migrated, determining a target cabinet where the server of the target service & type is located, and screening out an idle cabinet in the target cabinet;
and calculating a difference value between the first closed area and the second closed area, determining a maximum difference value, determining an idle cabinet corresponding to the maximum difference value as a target idle cabinet, and migrating the server to be migrated into the target idle cabinet.
Optionally, the determining a target service & type of a server to be migrated, determining a target cabinet where the server of the target service & type is located, and screening out an idle cabinet, and then further includes:
if the number of the idle cabinets is 0, migrating the to-be-migrated server into the cabinet which is not powered on;
the calculating a difference between the first closed area and the second closed area in the idle cabinet and determining a maximum difference, and then further comprising:
and if the maximum difference is smaller than a preset difference threshold, migrating the server to be migrated into the non-powered cabinet.
Optionally, determining migration of a server in the rack by reverse coupling matching includes:
calculating the difference between the first closed area and the second closed area, and determining the minimum difference;
if the total current peak value is larger than the safe current value and smaller than the alarm current value, determining the server corresponding to the minimum difference value as a server to be migrated, and migrating the server to be migrated from the corresponding cabinet;
if the total current peak value is larger than the alarm current value and smaller than the maximum current value, reducing the frequency of the server corresponding to the minimum difference value until the total current peak value is smaller than the alarm current value;
if the total current peak value is larger than the maximum current value, controlling a server corresponding to the minimum difference value to shut down until the total current peak value is smaller than the maximum current value, wherein the maximum current value is larger than the alarm current value, and the alarm current value is larger than the safe current value.
In addition, to achieve the above object, an embodiment of the present invention further provides an equipment cabinet resource management device, where the equipment cabinet resource management device includes:
the acquisition module is used for acquiring the average current peak value of the server and the average current peak value of the cabinet of the server and generating a corresponding server current curve and a corresponding cabinet current curve;
the determining module is used for determining a first closed area of the server current curve and an X axis and determining a second closed area of the cabinet current curve and the X axis;
and the matching module is used for determining the immigration of the servers in the cabinet through forward coupling matching and determining the immigration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area.
In addition, to achieve the above object, an embodiment of the present invention further provides an equipment cabinet resource management device, where the equipment cabinet resource management device includes a processor, a memory, and an equipment cabinet resource management program stored in the memory, and when the equipment cabinet resource management program is executed by the processor, the steps of the equipment cabinet resource management method are implemented.
In addition, to achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a cabinet resource management program is stored on the computer-readable storage medium, and when the cabinet resource management program is executed by a processor, the steps of the cabinet resource management method are implemented.
Compared with the prior art, the invention provides a cabinet resource management method, a device, equipment and a computer readable storage medium, which are used for acquiring the server average current peak value of various business & type servers and the cabinet average current peak value of a cabinet and generating corresponding server current curves and cabinet current curves; determining a first closed area of the server current curve and an X axis, and determining a second closed area of the cabinet current curve and the X axis; and determining migration of the servers in the cabinet through forward coupling matching and determining migration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area. The migration in and migration out of the server are determined based on the server current curve and the cabinet current curve, so that the difference value of the sealing area between the cabinet current curve and the server current curve gradually tends to be stable, the rationalization of cabinet utilization is improved, resources and cost are saved, the stability of operation of the server and the cabinet is improved, the server and/or the cabinet are prevented from being powered off due to current overload, even the circuit is short-circuited, and the server and/or the cabinet are enabled to operate abnormally.
Drawings
Fig. 1 is a schematic hardware structure diagram of a rack resource management device according to various embodiments of the present invention;
FIG. 2 is a flowchart illustrating a cabinet resource management method according to a first embodiment of the present invention;
FIG. 3 is a server current curve relating to a first embodiment of the rack resource management method of the present invention;
fig. 4 is a current curve of the cabinet according to the first embodiment of the cabinet resource management method of the present invention;
FIG. 5 is a server-cabinet current curve relating to a first embodiment of a cabinet resource management method of the present invention;
fig. 6 is a functional block diagram of a rack resource management device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The cabinet resource management device mainly related to the embodiment of the invention is a network connection device capable of realizing network connection, and the cabinet resource management device can be a server, a cloud platform and the like.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a rack resource management device according to embodiments of the present invention. In this embodiment of the present invention, the cabinet resource management device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, an input port 1003, an output port 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the input port 1003 is used for data input; the output port 1004 is used for data output, the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to FIG. 1, the memory 1005 of FIG. 1, which is one type of readable computer readable storage medium, may include an operating system, a network communication module, an application module, and a cabinet resource manager. In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; the processor 1001 may call the enclosure resource management program stored in the memory 1005, and execute the enclosure resource management method provided by the embodiment of the present invention.
The embodiment of the invention provides a cabinet resource management method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a cabinet resource management method according to a first embodiment of the present invention.
In this embodiment, the cabinet resource management method is applied to a cabinet resource management device, and the method includes:
step S101, obtaining server average current peak values of various business and type servers and cabinet average current peak values of cabinets, and generating corresponding server current curves and cabinet current curves;
in this embodiment, the cabinet is an integrated installation box formed by assembling and installing a panel, a plug-in unit, a plug-in box, an electronic element, a device, a mechanical part and a component. The server cabinet is composed of a frame and a cover plate (door), generally has a cuboid shape, and is placed on the ground. The cabinet provides adaptive environment and safety protection for normal operation of the electronic equipment. Generally, a cabinet of the server needs to supply power for the server and a network. The number of racks is proportional to the number of servers. Cabinets typically have a fixed number of bays, so the more servers, the more cabinets are needed.
Generally, different services correspond to different servers, and one service may correspond to a plurality of servers. And servers corresponding to the same service may include multiple types. For banking systems, the services include account opening, account transfer, inquiry, payment, etc. The servers have different classification standards, and generally, the types of the servers can be divided into a workgroup-level server, a department-level server and an enterprise-level server according to the network scale; the type of the server can be divided into a server with a complex instruction set architecture and a server with a reduced instruction set architecture according to the architecture; the servers can be classified into general-purpose servers and special-purpose (or called "functional") servers according to the usage. In this embodiment, the types of servers are labeled as i, ii, and so on.
In this embodiment, the service and the type of each server are labeled in advance according to the service processed by the server and the type thereof, for example, the server a1 is labeled as account opening service & type i, the server a2 is labeled as account opening service & type i, and the server B1 is labeled as query service & type i.
After the service & type of each server in each cabinet is marked, the servers of the same service & type are marked as the same service & type servers, so that various service & type servers can be obtained.
In this embodiment, before the step S101, the method further includes:
respectively acquiring server current peak values of servers of the same service and type in a plurality of time periods within a preset time length; and determining the average daily current peak value of the server within the preset time length based on the current peak value of the server. The preset time duration and the time period are specifically set according to needs, for example, the preset time duration is set to be from 00:00 to 24:00 in one day, and the one day is divided into 24 time periods, namely the first time period is from 00:00 to 01:00, the second time period is from 01:01 to 02:00, and the first time period is from 02:01 to 03:00 … …, so that the server current peak values of various service & type servers in the 24 time periods in one day are obtained. Wherein the server current peak value refers to a maximum value of the server current in a corresponding time period.
The servers in the banking system are generally set according to business requirements, and in order to better manage each business and each type of server, the present embodiment respectively obtains the server current peak values of various business & type servers in a plurality of time periods within a preset time duration, where the various business & type servers cover all businesses and all types of combinations in the system to be managed. For example, the various services & types include query service & type i, query service & type ii, account opening service & type i, and the like.
And after determining the servers of various services & types, screening out the server current peak values of the servers of the same service & type from the acquired plurality of server current peak values. If there are 5 servers of the same service & type, then the current peaks of the 5 servers of the service & type are screened out respectively.
And after the current peak value of the servers with the same service & type is determined, calculating the average current peak value of the servers with the same service & type in the preset time length based on the current peak value of the servers with the same service & type.
Specifically, the peak value of the average daily current of the server in the preset time length is expressed as
Figure BDA0002753121930000071
Then
Figure BDA0002753121930000072
Wherein IiFor the server current peak value, i is the number of the server current peak values, t represents a time period, and X is the same service&The number of the current peak values corresponding to the type server, M is the same service&Total number of type servers.
To make the current peaks used to generate the server current curve more representative, further, the average current peaks of the server over a period of time are determined based on the average daily current peaks of the server. The server average current peak is determined, for example, based on the server daily average current peak over 30 days. Thus, the current difference between weekdays and weekends can be eliminated.
In particular, the server average current peak is expressed as
Figure BDA0002753121930000081
Then
Figure BDA0002753121930000082
Wherein n is the average daily current peak value of the server
Figure BDA0002753121930000083
If the average daily current peak of the servers is taken within 30 days, for example, n is 30.
Thus, the average current peak value of the server in each time period can be obtained. If there are 24 time periods, the average current peak value of the server in 30 days of the 24 time periods can be obtained respectively.
And when the average current peak value of the server is determined, determining the average current peak value of the cabinet in the corresponding time period. Wherein the peak value of the cabinet current refers to the maximum value of the cabinet current in the corresponding time period. Specifically, the rack current peak values of a plurality of time periods of each rack within a preset time length are obtained, so that the rack average current peak value is determined based on the plurality of rack current peak values, wherein the time period for obtaining the rack current peak value is the same as the time period for obtaining the server average current peak value. If the time period of the average current peak value of the server is 24 time periods in one day, correspondingly acquiring 24 time periods in one day, and determining the daily average current peak value of the cabinet based on the current peak values of the cabinet in the 24 time periods in one day;
if so
Figure BDA0002753121930000084
Represents the peak value of the daily average current of the cabinet, then
Figure BDA0002753121930000085
Where t represents a time period of time,
Figure BDA0002753121930000086
and (4) representing the peak value of the cabinet current, wherein i is the number of the peak values of the cabinet current. That is, the average daily current peak value of the cabinet in the first time period of 00:00-01:00 is a plurality of same services&The type server averages the current peak value in the first time period.
Representing the cabinet average current peak as
Figure BDA0002753121930000087
Then
Figure BDA0002753121930000088
Wherein n represents the peak value of the daily average current of the cabinet
Figure BDA0002753121930000089
For example, if the average daily current peak of the cabinet in each time period within 30 days is taken, n is 30.
Therefore, the average current peak value of the cabinet in each time period can be obtained. If there are 24 time periods, 30 days are taken, then the average current peak value of the cabinet in 30 days of these 24 time periods can be obtained respectively.
It is understood that the number of server current curves corresponds to the kind of service & type of the server, and if there are 20 different services & types of the server, there are 20 server current curves. The number of the cabinet current curves corresponds to the number of the cabinets, and if 10 cabinets exist, 10 cabinet current curves correspond to the cabinets.
And after the average current peak value of the server and the average current peak value of the cabinet are determined, marking the average current peak value of the server in a preset server current curve, and connecting the average current peak values of the adjacent servers to form a curve which is sequentially connected end to end. Marking the average current peak value of the cabinet in a preset cabinet current curve, and connecting the adjacent average current peak values of the cabinet to form a curve connected end to end in sequence.
Specifically, referring to fig. 3 to fig. 5, fig. 3 is a server current curve according to a first embodiment of the enclosure resource management method of the present invention, fig. 4 is a server current curve according to a first embodiment of the enclosure resource management method of the present invention, and fig. 5 is a server-enclosure current curve according to a first embodiment of the enclosure resource management method of the present invention. Where the upper curve in fig. 5 is the cabinet current curve and the lower curve in fig. 5 is the server current curve.
After the server current curve and the cabinet current curve are determined, executing step S102, determining a first closed area of the server current curve and an X axis, and determining a second closed area of the cabinet current curve and the X axis;
determining an included angle between an average current peak value of adjacent time periods and an X axis based on a cosine law, wherein the average current peak value comprises the server average current peak value and the cabinet average current peak value;
said angle is expressed by theta, then
Figure BDA0002753121930000091
Where i denotes the ith time period and i-1 denotes the ith-1 time period.
If theta is less than or equal to 180, directly taking a value theta; if theta is larger than 180, determining the value of theta as (theta-180):
Figure BDA0002753121930000092
calculating sub-closed areas of current curves corresponding to adjacent time periods and an X axis based on the included angle, wherein the current curves comprise the server current curve and the cabinet current curve;
namely, the enclosed area of the curve between the ith time period and the (i-1) th time period and the X axis is marked as a sub enclosed area, wherein the enclosed area of the server current curve and the X axis is the enclosed area of the server current sub, and the enclosed area of the cabinet current curve and the X axis is the enclosed area of the cabinet current sub.
Representing the sub-enclosed area as miThen, then
Figure BDA0002753121930000093
And respectively determining the first closed area of the current curve and the X axis and the second closed area of the cabinet current curve and the X axis based on all the sub-closed areas.
Expressing the second enclosed area as
Figure BDA0002753121930000101
Then
Figure BDA0002753121930000102
In particular, the first enclosed area may be represented
Figure BDA0002753121930000103
The second enclosed area is expressed as
Figure BDA0002753121930000104
Step S103, based on the first closed area and the second closed area, determining migration of the servers in the cabinet through forward coupling matching, and determining migration of the servers in the cabinet through reverse coupling matching.
It will be appreciated that when a cabinet has an idle slot, a new server may be migrated.
In this embodiment, a safe current value, an alarm current value, and a maximum current value are preset, where the alarm current value is smaller than the safe current value. The safe current value is a current value which can ensure the safe operation of the temperature of the cabinet and the server; the alarm current value is that if the alarm current value exceeds the alarm current value, the operation of the cabinet or the server is possibly abnormal; the maximum current value is a current limit value, and exceeding may cause a safety accident. Representing the safe current value as IsafeRepresenting the alarm current value as IwarningThe maximum current value is represented as Imax
Specifically, the step S103 includes: calculating the sum of the average current peak value of the server and the average current peak value of the cabinet to obtain a total current peak value, and comparing the total current peak value with a preset safe current value; the peak value of the total current is represented as D, then
Figure BDA0002753121930000105
If the total current peak value is smaller than the safe current value, determining the immigration of the server in the cabinet through forward coupling matching; i.e. if D < IsafeThen the server can be migrated to the corresponding cabinet.
Determining a target service & type of a server to be migrated, determining a target cabinet where the server of the target service & type is located, and screening out an idle cabinet in the target cabinet; generally, the same service & type server may be stored in a plurality of cabinets, and in actual operation, a new server tends to be preferentially stored in the cabinet in which the service & type server is stored in advance, so as to facilitate management of the server.
If the number of the idle cabinets is 0, migrating the to-be-migrated server into the cabinet which is not powered on; typically, powered cabinets have a higher rental fee than unpowered cabinets, and cabinet management is aimed at maximizing the utilization of powered cabinets. Therefore, the idle machine positions of the powered cabinet are reasonably optimized, and the rent cost can be saved.
And after screening out the idle cabinet in the target cabinet, determining a first closed area of a server current curve of the corresponding business & type server and an X axis, determining a second closed area of the cabinet current curve of the idle cabinet and the X axis, then calculating a difference value of the first closed area and the second closed area, determining a maximum difference value, determining the idle cabinet corresponding to the maximum difference value as a target idle cabinet, and transferring the server to be transferred into the target idle cabinet. Therefore, the cabinet average current peak value of the cabinet can be increased, namely the second closed area of the cabinet current curve and the X axis can be increased, so that the maximum difference value can be reduced, and the server current curve and the cabinet current curve gradually tend to be stable.
In this embodiment, a difference between each of the first closed areas and any one of the second closed areas may be calculated. For example, if there are 20 first closed areas
Figure BDA0002753121930000111
Figure BDA0002753121930000111
10 second enclosed areas
Figure BDA0002753121930000112
Then calculate
Figure BDA0002753121930000113
And
Figure BDA0002753121930000114
Figure BDA0002753121930000115
obtaining ten difference values; then calculate
Figure BDA0002753121930000116
And
Figure BDA0002753121930000117
Figure BDA0002753121930000118
ten differences … … are obtained until all of any differences are obtained
Figure BDA0002753121930000119
And optionally
Figure BDA00027531219300001110
And sorting the obtained differences to obtain the maximum difference.
In addition, if the maximum difference value is smaller than a preset difference value threshold value, it is indicated that the server current curve and the cabinet current curve are relatively stable, and the utilization of the cabinet is already in a better state, so that the server to be migrated is migrated into the cabinet which is not powered on.
And if the total current peak value is larger than the safe current value, determining the emigration of the server in the cabinet through reverse coupling matching. Therefore, the early warning function can be achieved, and abnormal operation of the server and the cabinet can be prevented.
Specifically, calculating a difference value between the first closed area and the second closed area, and determining a minimum difference value; a difference between each of the first enclosed areas and any one of the second enclosed areas may be calculated to obtain a plurality of differences, and the obtained plurality of differences may be sorted to determine a minimum difference.
If the total current peak value is greater than the safe current value and less than the alarm current value, it indicates that an early warning line is exceeded, in order to ensure normal operation of the server and the cabinet, it is necessary to reduce the load of the corresponding cabinet, and in order to make the server current curve and the cabinet current curve tend to a smooth state, the server corresponding to the minimum difference value may be determined as a server to be migrated, and the server to be migrated is migrated from the corresponding cabinet; therefore, the server corresponding to the minimum difference value is migrated, and the stability of the current curve of the corresponding server and the current curve of the cabinet can be guaranteed to the maximum extent.
If the total current peak value is larger than the alarm current value and smaller than the maximum current value, reducing the frequency of the server corresponding to the minimum difference value until the total current peak value is smaller than the alarm current value; in this embodiment, the frequency of the server with the minimum difference value may be reduced, and if the total current peak value after frequency reduction is greater than the alarm current value; continuing to reduce the frequency of the server with the second small difference value until the total current peak value is smaller than the alarm current value.
If the total current peak value is larger than the maximum current value, controlling a server corresponding to the minimum difference value to shut down until the total current peak value is smaller than the maximum current value, wherein the maximum current value is larger than the alarm current value, and the alarm current value is larger than the safe current value. Specifically, the server corresponding to the minimum difference value is forcibly closed first, and if the total current peak value is greater than the maximum current value, the server corresponding to the second small difference value is continuously closed until the total current peak value is less than the maximum current value, so that the safe operation of the server and the cabinet is ensured.
According to the scheme, the server average current peak value of various business and type servers and the cabinet average current peak value of the cabinet are obtained, and corresponding server current curves and cabinet current curves are generated; determining a first closed area of the server current curve and an X axis, and determining a second closed area of the cabinet current curve and the X axis; and determining migration of the servers in the cabinet through forward coupling matching and determining migration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area. The migration in and migration out of the server are determined based on the server current curve and the cabinet current curve, so that the difference value of the sealing area between the cabinet current curve and the server current curve gradually tends to be stable, the rationalization of cabinet utilization is improved, resources and cost are saved, the stability of operation of the server and the cabinet is improved, the server and/or the cabinet are prevented from being powered off due to current overload, even the circuit is short-circuited, and the server and/or the cabinet are enabled to operate abnormally.
In addition, this embodiment still provides a rack resource management device. Referring to fig. 6, fig. 6 is a functional block diagram of a rack resource management device according to a first embodiment of the present invention.
In this embodiment, the cabinet resource management device is a virtual device, and is stored in the memory 1005 of the cabinet resource management apparatus shown in fig. 1, so as to implement all functions of the cabinet resource management program: the system comprises a server, a cabinet, a server current curve and a cabinet current curve, wherein the server current curve and the cabinet current curve are used for acquiring a server average current peak value of the server and a cabinet average current peak value of the cabinet and generating corresponding server current curves and cabinet current curves; determining a first closed area of the server current curve and an X axis, and determining a second closed area of the cabinet current curve and the X axis; and determining migration of the servers in the cabinet through forward coupling matching and determining migration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area.
Specifically, the cabinet resource management device includes:
the acquisition module 10 is configured to acquire a server average current peak value of a server and a cabinet average current peak value of a cabinet, and generate a corresponding server current curve and a corresponding cabinet current curve;
a determining module 20, configured to determine a first enclosed area of the server current curve and an X axis, and determine a second enclosed area of the cabinet current curve and the X axis;
and the matching module 30 is configured to determine migration of the servers in the cabinet through forward coupling matching and determine migration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area.
Further, the obtaining module is further configured to:
acquiring server current peak values of servers of the same service and type in a plurality of time periods within a preset time length;
determining a server daily average current peak value in the preset time length based on the server current peak value;
the obtaining of the server average current peak value of the server includes:
and obtaining the average current peak value of the server of the same service & type server based on the average value of the average current peak value of the server day.
Further, the determining obtaining is further for:
acquiring cabinet current peak values of each cabinet in a plurality of time periods within a preset time length so as to determine a cabinet daily average current peak value based on the plurality of cabinet current peak values, wherein the time period for acquiring the cabinet current peak values is the same as the time period for acquiring the server average current peak value;
determining the cabinet average current peak value based on the cabinet daily average current peak value.
Further, the determining module is further configured to:
determining an included angle between an average current peak value of adjacent time periods and an X axis based on a cosine law, wherein the average current peak value comprises the server average current peak value and the cabinet average current peak value;
calculating sub-closed areas of current curves corresponding to adjacent time periods and an X axis based on the included angle, wherein the current curves comprise the server current curve and the cabinet current curve;
and respectively determining the first closed area of the current curve and the X axis and the second closed area of the cabinet current curve and the X axis based on all the sub-closed areas.
Further, the matching module is further configured to:
calculating the sum of the average current peak value of the server and the average current peak value of the cabinet to obtain a total current peak value, and comparing the total current peak value with a preset safe current value;
if the total current peak value is smaller than the safe current value, determining the immigration of the server in the cabinet through forward coupling matching;
and if the total current peak value is larger than the safe current value, determining the emigration of the server in the cabinet through reverse coupling matching.
Further, the matching module is further configured to:
determining a target service & type of a server to be migrated, determining a target cabinet where the server of the target service & type is located, and screening out an idle cabinet in the target cabinet;
and calculating a difference value between the first closed area and the second closed area, determining a maximum difference value, determining an idle cabinet corresponding to the maximum difference value as a target idle cabinet, and migrating the server to be migrated into the target idle cabinet.
Further, the matching module is further configured to:
if the number of the idle cabinets is 0, migrating the to-be-migrated server into the cabinet which is not powered on;
and if the maximum difference is smaller than a preset difference threshold, migrating the server to be migrated into the non-powered cabinet.
Further, the matching module is further configured to:
calculating the difference between the first closed area and the second closed area, and determining the minimum difference;
if the total current peak value is larger than the safe current value and smaller than the alarm current value, determining the server corresponding to the minimum difference value as a server to be migrated, and migrating the server to be migrated from the corresponding cabinet;
if the total current peak value is larger than the alarm current value and smaller than the maximum current value, the server corresponding to the minimum difference value is subjected to frequency reduction until the total current peak value is smaller than the alarm current value.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a cabinet resource management program is stored on the computer-readable storage medium, and when the cabinet resource management program is executed by a processor, the steps of the cabinet resource management method are implemented, which are not described herein again.
Compared with the prior art, the equipment cabinet resource management method, the equipment cabinet resource management device, the equipment cabinet resource management equipment and the computer readable storage medium provided by the invention have the advantages that: acquiring a server average current peak value of a server and a cabinet average current peak value of a cabinet, and generating a corresponding server current curve and a corresponding cabinet current curve; determining a first closed area of the server current curve and an X axis, and determining a second closed area of the cabinet current curve and the X axis; and determining migration of the servers in the cabinet through forward coupling matching and determining migration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area. The migration in and migration out of the server are determined based on the server current curve and the cabinet current curve, so that the difference value of the sealing area between the cabinet current curve and the server current curve gradually tends to be stable, the rationalization of cabinet utilization is improved, resources and cost are saved, the stability of operation of the server and the cabinet is improved, the server and/or the cabinet are prevented from being powered off due to current overload, even the circuit is short-circuited, and the server and/or the cabinet are enabled to operate abnormally.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, and optical disk) as described above, and includes several instructions for enabling a terminal device to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (11)

1. A cabinet resource management method, the method comprising:
acquiring a server average current peak value of a server and a cabinet average current peak value of a cabinet, and generating a corresponding server current curve and a corresponding cabinet current curve;
determining a first closed area of the server current curve and an X axis, and determining a second closed area of the cabinet current curve and the X axis;
and determining migration of the servers in the cabinet through forward coupling matching and determining migration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area.
2. The method of claim 1, wherein the obtaining of the server average current peak value of the server and the cabinet average current peak value of the cabinet and generating the corresponding server current curve and cabinet current curve further comprises:
acquiring server current peak values of servers of the same service and type in a plurality of time periods within a preset time length;
determining a server daily average current peak value in the preset time length based on the server current peak value;
the obtaining of the server average current peak value of the server includes:
and obtaining the average current peak value of the server of the same service & type server based on the average value of the average current peak value of the server day.
3. The method of claim 2, wherein the obtaining of the server average current peak value of the server and the cabinet average current peak value of the cabinet and generating the corresponding server current curve and cabinet current curve further comprises:
acquiring cabinet current peak values of each cabinet in a plurality of time periods within a preset time length so as to determine a cabinet daily average current peak value based on the plurality of cabinet current peak values, wherein the time period for acquiring the cabinet current peak values is the same as the time period for acquiring the server average current peak value;
determining the cabinet average current peak value based on the cabinet daily average current peak value.
4. The method of claim 1, wherein determining a first enclosed area of the server current curve and the X-axis and determining a second enclosed area of the cabinet current curve and the X-axis comprises:
determining an included angle between an average current peak value of adjacent time periods and an X axis based on a cosine law, wherein the average current peak value comprises the server average current peak value and the cabinet average current peak value;
calculating sub-closed areas of current curves corresponding to adjacent time periods and an X axis based on the included angle, wherein the current curves comprise the server current curve and the cabinet current curve;
and respectively determining the first closed area of the current curve and the X axis and the second closed area of the cabinet current curve and the X axis based on all the sub-closed areas.
5. The method of any of claims 1-4, wherein determining immigration of servers in the cabinet based on the first enclosed area and the second enclosed area by forward coupling matching and determining immigration of servers in the cabinet based on the second enclosed area by reverse coupling matching comprises:
calculating the sum of the average current peak value of the server and the average current peak value of the cabinet to obtain a total current peak value, and comparing the total current peak value with a preset safe current value;
if the total current peak value is smaller than the safe current value, determining the immigration of the server in the cabinet through forward coupling matching;
and if the total current peak value is larger than the safe current value, determining the emigration of the server in the cabinet through reverse coupling matching.
6. The method of claim 5, wherein determining the immigration of servers in the cabinet by forward coupling matching comprises:
determining a target service & type of a server to be migrated, determining a target cabinet where the server of the target service & type is located, and screening out an idle cabinet in the target cabinet;
and calculating a difference value between the first closed area and the second closed area, determining a maximum difference value, determining an idle cabinet corresponding to the maximum difference value as a target idle cabinet, and migrating the server to be migrated into the target idle cabinet.
7. The method according to claim 6, wherein the determining a target service & type of the server to be migrated, determining a target cabinet where the server of the target service & type is located, and screening out an idle cabinet, further comprises:
if the number of the idle cabinets is 0, migrating the to-be-migrated server into the cabinet which is not powered on;
the calculating a difference between the first closed area and the second closed area in the idle cabinet and determining a maximum difference, and then further comprising:
and if the maximum difference is smaller than a preset difference threshold, migrating the server to be migrated into the non-powered cabinet.
8. The method of claim 5, wherein determining migration of servers in the rack by back-coupling matching comprises:
calculating the difference between the first closed area and the second closed area, and determining the minimum difference;
if the total current peak value is larger than the safe current value and smaller than the alarm current value, determining the server corresponding to the minimum difference value as a server to be migrated, and migrating the server to be migrated from the corresponding cabinet;
if the total current peak value is larger than the alarm current value and smaller than the maximum current value, reducing the frequency of the server corresponding to the minimum difference value until the total current peak value is smaller than the alarm current value;
if the total current peak value is larger than the maximum current value, controlling a server corresponding to the minimum difference value to shut down until the total current peak value is smaller than the maximum current value, wherein the maximum current value is larger than the alarm current value, and the alarm current value is larger than the safe current value.
9. An equipment cabinet resource management device, comprising:
the acquisition module is used for acquiring the average current peak value of the server and the average current peak value of the cabinet of the server and generating a corresponding server current curve and a corresponding cabinet current curve;
the determining module is used for determining a first closed area of the server current curve and an X axis and determining a second closed area of the cabinet current curve and the X axis;
and the matching module is used for determining the immigration of the servers in the cabinet through forward coupling matching and determining the immigration of the servers in the cabinet through reverse coupling matching based on the first closed area and the second closed area.
10. An equipment cabinet resource management device, comprising a processor, a memory and an equipment cabinet resource management program stored in the memory, wherein when the equipment cabinet resource management program is executed by the processor, the steps of the equipment cabinet resource management method according to any one of claims 1 to 8 are realized.
11. A computer readable storage medium, wherein the computer readable storage medium has stored thereon a cabinet resource management program, and when the cabinet resource management program is executed by a processor, the cabinet resource management program implements the steps of the cabinet resource management method according to any one of claims 1 to 8.
CN202011192326.0A 2020-10-30 2020-10-30 Cabinet resource management method, device, equipment and computer readable storage medium Pending CN112306686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011192326.0A CN112306686A (en) 2020-10-30 2020-10-30 Cabinet resource management method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011192326.0A CN112306686A (en) 2020-10-30 2020-10-30 Cabinet resource management method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112306686A true CN112306686A (en) 2021-02-02

Family

ID=74332874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011192326.0A Pending CN112306686A (en) 2020-10-30 2020-10-30 Cabinet resource management method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112306686A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086334A (en) * 2022-06-15 2022-09-20 北京奇艺世纪科技有限公司 Server marking method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9367355B1 (en) * 2015-01-28 2016-06-14 Yahoo!, Inc. Resource utilization by one or more tasks
CN109800125A (en) * 2018-12-18 2019-05-24 平安科技(深圳)有限公司 Cabinet configuring management method, device and computer readable storage medium
US20190220073A1 (en) * 2018-01-15 2019-07-18 Huazhong University Of Science And Technology Server deployment method based on datacenter power management
US20190370085A1 (en) * 2018-05-30 2019-12-05 Oracle International Corporation Intelligent workload migration to optimize power supply efficiencies in computer data centers
CN111008110A (en) * 2019-12-05 2020-04-14 深圳前海微众银行股份有限公司 Machine position resource management method, device, equipment and computer readable storage medium
CN111651007A (en) * 2020-04-30 2020-09-11 厦门科灿信息技术有限公司 Server cabinet U bit management method and management system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9367355B1 (en) * 2015-01-28 2016-06-14 Yahoo!, Inc. Resource utilization by one or more tasks
US20190220073A1 (en) * 2018-01-15 2019-07-18 Huazhong University Of Science And Technology Server deployment method based on datacenter power management
US20190370085A1 (en) * 2018-05-30 2019-12-05 Oracle International Corporation Intelligent workload migration to optimize power supply efficiencies in computer data centers
CN109800125A (en) * 2018-12-18 2019-05-24 平安科技(深圳)有限公司 Cabinet configuring management method, device and computer readable storage medium
CN111008110A (en) * 2019-12-05 2020-04-14 深圳前海微众银行股份有限公司 Machine position resource management method, device, equipment and computer readable storage medium
CN111651007A (en) * 2020-04-30 2020-09-11 厦门科灿信息技术有限公司 Server cabinet U bit management method and management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭嘉;杨洪明;张鹏兴;叶轩;熊铜林;常巩;: "面向需求响应的数据中心供能系统优化调度", 电力科学与技术学报, no. 02, 28 June 2018 (2018-06-28), pages 45 - 51 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086334A (en) * 2022-06-15 2022-09-20 北京奇艺世纪科技有限公司 Server marking method and related device
CN115086334B (en) * 2022-06-15 2024-05-28 北京奇艺世纪科技有限公司 Server marking method and related device

Similar Documents

Publication Publication Date Title
US9038068B2 (en) Capacity reclamation and resource adjustment
US9853449B2 (en) Smart transformer
US9330368B2 (en) Routing service requests based on lowest actual cost within a federated virtual service cloud
US8996647B2 (en) Optimizing storage between mobile devices and cloud storage providers
CN100384161C (en) Method and system for processing service behaviour abnormal
CN112306686A (en) Cabinet resource management method, device, equipment and computer readable storage medium
CN110708197B (en) Monitoring device, method for setting monitoring policy of monitoring device, and storage medium
CN111767139A (en) Cross-region multi-data-center resource cloud service modeling method and system
CN112799908B (en) Intelligent terminal safety monitoring method, equipment and medium based on edge calculation
CN112073327B (en) Anti-congestion software distribution method, device and storage medium
CN115756135A (en) Processor management method and computing device
CN109918277A (en) Electronic device, the evaluation method of system log cluster analysis result and storage medium
CN105930216A (en) Automatic scheduling method and system for electronic signature system and server
CN109739513B (en) Dynamic scheduling method and device for service requests under multi-edge cloud
CN114356712A (en) Data processing method, device, equipment, readable storage medium and program product
CN109495575B (en) Service configuration method, system and ERP server
CN113222401A (en) Non-invasive load type intelligent identification method, device, server and system
CN109903022B (en) Resource distribution method, device, equipment and computer readable storage medium
CN117294578B (en) Communication method, system, computer equipment and storage medium
CN116842169B (en) Power grid session management method, system, terminal and storage medium
CN111459512B (en) Power grid light application deployment method, system, equipment and storage medium
CN110968397B (en) Analysis method and device for virtual machine capacity management
CN112115020B (en) Database connection pool abnormity monitoring method and device and computer equipment
CN114281476A (en) Kubernetes cloud native cluster resource deletion protection method, device, equipment and storage medium
CN117834530A (en) Method, system, equipment and medium for processing enterprise batch service flow

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination