Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a method for configuring an energy-saving mode of a cluster server, which comprises the following steps:
acquiring a power supply energy-saving mode configuration instruction of a server storage device;
executing a power saving mode for a designated server;
and feeding back the current power supply energy-saving mode of the server storage device.
Preferably, delay data preset by a server in the cluster is obtained;
comparing and analyzing the preset delay data of the server with the preset energy-saving mode data according to the acquired preset delay data of the server;
executing a first server energy-saving mode control instruction on a server when preset delay data of the server are lower than first preset energy-saving mode data;
and feeding back the execution condition of the server executing the first server energy-saving mode.
Preferably, the server preset delay data and the preset energy-saving mode data are compared and analyzed according to the acquired server preset delay data;
executing a second server energy-saving mode on the server when the preset delay data of the server is higher than the first preset energy-saving mode data and lower than the second preset energy-saving mode data;
and feeding back the execution condition of the server executing the second server energy-saving mode.
A system for configuring cluster server power saving modes, comprising: the power supply energy-saving mode feedback control system comprises a power supply energy-saving mode configuration module, a power supply energy-saving mode execution module and a power supply energy-saving mode feedback module;
the power supply energy-saving mode configuration module is used for providing an operation port configured for the power supply energy-saving mode of each server in the cluster, so that a user configures the power supply energy-saving mode of the server storage device through the power supply energy-saving mode operation port;
the power supply energy-saving mode execution module is used for executing the corresponding server according to the power supply energy-saving mode of the server storage device configured by the user;
the power supply energy-saving mode feedback module is used for feeding back the execution condition of the power supply energy-saving mode of the server storage device configured by the execution user.
Preferably, the power saving mode configuration module is further configured to configure condition information for the server to enter the power saving mode and configure the wake-up duration.
Preferably, the method further comprises the following steps: the server delay condition acquisition module and the server energy-saving mode analysis module;
the server delay condition acquisition module is used for acquiring delay data preset by the servers in the cluster;
the server energy-saving mode analysis module is used for comparing and analyzing the server preset delay data with the preset energy-saving mode data according to the acquired server preset delay data;
when the server preset delay data are lower than the first preset energy-saving mode data, the server energy-saving mode analysis module sends a control instruction for executing the first server energy-saving mode to the power supply energy-saving mode execution module;
the power supply energy-saving mode execution module is also used for executing a first server energy-saving mode on the server;
the power supply energy-saving mode feedback module is also used for feeding back the execution condition of the server executing the first server energy-saving mode.
Preferably, the server energy-saving mode analysis module is further configured to compare and analyze the server preset delay data with the preset energy-saving mode data according to the acquired server preset delay data;
when the server preset delay data are higher than the first preset energy-saving mode data and lower than the second preset energy-saving mode data, the server energy-saving mode analysis module sends a control instruction for executing a second server energy-saving mode to the power supply energy-saving mode execution module;
the power supply energy-saving mode execution module is also used for executing a second server energy-saving mode on the server;
the power supply energy-saving mode feedback module is also used for feeding back the execution condition of the server executing the second server energy-saving mode.
Preferably, the method further comprises the following steps: a server encoding module;
the server coding module is used for coding each server in the cluster, so that the server in each cluster has a unique code.
A terminal for implementing a method for configuring an energy-saving mode of a cluster server includes:
the memory is used for storing computer programs and realizing a method for configuring the cluster server energy-saving mode;
a processor for executing the computer program and the method for configuring the cluster server energy saving mode to implement the steps of the method for configuring the cluster server energy saving mode.
A storage medium having a computer program stored thereon for carrying out the method of configuring a cluster server power saving mode, the computer program being executable by a processor to perform the steps of the method of configuring a cluster server power saving mode.
According to the technical scheme, the invention has the following advantages:
and a user can configure the power supply energy-saving mode of each server of the cluster based on the use requirement through the operation port configured in the power supply energy-saving mode of the server. And the power supply energy-saving mode of the current server meets the actual use requirement. Server latency conditions can be accommodated. The power supply energy-saving mode of one server in the cluster can be set independently, and the power supply energy-saving mode of one more server in the cluster can also be set uniformly to meet the needs of the cluster. And energy-saving mode conditions can be preset, and the system can automatically match the corresponding power supply energy-saving mode according to the preset conditions.
Detailed Description
The invention provides a method for configuring an energy-saving mode of a cluster server, which comprises the following steps of:
s1, acquiring a power supply energy-saving mode configuration instruction of the server storage device;
typically the server is operating in a configuration with a power saving mode. Such as a period of time when the server is not operating, a sleep mode, or a standby mode, etc. The storage device also enters a sleep mode, or a standby mode, and the reading and writing of data are stopped. For the power saving mode, the system processor records the working state in real time. It may occupy a portion of system resources, and if the delay requirement for the server is high, it is necessary to shut down or reset the power saving mode to realize the current use of the server. The power saving mode configuration instruction of the server storage device is obtained to meet the use requirement of the current server.
S2, executing the power energy-saving mode of the server to the appointed server;
based on the configuration of a plurality of servers and a plurality of servers with different functions in the cluster. The user can individually configure each server based on the needs of the cluster, and can also uniformly configure all the servers of the cluster.
The server storage may include packaging material. The computer-readable medium of data may include computer storage media such as Random Access Memory (RAM), Read Only Memory (ROM), non-volatile random access memory (NVRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, magnetic or optical data storage media, and the like. In some embodiments, an article of manufacture may comprise one or more computer-readable storage media.
In some embodiments, computer-readable storage media may include non-volatile media. The term "non-transitory" as used herein may indicate that the storage medium does not contain a carrier wave or a propagated signal. In some embodiments, a non-transitory storage medium may store data, which may change over time (e.g., in RAM or cache).
And S3, feeding back the power supply energy-saving mode of the current server storage device.
After the cluster servers are configured, the configuration result is fed back to the user, so that the user can know the power supply energy-saving mode of each server in the current cluster.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions of the present invention will be clearly and completely described below with reference to specific embodiments and drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the scope of protection of this patent.
In the embodiment provided by the present invention, as shown in fig. 2, S11 obtains delay data preset by a server in a cluster;
it can be understood that, here, preset delay data for a certain server or certain servers in the cluster are obtained, or current preset delay data of a certain server or certain servers in the cluster are obtained.
S12, comparing and analyzing the server preset delay data with the preset energy-saving mode data according to the acquired server preset delay data;
the analysis is performed based on the preset delay data of the server, if the preset delay requirement of the server is high, the delay of the server needs to be reduced, the processing amount needs to be increased, and the energy-saving mode of the server can be reconfigured.
The preset energy saving mode data is preset by the user or the cluster. The preset energy saving mode data may be, but is not limited to, turning off the energy saving mode; the server storage device can also be configured to enter an energy-saving mode and a time length required to be awakened when the server storage device is in standing or no pressure for a preset time length.
S13, when the server preset delay data is lower than the first preset energy-saving mode data, executing a first server energy-saving mode control instruction on the server;
that is, the cluster requires a higher delay for one or more servers, that is, when a low delay is required, the corresponding server is controlled.
For example, the delay data of a certain current server is required to be lower than 20, the correspondingly set first preset energy-saving mode data is 20, the first server energy-saving mode corresponding to the first preset energy-saving mode data is the energy-saving off mode, or the server storage device is put into the energy-saving mode and awakened for 1 minute when standing for 30 seconds or no pressure is applied.
This configures the energy saving mode of the server based on the above configuration.
S14, feeding back the execution status of the server executing the first server energy saving mode.
The techniques described herein may be implemented in hardware, software, firmware, or any combination thereof. Various features are described as modules, units or components that may be implemented together in an integrated logic device or separately as discrete but interoperable logic devices or other hardware devices. In some cases, various features of an electronic circuit may be implemented as one or more integrated circuit devices, such as an integrated circuit chip or chipset.
In the embodiment provided by the present invention, as shown in fig. 3,
s21, obtaining delay data preset by the servers in the cluster;
s22, comparing and analyzing the server preset delay data with the preset energy-saving mode data according to the acquired server preset delay data;
s23, when the server preset delay data is higher than the first preset energy-saving mode data and lower than the second preset energy-saving mode data, executing a second server energy-saving mode on the server;
the first preset energy saving mode data here is required to be higher than the second preset energy saving mode data.
For example, the server preset delay data corresponding to the first preset energy saving mode data is a threshold range between 20 and 30. The server preset delay data corresponding to the second preset energy saving mode data is a threshold range between 80 and 100.
Similarly, the invention can also set a plurality of preset energy-saving mode data corresponding to a plurality of different server energy-saving modes. With the reduction of the requirement on the energy-saving mode of the server, the energy-saving mode can be improved, and the energy-saving efficiency of the server is realized. This may increase server data throughput, resulting in high latency.
S24, the execution status of the server executing the second server energy saving mode is fed back.
The present invention further provides a system for configuring an energy saving mode of a cluster server, as shown in fig. 4, including: the power supply energy-saving mode feedback device comprises a power supply energy-saving mode configuration module 3, a power supply energy-saving mode execution module 4 and a power supply energy-saving mode feedback module 5;
the power supply energy-saving mode configuration module 3 is used for providing an operation port configured for the power supply energy-saving mode of each server 2 in the cluster, so that a user configures the power supply energy-saving mode of the server storage device through the power supply energy-saving mode operation port; that is, the user can configure the power saving mode of each server in the cluster according to the use requirement and the use environment.
The power supply energy-saving mode execution module 4 is used for executing the power supply energy-saving mode of the storage device of the server 2 configured by the user to the corresponding server;
the power saving mode feedback module 5 is used for feeding back the execution condition of the power saving mode of the storage device of the server 2, which executes the user configuration.
In the invention, EPC (extended Power conditions) extended Power options of a server are energy-saving modes supported by a hard disk, comprise different sleep modes such as Idle _ a, Idle _ b, Idle _ c, Standby _ z and the like, provide different degrees of Power-saving modes for a client, and enter Idle _ a within 1 second when a system is in a standing state or has no pressure; when the idle _ b is started within 2 minutes, the idle _ a wake-up time needs 100ms, and the idle _ b wake-up time needs 400ms, so that a client with a higher delay requirement needs to be adjusted by combining a specific application to meet the requirements of the client on different applications.
Because the hard disk default EPC function is on, the supported sleep modes idle _ a and idle _ b are on by default, and other sleep options are off, the default idle _ a and idle _ b states need to be turned off or the EPC function is directly turned off for the client with higher delay requirement.
If implemented in hardware, the invention relates to an apparatus, which may be, for example, a processor or an integrated circuit device, such as an integrated circuit chip or chipset. Alternatively or additionally, if implemented in software or firmware, the techniques may implement a data storage medium readable at least in part by a computer, comprising instructions that when executed cause a processor to perform one or more of the above-described methods. For example, a computer-readable data storage medium may store instructions that are executed, such as by a processor.
In the embodiment provided by the present invention, the power saving mode configuration module 3 is further configured to configure condition information of the server 2 entering the power saving mode and configure the wake-up duration.
It should be further explained that the system further includes: a server encoding module; the server coding module is used for coding each server in the cluster, so that the server in each cluster has a unique code.
Therefore, the user can conveniently search the cluster server, and each server in the cluster can be configured in a targeted manner.
In the embodiment provided by the present invention, as shown in fig. 5, the system further includes: a server delay condition acquisition module 6 and a server energy-saving mode analysis module 7;
the server delay condition acquisition module 6 is used for acquiring delay data preset by the servers in the cluster; here, the acquisition and retrieval may be performed by server encoding.
The server energy-saving mode analysis module 7 is used for comparing and analyzing the server preset delay data with the preset energy-saving mode data according to the acquired server preset delay data;
when the server preset delay data is lower than the first preset energy-saving mode data, the server energy-saving mode analysis module 7 sends a control instruction for executing the first server energy-saving mode to the power supply energy-saving mode execution module 4;
the power energy saving mode execution module 4 is further configured to execute a first server energy saving mode on the server;
the power saving mode feedback module 5 is further configured to feed back an execution condition of a server executing the first server power saving mode.
The method and apparatus of the present invention may be implemented in a number of ways. For example, the methods and apparatus of the present invention may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustrative purposes only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically indicated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as a program recorded in a recording medium, the program including machine-readable instructions for implementing a method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
In the embodiment provided by the invention, the server energy-saving mode analysis module is further used for comparing and analyzing the server preset delay data with the preset energy-saving mode data according to the acquired server preset delay data; when the server preset delay data are higher than the first preset energy-saving mode data and lower than the second preset energy-saving mode data, the server energy-saving mode analysis module sends a control instruction for executing a second server energy-saving mode to the power supply energy-saving mode execution module; the power supply energy-saving mode execution module is also used for executing a second server energy-saving mode on the server; the power supply energy-saving mode feedback module is also used for feeding back the execution condition of the server executing the second server energy-saving mode.
The invention also provides a terminal for realizing the method for configuring the cluster server energy-saving mode, which comprises the following steps: the memory is used for storing computer programs and realizing a method for configuring the cluster server energy-saving mode; a processor for executing the computer program and the method for configuring the cluster server energy saving mode to implement the steps of the method for configuring the cluster server energy saving mode.
The terminal may include additional hardware components, such as one or more processors and the like. Furthermore, the unit, module, component, application, and component devices, systems, described herein and/or mobile devices may include hardware and software, may also include firmware, may perform various operations including those described herein, may be combined or remain separate, and may be stored on one or more storage devices or computer-readable media. And, although described herein as a mobile device, it need not be limited in this regard, such that the mobile device may be a smartphone, tablet, laptop, desktop, etc. advantage.
And the user connects the cluster through the terminal to configure each server in the cluster.
The present invention also provides a storage medium having a computer program stored thereon for performing the method of configuring an energy-saving mode of a cluster server, the computer program being executable by a processor to perform the steps of the method of configuring an energy-saving mode of a cluster server.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.