Running state adjusting method and device, server, equipment and medium

By sending instructions to the management device when the server's power is abnormal and adjusting the server status based on feedback, the problem that the management device cannot respond to the server's power abnormality is solved, and dynamic adjustment of the server status is achieved, avoiding downtime and business interruption.

CN119024946APending Publication Date: 2024-11-26CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310610191.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

When the server has an abnormal power supply, the management device cannot adjust the server's operating status according to the abnormal status of the server's power supply, resulting in the server's easy downtime and business interruption.

Method used

By sending the first indication information to the management device when an abnormality occurs in the power supply of the server, receiving and adjusting the server to the energy-saving operation state, including the energy efficiency state of the central processor, reducing the operating frequency, and reducing the temperature. Fan speed and power supply requirements for the whole machine.

Benefits of technology

It effectively avoids sudden downtime and business interruption caused by power supply abnormalities in the server. By dynamically adjusting the server status, it reduces the power supply requirements of the entire machine and improves system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119024946A_ABST
    Figure CN119024946A_ABST
Patent Text Reader

Abstract

The invention provides a running state adjusting method and device, a server, equipment and a medium, and relates to the technical field of communication. The method comprises the following steps: under the condition that a power supply of a server is abnormal, sending first indication information used for indicating that the power supply of the server is abnormal to management equipment; receiving second indication information fed back by the management equipment according to the first indication information; and adjusting the server to an energy-saving operation state according to the second indication information. When the power supply of the server is abnormal, the first indication information is sent to the management equipment, so that the management equipment can generate the second indication information, and the running state of the server is adjusted according to the abnormal condition of the power supply. According to the scheme, the problems that in the prior art, when the power supply of the server is abnormal, the management equipment cannot adjust the running state of the server according to the abnormal state of the power supply of the server, and server downtime and service interruption are easily caused by keeping the current running state are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, server, equipment and medium for adjusting an operation state. Background Art

[0002] Servers generally have two power supplies, namely the main power supply and the backup power supply. When both power supplies fail, the physical infrastructure management (PIM) will not be able to collect information or send power failure information to the management device due to the lack of power supply. Figure 1 In addition, when the server has a fault such as unstable power supply voltage, the server is already in a "sub-healthy" state. The management device cannot adjust the server's operating state according to the abnormal state of the server power supply and maintains the current operating state, which may cause sudden server downtime and business interruption, bringing risks to the server and business operation. Summary of the invention

[0003] The purpose of the present invention is to provide an operation status adjustment method, device, server, equipment and medium, so as to solve the problem in the prior art that when an abnormality occurs in the power supply of the server, the management device cannot adjust the operation status of the server according to the abnormal state of the server power supply, and maintaining the current operation status is likely to cause server downtime and business interruption.

[0004] To achieve the above object, an embodiment of the present invention provides a method for adjusting a running state, which is applied to a server and includes:

[0005] When the power supply of the server is abnormal, sending first indication information indicating that the power supply of the server is abnormal to the management device;

[0006] receiving second indication information fed back by the management device according to the first indication information, where the second indication information is used to instruct to adjust the running state of the server;

[0007] According to the second indication information, the server is adjusted to an energy-saving operation state.

[0008] Furthermore, before sending the first indication information to the management device, the method includes:

[0009] Collecting a power supply voltage value of the server;

[0010] When the power supply voltage value is not within a preset range, it is determined that an abnormality occurs in the power supply of the server.

[0011] Furthermore, before sending the first indication information to the management device, the method includes:

[0012] Determining, based on the received alarm information, that the power supply is abnormal;

[0013] The alarm information is received when the power supply voltage value of the server is not within a preset range.

[0014] Furthermore, the first indication information is used to indicate one of the following:

[0015] The power supply voltage value of the server is greater than a first preset value;

[0016] The power supply voltage value is less than the second preset value and greater than the third preset value;

[0017] The power supply voltage value is less than the third preset value;

[0018] The first preset value is greater than the second preset value and the third preset value.

[0019] Further, the first indication information is used to indicate that the power supply voltage value is less than the second preset value and greater than the third preset value, and the second indication information is used to indicate at least one of the following:

[0020] The central processing unit of the server turns on the energy efficiency state;

[0021] The central processing unit of the server reduces the operating frequency;

[0022] The server reduces the fan speed;

[0023] The server reduces the power demand of the entire machine.

[0024] Further, the first indication information is used to indicate that the power supply voltage value is less than the third preset value, and the second indication information is used to indicate at least one of the following:

[0025] The central processing unit of the server enters a dormant state;

[0026] The server reduces the fan speed;

[0027] The server reduces the power demand of the entire machine.

[0028] Further, the first indication information is used to indicate that the power supply voltage value is less than a second preset value and greater than a third preset value, and the second indication information is used to indicate:

[0029] ; adjusting the server to an energy efficient state;

[0030] The adjusting the server to an energy efficiency state includes at least one of the following:

[0031] The central processing unit of the server turns on the energy efficiency state;

[0032] The central processing unit of the server reduces the operating frequency;

[0033] The server reduces the fan speed;

[0034] The server reduces the power demand of the entire machine.

[0035] Further, the first indication information is used to indicate that the power supply voltage value is less than the third preset value, and the second indication information is used to indicate:

[0036] Adjusting the server to a dormant state;

[0037] The step of adjusting the server to a dormant state comprises at least one of the following:

[0038] The central processing unit of the server enters a dormant state;

[0039] The server reduces the fan speed;

[0040] The server reduces the power demand of the entire machine.

[0041] To achieve the above object, an embodiment of the present invention provides a method for adjusting a running state, which is applied to a management device, and includes:

[0042] Receiving first indication information sent by a server, where the first indication information is used to indicate that an abnormality occurs in a power supply of the server;

[0043] According to the first indication information, adjusting resource allocation to the server, and generating second indication information for instructing the server to adjust to an energy-saving operation state;

[0044] The second indication information is sent to the server.

[0045] Furthermore, the first indication information is used to indicate one of the following:

[0046] The power supply voltage value is greater than a first preset value;

[0047] The power supply voltage value is less than the second preset value and greater than the third preset value;

[0048] The power supply voltage value is less than the third preset value;

[0049] The first preset value is greater than the second preset value and the third preset value.

[0050] Further, adjusting resource allocation to the server according to the first indication information includes:

[0051] When the power supply voltage value is less than the second preset value and greater than the third preset value, no new service is allocated to the server, and the second indication information for adjusting the server to an energy-efficient state is generated.

[0052] Further, adjusting resource allocation to the server according to the first indication information includes:

[0053] When the power supply voltage value is less than the third preset value, the service on the server is allocated to a second server, and the second indication information for adjusting the server to a dormant state is generated.

[0054] Furthermore, the second indication information is used to indicate at least one of the following:

[0055] The central processing unit of the server turns on the energy efficiency state;

[0056] Reducing the operating frequency of the central processing unit;

[0057] The central processing unit of the server enters a dormant state;

[0058] reducing a fan speed of the server;

[0059] The overall power requirement of the server is reduced.

[0060] To achieve the above object, an embodiment of the present invention provides a running state adjustment device, which is applied to a server and includes:

[0061] A first sending module, when the power supply of the server is abnormal, sends first indication information for indicating that the power supply of the server is abnormal to the management device;

[0062] A first receiving module, configured to receive second indication information fed back by the management device according to the first indication information, wherein the second indication information is used to instruct to adjust the running state of the server;

[0063] The first adjustment module is used to adjust the server to an energy-saving operation state according to the second indication information.

[0064] To achieve the above object, an embodiment of the present invention provides a running state adjustment device, which is applied to a management device, including:

[0065] A second receiving module, used for receiving first indication information sent by a server, where the first indication information is used for indicating that an abnormality occurs in a power supply of the server;

[0066] A second adjustment module, configured to adjust resource allocation to the server according to the first indication information, and generate second indication information for instructing the server to adjust to an energy-saving operation state;

[0067] The second sending module is used to send the second indication information to the server.

[0068] To achieve the above object, an embodiment of the present invention provides a server, including a processor and a transceiver, wherein:

[0069] The transceiver is used for sending first indication information indicating that the power supply of the server is abnormal to the management device when the power supply of the server is abnormal;

[0070] Receiving second indication information fed back by the management device according to the first indication information;

[0071] The processor is used for adjusting the server to an energy-saving operation state according to the second indication information.

[0072] To achieve the above object, an embodiment of the present invention provides a device, including a processor and a transceiver, wherein:

[0073] The transceiver is used to receive first indication information sent by the server, where the first indication information is used to indicate that an abnormality has occurred in the power supply of the server;

[0074] The processor is used to adjust resource allocation to the server according to the first indication information, and generate second indication information for instructing the server to adjust to an energy-saving operation state;

[0075] The transceiver is further configured to send the second indication information to the server.

[0076] To achieve the above-mentioned purpose, an embodiment of the present invention provides a terminal device, including a transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; when the processor executes the program or instruction, the operating status adjustment method as described above is implemented.

[0077] To achieve the above objective, an embodiment of the present invention provides a readable storage medium having a program or instruction stored thereon, wherein the program or instruction, when executed by a processor, implements the steps in the operating state adjustment method as described above.

[0078] The beneficial effects of the above technical solution of the present invention are as follows:

[0079] The operation state adjustment method of the embodiment of the present invention can enable the management device to generate second indication information for adjusting to an energy-saving operation state according to the first indication information by sending first indication information indicating that the power supply is abnormal to the management device when the power supply of the server is abnormal, so that the operation state of the server is adjusted according to the abnormal situation of the power supply. The solution of the present invention solves the problem in the prior art that when the power supply of the server is abnormal, the management device cannot adjust the operation state of the server according to the abnormal state of the server power supply, and maintaining the current operation state is likely to cause server downtime and business interruption. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 A schematic diagram of the interaction between the baseboard controller and the management device after an abnormality occurs in the server power supply in the prior art;

[0081] Figure 2 A schematic diagram of a flow chart of a method for adjusting the running state of a server according to an embodiment of the present invention;

[0082] Figure 3 A schematic diagram of a flow chart of a method for adjusting the operating state of a management device according to an embodiment of the present invention;

[0083] Figure 4 A schematic diagram of a method for adjusting a running state according to an embodiment of the present invention;

[0084] Figure 5 A logical schematic diagram of a method for adjusting an operating state according to an embodiment of the present invention;

[0085] Figure 6 It is one of the logic schematic diagrams of the power sensing device of the embodiment of the present invention reporting the alarm information to the baseboard controller;

[0086] Figure 7 The second logical diagram of the power sensing device reporting alarm information to the baseboard controller according to the embodiment of the present invention;

[0087] Figure 8 It is a structural schematic diagram of a running state adjustment device applied to a server according to an embodiment of the present invention;

[0088] Fig. 9 It is a structural diagram of a running state adjustment device applied to a management device according to an embodiment of the present invention;

[0089] Fig.10 A schematic diagram of the structure of a server according to an embodiment of the present invention;

[0090] Fig.11 A schematic diagram of the structure of a device according to an embodiment of the present invention;

[0091] Fig.12 It is a schematic diagram of the structure of a terminal device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0092] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0093] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0094] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0095] Additionally, the terms "system" and "network" are often used interchangeably herein.

[0096] In the embodiments provided in the present application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.

[0097] like Figure 2 As shown, a method for adjusting a running state according to an embodiment of the present invention is applied to a server, and includes the following steps:

[0098] Step 201, when the power supply of the server is abnormal, sending first indication information for indicating that the power supply of the server is abnormal to a management device;

[0099] Step 202: receiving second indication information fed back by the management device according to the first indication information, wherein the second indication information is used to instruct to adjust the running state of the server;

[0100] Step 203: According to the second indication information, the server is adjusted to an energy-saving operation state.

[0101] Optionally, the power supply of the server is abnormal including:

[0102] The power supply voltage of the server is unstable; or,

[0103] At least one of the power supplies of the server fails, resulting in a power outage.

[0104] Optionally, the power supply of the server is judged to be abnormal by the following method:

[0105] The voltage value of the server power supply is not within a preset range, that is, the voltage value of the server power supply is higher than the maximum voltage value or lower than the minimum voltage value.

[0106] It should be noted that the management device includes:

[0107] Physical Infrastructure Management (PIM) and Virtualized Infrastructure Management (VIM);

[0108] wherein the first indication information is received through the physical infrastructure management;

[0109] Sending second indication information to the server through the virtual infrastructure management.

[0110] It should be noted that the server in the embodiment of the present invention includes:

[0111] CPU, power module, baseboard controller and power sensing device;

[0112] The power sensing device is connected to the power module and the baseboard controller, and is used to detect the power supply voltage of the server, and send an alarm message to the baseboard controller when an abnormality occurs in the power supply of the server.

[0113] It should be noted that the communication between the power sensing device and the baseboard controller is interrupted, that is, an alarm message is sent to the baseboard controller BMC only when an abnormality occurs in the power supply of the server, which reduces the workload of the CPU and increases the probability of accurate transmission of the alarm message.

[0114] In one embodiment of the present invention, the energy-saving operation state can be understood as a low power consumption state, including:

[0115] Energy efficiency state (Performance State, P-state) or sleep state C-state.

[0116] In one embodiment of the present invention, when the power supply voltage of the server is unstable or one power supply fails, the state of the server is adjusted to an energy efficiency state according to the second indication information; when both power supplies of the server fail, the state of the server is adjusted to a sleep state.

[0117] The operation state adjustment method of the embodiment of the present invention can enable the management device to generate second indication information for adjusting to an energy-saving operation state according to the first indication information by sending first indication information indicating that the power supply is abnormal to the management device when the power supply of the server is abnormal, so that the operation state of the server is adjusted according to the abnormal situation of the power supply. The solution of the present invention solves the problem in the prior art that when the power supply of the server is abnormal, the management device cannot adjust the operation state of the server according to the abnormal state of the server power supply, and maintaining the current operation state is likely to cause server downtime and business interruption.

[0118] Optionally, before sending the first indication information to the management device, the method includes:

[0119] Collecting a power supply voltage value of the server;

[0120] When the power supply voltage value is not within a preset range, it is determined that an abnormality occurs in the power supply of the server.

[0121] Optionally, the power supply voltage of the server is collected by the power supply sensing device, and it is determined whether the power supply voltage is within the preset range. When the power supply voltage is not within the preset range, it is determined that the power supply of the server is abnormal, and an alarm message is sent to the baseboard controller.

[0122] The operation status adjustment method of the embodiment of the present invention can determine whether an abnormality occurs in the power supply of the server through the power supply voltage value of the server.

[0123] Optionally, before sending the first indication information to the management device, the method includes:

[0124] Determining, based on the received alarm information, that the power supply is abnormal;

[0125] The alarm information is received when the power supply voltage value of the server is not within a preset range.

[0126] In one embodiment of the present invention, the voltage value of the power supply is collected by the power supply sensing device, and when the voltage value is not within a preset range, an alarm message is sent to the baseboard controller.

[0127] Optionally, the power sensing device is disposed in the server, or is disposed independently of the server.

[0128] The operating status adjustment method of the embodiment of the present invention can collect the voltage of the power supply in real time by adding a power supply sensing device in the server, judge the power status of the server according to the voltage value, and send the alarm information to the baseboard controller when an abnormality occurs in the server power supply.

[0129] Optionally, the first indication information is used to indicate one of the following:

[0130] The power supply voltage value of the server is greater than a first preset value;

[0131] The power supply voltage value is less than the second preset value and greater than the third preset value;

[0132] The power supply voltage value is less than the third preset value;

[0133] The first preset value is greater than the second preset value and the third preset value.

[0134] Optionally, the first indication information is used to indicate that the power supply voltage value is less than the second preset value and greater than the third preset value, and the second indication information is used to indicate at least one of the following:

[0135] The central processing unit of the server turns on the energy efficiency state;

[0136] The central processing unit of the server reduces the operating frequency;

[0137] The server reduces the fan speed;

[0138] The server reduces the power demand of the entire machine.

[0139] In one embodiment of the present invention, the management device, after receiving the first indication information, generates the second indication information according to the first indication information;

[0140] The second indication information includes a specific operating parameter adjustment plan for adjusting the server.

[0141] The power supply voltage value being less than the second preset value and greater than the third preset value can be understood as the voltage value of the power supply being reduced, but still being able to allow the server to operate with low power consumption (for example, one of the two power supplies of the server is abnormal). At this time, the server is in a "sub-healthy" state.

[0142] The operating status adjustment method of an embodiment of the present invention can, after determining that the power supply of the server is reduced, timely adjust the operating status of the server according to the second indication information, so that the server enters a low-power consumption state, thereby avoiding business interruption problems caused by sudden server shutdown.

[0143] Optionally, the first indication information is used to indicate that the power supply voltage value is less than the third preset value, and the second indication information is used to indicate at least one of the following:

[0144] The central processing unit of the server enters a dormant state;

[0145] The server reduces the fan speed;

[0146] The server reduces the power demand of the entire machine.

[0147] Optionally, the power supply voltage value being less than the third preset value can be understood as:

[0148] Both power supplies of the server are abnormal, or even both power supplies of the server are powered off, resulting in the power supply being unable to provide power to the server.

[0149] Optionally, when the power supply voltage value is less than the third preset value, the management device sends a second indication message to the server, marks the server as "unavailable", and distributes the services on the server to other servers.

[0150] The operating status adjustment method of the embodiment of the present invention can adjust the operating status of the server in time according to the second indication information after determining that the power supply of the server is reduced, so as to put the server into a sleep state and avoid business interruption problems caused by sudden server failure.

[0151] Optionally, the first indication information is used to indicate that the power supply voltage value is less than a second preset value and greater than a third preset value, and the second indication information is used to indicate:

[0152] adjusting the server to an energy efficient state;

[0153] The adjusting the server to an energy efficiency state includes at least one of the following:

[0154] The central processing unit of the server turns on the energy efficiency state;

[0155] The central processing unit of the server reduces the operating frequency;

[0156] The server reduces the fan speed;

[0157] The server reduces the power demand of the entire machine.

[0158] The first indication information is used to indicate that the power supply voltage value is less than the third preset value, and the second indication information is used to indicate:

[0159] Adjusting the server to a dormant state;

[0160] The step of adjusting the server to a dormant state comprises at least one of the following:

[0161] The central processing unit of the server enters a dormant state;

[0162] The server reduces the fan speed;

[0163] The server reduces the power demand of the entire machine.

[0164] In one embodiment of the present invention, the management device, after receiving the first indication information, generates the second indication information according to the first indication information;

[0165] The second instruction information only includes an instruction to adjust the running state of the server, but does not include specific adjustment parameters.

[0166] According to the operation status adjustment method of the embodiment of the present invention, the server adjusts the operation status to the energy efficiency state or the sleep state according to the first indication, which can reduce the overall power demand of the server and thus avoid sudden shutdown of the server.

[0167] The operating status adjustment method of the embodiment of the present invention can adjust the operating status of the server to reduce the overall power consumption of the server by adjusting the status of the central processing unit, the operating frequency of the central processing unit, the fan speed and the power demand of the entire server.

[0168] like Figure 3 As shown, an embodiment of the present invention further provides a method for adjusting the running state, which is applied to a management device and includes the following steps:

[0169] Step 301, receiving first indication information sent by a server, where the first indication information is used to indicate that a power supply of the server is abnormal;

[0170] Step 302: adjusting resource allocation to the server according to the first indication information, and generating second indication information for instructing the server to adjust to an energy-saving operation state;

[0171] Step 303: Send the second indication information to the server.

[0172] In the operation status adjustment method of the embodiment of the present invention, the management device adjusts the allocation of resources of the server according to the first indication information, and generates second indication information for instructing the server to adjust the status. The scheme of the present invention can adjust the resource allocation of the server with abnormal power supply, so as to avoid the problem that when the power supply of the server is abnormal, the abnormal information of the power supply cannot be sent to the management device, and the operation status of the server cannot be adjusted according to the abnormal status of the server power supply, and the current operation status is maintained, which may easily lead to server downtime and business interruption.

[0173] Optionally, the first indication information is used to indicate one of the following:

[0174] The power supply voltage value is greater than a first preset value;

[0175] The power supply voltage value is less than the second preset value and greater than the third preset value;

[0176] The power supply voltage value is less than the third preset value;

[0177] The first preset value is greater than the second preset value and the third preset value.

[0178] The power supply voltage value being less than the second preset value and greater than the third preset value can be understood as the voltage value of the power supply being reduced, but still being able to allow the server to operate with low power consumption (for example, one of the two power supplies of the server is abnormal). At this time, the server is in a "sub-healthy" state.

[0179] Optionally, the power supply voltage value being less than the third preset value can be understood as:

[0180] Both power supplies of the server are abnormal, or even both power supplies of the server are powered off, resulting in the power supply being unable to provide power to the server.

[0181] In another embodiment of the present invention, the first indication information only includes the power supply voltage value of the server, and the management device determines the abnormal cause of the server power supply (how many power supplies have been abnormal and what kind of abnormality has occurred) based on the power supply voltage value; and generates the second indication information based on the abnormal cause.

[0182] Optionally, adjusting resource allocation to the server according to the first indication information includes:

[0183] When the power supply voltage value is less than the second preset value and greater than the third preset value, no new service is allocated to the server, and the second indication information for adjusting the server to an energy-efficient state is generated.

[0184] Optionally, the second indication information is used to indicate at least one of the following:

[0185] The central processing unit of the server turns on the energy efficiency state;

[0186] Reducing the operating frequency of the central processing unit;

[0187] reducing a fan speed of the server;

[0188] The overall power requirement of the server is reduced.

[0189] The operating status adjustment method of the embodiment of the present invention determines the specific status of the server to be adjusted and the adjustment plan of the specific adjustment parameters based on the first indication information, and can adjust the status of the server with power supply abnormality; when an abnormality occurs in one of the two power supplies of the server, resulting in a decrease in the power supply voltage, no new business is allocated to the server, thereby reducing the load on the server.

[0190] Optionally, adjusting resource allocation to the server according to the first indication information includes:

[0191] When the power supply voltage value is less than the third preset value, the service on the server is allocated to a second server, and the second indication information for adjusting the server to a dormant state is generated.

[0192] Optionally, the second server is any server other than the server connected to the management device.

[0193] Optionally, the second indication information is used to indicate at least one of the following:

[0194] The central processing unit of the server enters a dormant state;

[0195] reducing a fan speed of the server;

[0196] The overall power requirement of the server is reduced.

[0197] The operating status adjustment method of the embodiment of the present invention determines the specific status of the server to be adjusted and the adjustment plan of the specific adjustment parameters based on the first indication information, and can adjust the status of the server with power supply abnormality; when both power supplies of the server have abnormalities and cause the power supply voltage to decrease, the business on the server is adjusted to another server, so that the server enters a sleep state and avoids interruption of the business on the server.

[0198] like Figure 4 As shown, the operating state adjustment method of an embodiment of the present invention is:

[0199] When the power sensing device detects that the voltage value of the power supply of the server is less than the second preset value and greater than the third preset value, an alarm message is reported to the BMC, the BMC sends first indication information to the management device, the management device generates second indication information according to the first indication information, and no longer allocates new services to the server;

[0200] When the power sensing device detects that the voltage value of the power supply of the server is less than the third preset value, an alarm message is reported to the BMC, and the BMC sends a first indication message to the management device. The management device generates a second indication message according to the first indication message, and allocates the service on the server to another server.

[0201] like Figure 5 As shown, a logical schematic diagram of the operating state adjustment method according to an embodiment of the present invention is as follows:

[0202] A threshold control unit is provided in the power sensing device of the server, for detecting whether the voltage value of the power supply is within the preset range;

[0203] If the voltage value of the power supply is less than the second preset value and greater than the third preset value, the power supply sensing device reports an alarm message to the BMC; the BMC records the alarm message and sends a first indication message to the management device; the management device marks the server as "sub-healthy" according to the first indication message, no longer allocates new services to the server, and sends a second indication message to the server to adjust the operating state to an energy efficiency state;

[0204] If the voltage value of the power supply is less than the third preset value, the power supply sensing device reports an alarm message to the BMC; the BMC records the alarm message and sends a first indication message to the management device; the management device marks the server as "unavailable" based on the first indication message, allocates the business on the server to another server, and sends a second indication message to the server to adjust the operating state to a sleep state.

[0205] like Figure 6 As shown, if the voltage value of the power supply is less than the second preset value and greater than the third preset value, the power supply sensing device reports the alarm information to the BMC, and marks the reporting status of the alarm information to obtain a reporting status identifier (if the reporting is successful, it is a success identifier; if the reporting fails, it is a failure identifier); the BMC receives the alarm information and feeds back a message of successful reporting to the power supply sensing device.

[0206] like Figure 7As shown, if the voltage value is less than the third preset value, the power sensing device reports the alarm information to the BMC, and after the server power abnormality is restored, detects whether the alarm information of the power abnormality is reported successfully through the reporting status identifier, if not, the alarm information is reported to the BMC again; the BMC receives the alarm information and feeds back a message of successful reporting to the power sensing device.

[0207] like Figure 8 As shown, the embodiment of the present invention further provides a running state adjustment device 800, which is applied to a server and includes:

[0208] The first sending module 801 sends first indication information indicating that the power supply of the server is abnormal to the management device when the power supply of the server is abnormal;

[0209] A first receiving module 802 is used to receive second indication information fed back by the management device according to the first indication information, where the second indication information is used to indicate to adjust the running state of the server;

[0210] The first adjustment module 803 is used to adjust the server to an energy-saving operation state according to the second indication information.

[0211] The operation state adjustment device of the embodiment of the present invention can enable the management device to generate second indication information for adjusting to an energy-saving operation state according to the first indication information by sending first indication information indicating that the power supply is abnormal to the management device when the power supply of the server is abnormal, thereby adjusting the operation state of the server according to the abnormal situation of the power supply. The solution of the present invention solves the problem in the prior art that when the power supply of the server is abnormal, the operation state of the server cannot be adjusted according to the abnormal state of the power supply of the server, and maintaining the current operation state is likely to cause server downtime and business interruption.

[0212] like Fig. 9 As shown, the embodiment of the present invention further provides a running state adjustment device 900, which is applied to a management device, including:

[0213] The second receiving module 901 is used to receive first indication information sent by the server, where the first indication information is used to indicate that an abnormality occurs in the power supply of the server;

[0214] A second adjustment module 902, configured to adjust resource allocation to the server according to the first indication information, and generate second indication information for instructing the server to adjust to an energy-saving operation state;

[0215] The second sending module 903 is configured to send the second indication information to the server.

[0216] In the operation state adjustment device of the embodiment of the present invention, the management device adjusts the allocation of resources of the server according to the first indication information, and generates second indication information for instructing the server to adjust the state. The solution of the present invention can adjust the resource allocation of the server with abnormal power supply, so as to avoid the problem that the operation state of the server cannot be adjusted according to the abnormal state of the server power supply when the power supply of the server is abnormal, and maintaining the current operation state is likely to cause server downtime and business interruption.

[0217] like Fig.10 As shown, a server 1000 according to an embodiment of the present invention includes a processor 1010 and a transceiver 1020, wherein:

[0218] The transceiver is used for sending first indication information indicating that the power supply of the server is abnormal to the management device when the power supply of the server is abnormal;

[0219] receiving second indication information fed back by the management device according to the first indication information, where the second indication information is used to instruct to adjust the running state of the server;

[0220] The processor is used for adjusting the server to an energy-saving operation state according to the second indication information.

[0221] The server of the embodiment of the present invention can enable the management device to generate second indication information for adjusting to an energy-saving operation state according to the first indication information by sending first indication information indicating that the power supply is abnormal to the management device when the power supply of the server is abnormal, so that the operation state of the server is adjusted according to the abnormal situation of the power supply. The solution of the present invention solves the problem in the prior art that when the server has a fault such as unstable power supply voltage, the operation state of the server cannot be adjusted according to the abnormal state of the server power supply, and maintaining the current operation state is likely to cause server downtime and business interruption.

[0222] like Fig.11 As shown, a management device 1100 according to an embodiment of the present invention includes a processor 1110 and a transceiver 1120, wherein:

[0223] The transceiver is used to receive first indication information sent by the server, where the first indication information is used to indicate that an abnormality occurs in the power supply of the server;

[0224] The processor is used to adjust resource allocation to the server according to the first indication information, and generate second indication information for instructing the server to adjust to an energy-saving operation state;

[0225] The transceiver is further configured to send the second indication information to the server.

[0226] The management device of the embodiment of the present invention adjusts the allocation of resources of the server according to the first indication information, and generates second indication information for instructing the server to adjust its status. The solution of the present invention can adjust the resource allocation of the server with abnormal power supply, so as to avoid the problem that when the server has a fault such as unstable power supply voltage, the operating status of the server cannot be adjusted according to the abnormal status of the server power supply, and maintaining the current operating status easily leads to server downtime and business interruption.

[0227] A terminal device according to another embodiment of the present invention, such as Fig.12 As shown, it includes a transceiver 1210, a processor 1200, a memory 1220, and a program or instruction stored in the memory 1220 and executable on the processor 1200; when the processor 1200 executes the program or instruction, the above-mentioned method for adjusting the running state is implemented.

[0228] The transceiver 1210 is used to receive and send data under the control of the processor 1200 .

[0229] Among them, Fig.12 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1200 and various circuits of memory represented by memory 1220 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1210 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 1230 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.

[0230] The processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 can store data used by the processor 1200 when performing operations.

[0231] A readable storage medium according to an embodiment of the present invention stores a program or instruction thereon. When the program or instruction is executed by a processor, the steps in the operating state adjustment method as described above are implemented and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0232] The processor is the processor in the terminal device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0233] It should be further explained that the terminals described in this specification include but are not limited to smart phones, tablet computers, etc., and many of the functional components described are called modules in order to more particularly emphasize the independence of their implementation methods.

[0234] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.

[0235] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.

[0236] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.

[0237] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present invention will be perfect and complete, and the scope of the present invention will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values ​​includes the upper and lower limits of that range and any subranges therebetween.

[0238] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for adjusting a running state, applied to a server, characterized in that: include: When the power supply of the server is abnormal, sending first indication information indicating that the power supply of the server is abnormal to the management device; receiving second indication information fed back by the management device according to the first indication information, where the second indication information is used to instruct to adjust the running state of the server; According to the second indication information, the server is adjusted to an energy-saving operation state.

2. The operating state adjustment method according to claim 1, characterized in that: Before sending the first indication information to the management device, the method includes: Collecting a power supply voltage value of the server; When the power supply voltage value is not within a preset range, it is determined that an abnormality occurs in the power supply of the server.

3. The operating state adjustment method according to claim 1, characterized in that: Before sending the first indication information to the management device, the method includes: Determining, based on the received alarm information, that the power supply is abnormal; The alarm information is received when the power supply voltage value of the server is not within a preset range.

4. The operating state adjustment method according to claim 1, characterized in that: The first indication information is used to indicate one of the following: The power supply voltage value of the server is greater than a first preset value; The power supply voltage value is less than the second preset value and greater than the third preset value; The power supply voltage value is less than the third preset value; The first preset value is greater than the second preset value and the third preset value.

5. The operating state adjustment method according to claim 1, characterized in that: The first indication information is used to indicate that the power supply voltage value is less than a second preset value and greater than a third preset value, and the second indication information is used to indicate at least one of the following: The central processing unit of the server turns on the energy efficiency state; The central processing unit of the server reduces the operating frequency; The server reduces the fan speed; The server reduces the power demand of the entire machine.

6. The operating state adjustment method according to claim 1, characterized in that: The first indication information is used to indicate that the power supply voltage value is less than a third preset value, and the second indication information is used to indicate at least one of the following: The central processing unit of the server enters a dormant state; The server reduces the fan speed; The server reduces the power demand of the entire machine.

7. The operating state adjustment method according to claim 1, characterized in that: The first indication information is used to indicate that the power supply voltage value is less than a second preset value and greater than a third preset value, and the second indication information is used to indicate: adjusting the server to an energy efficient state; The adjusting the server to an energy efficiency state includes at least one of the following: The central processing unit of the server turns on the energy efficiency state; The central processing unit of the server reduces the operating frequency; The server reduces the fan speed; The server reduces the power demand of the entire machine.

8. The operating state adjustment method according to claim 1, characterized in that: The first indication information is used to indicate that the power supply voltage value is less than a third preset value, and the second indication information is used to indicate: Adjusting the server to a dormant state; The step of adjusting the server to a dormant state comprises at least one of the following: The central processing unit of the server enters a dormant state; The server reduces the fan speed; The server reduces the power demand of the entire machine.

9. A method for adjusting the operation status, applied to a management device, characterized in that: include: Receiving first indication information sent by a server, where the first indication information is used to indicate that an abnormality occurs in a power supply of the server; According to the first indication information, adjusting resource allocation to the server, and generating second indication information for instructing the server to adjust to an energy-saving operation state; The second indication information is sent to the server.

10. The operating state adjustment method according to claim 9, characterized in that: The first indication information is used to indicate one of the following: The power supply voltage value is greater than a first preset value; The power supply voltage value is less than the second preset value and greater than the third preset value; The power supply voltage value is less than the third preset value; The first preset value is greater than the second preset value and the third preset value.

11. The operating state adjustment method according to claim 10, characterized in that: The adjusting resource allocation to the server according to the first indication information includes: When the power supply voltage value is less than the second preset value and greater than the third preset value, no new service is allocated to the server, and the second indication information for adjusting the server to an energy-efficient state is generated.

12. The operating state adjustment method according to claim 10, characterized in that: The adjusting resource allocation to the server according to the first indication information includes: When the power supply voltage value is less than the third preset value, the service on the server is allocated to a second server, and the second indication information for adjusting the server to a dormant state is generated.

13. The operating state adjustment method according to claim 10, characterized in that: The second indication information is used to indicate at least one of the following: The central processing unit of the server turns on the energy efficiency state; Reducing the operating frequency of the central processing unit; The central processing unit of the server enters a dormant state; reducing a fan speed of the server; The overall power requirement of the server is reduced.

14. A running state adjustment device, applied to a server, characterized in that: include: A first sending module, when the power supply of the server is abnormal, sends first indication information for indicating that the power supply of the server is abnormal to the management device; A first receiving module, configured to receive second indication information fed back by the management device according to the first indication information, wherein the second indication information is used to instruct to adjust the running state of the server; The first adjustment module is used to adjust the server to an energy-saving operation state according to the second indication information.

15. A running state adjustment device, applied to a management device, characterized in that: include: A second receiving module, used for receiving first indication information sent by a server, where the first indication information is used for indicating that an abnormality occurs in a power supply of the server; A second adjustment module, configured to adjust resource allocation to the server according to the first indication information, and generate second indication information for instructing the server to adjust to an energy-saving operation state; The second sending module is used to send the second indication information to the server.

16. A server, characterized in that: include: transceivers and processors; The transceiver is used for sending first indication information indicating that the power supply of the server is abnormal to the management device when the power supply of the server is abnormal; receiving second indication information fed back by the management device according to the first indication information, where the second indication information is used to instruct to adjust the running state of the server; The processor is used for adjusting the server to an energy-saving operation state according to the second indication information.

17. A device, characterized in that include: transceivers and processors; The transceiver is used to receive first indication information sent by the server, where the first indication information is used to indicate that an abnormality occurs in the power supply of the server; The processor is used to adjust resource allocation to the server according to the first indication information, and generate second indication information for instructing the server to adjust to an energy-saving operation state; The transceiver is further configured to send the second indication information to the server.

18. A terminal device, comprising: A transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; characterized in that when the processor executes the program or instruction, the operating status adjustment method as described in any one of claims 1 to 8 is implemented; or, the operating status adjustment method as described in any one of claims 9 to 13 is implemented.

19. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by the processor, the steps in the operating status adjustment method as described in any one of claims 1 to 8 are implemented; or the steps in the operating status adjustment method as described in any one of claims 9 to 13 are implemented.