Embodiment
To combine the accompanying drawing among the present invention below, the technical scheme among the present invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills are obtained under the prerequisite of not making creative work belongs to the scope that the present invention protects.
The flow chart of the backup method that Fig. 1 provides for the embodiment of the invention one, as shown in Figure 1, this embodiment comprises:
Step 101, master server receive the load sample information that the backup server in the standby system sends; This standby system comprises at least two backup servers.
In the present embodiment, this load sample information comprises: the load information of CPU utilance, memory usage, I/O and the backup job number that is moving.Particularly, backup server can be set up the data structure that comprises above-mentioned four kinds of information earlier, gathers the load sample information of backup server self then, the load sample information is recorded in the data structure of foundation; Through local ethernet the load sample information that writes down is sent to master server again.Wherein, this data structure can be chained list or array etc., and the embodiment of the invention does not limit the concrete form of data structure.
Particularly, backup server can periodically send the load sample information to master server, and for example: backup server can be one-period in 2 seconds, whenever sends a load sample information at a distance from 2 seconds to master server; Also can after Event triggered, send the load sample information to master server, for example: backup server can send a load sample information to master server after handling a backup job; Can after receiving a backup job, send a load sample information to master server.More than just backup server sends the dual mode of load sample information to master server, and present embodiment is not limited in this, and this dual mode can use separately, also can be used in combination.
Step 102, master server is confirmed the load information of backup server according to the load sample information, and confirms the backup server that load is the lightest according to load information.
Step 103, master server is sent to the lightest backup server of load with backup job, so that the lightest backup server Backup Data stream that said backup job is corresponding of said load stores storage array into.
In the present embodiment, master server can be sent to the lightest backup server of load with backup job through local ethernet.
Fig. 2 sends the sketch map of an embodiment of backup job for master server of the present invention; As shown in Figure 2; When sending backup job 15; Master server can confirm that the lightest backup server of load is a backup server 5 according to load information, and therefore, master server is sent to backup server 5 with backup job 15.Receive after the backup job, backup server 5 operation backup jobs 15 store backup job 15 corresponding Backup Data streams into storage array.
When two of master server transmissions or many backup jobs, master server can be ranked to backup job according to the preset priority rule, and repeated execution of steps 101~step 103 is sent to backup server successively with the backup job in the queue queue.
This preset priority rule can for: confirm the priority of backup job according to the time of reception of each backup job, for example: according to receive backup job by early to late order, the priority of each backup job is from high to low; Perhaps, confirm the priority of backup job according to the significance level of each backup job, most important backup job priority is the highest; Be two kinds of examples of priority rule more than, present embodiment is not limited in this, any protection range that can all should fall into present embodiment to the priority rule that backup job is ranked.
In the foregoing description, the master server in the standby system is confirmed the lightest backup server of load in the standby system according to the load sample information that comes from backup server, then backup job is sent to the lightest backup server of this load and handles.Thereby improved the parallel processing performance of backup server in the standby system; Avoided some backup server load overweight; Improve the backup job number that walks abreast in the standby system, thereby in the LAN-Free framework, improved the utilance of SAN bandwidth resources; Improve the whole backup performance of standby system, shortened backup window.
The flow chart of the backup method that Fig. 3 provides for the embodiment of the invention two, as shown in Figure 3, this embodiment comprises:
Step 301, master server receive the load sample information that the backup server in the standby system sends; This standby system comprises at least two backup servers.
In the present embodiment, this load sample information comprises: the load information of CPU utilance, memory usage, I/O and the backup job number that is moving.Particularly; Backup server can be set up the data structure that comprises above-mentioned four kinds of information earlier; Gather the load sample information of backup server self then; The load sample information is recorded in the data structure of foundation, through local ethernet the load sample information that writes down is sent to master server again; Wherein, this data structure can be chained list or array etc., and the embodiment of the invention does not limit the concrete form of data structure.
Particularly, backup server can periodically send the load sample information to master server, and for example: backup server can be one-period in 2 seconds, whenever sends a load sample information at a distance from 2 seconds to master server; Also can after Event triggered, send the load sample information to master server, for example: backup server can send a load sample information to master server after handling a backup job; Can after receiving a backup job, send a load sample information to master server.More than just backup server sends the dual mode of load sample information to master server, and present embodiment is not limited in this, and this dual mode can use separately, also can be used in combination.
Step 302, the weighted sum of the load information of the CPU utilance of master server calculating backup server, memory usage, I/O and the backup job number that is moving, the load information of acquisition backup server.
Particularly, after the load sample information that receives the backup server transmission, master server can be recorded in the load sample information of backup server in the load information table of setting; Calculate the load information of backup server then according to the load sample information of record, and the load information of the backup server that calculates is recorded in the above-mentioned load information table.In above-mentioned load information table, master server can be provided with sign for each backup server, as the load sample information of searching each backup server and the index of load information.
In the present embodiment; When the CPU utilance is that C, memory usage are M, the backup job number that moving is J, I/O load information is when being IO; Master server calculates load information and the weighted sum of the backup job number that moving of CPU utilance, memory usage, the I/O of backup server, obtain backup server load information can for:
L=F(C,M,J,IO)=C×X1+M×X2+J×X3+IO×X4 (1)
In the formula (1), X1, X2, X3 and X4 represent C, M, J and the IO weight when computational load information, X1+X2+X3+X4=1 respectively.Wherein, the concrete value of Xi (i=1,2,3,4) can recommend to be provided with according to the ruuning situation setting or the employing of master server, for example: be provided with
It below only is a kind of mode of calculating the load information of backup server; The embodiment of the invention is not limited in this; Any can be according to CPU utilance, memory usage, the load information of I/O and the backup job number that is moving of backup server, the mode of calculating the load information of backup server all should fall into the protection range of the embodiment of the invention.
Step 303, master server is confirmed the backup server that load is the lightest according to load information.
Particularly, master server according to load information confirm the lightest backup server of load can for: master server is confirmed the backup server that load is the lightest according to the load information that writes down in the load information table.
In the present embodiment, the load information of two or many backup servers is identical in standby system, and for hour, and when promptly the lightest backup server of load was not unique in the standby system, master server can be selected a lightest backup server of load at random; Perhaps; Master server can be selected the highest backup server of priority according to the preset priority rule in the lightest backup server of load, for example: master server can be confirmed the priority of backup server according to the sign of backup server; Suppose backup server be designated 1~n the time; According to the sign of backup server by little to big order, the priority of backup server from high to low, it is the highest promptly to be designated 1 backup server priority.
Step 304, master server is sent to the lightest backup server of load with backup job.
Particularly, master server can be sent to the lightest backup server of load with backup job through local ethernet.
In the present embodiment, an embodiment of master server transmission backup job can be as shown in Figure 2, receive after the backup job, and this backup job of backup server operation, the Backup Data stream that this backup job is corresponding stores storage array into.
When two of master server transmissions or many backup jobs, master server can be ranked to backup job according to the preset priority rule, and repeated execution of steps 301~step 304 is sent to backup server successively with the backup job in the queue queue.This preset priority rule can adopt the priority rule that provides in the embodiment of the invention one, repeats no more at this.
After backup job is sent to the lightest backup server of load; Master server can be recorded in the transmission information of backup job in the above-mentioned load information table in the list item corresponding with the lightest backup server of load, and upgrades the load information of the lightest backup server of load.
In the foregoing description; Master server in the standby system is according to the load sample information that comes from backup server; Calculate the load information of backup server; Confirm the backup server that load is the lightest according to this load information then, backup job is sent to the lightest backup server of this load handles.Thereby improved the parallel processing performance of backup server in the standby system; Avoided some backup server load overweight; Improve the backup job number that walks abreast in the standby system, thereby in the LAN-Free framework, improved the utilance of SAN bandwidth resources; Improve the whole backup performance of standby system, shortened backup window.
The flow chart of the backup method that Fig. 4 provides for the embodiment of the invention three, as shown in Figure 4, this embodiment comprises:
Step 401, the state of each backup server in the master server monitoring standby system.
Step 402 has judged whether that backup server breaks down.When master server has monitored backup server when breaking down, get into step 403; If master server does not find that backup server breaks down, then get into step 405.
Step 403, master server are upgraded the load information table, and the load information of the backup server that breaks down is updated to preset load threshold, get into step 404.
Particularly, in the embodiment of the invention, be provided with a load information table in the master server, be used to write down the load sample information of each backup server and the load information of each backup server of calculating according to the load sample information of record.
In the present embodiment; When master server has monitored backup server when breaking down; Master server upgrades the load information table, the load information of the backup server that breaks down is updated to preset load threshold, like this; Before this backup server that breaks down recovered operate as normal, master server can not send backup job to this backup server that breaks down again.
Step 404, master server sends load information sampling request to the backup server that does not break down, and gets into step 405.
Step 405, master server receive the load sample information that the backup server in the standby system sends.
In the present embodiment, this load sample information comprises: the load information of CPU utilance, memory usage, I/O and the backup job number that is moving.Particularly; Backup server can be set up the data structure that comprises above-mentioned four kinds of information earlier; Gather the load sample information of backup server self then; The load sample information is recorded in the data structure of foundation, through local ethernet the load sample information that writes down is sent to master server again; Wherein, this data structure can be chained list or array etc., and the embodiment of the invention does not limit the concrete form of data structure.
Particularly, backup server can periodically send the load sample information to master server, and for example: backup server can be one-period in 2 seconds, whenever sends a load sample information at a distance from 2 seconds to master server; Also can after Event triggered, send the load sample information to master server, for example: backup server can perhaps receive after the backup job after handling a backup job, sends the load sample information to master server; Wherein, Event triggered comprises that also backup server receives the load information sampling request that master server sends, and after receiving load information sampling request, backup server sends the load sample information to master server.More than just backup server is to several kinds of modes of master server transmission load sample information, and present embodiment is not limited in this, and aforesaid way can use separately, also can be used in combination.
Step 406, the weighted sum of the load information of the CPU utilance of master server calculating backup server, memory usage, I/O and the backup job number that is moving, the load information of acquisition backup server gets into step 407.
In the present embodiment, master server can obtain the load information of each backup server according to the method that step 302 provides, and repeats no more at this.
Step 407 judges whether the load information of all backup servers in the standby system all reaches preset load threshold.When the load information of all backup servers all reaches preset load threshold, execution in step 410; When existing load information not reach the backup server of preset load threshold in the standby system, execution in step 408.
Step 408, master server is confirmed the backup server that load is the lightest according to load information, gets into step 409.
Particularly, master server can be confirmed the backup server that load is the lightest according to the load information that writes down in the load information table.In the present embodiment, the load information of two or many backup servers is identical in standby system, and for hour, and when promptly the lightest backup server of load was not unique in the standby system, master server can be selected a lightest backup server of load at random; Perhaps; Master server can be selected the highest backup server of priority according to the preset priority rule in the lightest backup server of load, for example: master server can be confirmed the priority of backup server according to the sign of backup server; Suppose backup server be designated 1~n the time; According to the sign of backup server by little to big order, the priority of backup server from high to low, it is the highest promptly to be designated 1 backup server priority.
Step 409, master server is sent to the lightest backup server of load with backup job.
Particularly, master server can be sent to the lightest backup server of load with backup job through local ethernet.Wherein, backup job comprises the backup job that is untreated and finishes from the backup job of backup client and the backup server that breaks down.
In the present embodiment, an embodiment of master server transmission backup job can be as shown in Figure 2, receive after the backup job, and this backup job of backup server operation, the Backup Data stream that this backup job is corresponding stores storage array into.
When two of transmissions or many backup jobs, master server can be ranked to backup job according to the preset priority rule, and repeated execution of steps 401~step 409 is sent to backup server successively with the backup job in the queue queue.This preset priority rule can adopt the priority rule that provides in the embodiment of the invention one, repeats no more at this.
After backup job is sent to the lightest backup server of load; Master server can be recorded in the transmission information of backup job in the above-mentioned load information table in the list item corresponding with the lightest backup server of load, and upgrades the load information of the lightest backup server of load.
Step 410, master server is ranked to backup job according to the preset priority rule, and returns execution in step 401.
In the present embodiment, when the load information of all backup servers in the standby system all reaches preset load threshold, explain that present backup server all is in the state of operating at full capacity; Ability is not handled more backup job; At this moment, master server can be ranked to backup job according to the preset priority rule and waited, and returns execution in step 401; Again the less backup server of wait acknowledge load is to issue processing with backup job.Wherein, this preset priority rule can adopt the priority rule that provides in the embodiment of the invention one, repeats no more at this.
In the foregoing description; Master server in the standby system is monitored the state of backup server; When having monitored backup server when breaking down, the backup job on the backup server that breaks down is sent to the backup server that does not break down, break down and can cause backup job to handle the defective of failure thereby remedied backup server; Avoid the creation data on the backup client to face not protected danger, improved the robustness of standby system.And when there is the backup server of the load threshold that does not reach preset in the master server in the standby system in confirming standby system; Confirm the backup server that load is the lightest according to load information, backup job is sent to the lightest backup server of this load handles.Thereby improved the parallel processing performance of each backup server in the standby system; Avoided some backup server load overweight; Improve the backup job number that walks abreast in the standby system, thereby in the LAN-Free framework, improved the utilance of SAN bandwidth resources; Improve the whole backup performance of standby system, shortened backup window.
The flow chart of the backup method that Fig. 5 provides for the embodiment of the invention four, as shown in Figure 5, this embodiment comprises:
Step 501, backup server is gathered the load sample information of this backup server.
In the present embodiment, this load sample information comprises: the load information of CPU utilance, memory usage, I/O and the backup job number that is moving.Particularly, backup server can be set up the data structure that comprises above-mentioned four kinds of information earlier, gathers the load sample information of backup server self then, the load sample information is recorded in the data structure of foundation; Wherein, this data structure can be chained list or array etc., and the embodiment of the invention does not limit the concrete form of data structure.
Backup server can periodically be gathered the load sample information, and for example: backup server can be one-period in 2 seconds, every load sample information of gathering a time at a distance from 2 seconds; Also can after Event triggered, gather the load sample information, for example: backup server can perhaps receive after the backup job after handling a backup job, gathers one time the load sample information; Wherein, Event triggered comprises that also backup server receives the load information sampling request that master server sends, and after receiving load information sampling request, backup server is gathered the load sample information of this backup server.Be several kinds of modes that backup server is gathered the load sample information more than, present embodiment is not limited in this, and aforesaid way can use separately, also can be used in combination.
Step 502; Backup server is sent to master server with the load sample information of gathering; Confirm the lightest backup server of load in the standby system for this master server according to this load sample information, and backup job is sent to the lightest backup server of load.
Particularly, backup server can be sent to master server with the load sample information through local ethernet.
Step 503, backup server receives the backup job that master server sends, and the Backup Data stream that this backup job is corresponding stores storage array into.
In the foregoing description, backup server is gathered the load sample information of self, and this load sample information is sent to master server; Thereby master server can be confirmed the backup server that load is the lightest according to this load sample information, and backup job is sent to the lightest backup server of load handles, and has improved the parallel processing performance of backup server in the standby system; Avoided some backup server load overweight; Improve the backup job number that walks abreast in the standby system, thereby in the LAN-Free framework, improved the utilance of SAN bandwidth resources; Improve the whole backup performance of standby system, shortened backup window.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The structural representation of the master server that Fig. 6 provides for the embodiment of the invention five; The master server of present embodiment can be realized the flow process that the present invention is embodiment illustrated in fig. 1; As shown in Figure 6, this master server can comprise: load information receiver module 61, load balance scheduling module 62 and backup job sending module 63.Wherein:
Load information receiver module 61 is used for receiving the load sample information that the backup server of standby system sends, and this standby system comprises at least two backup servers;
Wherein, this load sample information comprises: the load information of CPU utilance, memory usage, I/O and the backup job number that is moving.Particularly, backup server can be set up the data structure that comprises above-mentioned four kinds of information earlier, gathers the load sample information of backup server self then, the load sample information is recorded in the data structure of foundation; Through local ethernet the load sample information that writes down is sent to master server again.Wherein, this data structure can be chained list or array etc., and the embodiment of the invention does not limit the concrete form of data structure.
Load balance scheduling module 62 is used for confirming according to the load sample information that load information receiver module 61 receives the load information of backup server, and confirms the lightest backup server of load in the standby system according to this load information;
Backup job sending module 63 is used for backup job is sent to the lightest backup server of load that load balance scheduling module 62 is confirmed.
In the foregoing description; The load sample information that comes from backup server that load balance scheduling module 62 receives according to load information receiver module 61; Confirm the backup server that load is the lightest, backup job sending module 63 is sent to the lightest backup server of this load with backup job and handles then.Thereby improved the parallel processing performance of backup server in the standby system; Avoided some backup server load overweight; Improve the backup job number that walks abreast in the standby system, thereby in the LAN-Free framework, improved the utilance of SAN bandwidth resources; Improve the whole backup performance of standby system, shortened backup window.
The structural representation of the master server that Fig. 7 provides for the embodiment of the invention six; The master server of present embodiment can be realized Fig. 3 of the present invention or flow process embodiment illustrated in fig. 4; As shown in Figure 7, this master server can comprise: load information receiver module 71, load balance scheduling module 72, backup job sending module 73, load information logging modle 74, load information update module 75, global monitoring module 76 and sampling request sending module 77.
Wherein, load information receiver module 71 is used for receiving the load sample information that the backup server of standby system sends, and this standby system comprises at least two backup servers;
Particularly, load information receiver module 71 can receive the load sample information of backup server cycle transmission, and for example: backup server can be one-period in 2 seconds, whenever sends a load sample information at a distance from 2 seconds to master server; Load information receiver module 71 also can receive the load sample information that backup server sends to master server after Event triggered; For example: backup server can be after handling a backup job; Perhaps receive after the backup job, send the load sample information to master server; Backup server also can receive master server and send the load sample information to the load information sampling request back that backup server sends to master server.More than just backup server is to several kinds of modes of master server transmission load sample information, and present embodiment is not limited in this, and aforesaid way can use separately, also can be used in combination.
Concrete, the backup job number that the load sample information that said load information receiver module 71 receives can comprise the load information of CPU utilance, memory usage, I/O and move.
Load balance scheduling module 72 is used for confirming according to the load sample information that load information receiver module 71 receives the load information of backup server, and confirms the lightest backup server of load in the standby system according to load information;
Backup job sending module 73 is used for backup job is sent to the lightest backup server of load that load balance scheduling module 72 is confirmed;
Load information logging modle 74 is used for the load information table that load sample information and load information with backup server are recorded in setting;
Load information update module 75; Be used for after backup job sending module 73 sends backup job; The transmission information of backup job is recorded in the load information table in the list item corresponding with the lightest backup server of load, and upgrades the load information of the lightest backup server of load;
In addition, when breaking down for some backup server in standby system, do not influence the operation of backup job, the master server in the present embodiment can also comprise:
Global monitoring module 76 is used for monitoring the operating state of each backup server of standby system;
Load information update module 75 also is used for monitoring standby system when having backup server to break down when global monitoring module 76, upgrades above-mentioned load information table, and the load information of the backup server that breaks down is updated to preset load threshold;
It is understandable that the purpose that the load information of part server that breaks down is updated to preset load threshold is that backup job sending module 73 no longer sends backup job to this backup server when issuing backup job.
Sampling request sending module 77 is used for monitoring standby system when having backup server to break down when global monitoring module 76, sends the load information sampling to the backup server that does not break down and asks.
Concrete; Send load information sampling request through the backup server that other do not break down in standby system; Thereby the backup server collection that other do not break down in the triggering standby system is also sent self load sample information to this master server; Thereby can make this master server confirm the backup server that load is the lightest, and the backup job in the backup server that breaks down is sent to the lightest backup server of said load handles according to this load sample information.
Particularly, load balance scheduling module 72 can comprise: calculating sub module 721 and arbitration submodule 722, wherein:
Calculating sub module 721 is used to calculate load information and the weighted sum of the backup job number that moving of CPU utilance, memory usage, the I/O of backup server, obtains the load information of backup server; Specific descriptions are seen before and are stated embodiment two, repeat no more at this;
Arbitration submodule 722 is used for confirming the backup server that load is the lightest according to calculating sub module 721 load calculated information;
Load balance scheduling module 72 can also comprise:
Queuing submodule 723, be used for when the arbitration result of arbitrating submodule 722 be the load information of all backup servers of standby system when all reaching preset load threshold, according to the preset priority rule backup job is ranked.
Wherein, this preset priority rule can for: confirm the priority of backup job according to the time of reception of backup job, according to receive backup job by early to late order, the priority of each backup job is from high to low; Perhaps, confirm the priority of backup job according to the significance level of each backup job, most important backup job priority is the highest; Be two kinds of examples of priority rule more than, present embodiment is not limited in this, any protection range that can all should fall into present embodiment to the priority rule that backup job is ranked.
In the present embodiment; Through the operating state of each backup server in the global monitoring module 76 monitoring standby systems is set; And when finding that backup server breaks down; By load information update module 75 more newly-installed load information tables; The load information of the backup server that breaks down is updated to preset load threshold, and sends load information sampling request by sampling request sending module 77 to the backup server that does not break down, load information receiver module 71 receives the load sample information that the above-mentioned backup server that does not break down sends; Thereby can make the lightest backup server of load in the backup server that this master server confirms not break down according to this load sample information, and the backup job in the backup server that breaks down is sent to the lightest backup server of this load handles; Thereby remedied the defective that backup server breaks down and can cause the backup job processing to be failed; Avoid the creation data on the backup client to face not protected danger, improved the robustness of standby system, improved the parallel processing performance of each backup server in the standby system simultaneously; Avoided some backup server load overweight; Improve the backup job number that walks abreast in the standby system, thereby in the LAN-Free framework, improved the utilance of SAN bandwidth resources; Improve the whole backup performance of standby system, shortened backup window.
The structural representation of the backup server that Fig. 8 provides for the embodiment of the invention seven, the backup server in the present embodiment can be realized flow process embodiment illustrated in fig. 5.As shown in Figure 8, this backup server can comprise: load information sampling module 81, load information reporting module 82, backup job receiver module 83, backup job operation module 84 and sampling request receiver module 85.Particularly:
Load information sampling module 81, the load sample information that is used to gather backup server;
Load information reporting module 82 is used for the load sample information that load information sampling module 81 is gathered is sent to master server;
Backup job receiver module 83 is used to receive the backup job that master server sends;
Backup job operation module 84, the corresponding Backup Data stream of backup job that is used for backup job receiver module 83 is received stores storage array into, and feeds back the backup job number that is moving to load information sampling module 81;
Sample and ask receiver module 85, be used to receive the load information sampling request that master server sends, and the load sample information of notification payload intelligence sample module 81 collection backup servers.
Specific descriptions can repeat no more referring to the embodiment of the invention four here.
In the foregoing description; Load information sampling module 81 is gathered the load sample information of self, and load information reporting module 82 is sent to master server with this load sample information, thereby master server can be confirmed the backup server that load is the lightest according to this load sample information; And backup job is sent to the lightest backup server of load handles; Improve the parallel processing performance of backup server in the standby system, avoided some backup server load overweight, improved the backup job number that walks abreast in the standby system; Thereby in the LAN-Free framework; Improve the utilance of SAN bandwidth resources, improved the whole backup performance of standby system, shortened backup window.
The structural representation of the standby system that Fig. 9 provides for the embodiment of the invention eight, as shown in Figure 9, this standby system comprises master server 91, at least two backup servers 92 and storage arrays 93.
Backup server 92; Be used to gather the load sample information of self, this load sample information is sent to master server 91, and receive the backup job that master server 91 sends; The operation backup job, and the Backup Data that this backup job is corresponding stream stores storage array 93 into;
Particularly, backup server 92 can adopt the present invention's backup server embodiment illustrated in fig. 8 to realize.
Master server 91; Be used to receive the load sample information that backup server 92 sends; Confirm the load information of backup server 92 according to the load sample information; And confirm the lightest backup server 92 of load in the standby system, and backup job is sent to the lightest backup server of load 92 according to load information.
Particularly, master server 91 can adopt Fig. 6 of the present invention or master server embodiment illustrated in fig. 7 to realize.
Storage array 93 is used for the Backup Data stream that storage and backup service device 92 sends.
In the foregoing description, master server 91 is confirmed the lightest backup server of load 92 according to the load sample information that comes from backup server 92, then backup job is sent to the lightest backup server of this load 92 and handles.Thereby improved the parallel processing performance of each backup server in the standby system; Avoided some backup server load overweight; Improve the backup job number that walks abreast in the standby system, thereby in the LAN-Free framework, improved the utilance of SAN bandwidth resources; Improve the whole backup performance of standby system, shortened backup window.
The structural representation of the standby system that Figure 10 provides for the embodiment of the invention nine; The standby system of present embodiment adopts the LAN-Free framework; Shown in figure 10, this standby system comprises master server 1001, at least two backup servers 1002, storage array 1003 and backup client 1004.Wherein:
Backup client 1004 is used for sending backup job to master server 1001;
Particularly, backup client 1004 can be sent backup job to master server 1001 through SAN.
Backup server 1002; Be used to gather the load sample information of backup server 1002; This load sample information is sent to master server 1001, and receives the backup job that master server 1001 sends, the Backup Data stream that this backup job is corresponding stores storage array 1003 into;
Particularly, backup server 1002 can be sent to master server 1001 with the load sample information through local ethernet, through SAN Backup Data stream is sent to storage array 1003.Particularly, backup server 1002 can adopt the present invention's backup server embodiment illustrated in fig. 8 to realize.
Master server 1001; Be used to receive the load sample information that backup server 1002 sends; Confirm the load information of backup server 1002 according to this load sample information; And confirm the lightest backup server 1002 of load in the standby system, and backup job is sent to the lightest backup server of this load 1002 according to this load information.Particularly, master server 1001 can be sent to the lightest backup server of load 1002 with backup job through local ethernet, and master server 1001 can adopt Fig. 6 of the present invention or master server embodiment illustrated in fig. 7 to realize.
Storage array 1003 is used for the Backup Data stream that storage and backup service device 1002 sends.
The standby system that present embodiment provides is the load balancing cluster system, and the backup server 1002 in master server 1001 these standby systems of centralized management carries out backup job.Preferably; Can in backup server 1002, select the standby server of a backup server as master server 1001; The standby server of one station server as master server 1001 perhaps is set separately; Constitute the load balancing cluster system of active and standby pattern, cause the standby system can't operate as normal to prevent that master server 1001 from breaking down.
In the foregoing description; Master server 1001 is according to the load sample information that comes from backup server 1002; Confirm the lightest backup server of load 1002, will be sent to the lightest backup server of this load 1002 from the backup job of backup client 1004 then and handle; Master server 1001 also can be sent to the be untreated backup job that finishes of the backup server that breaks down the lightest backup server of load 1002 and handles.Thereby improved the parallel processing performance of each backup server in the standby system; Avoided some backup server load overweight; Improve the backup job number that walks abreast in the standby system, thereby in the LAN-Free framework, improved the utilance of SAN bandwidth resources; Improve the whole backup performance of standby system, shortened backup window.
The backup method that the embodiment of the invention provides, system, master server and backup server; The situation that is equally applicable to a plurality of load balancing cluster systems and deposits; At this moment the load information of all load balancing cluster systems of master server management need be set; The backup job that receives is sent to the lightest load balancing cluster system of load; Confirm the lightest backup server of load in the lightest load balancing cluster system of this load by the master server in the lightest load balancing cluster system of load again, backup job is sent to the lightest backup server of this load, the backup server the lightest by this load carries out subsequent treatment to backup job.Concrete implementation process and Fig. 1 of the present invention, Fig. 3 or flow process embodiment illustrated in fig. 4 are similar, repeat no more at this.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
What should explain at last is: above embodiment is only in order to technical scheme of the present invention to be described but not limit it; Although the present invention has been carried out detailed explanation with reference to preferred embodiment; Those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, also can not make amended technical scheme break away from the spirit and the scope of technical scheme of the present invention and these are revised or be equal to replacement.