Summary of the invention
Embodiment of the invention technical problem to be solved is, a kind of network system control method and device thereof are provided.Can effectively lower the energy consumption of IDC machine room based on the service operation situation to the not busy control of doing of the machine among the IDC, improve the network system management level.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of network system control method, and this method comprises:
Said business monitoring server obtains monitor data, analyzes said monitor data and obtains analysis result;
Said business monitoring server sends dispatch command according to said analysis result to said service dispatching server;
Said professional dispatch server receives said dispatch command, and based on said dispatch command the business of moving on the said service server is dispatched the said service server of back control from running status entering resting state or from resting state entering running status.
Wherein, Above-mentioned dispatch command can comprise when busy instruction instruction when not busy, saidly according to said dispatch command the business of moving on the said service server is dispatched the said service server of back control and gets into resting state or get into running status from resting state from running status and comprise:
Instruction when if the dispatch command that receives is not busy; Then ongoing business on the partial service server in the said network is transferred on other service servers in the said network and handled; And the said partial service server of control gets into resting state from running status after business shifts completion, or waits for that the said partial service server of carrying out on the partial service server in the said network of professional complete back control gets into resting state from running status;
If instruction when the dispatch command that receives is busy is then controlled the part or all of service server that is in resting state in the said network and is got into running status from resting state.
Further, said business monitoring server sends dispatch command according to said analysis result to said service dispatching server and comprises:
State when said business monitoring server analysis result shows said network system for the spare time instructs when said service dispatching server sends the spare time;
When said business monitoring server analysis result shows said network system state when busy, send instruction when busy to said service dispatching server.
Wherein, said monitor data comprises business datum and network traffics data.
Accordingly; The embodiment of the invention also provides a kind of network system; Comprise business monitoring server and service dispatching server, said business monitoring server is used to obtain and the analysis monitoring data, sends dispatch command according to the analysis result that is obtained to said service dispatching server;
Said professional dispatch server is used to receive said dispatch command, and based on said dispatch command the business of moving on the said service server is dispatched the said service server of back control from running status entering resting state or from resting state entering running status.
Wherein, said dispatch command comprises instruction when instruction is with the spare time when doing, and said service dispatching server also comprises:
Judge module is used to judge that said dispatch command is time instruction or instruction when busy for the spare time;
Scheduler module; Be used for when said judge module judges that the dispatch command that is received instructs when being not busy; Ongoing business on the partial service server in the said network transferred on other service servers in the said network handle; And the said partial service server of control gets into resting state from running status after business shifts completion, or waits for that the said partial service server of carrying out on the partial service server in the said network of professional complete back control gets into resting state from running status; When said judge module judges that the dispatch command that is received instructs when being busy, control the part or all of service server that is in resting state in the said network and get into running status from resting state.
Further, said business monitoring server also is used for during state, when said service dispatching server sends the spare time, instructing when not busy when said analysis result shows said network system; When said analysis result shows said network system when busy during state, send instruction when busy to said service dispatching server.
Said monitor data can comprise business datum and network traffics data.
Accordingly, the embodiment of the invention also provides a kind of filesystem server, is used for network system, and this server comprises:
Monitoring module is used to obtain the monitor data of said network system;
Analysis module is used to analyze said monitor data and obtains analysis result;
The dispatch command generation module is used for generating dispatch command according to said analysis result;
The node state scheduling module is used for based on said dispatch command the business of moving on the said service server being dispatched the said service server of back control and gets into resting state or get into running status from resting state from running status.
Wherein, said dispatch command comprises instruction when instruction is with the spare time when doing, and said node state scheduling module comprises:
Judge submodule, be used to judge that said dispatch command is instruction or instruction when busy during for the spare time;
The scheduling sublayer module; Be used for when said judge module judges that the dispatch command that is received instructs when being not busy; Ongoing business on the partial service server in the said network transferred on other service servers in the said network handle; And the said partial service server of control gets into resting state from running status after business shifts completion, or waits for that the said partial service server of carrying out on the partial service server in the said network of professional complete back control gets into resting state from running status; When said judge module judges that the dispatch command that is received instructs when being busy, control the part or all of service server that is in resting state in the said network and get into running status from resting state.
Embodiment of the present invention embodiment through the business load situation of the service server in the phase-split network system, is known the busy-idle condition of network system, and according to busy-idle condition service server is changed between resting state and running status; Because when server was in resting state, energy consumption was lower than running status greatly, makes the energy consumption of whole network system reduce greatly; Simultaneously, owing to be the conversion of carrying out dormancy/running status according to service conditions, can not occur owing to server being converted into the situation that resting state reduces the network system traffic handing capacity yet.
Embodiment
Be effectively to reduce the power consumption of IDC machine room, the inventor has anatomized the network system service of IDC machine room the inside, though system provides service in 7*24 hour, operation system is not 7*24 hour all to be hurrying very.Analyze the inventor through long-term data sampling on the spot and find, when the network system existence is busy in the IDC machine room and when not busy.So according to the data of system monitoring; As long as in when network system is in the spare time; Some business service are dispatched; Some do not provide the machine (generally getting under the ability loss-rate running status of machine between rest period much lower) of service dormancy, so just can effectively reduce the energy consumption of whole system.Can realize that under equal conditions (provide the machine number of service consistent, the long-term amount of the traffic handing capacity that provides always) lowers energy consumption, and in the method, the energy consumption that more machines get into its attenuating of dormancy is many more.According to above-mentioned research, the embodiment below the inventor provides.
As shown in Figure 1, be the network system control method in the embodiment of the invention, network system wherein comprises the business monitoring server, service dispatching server and at least two service servers.Business monitoring server and service dispatching server are responsible for professional monitoring and the scheduling of operation in the network system, and service server then is responsible for the operation business and the service operation situation is reported corresponding server.
This method comprises:
101, the business monitoring server obtains monitor data.Wherein, said monitor data can reflect the business load situation of said service server.As, said monitor data can comprise the business datum and the network traffics data of the business load situation that reflects said service server.
Specifically, this monitor data can be through the flow of monitoring network interface card, and this type systematic such as cpu busy percentage is monitored and obtained, and similarly NMS can be referred to as by system; Also have one type and belong to business monitoring; As being example through accessing server by customer end, such as each network user's server log number situation of change within a certain period of time, the number of logging off situation of change within a certain period of time with the network user; The number that can analyze which network user like this is the user who enlivens; Which is the time period that the network user enlivens time period, and which is the sluggish situation of the network user time, so also can obtain the monitor data of business monitoring.
102, the business monitoring server is analyzed said monitor data and is obtained analysis result.Wherein, said analysis result can reflect the busy not busy situation of said network system.
When concrete analysis, can adopt several different methods.With the network user login server is example, and network user's section (setting 100,000 continuous numbers of numeral) has the network user's number login that in continuous 30 minutes, has more than 5000, when then thinking to hurry, when thinking the spare time less than 500.The every login of user is once all write down the time of landing and the number of login, adds up at server end, and per minute reports a secondary data.Such as first minute be 100 numbers, second minute is 124, the 3rd minute is 150, the 4th minute is 200, the 5th minute is 250; Rise, during by the 20th minute, to 1000, by the 40th minute always; To 5000, time the 50th minute, to 10000, like this; By the time is the X axle of plane coordinates, and the network user login number is the Y axle, draws a curve chart, just can find out that very intuitively that time full; That idle time, if on (sampling time) setting of calling time shorter, such as 30 seconds, data will be more accurate.
103, the business monitoring server sends dispatch command according to said analysis result to said service dispatching server.Wherein, dispatch command can comprise instruction when instruction is with the spare time when doing.As, when showing said network system, said business monitoring server analysis result during state, when said service dispatching server sends the spare time, instructs when not busy; When said business monitoring server analysis result shows said network system when busy during state, then send instruction when busy to said service dispatching server.
104, professional dispatch server receives said dispatch command, and based on said dispatch command the business of moving on the said service server is dispatched the said service server of back control from running status entering resting state or from resting state entering running status.
Variation based on dispatch command control service server state in step 104 specifically can comprise:
A, instruction when being not busy as if the dispatch command that receives; Then ongoing business on the partial service server in the said network is transferred on other service servers in the said network and handled; And the said partial service server of control gets into resting state from running status after business shifts completion, or waits for that the said partial service server of carrying out on the partial service server in the said network of professional complete back control gets into resting state from running status.
That is to say, when confirming to change some service server over to resting state, just, only need carry out transfer processing or wait for its complete getting final product its ongoing business no longer to the new business of these service server scheduling.
B, instruction when being busy as if the dispatch command that receives are then controlled the part or all of service server that is in resting state in the said network and are got into running status from resting state.
In above-mentioned network system; To carrying out all necessary dormancy and the arousal function module that correspondence is installed in advance of service server of dormancy and normal condition conversion by the control of service dispatching server; Generally can directly install and have Remote Wake Up (Wake-on-LAN; WOL promptly can realize remote opening and dormancy through local area network (LAN)) the machine mainboard and the network interface card of function.
As shown in Figure 2, for further specifying the network system control method the embodiment of the invention from the two-layer operation of professional execution level and business monitoring layer and the contact of operation.As shown in the figure, after department server is deployed to the IDC machine room, start corresponding service, externally provide services on the Internet.Monitor datas such as simultaneously regular reporting service data and network traffics are to business monitoring layer (like, the business monitoring server in the system).The business monitoring layer samples traffic carrying capacity and corresponding network traffics data; Can analyze the load capacity of individual machine in the network service system; Thereby analyze whole system when being the spare time at present or when busy, the load of comprehensive whole network service system can be carried out service dispatching.
Then the professional execution level of business monitoring course sends dispatch command, professional execution level operation dispatching instruction.If obtain be the spare time time instruct, then some business are merged, reduce the machine number that service externally is provided, this of minimizing batch machine gets into resting state, has so just reduced the energy consumption of whole system.Instruction when being busy if analyze can correspondence be sent and is waken instruction up, and the machine of resting state is waken up, makes it that service also externally is provided, and strengthens the handling capacity of whole network service system, for the user provides service efficiently.
For further specifying the network system control method in the embodiment of the invention, be that example specifically describes with network system with 5 service servers.
Flow process corresponding as shown in Figure 2 supposes that in this example network service system has started A1 at the beginning in professional execution level aspect, and A2, A3, A4, A5 totally 5 service server machines externally carry out the network service, and the service ability of 5 machines is consistent.
After 1 hour operation, the business monitoring layer of this network is analyzed the monitor data of receiving, finds A1, and the traffic carrying capacity of these two machines of A2 is more stable; But A3, A4, the A5 traffic carrying capacity is fewer, and A1; A2, A3, A4; The total traffic that A5 lumps together is also smaller, is far from reaching the peak value that 5 machines provide service together, and be exactly the traffic carrying capacity of two machines at most.
At this moment, the business monitoring layer instructs when sending the spare time according to above-mentioned analysis result, requires network service system dormancy A3, A4, three machines of A5.Dispatch server in the business monitoring layer is to A3, and A4, A5 be the distribution service amount no longer; With A3, the service dispatching that A4, A5 are moving is gone up operation or is waited for A3 to its A1 and A2; A4 controls A3, A4 after current moving professional complete of A5; A5 gets into resting state from running status, to have reduced the energy consumption of whole network service system.
Through after 4 hours the operation, the business monitoring layer monitors the whole service amount to begin to rise again, and A1 and A2 cause system to get into state when doing, and estimates that current traffic carrying capacity needs 3 machines to handle altogether.
At this moment, the business monitoring layer wakes the A3 machine up, A1, and A2, A3 provide service together.Like this, system has got into the normal equilibrium state.
Passed through again 4 hours, flow system flow amplifies without restraint, the traffic carrying capacity surge, and the business monitoring layer wakes A4 up simultaneously according to the traffic carrying capacity threshold values, the A5 machine.Like this, 5 machines are served simultaneously, and service has got into normal condition.Like this, go round and begin again,, specify when busy strategy when not busy, wake the service-delivery machine corresponding up, provide services on the Internet normally, effectively lower energy consumption with dormancy according to the monitor data analysis of business monitoring layer.
To sum up describe and to know, through the business load situation of the service server in the phase-split network system, know the busy-idle condition of network system, and service server is changed between resting state and running status according to busy-idle condition; Because when server was in resting state, energy consumption was lower than running status greatly, server is switched to resting state can make the energy consumption of whole network system reduce greatly; Simultaneously, owing to be the conversion of carrying out dormancy/running status according to service conditions, can not occur owing to server being converted into the situation that resting state reduces the network system traffic handing capacity yet.
Accordingly, as shown in Figure 3, the embodiment of the invention also provides a kind of network system, comprises business monitoring server 1 and service dispatching server 2.
Said business monitoring server 1 is used to obtain and the analysis monitoring data, sends dispatch command according to the analysis result that is obtained to said service dispatching server 2.This monitor data can comprise the business datum and the network traffics data of the business load situation that reflects said service server.
Said professional dispatch server 2 is used to receive said dispatch command, and based on said dispatch command the business of moving on the said service server is dispatched the said service server of back control from running status entering resting state or from resting state entering running status.
Wherein, said dispatch command comprises instruction when instruction is with the spare time when doing, and as shown in Figure 4, said service dispatching server 2 also comprises:
Judge module 20 is used to judge when said dispatch command is the spare time instruction or instruction when busy;
Scheduler module 21; Be used for when said judge module judges that the dispatch command that is received instructs when being not busy; Ongoing business on the partial service server in the said network transferred on other service servers in the said network handle; And the said partial service server of control gets into resting state from running status after business shifts completion, or waits for that the said partial service server of carrying out on the partial service server in the said network of professional complete back control gets into resting state from running status; When said judge module judges that the dispatch command that is received instructs when being busy, control the part or all of service server that is in resting state in the said network and get into running status from resting state.
Further, said business monitoring server 1 also is used for during state, when said service dispatching server 2 sends the spare time, instructing when not busy when said analysis result shows said network system; When said analysis result shows said network system when busy during state, send instruction when busy to said service dispatching server 2.
In another embodiment of the present invention, above-mentioned service dispatching server and business monitoring server can be set to one or one group of server on function or entity, promptly a kind of filesystem server 5, and as shown in Figure 5, this server comprises:
Monitoring module 50 is used to obtain the monitor data of said network system, and wherein, said monitor data reflects the business load situation of the service server in the said network system;
Analysis module 51 is used to analyze said monitor data and obtains analysis result, and wherein, said analysis result reflects the busy not busy situation of said network system;
Dispatch command generation module 52 is used for generating dispatch command according to said analysis result;
Node state scheduling module 53 is used for based on said dispatch command the business of moving on the said service server being dispatched the said service server of back control and gets into resting state or get into running status from resting state from running status.
Wherein, said dispatch command comprises instruction when instruction is with the spare time when doing, and as shown in Figure 6, said node state scheduling module 53 comprises:
Judge submodule 530, be used to judge that said dispatch command is instruction or instruction when busy during for the spare time;
Scheduling sublayer module 531; Be used for when said judge module judges that the dispatch command that is received instructs when being not busy; Ongoing business on the partial service server in the said network transferred on other service servers in the said network handle; And the said partial service server of control gets into resting state from running status after business shifts completion, or waits for that the said partial service server of carrying out on the partial service server in the said network of professional complete back control gets into resting state from running status; When said judge module judges that the dispatch command that is received instructs when being busy, control the part or all of service server that is in resting state in the said network and get into running status from resting state.
When above-mentioned system and server operation, can adopt the scheme in the preceding method, give unnecessary details no longer one by one here.
To sum up describe and to know, through the business load situation of the service server in the phase-split network system, know the busy-idle condition of network system, and service server is changed between resting state and running status according to busy-idle condition; Because when server was in resting state, energy consumption was lower than running status greatly, server is switched to resting state can make the energy consumption of whole network system reduce greatly; Simultaneously, owing to be the conversion of carrying out dormancy/running status according to service conditions, can not occur owing to server being converted into the situation that resting state reduces the network system traffic handing capacity yet.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely a kind of preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.