CN106331036B - Server control method and device - Google Patents

Server control method and device Download PDF

Info

Publication number
CN106331036B
CN106331036B CN201510375375.0A CN201510375375A CN106331036B CN 106331036 B CN106331036 B CN 106331036B CN 201510375375 A CN201510375375 A CN 201510375375A CN 106331036 B CN106331036 B CN 106331036B
Authority
CN
China
Prior art keywords
server
memory data
data
reading
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510375375.0A
Other languages
Chinese (zh)
Other versions
CN106331036A (en
Inventor
杨立中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510375375.0A priority Critical patent/CN106331036B/en
Publication of CN106331036A publication Critical patent/CN106331036A/en
Application granted granted Critical
Publication of CN106331036B publication Critical patent/CN106331036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a server control method and a server control device, which solve the technical problem of electric energy waste caused by no-load operation of a server. The method comprises the following steps: determining that the loading number of a first server in the system is smaller than a preset number; reading the memory data of the first server, and performing distributed storage on the memory data; controlling to shut down the first server.

Description

Server control method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a server control method and apparatus.
Background
In the prior art, a plurality of servers are often placed in one cabinet to form a cluster, so that one cabinet is equivalent to one system, and unified management in the system can be realized.
Currently, due to the variation of the overall load of the cabinet with the access volume, the cabinet may exhibit large dynamic fluctuations in 24 hours per day, and at high load, all the servers in the cabinet may be required to run at full speed, while at low load, the utilization rate of the servers in the cabinet may be low, such as at low load, some servers may be loaded in a small amount, or even idle. However, no matter the number of the servers with loads is large or small, the servers are always in an operating state, and the servers are in idle running for a long time, so that more electric energy resources are wasted, the expense is increased, certain loss is brought to the servers due to the increase of the service time of the servers, and the service life of the servers is shortened.
Disclosure of Invention
The embodiment of the invention provides a server control method and device, which are used for solving the technical problem of electric energy waste caused by no-load operation of a server.
In a first aspect, a server control method is provided, including:
determining that the loading number of a first server in the system is smaller than a preset number;
reading the memory data of the first server, and performing distributed storage on the memory data;
controlling to shut down the first server.
Optionally, the number of the loads of the first server is greater than 0;
after determining that the loaded number of the first server in the system is less than the preset number, the method further comprises the following steps:
notifying the first server to transfer the load of the first server to a second server in the system; and after receiving the load of the first server, the second server has the load quantity less than or equal to the specified maximum load quantity of the second server.
Optionally, before controlling to close the first server, the method further includes:
writing reboot information of the first server to the first server; the restart information is used for the first server to restore a state before shutdown.
Optionally, reading the memory data of the first server includes:
and reading the memory data in a DMA mode.
Optionally, after controlling to close the first server, the method further includes:
turning on the first server in an off state;
transmitting the stored memory data of the first server to the first server; the memory data is used for the first server to restore the state before closing.
Optionally, before transmitting the stored memory data of the first server to the first server, the method further includes:
and receiving a request message which is sent by the first server and used for requesting the memory data.
Optionally, the transmitting the stored memory data of the first server to the first server includes:
and transmitting the memory data to the first server in a DMA mode according to the recorded storage address of the memory data.
In a second aspect, there is provided a server control apparatus comprising:
a memory to store instructions;
the processor is used for executing the instruction and determining that the loading number of a first server in the system is less than a preset number; reading the memory data of the first server, and performing distributed storage on the memory data; controlling to shut down the first server.
Optionally, the number of the loads of the first server is greater than 0; the processor is further configured to:
after determining that the loading number of a first server in a system is smaller than a preset number, informing the first server to transfer the load of the first server to a second server in the system; and after receiving the load of the first server, the second server has the load quantity less than or equal to the specified maximum load quantity of the second server.
Optionally, the apparatus further comprises a transmitter; the processor is further configured to:
writing, by the transmitter, reboot information of the first server to the first server before controlling to shut down the first server; the restart information is used for the first server to restore a state before shutdown.
Optionally, the processor is configured to:
and reading the memory data in a DMA mode.
Optionally, the apparatus further comprises a transmitter; the processor is further configured to:
after controlling to close the first server, opening the first server in a closed state;
transmitting the stored memory data of the first server to the first server through the transmitter; the memory data is used for the first server to restore the state before closing.
Optionally, the apparatus further comprises a receiver;
the receiver is configured to: before the processor transmits the stored memory data of the first server to the first server through the transmitter, receiving a request message for requesting the memory data, which is sent by the first server.
Optionally, the processor is configured to:
and transmitting the memory data to the first server through the transmitter in a DMA mode according to the recorded storage address of the memory data.
In a third aspect, there is provided a server control apparatus comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining that the loading quantity of a first server in the system is less than a preset quantity;
the reading module is used for reading the memory data of the first server and performing distributed storage on the memory data;
and the control module is used for controlling the first server to be closed.
In the embodiment of the invention, when the loading number of the servers in the system is less than the preset number, the servers can be closed, so that the servers are prevented from no-load running for a long time, the electric energy resource is saved, the expense is reduced, the loss of the servers is reduced due to the reduction of the service time of the servers, and the service life of the servers is prolonged.
And the memory data of the servers are read before the servers are closed, so that the state before the servers are closed can be recovered when the servers are restarted next time, and the memory data are stored in a distributed storage mode after the memory data are read.
Drawings
FIG. 1 is a main flowchart of a server control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a first structure of a server control apparatus according to an embodiment of the present invention;
FIG. 3 is a second structural diagram of a server control device according to an embodiment of the present invention;
fig. 4 is a block diagram of a server control device according to an embodiment of the present invention.
Detailed Description
The system mentioned in the embodiment of the present invention may refer to a server system, for example, a plurality of servers are located in the same cabinet, and then all servers in the cabinet constitute one system. Alternatively, there may be multiple cabinets with one or more servers in each cabinet, which together make up a system, and so on. The embodiments of the present invention are not limited in the definition and scope of the system.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 protection scope of the present invention.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides a server control method, and a flow of the method is described as follows.
Step 101: and determining that the loading number of the first server in the system is less than the preset number.
The system may be monitored, for example, in real time, at regular time or triggered time, to determine information such as the operating status of each node (e.g., server) in the system.
And monitoring to find that the loading number of the first server in the system is less than the preset number. The first server may be any working server in the system, and in addition, at the same time, it may be monitored that the number of the loads of the plurality of servers is less than the preset number, and the processing manner of each server is similar, so that the embodiment of the present invention is exemplified by one server (i.e., the first server).
In the embodiment of the present invention, the number of the loaded servers of the first server is less than the preset number, which may include two cases, where in the first case, the number of the loaded servers of the first server is 0, that is, the first server is unloaded, and in the second case, the number of the loaded servers of the first server is greater than 0, but the number of the loaded servers of the first server is less than the preset number.
Then, if the first server is empty, the subsequent steps can be continued to shut down the first server normally. And if the loading number of the first server is greater than 0, before the first server is closed, the load of the first server needs to be transferred to other servers to ensure the normal operation of the service. The load of the first server is transferred to other servers, which may be performed actively by the system or after receiving the request of the first server.
Optionally, in the embodiment of the present invention, the number of the loads of the first server is greater than 0;
after determining that the loaded number of the first server in the system is less than the preset number, the method further comprises the following steps:
notifying the first server to transfer the load of the first server to a second server in the system; and after the second server receives the load of the first server, the load quantity of the second server is less than or equal to the specified maximum load quantity of the second server.
That is, if the number of the first server is greater than 0, it is necessary that a server in the system can accept the load of the first server to shut down the first server. The second server may be, for example, any working server in the system except the first server, and the second server receives the load of the first server on the premise that the total number of the second servers loaded after the second server receives the load of the first server is less than or equal to the maximum number of the second servers (i.e., the specified maximum number of the second servers), and when the number of the second servers loaded is greater than the specified maximum number of the second servers, the operation of the servers may be problematic.
The above is merely an example of load transfer, that is, the load of the first server is transferred to the second server, and in the actual operation process, there may be no server that can accept the load of the first server in the system, and the load of the first server may be transferred to another plurality of servers, respectively, as long as the total load carrying quantity of the servers that accept the load of the first server is less than the maximum load carrying quantity specified for the servers that accept the load of the first server after accepting the load of the first server.
For example, the system has three servers, namely server 1, server 2 and server 3, and the monitoring determines that the number of the loads of server 1 is 3, the number of the loads of server 2 is 5 and the number of the loads of server 3 is 6. The preset number is 4.
It can be known that the number of the loads of the first server is less than the preset number. Then an attempt may be made to transfer the load of the first server. For example, if the maximum specified number of the server 2 is 8 and the maximum specified number of the server 3 is 8, then all of the 3 loads of the first server may be transferred to the server 2, or two of the loads of the first server may be transferred to the server 3 and the remaining one load may be transferred to the server 2.
For another example, the system has three servers, namely server 1, server 2 and server 3, and the monitoring determines that the number of the loads of server 1 is 2, the number of the loads of server 2 is 4 and the number of the loads of server 3 is 6. The preset number is 4.
It can be known that the number of the loads of the first server is less than the preset number. Then an attempt may be made to transfer the load of the first server. For example, if the maximum number of the specified loads of the server 2 is 8 and the maximum number of the specified loads of the server 3 is 8, then the 2 loads of the first server can be all transferred to the server 2, because the number of the specified loads of the server 2 is small, and the load is light. Or, the 2 loads of the first server may be all transferred to the server 3, so that the server 3 runs fully, and the utilization rate of the server 3 is improved. Alternatively, one of the loads of the first server may be transferred to the server 3, and the remaining one of the loads may be transferred to the server 2, so that the servers share the loads, thereby reducing the load on each server to some extent.
The present invention is not limited with respect to the particular manner of transferring the load, and the manner of selecting the server that receives the load when the transfer is performed.
Step 102: and reading the memory data of the first server, and performing distributed storage on the memory data.
In the embodiment of the present invention, the memory data refers to data stored in a memory, and the data read here may be, for example, all data in the memory of the first server.
That is, the memory data of the first server may be read out first, so that the first server may be restored to the state before shutdown by using the memory data when the first server is restarted next time, which is equivalent to realizing field protection.
Optionally, in the embodiment of the present invention, reading the memory data of the first server includes:
and reading the memory data in a DMA mode.
Optionally, in the embodiment of the present invention, when the Memory data is read, a high-speed reading mode, such as an rock (Remote Direct Memory Access over Converged Ethernet) mode, a DMA (Direct Memory Access) mode, or the like, may be adopted to quickly read the Memory data of the first server.
In the embodiment of the present invention, after the memory data of the first server is read, the read memory data may be stored in a distributed manner. For example, if the capacity of the memory data is 10G, the memory data of 10G may be divided into 10 data blocks in a distributed manner, each data block is 1G (although the memory data may also be unevenly distributed, and the specific distribution manner is not limited in the present invention), and then each data block is stored. Compared with the common storage mode, the distributed storage mode is equivalent to the mode that the original serial storage is changed into the parallel storage, and the data storage efficiency is improved.
Optionally, in this embodiment of the present invention, after performing distributed storage on the memory data, the method further includes:
and recording the storage address of the memory data.
That is, after the memory data is stored in a distributed manner, the storage address of the memory data is recorded so that the memory data can be read when necessary.
Step 103: and controlling to close the first server.
After the memory data of the first server is read, the first server can be closed, and the electric energy resource of the system is saved.
Optionally, in this embodiment of the present invention, before controlling to close the first server, the method further includes:
writing the restart information of the first server into the first server; the restart information is used to restore the state of the first server before shutdown.
Before the first server is closed, the current state information of the first server and the like can be written into the first server as restart information, so that the first server can recover the state before closing by using the restart information when restarting next time.
Optionally, in this embodiment of the present invention, after controlling to close the first server, the method further includes:
opening a first server in a closed state;
transmitting the stored memory data of the first server to the first server; the memory data is used for the first server to restore the state before closing.
For example, the management side may send an instruction to the system, and the system determines to start the first server, or the system may have an excessive number of loads, and the existing server in the running state is not enough to bear all the loads, and the system may determine to start the first server.
Optionally, in this embodiment of the present invention, before transmitting the stored memory data of the first server to the first server, the method further includes:
receiving a request message which is sent by a first server and used for requesting memory data.
That is, after the first server is powered on, the boot state information is detected, and a request message can be sent to apply for restoring the memory data.
Optionally, in this embodiment of the present invention, sending the stored memory data of the first server to the first server includes:
and transmitting the memory data to the first server in a DMA mode according to the recorded memory address of the memory data.
The system can transmit the memory data to the first server in a DMA mode according to the previously recorded memory address of the memory data, and the transmission speed is high. Specifically, the first server may access the memory data in a DMA manner to quickly copy the memory data to the first server.
Optionally, in the embodiment of the present invention, when it is determined that the first server is to be started, the system may read each data block stored in the distributed storage manner according to a storage address of the previously stored memory data, and perform splicing to obtain the original memory data, so that when the first server accesses, the memory data may be directly sent to the first server in a DMA manner, and the first server does not need to perform subsequent self-splicing, thereby reducing a burden of the first server.
Because the distributed storage is adopted, the reading speed is high during reading, and similarly, compared with the existing reading mode, the reading mode corresponding to the distributed storage is equivalent to the mode that the existing serial reading is changed into the parallel reading, so that the reading speed is improved, the starting recovery process of the first server is accelerated, the service quality of a system is improved, the waiting time of a user is reduced, and the user experience is improved.
The numbers before each step in the embodiments of the present invention do not represent the actual execution order of each step, and in practical applications, the steps may be executed in any order.
The apparatus of the present invention is described below with reference to the accompanying drawings.
Referring to fig. 2, based on the same inventive concept, an embodiment of the present invention provides a server control apparatus, which may include a memory 201 and a processor 202. The memory 201 is connected to the processor 202. The device may be a server in the system responsible for tasks such as monitoring and managing the system, or may also be a server outside the system for operations such as monitoring and managing the system, and the like, and the present invention is not limited.
A memory 201 for storing instructions required for the processor 202 to perform tasks;
a processor 202, configured to execute the instructions stored in the memory 201, and determine that the number of the first servers in the system is less than a preset number; reading the memory data of the first server, and performing distributed storage on the memory data; controlling to shut down the first server.
In the embodiment of the present invention, the server control device may store the memory data locally, or may also store the memory data in another storage node, and the present invention is not limited to a specific storage location.
Optionally, in the embodiment of the present invention, the number of the loads of the first server is greater than 0; processor 202 is further configured to:
after the load carrying quantity of a first server in the system is determined to be smaller than the preset quantity, the first server is informed to transfer the load of the first server to a second server in the system; and after the second server receives the load of the first server, the load quantity of the second server is less than or equal to the specified maximum load quantity of the second server.
Optionally, referring to fig. 3, in the embodiment of the present invention, the apparatus further includes a transmitter 203; processor 202 is further configured to:
before controlling to close the first server, writing restart information of the first server into the first server through a transmitter 203; the restart information is used to restore the state of the first server before shutdown.
Optionally, in this embodiment of the present invention, the processor 202 is configured to:
and reading the memory data in a DMA mode.
Optionally, in this embodiment of the present invention, the processor 202 is further configured to:
after controlling to close the first server, opening the first server in a closed state;
transmitting the stored memory data of the first server to the first server through the transmitter 203; the memory data is used for the first server to restore the state before closing.
Optionally, with continued reference to fig. 3, in the embodiment of the present invention, the apparatus further includes a receiver 204;
the receiver 204 is configured to: before the processor 202 transmits the stored memory data of the first server to the first server through the transmitter 203, a request message for requesting the memory data sent by the first server is received.
In an embodiment of the present invention, the transmitter 203 and the receiver 204 may be respectively connected to the processor 202. In addition, the transmitter 203 and the receiver 204 may be the same functional module having functions of transmission and reception, or may be different functional modules.
Optionally, in this embodiment of the present invention, the processor 202 is configured to:
and transmitting the memory data to the first server through the transmitter 203 according to the recorded memory data storage address in a DMA mode.
Referring to fig. 4, based on the same inventive concept, an embodiment of the present invention further provides a server control apparatus, which may include a determining module 401, a reading module 402, and a control module 403.
A determining module 401, configured to determine that the number of the loaded first servers in the system is less than a preset number;
a reading module 402, configured to read memory data of a first server, and perform distributed storage on the memory data;
a control module 403, configured to control to close the first server.
Optionally, in the embodiment of the present invention, the apparatus further includes a notification module;
the loading number of the first server is more than 0; the notification module is used for:
after the determining module 401 determines that the loaded number of the first server in the system is smaller than the preset number, the first server is notified to transfer the load of the first server to a second server in the system; and after the second server receives the load of the first server, the load quantity of the second server is less than or equal to the specified maximum load quantity of the second server.
Optionally, in an embodiment of the present invention, the apparatus further includes a write module;
the write module is to: before the control module 403 controls to close the first server, writing the restart information of the first server into the first server; the restart information is used to restore the state of the first server before shutdown.
Optionally, in this embodiment of the present invention, the reading module 402 is configured to:
and reading the memory data in a DMA mode.
Optionally, in the embodiment of the present invention, the apparatus further includes a transmission module;
the control module 403 is further configured to: after controlling to close the first server, opening the first server in a closed state;
the transmission module is used for: transmitting the stored memory data of the first server to the first server; the memory data is used for the first server to restore the state before closing.
Optionally, in the embodiment of the present invention, the apparatus further includes a receiving module;
the receiving module is used for: before the transmission module transmits the stored memory data of the first server to the first server, a request message sent by the first server for requesting the memory data is received.
Optionally, in the embodiment of the present invention, the transmission module is configured to:
and transmitting the memory data to the first server in a DMA mode according to the recorded memory address of the memory data.
The apparatus in the embodiment of the present invention is an apparatus corresponding to the method, and specific contents such as tasks to be executed by each module and implementation details may refer to the description of the method section.
In the embodiment of the invention, when the loading number of the servers in the system is less than the preset number, the servers can be closed, so that the servers are prevented from no-load running for a long time, the electric energy resource is saved, the expense is reduced, the loss of the servers is reduced due to the reduction of the service time of the servers, and the service life of the servers is prolonged.
And the memory data of the servers are read before the servers are closed, so that the state before the servers are closed can be recovered when the servers are restarted next time, and the memory data are stored in a distributed storage mode after the memory data are read.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Specifically, the computer program instructions corresponding to a server control method in the embodiments of the present application may be stored on a storage medium such as an optical disc, a hard disc, or a usb disk, and when the computer program instructions corresponding to a server control method in the storage medium are read or executed by an electronic device, the method includes the following steps:
determining that the loading number of a first server in the system is smaller than a preset number;
reading the memory data of the first server, and performing distributed storage on the memory data;
controlling to shut down the first server.
Optionally, the number of the loads of the first server is greater than 0;
stored in the storage medium and the steps of: determining that the loaded number of the first server in the system is less than a preset number, wherein after being executed, the corresponding computer instructions further comprise:
notifying the first server to transfer the load of the first server to a second server in the system; and after receiving the load of the first server, the second server has the load quantity less than or equal to the specified maximum load quantity of the second server.
Optionally, the step of storing in the storage medium: controlling the shutdown of the first server, the corresponding computer instructions, before being executed, further comprising:
writing reboot information of the first server to the first server; the restart information is used for the first server to restore a state before shutdown.
Optionally, the step of storing in the storage medium: reading the memory data of the first server, wherein the corresponding computer instructions comprise, in the process of being executed:
and reading the memory data in a DMA mode.
Optionally, the step of storing in the storage medium: controlling the shutdown of the first server, the corresponding computer instructions, after being executed, further comprising:
turning on the first server in an off state;
transmitting the stored memory data of the first server to the first server; the memory data is used for the first server to restore the state before closing.
Optionally, the step of storing in the storage medium: transmitting the stored memory data of the first server to the first server, wherein the corresponding computer instructions, before being executed, further include:
and receiving a request message which is sent by the first server and used for requesting the memory data.
Optionally, the step of storing in the storage medium: transmitting the stored memory data of the first server to the first server, wherein the corresponding computer instructions comprise, in the process of being executed:
and transmitting the memory data to the first server in a DMA mode according to the recorded storage address of the memory data.
The above embodiments are only used to describe the technical solutions of the present application in detail, but the above embodiments are only used to help understanding the method and the core idea of the present invention, and should not be construed as limiting the present invention. Those skilled in the art should also appreciate that they can easily conceive of various changes and substitutions within the technical scope of the present disclosure.

Claims (14)

1. A server control method, comprising:
determining that the loading number of a first server in the system is smaller than a preset number;
reading the memory data of the first server, dividing the memory data into a plurality of data blocks, and storing the plurality of data blocks respectively;
recording the storage address of the data block;
controlling to shut down the first server;
turning on the first server in an off state;
reading the data block according to the storage address;
splicing the data blocks into the memory data;
and transmitting the memory data to the first server, wherein the memory data is used for recovering the state of the first server before closing.
2. The method of claim 1, wherein the first server has a number of payloads greater than 0;
after determining that the loaded number of the first server in the system is less than the preset number, the method further comprises the following steps:
notifying the first server to transfer the load of the first server to a second server in the system; and after receiving the load of the first server, the second server has the load quantity less than or equal to the specified maximum load quantity of the second server.
3. The method of claim 1 or 2, prior to controlling the shutdown of the first server, further comprising:
writing reboot information of the first server to the first server; the restart information is used for the first server to restore a state before shutdown.
4. The method of claim 1 or 2, wherein reading the memory data of the first server comprises:
and reading the memory data in a Direct Memory Access (DMA) mode.
5. The method of claim 1, wherein prior to transmitting the memory data to the first server, further comprising:
and receiving a request message which is sent by the first server and used for requesting the memory data.
6. The method of claim 1, wherein transferring the memory data to the first server comprises:
and transmitting the memory data to the first server in a DMA mode.
7. A server control apparatus, characterized by comprising:
a memory to store instructions;
the processor is used for executing the instruction and determining that the loading number of a first server in the system is less than a preset number; reading the memory data of the first server, dividing the memory data into a plurality of data blocks, and storing the plurality of data blocks respectively; recording the storage address of the data block; controlling to shut down the first server; turning on the first server in an off state; reading the data block according to the storage address; splicing the data blocks into the memory data; and transmitting the memory data to the first server, wherein the memory data is used for recovering the state of the first server before closing.
8. The apparatus of claim 7, wherein the first server has a number of payloads greater than 0; the processor is further configured to:
after determining that the loading number of a first server in a system is smaller than a preset number, informing the first server to transfer the load of the first server to a second server in the system; and after receiving the load of the first server, the second server has the load quantity less than or equal to the specified maximum load quantity of the second server.
9. The apparatus of claim 7 or 8, wherein the apparatus further comprises a transmitter; the processor is further configured to:
writing, by the transmitter, reboot information of the first server to the first server before controlling to shut down the first server; the restart information is used for the first server to restore a state before shutdown.
10. The apparatus of claim 7 or 8, wherein the processor is to:
and reading the memory data in a Direct Memory Access (DMA) mode.
11. The apparatus of claim 7 or 8, wherein the apparatus further comprises a transmitter; the processor is further configured to:
after controlling to close the first server, opening the first server in a closed state;
transmitting the memory data to the first server through the transmitter; the memory data is used for the first server to restore the state before closing.
12. The apparatus of claim 11, wherein the apparatus further comprises a receiver;
the receiver is configured to: before the processor transmits the memory data to the first server through the transmitter, receiving a request message sent by the first server for requesting the memory data.
13. The apparatus of claim 11, wherein the processor is to:
and transmitting the memory data to the first server through the transmitter in a DMA mode.
14. A server control apparatus, characterized by comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining that the loading quantity of a first server in the system is less than a preset quantity;
the reading module is used for reading the memory data of the first server, dividing the memory data into a plurality of data blocks and storing the data blocks respectively;
the recording module is used for recording the storage address of the data block;
the control module is used for controlling the first server to be closed;
the starting module is used for starting the first server in a closed state;
the second reading module is used for reading the data block according to the storage address;
the splicing module is used for splicing the data blocks into the memory data;
and the transmission module is used for transmitting the memory data to the first server, and the memory data is used for recovering the state of the first server before closing.
CN201510375375.0A 2015-06-30 2015-06-30 Server control method and device Active CN106331036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510375375.0A CN106331036B (en) 2015-06-30 2015-06-30 Server control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510375375.0A CN106331036B (en) 2015-06-30 2015-06-30 Server control method and device

Publications (2)

Publication Number Publication Date
CN106331036A CN106331036A (en) 2017-01-11
CN106331036B true CN106331036B (en) 2020-05-26

Family

ID=57722251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510375375.0A Active CN106331036B (en) 2015-06-30 2015-06-30 Server control method and device

Country Status (1)

Country Link
CN (1) CN106331036B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258665A (en) * 2020-01-21 2020-06-09 上海米哈游天命科技有限公司 Server starting method, device, server and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1751297A (en) * 2002-12-17 2006-03-22 甲骨文国际公司 Using direct memory access for performing database operations between two or more machines
CN101772140A (en) * 2009-12-25 2010-07-07 中兴通讯股份有限公司 Self-adaption energy saving method and business system having self-adaption energy saving function
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
CN102238423A (en) * 2010-04-21 2011-11-09 华为技术有限公司 Equipment scheduling method, device and system
CN102270157A (en) * 2011-07-25 2011-12-07 浪潮(北京)电子信息产业有限公司 Server resource allocation system and method
CN102667723A (en) * 2009-10-30 2012-09-12 思科技术公司 Balancing server load according to availability of physical resources
CN103188277A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Load energy consumption management system, method and server
CN103957231A (en) * 2014-03-18 2014-07-30 成都盛思睿信息技术有限公司 Virtual machine distributed task scheduling method under cloud calculating platform
CN104144188A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Service dispatching method and system and local service dispatching server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158513A (en) * 2010-02-11 2011-08-17 联想(北京)有限公司 Service cluster and energy-saving method and device thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1751297A (en) * 2002-12-17 2006-03-22 甲骨文国际公司 Using direct memory access for performing database operations between two or more machines
CN102667723A (en) * 2009-10-30 2012-09-12 思科技术公司 Balancing server load according to availability of physical resources
CN101772140A (en) * 2009-12-25 2010-07-07 中兴通讯股份有限公司 Self-adaption energy saving method and business system having self-adaption energy saving function
CN102238423A (en) * 2010-04-21 2011-11-09 华为技术有限公司 Equipment scheduling method, device and system
CN102096461A (en) * 2011-01-13 2011-06-15 浙江大学 Energy-saving method of cloud data center based on virtual machine migration and load perception integration
CN102270157A (en) * 2011-07-25 2011-12-07 浪潮(北京)电子信息产业有限公司 Server resource allocation system and method
CN103188277A (en) * 2011-12-27 2013-07-03 中国电信股份有限公司 Load energy consumption management system, method and server
CN104144188A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Service dispatching method and system and local service dispatching server
CN103957231A (en) * 2014-03-18 2014-07-30 成都盛思睿信息技术有限公司 Virtual machine distributed task scheduling method under cloud calculating platform

Also Published As

Publication number Publication date
CN106331036A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US11397648B2 (en) Virtual machine recovery method and virtual machine management device
CN202798798U (en) High availability system based on cloud computing technology
US9164748B2 (en) Information backup method and apparatus
CN108023967B (en) Data balancing method and device and management equipment in distributed storage system
CN102902583B (en) Managing process under suspended state and executing state
WO2018076755A1 (en) Method and apparatus for issuing upgrade package
CN105138276A (en) Data storage method and data storage system
CN108880898B (en) Main and standby container system switching method and device
US10484449B2 (en) Email webclient notification queuing
CN103581225A (en) Distributed system node processing task method
CN102591668B (en) Device, method and system for updating elastic computing cloud system
CN104571955A (en) Method and device for expanding storage capacity
EP2717533A1 (en) Method, network card and hard disk card for accessing to shut-down hard disk
CN113452774B (en) Message pushing method, device, equipment and storage medium
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
US9092396B2 (en) Standby system device, a control method, and a program thereof
CN102419753B (en) Information processing equipment, information processing method and information processing system
US20220334733A1 (en) Data restoration method and related device
CN115426361A (en) Distributed client packaging method and device, main server and storage medium
WO2014190622A1 (en) Off-line message storage method and server
CN106331036B (en) Server control method and device
CN117407159A (en) Memory space management method and device, equipment and storage medium
US8812900B2 (en) Managing storage providers in a clustered appliance environment
CN108196617B (en) BMC time setting method, device and system and readable storage medium
CN114553936B (en) Connection method, device, electronic apparatus, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant