CN106331036A - Server control method and device - Google Patents
Server control method and device Download PDFInfo
- Publication number
- CN106331036A CN106331036A CN201510375375.0A CN201510375375A CN106331036A CN 106331036 A CN106331036 A CN 106331036A CN 201510375375 A CN201510375375 A CN 201510375375A CN 106331036 A CN106331036 A CN 106331036A
- Authority
- CN
- China
- Prior art keywords
- server
- internal storage
- storage data
- band
- transferred
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols 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 device and solves the technical problem of electric energy waste resulting from no load operation of a server. The method comprises the steps of determining that the load number of a first server in a system is smaller than the preset number; reading the memory data of the first server and carrying out distributed storage on the memory data; and controlling the first server to be closed.
Description
Technical field
The present invention relates to the communications field, particularly to a kind of server control method and device.
Background technology
In prior art, many times multiple servers can be put in a rack, form cluster, so
One rack is equivalent to a system, it is possible to achieve intrasystem unified management.
At present, due to rack overall load with visit capacity change, may in 24 hours of every day
Present bigger dynamic fluctuation, the Servers-all full speed running in rack may be needed when high capacity, and
When low-load, the utilization rate of the server in possible rack is relatively low, such as when low-load, and presumable clothes
It is fewer that business device band carries quantity, even unloaded.But, no matter to carry quantity more or less for the band of server,
It is all to be in running status all the time, the long-time no-load running of server, more power resource can be wasted, increase
Add expense expenditure, also because adding the use time of server, server is brought certain loss, reduce
The life-span of server.
Summary of the invention
The embodiment of the present invention provides a kind of server control method and device, for solving owing to server is unloaded
Run and cause the technical problem of waste of energy.
First aspect, it is provided that a kind of server control method, including:
Determine that the band of the first server in system carries quantity less than predetermined number;
Read the internal storage data of described first server, and described internal storage data is carried out distributed storage;
Control to close described first server.
Optionally, the band of described first server carries quantity more than 0;
The band load quantity of the first server in determining system, less than after predetermined number, also includes:
Notify that the load of described first server is transferred to second in described system by described first server
Server;Wherein, described second server is after the load accepting described first server, and it is little that band carries quantity
Quantity is carried in the regulation maximum belt equal to described second server.
Optionally, before controlling to close described first server, also include:
The restarting information of described first server is write described first server;Described restarting information is used for institute
State first server and recover the state before closing.
Optionally, read the internal storage data of described first server, including:
Described internal storage data is read by dma mode.
Optionally, after controlling to close described first server, also include:
Open the described first server being closed;
The internal storage data of the described first server of storage is transferred to described first server;Described interior poke
According to the state recovered for described first server before closing.
Optionally, the internal storage data of described first server of storage is transferred to described first server it
Before, also include:
Receive the request message for asking described internal storage data that described first server sends.
Optionally, the internal storage data of the described first server of storage is transferred to described first server, bag
Include:
The storage address of the described internal storage data according to record, is passed described internal storage data by dma mode
It is defeated by described first server.
Second aspect, it is provided that a kind of server control device, including:
Memorizer, is used for storing instruction;
Processor, is used for performing described instruction, determines that the band of the first server in system carries quantity less than pre-
If quantity;Read the internal storage data of described first server, and described internal storage data is carried out distributed storage;
Control to close described first server.
Optionally, the band of described first server carries quantity more than 0;Described processor is additionally operable to:
The band load quantity of the first server in determining system, less than after predetermined number, notifies described first
The load of described first server is transferred to the second server in described system by server;Wherein, described
Second server is after the load accepting described first server, and band carries quantity less than or equal to described second service
The regulation maximum belt of device carries quantity.
Optionally, described device also includes transmitter;Described processor is additionally operable to:
Before controlling to close described first server, by described transmitter by the weight of described first server
The information that opens writes described first server;Described restarting information is before described first server is recovered to close
State.
Optionally, described processor is used for:
Described internal storage data is read by dma mode.
Optionally, described device also includes transmitter;Described processor is additionally operable to:
After controlling to close described first server, open the described first server being closed;
By described transmitter, the internal storage data of the described first server of storage is transferred to described first take
Business device;Described internal storage data recovers the state before closing for described first server.
Optionally, described device also includes receptor;
Described receptor is used for: at described processor by described transmitter by the described first server of storage
Internal storage data be transferred to described first server before, receive described first server send for asking
The request message of described internal storage data.
Optionally, described processor is used for:
The storage address of the described internal storage data according to record, by described transmitter, according to dma mode
Described internal storage data is transferred to described first server.
The third aspect, it is provided that a kind of server control device, including:
Determine module, for determining that the band of the first server in system carries quantity less than predetermined number;
Read module, for reading the internal storage data of described first server, and is carried out described internal storage data
Distributed storage;
Control module, is used for controlling to close described first server.
In the embodiment of the present invention, when the band having server in system carries quantity less than predetermined number, it is possible to
Close these servers, so, it is to avoid the long-time no-load running of server, save power resource, reduce and take
By expenditure, also decrease the loss to server itself because decreasing the use time of server, extend
The service life of server.
Further, the internal storage data of these servers is read before closing, in order to restart clothes in next time
The state before server closing can be recovered during business device, after reading internal storage data, use distributed storage
Mode stores these internal storage datas, such as, when internal storage data is more, use the distributed storage mode can be by
Internal storage data stores after being divided into many parts respectively, the speed of storage, when needs read, and the speed of reading
Also very fast, contribute to server and realize quickly restarting, return to the state before closing, also reduce user
Waiting time, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the broad flow diagram of server control method in the embodiment of the present invention;
Fig. 2 is the first structural representation of server control device in the embodiment of the present invention;
Fig. 3 is the second structural representation of server control device in the embodiment of the present invention;
Fig. 4 is the structured flowchart of server control device in the embodiment of the present invention.
Detailed description of the invention
The system mentioned in the embodiment of the present invention, may refer to server system, such as, and multiple server positions
In same rack, then just one system of composition of the Servers-all in this rack.Or, have many
Individual rack, is provided with one or more server in each rack, these racks collectively constitute a system,
Etc..The embodiment of the present invention is not restricted for definition and the scope of system.
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that
Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based in the present invention
Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its
His embodiment, broadly falls into the scope of protection of the invention.
It addition, the terms "and/or", a kind of incidence relation describing affiliated partner, expression can
There are three kinds of relations, such as, A and/or B, can represent: individualism A, there is A and B simultaneously,
Individualism B these three situation.It addition, character "/" herein, if no special instructions, before typicallying represent
Rear affiliated partner is the relation of a kind of "or".
Below in conjunction with the accompanying drawings the preferred embodiment of the present invention is described in detail.
Referring to Fig. 1, the embodiment of the present invention provides a kind of server control method, and the flow process of described method is retouched
State as follows.
Step 101: determine that the band of the first server in system carries quantity less than predetermined number.
System can be monitored, such as can in real time, timing or be monitored when being triggered, determine and be
The information such as the running status of each node (such as server) in system.
Being found by monitoring, the band of the first server in system carries quantity less than predetermined number.First service
Device can be any operative server in system, it addition, at synchronization, may monitor multiple
The band of server carries quantity less than predetermined number, then the processing mode to each server is similar,
Therefore the embodiment of the present invention one server (i.e. first server) is illustrated.
In the embodiment of the present invention, the band of first server carries quantity and is less than predetermined number, can include two kinds of feelings
Condition, the first situation, it is 0 that the band of first server carries quantity, i.e. first server is unloaded, the second feelings
Condition, the band of first server carries quantity and is more than 0, but the band of first server carries quantity less than predetermined number.
So, if first server is unloaded, can continue executing with subsequent step, normal switching-off first takes
Business device.And if the band of first server carries quantity more than 0, then before closing first server, need
Other servers are transferred in the load of first server, to ensure being normally carried out of business.Take first
Other servers are transferred in the load of business device, can be that system actively performs, or can also be to receive the
Perform after the request of one server.
Optionally, in the embodiment of the present invention, the band of first server carries quantity more than 0;
The band load quantity of the first server in determining system, less than after predetermined number, also includes:
The second server that the load of first server is transferred in system by notice first server;Wherein,
Second server is after the load accepting first server, and band carries the quantity regulation less than or equal to second server
Maximum belt carries quantity.
That is, if the band of first server carries quantity more than 0, then want to close first server, just need
Want the load having server can accept first server in system.Second server can be such as in system
Any operative server in addition to first server, before second server accepts the load of first server
Carrying and be exactly, second server is after the load accepting first server, and total band of second server carries quantity
Quantity (i.e. regulation maximum belt carries quantity) is carried, when one less than or equal to the maximum belt set for second server
The band of server carries quantity more than when carrying quantity for its maximum belt specified, the operation of server it is possible that
Problem, therefore, in order to ensure the properly functioning of server, needs the band limiting each server to carry quantity.
It is more than a kind of example loading transfer, i.e. the load of first server has been transferred completely into second
In server, in actual moving process, possible system does not exist and can all accept first server
The server of load, then the load of first server can also be transferred to other multiple servers respectively
On, as long as accepting the server of the load of first server after the load accepting first server, total band
Carry quantity and carry quantity less than for its maximum belt specified.
Such as, system has three servers, respectively server 1, server 2 and server 3,
Monitoring determines, it is 3 that the band of server 1 carries quantity, and it is 5 that the band of server 2 carries quantity, server 3
It is 6 that band carries quantity.Predetermined number is 4.
Understanding, the band of first server carries quantity less than predetermined number.So can attempt shifting first service
The load of device.It is 8 that the regulation maximum belt of such as server 2 carries quantity, and the regulation maximum belt of server 3 carries
Quantity is also 8, then, the 3 of first server loads can be transferred completely in server 2, or
Person, it is also possible to the two of which of first server loaded and transfer in server 3, bears remaining one
Idling moves on in server 2.
The most such as, system has three servers, respectively server 1, server 2 and server 3,
Monitoring determines, it is 2 that the band of server 1 carries quantity, and it is 4 that the band of server 2 carries quantity, server 3
It is 6 that band carries quantity.Predetermined number is 4.
Understanding, the band of first server carries quantity less than predetermined number.So can attempt shifting first service
The load of device.It is 8 that the regulation maximum belt of such as server 2 carries quantity, and the regulation maximum belt of server 3 carries
Quantity is also 8, then, the 2 of first server loads can be transferred completely in server 2, because of
Band for server 2 carries negligible amounts, bears lighter.Or, it is also possible to the 2 of first server are born
Load is transferred completely in server 3, makes server 3 full-load run, improves the utilization rate of server 3.Or
Person, it is also possible to transfer in server 3 by one of them load of first server, bears remaining one
Idling moves on to, in server 2, make servers share load, and alleviates the negative of each server to a certain extent
Load.
For the concrete branch mode of load, and when shifting to the selection of server accepting load
Mode, the present invention is not restricted.
Step 102: read the internal storage data of first server, and internal storage data is carried out distributed storage.
In the embodiment of the present invention, internal storage data refers to the data being stored in internal memory, and that reads here such as may be used
Be first server internal memory in total data.
I.e., it is possible to first read out by the internal storage data of first server, so restart first in next time
First server can be made to return to the shape before closing by using these internal storage datas when of server
State, is equivalent to achieve scene protection.
Optionally, in the embodiment of the present invention, read the internal storage data of first server, including:
Internal storage data is read by dma mode.
Optionally, in the embodiment of the present invention, when reading internal storage data, high speed read mode can be used,
Such as ROCE, (Remote Direct Memory Access over Converged Ethernet assembles Ethernet
On remote direct data access), the mould such as DMA (Direct Memory Access, direct memory access)
Formula, quickly reads out the internal storage data of first server.
In the embodiment of the present invention, after the internal storage data reading first server, the interior poke that can will read
Store according to using distributed way.Such as, the capacity of internal storage data is 10G, then can use distribution
Formula mode, is divided into 10 data blocks by the internal storage data of 10G, and each data block is that 1G (can certainly
Unequal distribution, the concrete method of salary distribution present invention is not restricted), more each data block is stored.
Relative to common storage mode, distributed storage mode is equivalent to change original serial storage into parallel
Storage, improves data storage efficiency.
Optionally, in the embodiment of the present invention, after internal storage data is carried out distributed storage, also include:
The storage address of record internal storage data.
That is, after internal storage data is carried out distributed storage, the storage address of record internal storage data, in order to
Internal storage data can be read when needed.
Step 103: control to close first server.
After the internal storage data reading first server, first server can be closed, save the electric energy of system
Resource.
Optionally, in the embodiment of the present invention, before controlling to close first server, also include:
The restarting information of first server is write first server;Restarting information is recovered for first server
State before closedown.
Closing before first server, can be using the current state information of first server etc. as restarting letter
Breath write first server, so, first server is when restarting next time, it is possible to use these are restarted
State before Information recovering closedown.
Optionally, in the embodiment of the present invention, after controlling to close first server, also include:
Open the first server being closed;
The internal storage data of the first server of storage is transferred to first server;Internal storage data is for the first clothes
Business device recovers the state before cutting out.
For example, it may be possible to be that management lateral system sends instruction, system determines unlatching first server, or,
Being also likely to be system band, to carry quantity too much, and the existing server being in running status is not enough to undertake all of
Load, then system is likely to determine unlatching first server.
Optionally, in the embodiment of the present invention, the internal storage data of the first server of storage is being transferred to first
Before server, also include:
Receive the request message for asking internal storage data that first server sends.
That is, after first server powers on, detect open state information, request message can be sent, apply for extensive
Multiple internal storage data.
Optionally, in the embodiment of the present invention, the internal storage data of the first server of storage is sent to the first clothes
Business device, including:
The storage address of the internal storage data according to record, is transferred to first by dma mode by internal storage data
Server.
System can be according to the storage address of the internal storage data recorded before, by dma mode by interior poke
According to being transferred to first server, the speed of transmission.Concrete, can be that first server uses DMA
Mode conducts interviews, with quickly by memory data copy to first server.
Optionally, in the embodiment of the present invention, when determining first server to be opened, system can be according to it
The storage address of the internal storage data of front storage, each data block that will carry out storing by distributed storage mode
Read out and splice, be spliced into internal storage data originally, so, when first server accesses, can
Internal storage data is transmitted directly to first server by dma mode, it is not necessary to first server is follow-up certainly
Row splices, and alleviates the burden of first server.
Because being to use distributed way to store, therefore when reading, reading speed is very fast, same,
Relative to existing reading manner, reading manner corresponding to distributed storage is equivalent to read existing serial
Change parallel reading into, improve the speed of reading, accelerated the start recovery process of first server, carry
High system service quality, reduces the waiting time of user, improves Consumer's Experience.
In the embodiment of the present invention, numbering before each step does not represent the actual execution sequence of each step,
In actual application, each step can perform in any order.
The device in the present invention is introduced below in conjunction with accompanying drawing.
Referring to Fig. 2, based on same inventive concept, the embodiment of the present invention provides a kind of server control device,
Described device can include memorizer 201 and processor 202.Memorizer 201 is connected with processor 202.
Described device can be the server being responsible for being monitored system the tasks such as management in system, or can also
Be outside system, for system being monitored the server of the operation such as management, etc., the present invention does not limits
System.
Memorizer 201, performs the instruction of required by task for storing processor 202;
Processor 202, for performing the instruction of memorizer 201 storage, determines the first server in system
Band carry quantity less than predetermined number;Read the internal storage data of described first server, and by described interior poke
According to carrying out distributed storage;Control to close described first server.
In the embodiment of the present invention, internal storage data can be stored in this locality by server control device, or also may be used
To be stored in other memory node, the concrete storage position present invention is not restricted.
Optionally, in the embodiment of the present invention, the band of first server carries quantity more than 0;Processor 202 is also
For:
The band load quantity of the first server in determining system, less than after predetermined number, notifies first service
The second server that the load of first server is transferred in system by device;Wherein, second server is accepting
After the load of first server, band carries quantity and carries quantity less than or equal to the regulation maximum belt of second server.
Optionally, referring to Fig. 3, in the embodiment of the present invention, described device also includes transmitter 203;Place
Reason device 202 is additionally operable to:
Before controlling to close first server, by transmitter 203, the restarting information of first server is write
Enter first server;Restarting information recovers the state before closing for first server.
Optionally, in the embodiment of the present invention, processor 202 is used for:
Internal storage data is read by dma mode.
Optionally, in the embodiment of the present invention, processor 202 is additionally operable to:
After controlling to close first server, open the first server being closed;
By transmitter 203, the internal storage data of the first server of storage is transferred to first server;Internal memory
Data recover the state before closing for first server.
Optionally, continuing with seeing Fig. 3, in the embodiment of the present invention, described device also includes receptor 204;
Receptor 204 is used for: in the first server that processor 202 will be stored by transmitter 203
Before deposit data is transferred to first server, what reception first server sent is used for asking asking of internal storage data
Seek message.
In the embodiment of the present invention, transmitter 203 can be connected with processor 202 respectively with receptor 204.
It addition, transmitter 203 and receptor 204 can be same functional modules, this functional module have transmission and
The function received, or can also be different functional modules.
Optionally, in the embodiment of the present invention, processor 202 is used for:
According to the storage address of internal storage data of record, by transmitter 203, according to dma mode by interior
Deposit data is transferred to first server.
Referring to Fig. 4, based on same inventive concept, the embodiment of the present invention also provides for a kind of server controls dress
Putting, described device can include determining that module 401, read module 402 and control module 403.
Determine module 401, for determining that the band of the first server in system carries quantity less than predetermined number;
Read module 402, for reading the internal storage data of first server, and is distributed internal storage data
Formula stores;
Control module 403, is used for controlling to close first server.
Optionally, in the embodiment of the present invention, described device also includes notification module;
The band of first server carries quantity more than 0;Notification module is used for:
After determining that module 401 determines that the band load quantity of the first server in system is less than predetermined number,
The second server that the load of first server is transferred in system by notice first server;Wherein, second
Server is after the load accepting first server, and it is maximum less than or equal to the regulation of second server that band carries quantity
Band carries quantity.
Optionally, in the embodiment of the present invention, described device also includes writing module;
Writing module is used for: before control module 403 controls to close first server, by first server
Restarting information write first server;Restarting information recovers the state before closing for first server.
Optionally, in the embodiment of the present invention, read module 402 is used for:
Internal storage data is read by dma mode.
Optionally, in the embodiment of the present invention, described device also includes transport module;
Control module 403 is additionally operable to: after controlling to close first server, unlatching is closed
First server;
Transport module is used for: the internal storage data of the first server of storage is transferred to first server;Internal memory
Data recover the state before closing for first server.
Optionally, in the embodiment of the present invention, described device also includes receiver module;
Receiver module is used for: at transport module, the internal storage data of the first server of storage is transferred to the first clothes
Before business device, receive the request message for asking internal storage data that first server sends.
Optionally, in the embodiment of the present invention, transport module is used for:
The storage address of the internal storage data according to record, is transferred to first by dma mode by internal storage data
Server.
Device in the embodiment of the present invention is the device corresponding with method, and what concrete each module need to perform appoints
The contents such as business and implementation detail, refer to the description of method part.
In the embodiment of the present invention, when the band having server in system carries quantity less than predetermined number, it is possible to
Close these servers, so, it is to avoid the long-time no-load running of server, save power resource, reduce and take
By expenditure, also decrease the loss to server itself because decreasing the use time of server, extend
The service life of server.
Further, the internal storage data of these servers is read before closing, in order to restart clothes in next time
The state before server closing can be recovered during business device, after reading internal storage data, use distributed storage
Mode stores these internal storage datas, such as, when internal storage data is more, use the distributed storage mode can be by
Internal storage data stores after being divided into many parts respectively, the speed of storage, when needs read, and the speed of reading
Also very fast, contribute to server and realize quickly restarting, return to the state before closing, also reduce user
Waiting time, improve Consumer's Experience.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, only with above-mentioned
The division of each functional module is illustrated, and in actual application, can above-mentioned functions be divided as desired
Join and completed by different functional modules, the internal structure of device will be divided into different functional modules, with complete
Become all or part of function described above.The specific works mistake of the system of foregoing description, device and unit
Journey, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and side
Method, can realize by another way.Such as, device embodiment described above is only schematically
, such as, described module or the division of unit, be only a kind of logic function and divide, actual can when realizing
There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another and be
Unite, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other
Conjunction or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication
Connect, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, as
The parts that unit shows can be or may not be physical location, i.e. may be located at a place, or
Can also be distributed on multiple NE.Can select therein some or all of according to the actual needs
Unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the application can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit
In.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ SFU software functional unit
Form realizes.
If described integrated unit realizes and as independent production marketing using the form of SFU software functional unit
Or when using, can be stored in a computer read/write memory medium.Based on such understanding, this Shen
Part that prior art is contributed by technical scheme please the most in other words or this technical scheme complete
Portion or part can embody with the form of software product, and this computer software product is stored in a storage
In medium, including some instructions with so that computer equipment (can be personal computer, server,
Or the network equipment etc.) or processor (processor) perform the complete of method described in each embodiment of the application
Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic
The various medium that can store program code such as dish or CD.
Specifically, the computer program instructions that a kind of server control method in the embodiment of the present application is corresponding
Can be stored in CD, hard disk, on the storage medium such as USB flash disk, when in storage medium with a kind of server
When computer program instructions corresponding to control method is read by an electronic equipment or be performed, including walking as follows
Rapid:
Determine that the band of the first server in system carries quantity less than predetermined number;
Read the internal storage data of described first server, and described internal storage data is carried out distributed storage;
Control to close described first server.
Optionally, the band of described first server carries quantity more than 0;
In described storage medium storage and step: determine the first server in system band carry quantity be less than
Predetermined number, corresponding computer instruction, after being performed, also includes:
Notify that the load of described first server is transferred to second in described system by described first server
Server;Wherein, described second server is after the load accepting described first server, and it is little that band carries quantity
Quantity is carried in the regulation maximum belt equal to described second server.
Optionally, store in described storage medium and step: control to close described first server, corresponding
Computer instruction before being executed, also include:
The restarting information of described first server is write described first server;Described restarting information is used for institute
State first server and recover the state before closing.
Optionally, in described storage medium storage and step: read the interior poke of described first server
According to, corresponding computer instruction during being performed, including:
Described internal storage data is read by dma mode.
Optionally, store in described storage medium and step: control to close described first server, corresponding
Computer instruction after being performed, also include:
Open the described first server being closed;
The internal storage data of the described first server of storage is transferred to described first server;Described interior poke
According to the state recovered for described first server before closing.
Optionally, in described storage medium storage and step: by the internal memory of described first server of storage
Data are transferred to described first server, and corresponding computer instruction before being executed, also includes:
Receive the request message for asking described internal storage data that described first server sends.
Optionally, in described storage medium storage and step: by the internal memory of described first server of storage
Data are transferred to described first server, corresponding computer instruction during being performed, including:
The storage address of the described internal storage data according to record, is passed described internal storage data by dma mode
It is defeated by described first server.
The above, above example only in order to the technical scheme of the application is described in detail, but with
The explanation of upper embodiment is only intended to help to understand method and the core concept thereof of the present invention, and it is right to should not be construed as
The restriction of the present invention.Those skilled in the art, in the technical scope that the invention discloses, can think easily
The change arrived or replacement, all should contain within protection scope of the present invention.
Claims (15)
1. a server control method, it is characterised in that including:
Determine that the band of the first server in system carries quantity less than predetermined number;
Read the internal storage data of described first server, and described internal storage data is carried out distributed storage;
Control to close described first server.
2. the method for claim 1, it is characterised in that the band of described first server carries quantity
More than 0;
The band load quantity of the first server in determining system, less than after predetermined number, also includes:
Notify that the load of described first server is transferred to second in described system by described first server
Server;Wherein, described second server is after the load accepting described first server, and it is little that band carries quantity
Quantity is carried in the regulation maximum belt equal to described second server.
3. method as claimed in claim 1 or 2, it is characterised in that controlling described first clothes of closedown
Before business device, also include:
The restarting information of described first server is write described first server;Described restarting information is used for institute
State first server and recover the state before closing.
4. method as claimed in claim 1 or 2, it is characterised in that read described first server
Internal storage data, including:
Described internal storage data is read by direct memory access dma mode.
5. method as claimed in claim 1 or 2, it is characterised in that controlling described first clothes of closedown
After business device, also include:
Open the described first server being closed;
The internal storage data of the described first server of storage is transferred to described first server;Described interior poke
According to the state recovered for described first server before closing.
6. method as claimed in claim 5, it is characterised in that in the described first server by storage
Internal storage data be transferred to described first server before, also include:
Receive the request message for asking described internal storage data that described first server sends.
7. method as claimed in claim 5, it is characterised in that by the described first server of storage
Internal storage data is transferred to described first server, including:
The storage address of the described internal storage data according to record, is passed described internal storage data by dma mode
It is defeated by described first server.
8. a server control device, it is characterised in that including:
Memorizer, is used for storing instruction;
Processor, is used for performing described instruction, determines that the band of the first server in system carries quantity less than pre-
If quantity;Read the internal storage data of described first server, and described internal storage data is carried out distributed storage;
Control to close described first server.
9. device as claimed in claim 8, it is characterised in that the band of described first server carries quantity
More than 0;Described processor is additionally operable to:
The band load quantity of the first server in determining system, less than after predetermined number, notifies described first
The load of described first server is transferred to the second server in described system by server;Wherein, described
Second server is after the load accepting described first server, and band carries quantity less than or equal to described second service
The regulation maximum belt of device carries quantity.
10. device as claimed in claim 8 or 9, it is characterised in that described device also includes transmitter;
Described processor is additionally operable to:
Before controlling to close described first server, by described transmitter by the weight of described first server
The information that opens writes described first server;Described restarting information is before described first server is recovered to close
State.
11. devices as claimed in claim 8 or 9, it is characterised in that described processor is used for:
Described internal storage data is read by direct memory access dma mode.
12. devices as claimed in claim 8 or 9, it is characterised in that described device also includes transmitter;
Described processor is additionally operable to:
After controlling to close described first server, open the described first server being closed;
By described transmitter, the internal storage data of the described first server of storage is transferred to described first take
Business device;Described internal storage data recovers the state before closing for described first server.
13. devices as claimed in claim 12, it is characterised in that described device also includes receptor;
Described receptor is used for: at described processor by described transmitter by the described first server of storage
Internal storage data be transferred to described first server before, receive described first server send for asking
The request message of described internal storage data.
14. devices as claimed in claim 12, it is characterised in that described processor is used for:
The storage address of the described internal storage data according to record, by described transmitter, according to dma mode
Described internal storage data is transferred to described first server.
15. 1 kinds of server control devices, it is characterised in that including:
Determine module, for determining that the band of the first server in system carries quantity less than predetermined number;
Read module, for reading the internal storage data of described first server, and is carried out described internal storage data
Distributed storage;
Control module, is used for controlling to close described first server.
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 true CN106331036A (en) | 2017-01-11 |
CN106331036B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258665A (en) * | 2020-01-21 | 2020-06-09 | 上海米哈游天命科技有限公司 | Server starting method, device, server and medium |
Citations (10)
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 |
CN102158513A (en) * | 2010-02-11 | 2011-08-17 | 联想(北京)有限公司 | Service cluster and energy-saving method and device thereof |
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 |
-
2015
- 2015-06-30 CN CN201510375375.0A patent/CN106331036B/en active Active
Patent Citations (10)
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 |
CN102158513A (en) * | 2010-02-11 | 2011-08-17 | 联想(北京)有限公司 | Service cluster and energy-saving method and device thereof |
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 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258665A (en) * | 2020-01-21 | 2020-06-09 | 上海米哈游天命科技有限公司 | Server starting method, device, server and medium |
Also Published As
Publication number | Publication date |
---|---|
CN106331036B (en) | 2020-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10649512B2 (en) | High efficient battery backup system | |
US8952566B2 (en) | Chassis slots accepting battery modules and other module types | |
US9692846B2 (en) | System, device and method for providing push service using feedback message | |
CN103425506B (en) | Closedown method and starting-up method and communication terminal | |
US20160248266A1 (en) | Heterogeneous Battery Cell Charging | |
CN108616382A (en) | Upgrade method, apparatus, network interface card and the equipment of network interface card firmware | |
CN100527081C (en) | Computer processing system for implementing data update and data updating method | |
CN103944739A (en) | Intelligent POE power source supplying system and efficient POE power source managing method thereof | |
CN105450759A (en) | System mirror image management method and device | |
CN106292998A (en) | The management method of a kind of running background program and terminal | |
CN102546823A (en) | File storage management system of cloud storage system | |
CN108064377A (en) | A kind of management method and device of multisystem shared drive | |
CN102664950A (en) | Data communication method between welding power sources and computers | |
CN105302641A (en) | Node scheduling method and apparatus in virtual cluster | |
CN106201561A (en) | The upgrade method of distributed caching cluster and equipment | |
CN108875035A (en) | The date storage method and relevant device of distributed file system | |
CN110515728B (en) | Server scheduling method and device, electronic equipment and machine-readable storage medium | |
CN102541693A (en) | Multi-copy storage management method and system of data | |
CN104267985A (en) | Software loading method and device | |
CN105760398A (en) | Log recording system and log record operating method | |
CN103119567A (en) | Systems and methods for managing a virtual tape library domain | |
CN104461779B (en) | A kind of storage method of distributed data, apparatus and system | |
CN106293509A (en) | Date storage method and system | |
CN109687547A (en) | A kind of charging method, device, equipment and computer readable storage medium | |
CN106331036A (en) | Server control method and device |
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 |