Server status management method, device, system and computer readable medium

By starting the power self-test mode in the server, collecting power status information and dynamically adjusting the status, the problem that the server cannot be automatically cancelled after entering the maintenance status is solved, and the operation and maintenance efficiency is improved.

CN114238025BActive Publication Date: 2025-02-28CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111568073.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2025-02-28
Estimated Expiration
2041-12-21

AI Technical Summary

Technical Problem

The existing technology cannot automatically cancel the server into the maintenance state, resulting in a decrease in operation and maintenance efficiency and requires manual on-site operation.

Method used

By starting the power self-test mode, collecting the server's power status information and dynamically adjusting the server's status according to the information, realizing the function of automatically canceling the maintenance status.

Benefits of technology

Improve operation and maintenance efficiency and avoid normal use impacts caused by inability to adjust the server status in time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The present application belongs to the field of cloud computing technology, and specifically relates to a server status management method, device, system and computer-readable medium. The method includes: obtaining the power status of the server, the power status includes a normal state and an abnormal state; when the power status is an abnormal state, the server enters a maintenance state; starting the power self-check mode to collect the power status information of the server, and dynamically adjusting the server status according to the power status information. In this way, when the power status is an abnormal state, the power status information of the server is collected by starting the power self-check mode, and the server status is dynamically adjusted according to the power status information, so that when the power status changes, the server status can be adjusted in time, which effectively solves the problem that the server cannot be automatically modified after automatically changing to the maintenance state and can only rely on manual on-site operation to cancel the maintenance state, thereby effectively improving the operation and maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of cloud computing technology, and specifically relates to a server status management method, device, system and computer-readable medium. Background Art

[0002] Cloud computing realizes the pooling of hardware resources, providing computing resources, storage resources, and network resources to users in the form of resource pools, and integrating resources into virtual machines for users to use. As the de facto standard for cloud computing, OpenStack has been widely used. Ironic, as a bare metal service in OpenStack, is used to register, manage, and deploy bare metal nodes, and manage the power on and off of bare metal nodes and the boot device through IPMI.

[0003] The server includes a physical server, where a bare metal server is used as an example. Due to problems with the physical server itself or the switch, the IPMI access of some physical servers may occasionally experience increased latency or connection failure, which will result in failure to obtain the power status of the Ironic node. Although the power supply is not faulty at this time, Ironic will still automatically set the corresponding Ironic node to the maintenance state. Even if the power status can be obtained next time, Ironic will not cancel the maintenance state of the Ironic node. That is, once Ironic sets the corresponding Ironic node to the maintenance state, the Ironic node will remain in the maintenance state, thus affecting the normal use of the bare metal server.

[0004] Currently, it is not possible to cancel the maintenance status through automated means. It can only be canceled by manual on-site operations, which will greatly reduce the operation and maintenance efficiency and affect the normal use of bare metal servers.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of this application is to provide a server status management method, device, system and computer-readable medium, which to a certain extent effectively solves the problem that after the server enters the maintenance state, it cannot be automatically modified and can only rely on manual on-site operation to cancel the maintenance state, thereby effectively improving the operation and maintenance efficiency.

[0007] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0008] According to one aspect of an embodiment of the present application, a state management method for a server is provided, the method comprising:

[0009] Acquire the power status of the server, where the power status includes a normal status and an abnormal status;

[0010] When the power supply state is abnormal, the server enters a maintenance state;

[0011] A power self-check mode is started to collect power status information of the server, and the status of the server is dynamically adjusted according to the power status information.

[0012] According to one aspect of an embodiment of the present application, a state management device for a server is provided, the device comprising:

[0013] An acquisition module, used to acquire the power status of the server, wherein the power status includes a normal status and an abnormal status;

[0014] A setting module, used for causing the server to enter a maintenance state when the power supply state is abnormal;

[0015] The adjustment module is used to start a power self-check mode to collect power status information of the server, and dynamically adjust the status of the server according to the power status information.

[0016] In some embodiments of the present application, based on the above technical solution, the adjustment module is also used to set the initial value of the power state and start a time period timer; after a time period, re-acquire the power state information of the server; if the power state is normal, cancel the maintenance state of the server.

[0017] In some embodiments of the present application, based on the above technical solution, the adjustment module is also used to, within a preset time period, if the power state is always in an abnormal state, then on the basis of the initial value of the power state, a preset single penalty value is accumulated once every time period to obtain a power state value, wherein the single penalty value is used to adjust the length of the power state detection time; and based on the power state value, determine whether to suspend the power self-test mode.

[0018] In some embodiments of the present application, based on the above technical solution, the adjustment module is also used to suspend the power self-test mode to stop detecting the power status if the accumulated power status value is greater than a preset stop-detection threshold; when the power self-test mode is suspended, the power status value is attenuated according to a preset attenuation coefficient every time a time period passes until the attenuated power status value is less than a preset re-detection threshold, and then the power status continues to be detected.

[0019] In some embodiments of the present application, based on the above technical solution, the adjustment module is also used to cancel the maintenance state of the server if it is detected that the power state is normal within a preset time period.

[0020] In some embodiments of the present application, based on the above technical solution, the adjustment module is also used to exit the power self-test mode if the detection time of the time period timer exceeds a preset time period and the power state is still in an abnormal state.

[0021] In some embodiments of the present application, based on the above technical solution, the adjustment module is also used to, when exiting the power self-check mode, simultaneously issue an alarm message to remind manual maintenance processing.

[0022] According to one aspect of an embodiment of the present application, a power status management system for a server is provided, the system comprising: a server, a processing module for querying the power status of the server; and a power status management module for executing the server status management method as described above.

[0023] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the server status management method in the above technical solution is implemented.

[0024] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a state management method of a server as in the above technical solution by executing the executable instructions.

[0025] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the server status management method in the above technical solution.

[0026] In the technical solution provided in the embodiment of the present application, when the power status is abnormal, the power self-check mode is started to collect status information of the power status, and the status of the server is dynamically adjusted according to the status information, so that when the power status changes, the status of the server can be adjusted in time, avoiding affecting the normal use of the server. To a certain extent, it effectively solves the problem that the server cannot be automatically modified after entering the maintenance status and can only rely on manual on-site operation to cancel the maintenance status, thereby effectively improving the operation and maintenance efficiency.

[0027] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 An exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0030] Figure 2 A flow chart of the steps of a server status management method in one embodiment of the present application is shown.

[0031] Figure 3 The schematic diagram shows the steps of starting the power self-check mode to collect the power status information of the server and dynamically adjusting the status of the server according to the power status information in one embodiment of the present application.

[0032] Figure 4 The figure shows an overall flow chart of a method for managing the status of a server in one embodiment of the present application.

[0033] Figure 5 The structural block diagram of the server status management device provided in an embodiment of the present application is schematically shown.

[0034] Figure 6 The structure block diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0035] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0036] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0037] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0038] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0039] Figure 1 An exemplary system architecture block diagram applying the technical solution of the present application is schematically shown.

[0040] like Figure 1 As shown, the system architecture may include a server 101, a processing module 102 and a power status management module 103, wherein the server takes a bare metal server (BM Server) as an example, which is the object of power status management. If the power status acquisition fails, it enters maintenance mode through the API.

[0041] The processing module 102 is also called Ironic. Ironic is a bare metal management platform that comes with the system and is composed of an API, a conductor, and a DB. Ironic sends a request to the conductor through the API, and the conductor queries the power status of the Ironic node through the IPMI.

[0042] The power status management module 103 includes: a data acquisition module, a policy management module, and a status operation module, wherein the data acquisition module is used to collect data on the power status, and is also used to preset parameters representing the power status, such as the power initial status value, a single penalty value, a stop inspection threshold, a re-inspection threshold, a time period, and an attenuation coefficient. After the power status abnormality is detected for the first time, the self-inspection mechanism is started, that is, the power self-inspection mode is started, and the corresponding data is sent to the policy management module.

[0043] The strategy module is used to process the information transmitted by the data acquisition module. After the self-check mechanism is triggered, it starts to work and enters the self-check mechanism. The initial value of the power state is set to 0, and the time cycle timer is started. After a time cycle t, if the power state self-check is still abnormal, that is, the power state cannot be obtained in the abnormal state, then a single penalty value is accumulated on the basis of the initial value of the power state. If the power state has been in an abnormal state for N time cycles, it is necessary to continue to accumulate a single penalty value. After N time cycles, if the power state value obtained is greater than the stop detection threshold, the power detection is temporarily stopped. At this time, the power state value is adjusted. After each time cycle, the power state value is attenuated according to the preset attenuation coefficient until the power state value is attenuated to less than the re-check threshold, and then the power state is re-detected.

[0044] The status operation module is used to respond to the policy management module. When the power status is detected to be normal, that is, IPMI can obtain the power status, it can exit the self-check mechanism, cancel the maintenance status through the API, and resume normal operation; if the power status is detected to be normal within N time periods, the status operation module cancels the maintenance status through the API, and the server can resume normal operation. After M time periods, where M>N, the power status self-check is always in an abnormal state, and an alarm message is issued to remind maintenance personnel to go to the site to review the power status. From the above, it can be seen that the power status management module is used to execute the following server status management method.

[0045] In this way, the power status management module is built on top of Ironic, and the status operation module triggers Ironic's API to call IPMI for each automatic detection, as well as the startup and cancellation of the bare metal server maintenance status. The power status self-detection mechanism is used to automatically detect the power status of physical nodes that occasionally enter the maintenance state, and automatically cancel the maintenance state, thereby reducing the impact on the normal operation of the server.

[0046] The following is a detailed description of the server status management method, device, system and computer-readable medium provided by the present application in conjunction with specific implementation methods.

[0047] See also Figure 2 , Figure 2 The present invention shows a flow chart of the steps of a server status management method in an embodiment of the present invention. The server status management method can be executed by a power status management module, and the server status management method can mainly include the following steps S201 to S203.

[0048] Step S201, obtain the power status of the server, which includes normal status and abnormal status. Ironic in the server's status management system sends a request to conductor through an API, and conductor queries the power status of the Ironic node through IPMI, thereby obtaining the power status. It should be noted that the power status is a normal state, which means that the power status detection is successful, and the power status is an abnormal state, which means that the power status detection fails.

[0049] Step S202: When the power supply status is abnormal, the server enters a maintenance status.

[0050] When the power status is abnormal, Bare Metal automatically changes the node status of the server to maintenance status, so that the server automatically enters maintenance status.

[0051] Step S203: start the power self-check mode to collect the power status information of the server, and dynamically adjust the status of the server according to the power status information.

[0052] When the power status detection fails, that is, the power status is abnormal, the power status self-check mechanism is started to collect the power status information of the server, and dynamically adjust the server status according to the power status information. In this way, the power status information can be automatically collected within a certain time period, so as to dynamically adjust the server status. When the power status changes, the server status can be adjusted in time, thereby effectively solving the problem that the server cannot be automatically modified after entering the maintenance state to a certain extent.

[0053] In the technical solution provided in the embodiment of the present application, when the power status is abnormal, the power self-check mode is started to collect status information of the power status, and the status of the server is dynamically adjusted according to the status information, so that when the power status changes, the status of the server can be adjusted in time, avoiding affecting the normal use of the server. To a certain extent, it effectively solves the problem that the server cannot be automatically modified after entering the maintenance status and can only rely on manual on-site operation to cancel the maintenance status, thereby effectively improving the operation and maintenance efficiency.

[0054] In one embodiment of the present application, see Figure 3 , Figure 3 The schematic diagram shows the steps of starting the power self-check mode to collect the power status information of the server and dynamically adjusting the state of the server according to the power status information in one embodiment of the present application. Starting the power self-check mode to collect the power status information of the server and dynamically adjusting the state of the server according to the power status information can mainly include the following steps S301 to S303.

[0055] Step S301, setting the initial value of the power state and starting the time cycle timer.

[0056] The initial value of the power state is set to 0, and a time cycle timer is started for timing to determine when to enter the power self-check mechanism or when the power state detection needs to be suspended.

[0057] Step S302: after a time period has passed, reacquire the power status information of the server.

[0058] If a time period is set to 5s, a time period means that after the power status is determined to be abnormal, 5s later, the power status information of the server is automatically obtained again to facilitate subsequent adjustment of the server status.

[0059] Step S303: If the power status is normal, cancel the maintenance status of the server.

[0060] If the power status is re-checked after a period of time and is normal, the server status setting is adjusted, that is, the maintenance status of the server is canceled so that the server enters a normal working state, thereby reducing the impact on the server.

[0061] In this way, after a period of time, the power status information is re-acquired, which is conducive to dynamically adjusting the server status according to the power status information, so that when the power status changes, the server status can be adjusted in time to avoid affecting the normal use of the server. To a certain extent, it effectively solves the problem that the server cannot be automatically modified after entering the maintenance state and can only rely on manual on-site operation to cancel the maintenance state. In addition, by automatically collecting the server power status information within a certain period of time, the power status re-detection is dynamically triggered, so that the power status can be restored to normal as soon as possible, ensuring the reliability of the system.

[0062] In one embodiment of the present application, after the step of reacquiring the power status information of the server after a time period, the method further includes:

[0063] If the power state is always abnormal within a preset time period, a preset single penalty value is accumulated once every time period based on the initial value of the power state to obtain a power state value, wherein the single penalty value is used to adjust the length of the power state detection time;

[0064] Determines whether to suspend the power self-test mode according to the power status value.

[0065] If the preset time period is 10 time periods, within the preset time period means that as long as within the 10 time periods, if the power status is always in an abnormal state, the power status value is adjusted continuously, and each time the power status is detected as an abnormal state, the preset single penalty value is accumulated on the basis of the previous power status value to obtain the power status value, thereby determining whether to suspend the power self-test mode based on the size of the power status value.

[0066] In this way, within the preset time period, if the power status is always in an abnormal state, a single penalty value is accumulated every time period to obtain the power status value each time, and then according to the size of the power status value, it is determined whether to suspend the power self-test mode, thereby avoiding the impact of frequently starting the power self-test mode.

[0067] In one embodiment of the present application, determining whether to suspend the power self-test mode according to the power state value includes:

[0068] If the accumulated power status value is greater than the preset stop detection threshold, the power self-detection mode is suspended to stop detecting the power status;

[0069] When the power self-test mode is suspended, the power status value is attenuated according to a preset attenuation coefficient every time a time period passes until the attenuated power status value is less than a preset retest threshold, and then the power status is continuously tested.

[0070] By setting different power state single penalty values ​​and attenuation coefficients, the power detection time can be dynamically adjusted to meet the needs of power detection intervals in different situations and scenarios.

[0071] In this way, when the accumulated power status value is greater than the preset stop detection threshold, the power parameter detection is stopped. After the power self-detection mode is paused, the power status value is attenuated according to the preset attenuation coefficient to avoid power status abnormalities caused by accidental factors, so as to ensure the reliability of detection.

[0072] In one embodiment of the present application, after the step of reacquiring the power status information of the server after a time period, the method further includes:

[0073] Within a preset time period, if it is detected that the power supply status is normal, the maintenance status of the server is canceled.

[0074] In this way, by automatically collecting server power status information within a certain period of time, the power status re-detection is dynamically triggered, so that the power status can be restored to normal as soon as possible to ensure the reliability of the system. After detecting that the server power status is normal, the server maintenance status can be automatically canceled through status operations to avoid affecting the normal operation of the server.

[0075] In one embodiment of the present application, the method further includes:

[0076] If the detection time of the time period timer exceeds the preset time period and the power state is still in an abnormal state, the power self-test mode is exited.

[0077] In this way, when the power status is still not detected successfully after exceeding the preset time period, it indicates that there is a high probability that a power failure has occurred, rather than the power status being abnormal due to accidental factors. At this time, the system exits the power self-test mode, and the server status remains in maintenance status.

[0078] In one embodiment of the present application, the method further includes:

[0079] When the power self-check mode is exited, an alarm message is issued to remind manual maintenance.

[0080] In this way, after exiting the power self-check mode, an alarm message is issued to remind manual maintenance processing. The combination of automatic mode and manual mode is conducive to timely troubleshooting, thereby effectively improving operation and maintenance efficiency.

[0081] See also Figure 4 , Figure 4 The overall flow chart of the state management method of the server in one embodiment of the present application is shown. First, the power state of the server is queried through ipmi. When the power state is in a normal state, no operation is required. When the power state is in an abnormal state, the state of the server is set to a maintenance state, and then the self-check is triggered to re-check the power state. After the self-check mechanism is triggered, it starts to work and enters the self-check mechanism. If the power state is in a normal state when the power state is re-checked, the maintenance state is canceled; if the power state is in an abnormal state after re-checking, the initial value of the power state is set to 0, and the time cycle timer is started. After a time cycle t, if the power state self-check is still in an abnormal state, at this time, a single penalty value is accumulated on the basis of the initial value of the power state. If the power state is always in an abnormal state within N time cycles, it is necessary to keep accumulating a single penalty value. After N time cycles, for example, M cycles, the power self-check mode is exited, and an alarm message is issued at the same time to remind manual maintenance processing.

[0082] To facilitate understanding of the technical solution of the present application, an example is given below. In this self-check system, the power status value parameters are globally set as follows: the initial value of the power status value is 0, the single penalty value is 100, the stop check threshold is set to 170, the re-check threshold is set to 30, a time period is set to 5 seconds, the maximum detection time is 10 time periods, and the attenuation coefficient is half of the power status value. When the delay of IPMI access to the bare metal server increases, Ironic controls the physical server to enter the maintenance state through the API. At this time, the power state value is the initial value plus the single penalty value, that is, the power state value is 100. After 5 seconds in the first cycle, if the power state still fails to detect, the penalty value continues to be accumulated to 150. After the second cycle, if the power state is still not normal, the accumulated penalty value is 175. Since the power state value is greater than the preset stop detection threshold of 170, the power automatic detection is stopped at this time, but the power state value continues to decrease with the attenuation function until the power state value is less than the re-check threshold of 30 after another 6 cycles. At this time, the power supply detection continues. If the power state is normal, the self-test is exited, otherwise the next cycle of detection is continued. When the power state is still not successfully detected in the 10th cycle, it indicates that there is a high probability of a power failure. The system exits the self-test and remains in the maintenance state. At the same time, an alarm is issued to remind the maintenance personnel to conduct on-site detection. It should be noted that the above data is only for the convenience of illustration and does not represent the actual data.

[0083] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0084] The following introduces an apparatus embodiment of the present application, which can be used to execute the server status management method in the above-mentioned embodiment of the present application. Figure 5 The structure block diagram of the state management device of the server provided in the embodiment of the present application is schematically shown. Figure 5 As shown, the server status management device 500 includes:

[0085] The acquisition module 501 is used to acquire the power status of the server, where the power status includes a normal status and an abnormal status;

[0086] A setting module 502 is used to enable the server to enter a maintenance state when the power supply state is abnormal;

[0087] The adjustment module 503 is used to start the power self-check mode to collect the power status information of the server, and dynamically adjust the status of the server according to the power status information.

[0088] In some embodiments of the present application, based on the above technical solution, the adjustment module 503 is also used to set the initial value of the power state and start a time period timer; after a time period, re-acquire the power state information of the server; if the power state is normal, cancel the maintenance state of the server.

[0089] In some embodiments of the present application, based on the above technical solution, the adjustment module 503 is also used to, within a preset time period, if the power state is always in an abnormal state, then on the basis of the initial value of the power state, a preset single penalty value is accumulated once every time period to obtain a power state value, wherein the single penalty value is used to adjust the length of the power state detection time; and according to the power state value, determine whether to suspend the power self-test mode.

[0090] In some embodiments of the present application, based on the above technical solution, the adjustment module 503 is also used to suspend the power self-test mode to stop detecting the power status if the accumulated power status value is greater than a preset stop-detection threshold; when the power self-test mode is suspended, the power status value is attenuated according to a preset attenuation coefficient after each time period until the attenuated power status value is less than the preset re-detection threshold, and then the power status continues to be detected.

[0091] In some embodiments of the present application, based on the above technical solution, the adjustment module 503 is also used to cancel the maintenance state of the server if it is detected that the power state is normal within a preset time period.

[0092] In some embodiments of the present application, based on the above technical solution, the adjustment module 503 is also used to exit the power self-check mode if the detection time of the time period timer exceeds the preset time period and the power state is still in an abnormal state.

[0093] In some embodiments of the present application, based on the above technical solution, the adjustment module 503 is also used to issue an alarm message when exiting the power self-check mode to remind manual maintenance processing.

[0094] The specific details of the server status management device provided in each embodiment of the present application have been described in detail in the corresponding method embodiments and will not be repeated here.

[0095] Figure 6 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0096] It should be noted that Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0097] like Figure 6 As shown, the computer system 600 includes a central processing unit 601 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 602 (ROM) or the program loaded from the storage part 608 to the random access memory 603 (RAM). Various programs and data required for system operation are also stored in the random access memory 603. The central processing unit 601, the read-only memory 602 and the random access memory 603 are connected to each other through a bus 604. An input / output interface 605 (Input / Output interface, i.e., I / O interface) is also connected to the bus 604.

[0098] The following components are connected to the input / output interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a local area network card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read therefrom is installed into the storage section 608 as needed.

[0099] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processor 601, various functions defined in the system of the present application are executed.

[0100] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0103] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0104] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0105] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A server status management method, characterized in that: The method comprises: Acquire the power status of the server, where the power status includes a normal status and an abnormal status; When the power supply state is abnormal, the server enters a maintenance state; Starting a power self-check mode to collect power status information of the server, and dynamically adjusting the status of the server according to the power status information; The power self-check mode is started to collect the power status information of the server and dynamically adjust the status of the server according to the power status information, including: setting the initial value of the power status and starting a time period timer; after a time period, reacquiring the power status information of the server; if the power status is normal, canceling the maintenance status of the server.

2. The server status management method according to claim 1, characterized in that: After the step of reacquiring the power status information of the server after a time period, the method further includes: If the power state is always abnormal within a preset time period, a preset single penalty value is accumulated once every time period based on the initial value of the power state to obtain a power state value, wherein the single penalty value is used to adjust the length of the power state detection time; According to the power state value, it is determined whether to suspend the power self-test mode.

3. The server status management method according to claim 2, characterized in that: The step of determining whether to suspend the power self-test mode according to the power state value includes: If the accumulated power state value is greater than a preset stop detection threshold, the power self-detection mode is suspended to stop detecting the power state; When the power self-check mode is suspended, the power state value is attenuated according to a preset attenuation coefficient every time a time period passes until the attenuated power state value is less than a preset re-check threshold, and then the power state is continuously checked.

4. The server status management method according to claim 1, characterized in that: After the step of reacquiring the power status information of the server after a time period, the method further includes: Within a preset time period, if it is detected that the power supply status is normal, the maintenance status of the server is cancelled.

5. The server status management method according to claim 1, characterized in that: The method further comprises: If the detection time of the time period timer exceeds the preset time period and the power state is still in an abnormal state, the power self-check mode is exited.

6. The server status management method according to claim 5, characterized in that: The method further comprises: When the power self-check mode is exited, an alarm message is issued to remind the user to perform manual maintenance.

7. A server status management device, characterized in that: The device comprises: An acquisition module, used to acquire the power status of the server, wherein the power status includes a normal status and an abnormal status; A setting module, used for causing the server to enter a maintenance state when the power supply state is abnormal; An adjustment module, used for starting a power self-check mode to collect power status information of the server, and dynamically adjusting the status of the server according to the power status information; The power self-check mode is started to collect the power status information of the server and dynamically adjust the status of the server according to the power status information, including: setting the initial value of the power status and starting a time period timer; after a time period, reacquiring the power status information of the server; if the power status is normal, canceling the maintenance status of the server.

8. A power status management system for a server, characterized in that: include: server; A processing module, used for querying the power status of the server; A power status management module, used to execute the server status management method described in any one of claims 1 to 6.

9. A computer-readable medium, characterized in that The computer-readable medium stores a computer program, which, when executed by a processor, implements the server status management method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Service integration settlement system for ground power supply and air conditioner set of civil airport

    CN102622829A

  • Management method and system for whole cabinet sever power source

    CN105425932A