Embodiment
Below in conjunction with the accompanying drawing among the present invention, the technical scheme among the present invention is clearly and completely described, 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 of protection of the invention.
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; By 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, sends a load sample information every 2 seconds to master server; Also can send the load sample information to master server after Event triggered, 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 is to the dual mode of master server transmission load sample information, 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 determined the load information of backup server according to the load sample information, and determines 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 of described load stores the Backup Data stream of described backup job correspondence into storage array.
In the present embodiment, master server can be sent to the lightest backup server of load with backup job by local ethernet.
Fig. 2 sends the schematic diagram 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 determine that the lightest backup server of load is a backup server 5 according to load information, 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 the Backup Data stream of backup job 15 correspondences 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: determine 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, determine 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 determined 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, improved 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 backup performance of standby system integral body, 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, by 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, sends a load sample information every 2 seconds to master server; Also can send the load sample information to master server after Event triggered, 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 is to the dual mode of master server transmission load sample information, 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 the load information of CPU utilance, memory usage, I/O of backup server and the weighted sum of the backup job number that moving, 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 determined the backup server that load is the lightest according to load information.
Particularly, master server according to load information determine the lightest backup server of load can for: master server is determined 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 according to the preset priority rule, in the lightest backup server of load, select the highest backup server of priority, for example: master server can be determined 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 by local ethernet.
In the present embodiment, the embodiment that master server sends backup job can receive after the backup job as shown in Figure 2, and backup server moves this backup job, stores the Backup Data stream of this backup job correspondence 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 301~step 304 is sent to backup server successively with the backup job in the queue queue.The priority rule that provides in the embodiment of the invention one can be provided this preset priority rule, does not repeat them here.
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, determine 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, improved 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 backup performance of standby system integral body, 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, enter step 403; If master server does not find that backup server breaks down, then enter 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 default load threshold, enter 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 default 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 enters 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, by 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, sends a load sample information every 2 seconds to master server; Also can send the load sample information to master server after Event triggered, 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 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 enters 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 does not repeat them here.
Step 407 judges whether the load information of all backup servers in the standby system all reaches default load threshold.When the load information of all backup servers all reaches default load threshold, execution in step 410; When existing load information not reach the backup server of default load threshold in the standby system, execution in step 408.
Step 408, master server is determined the backup server that load is the lightest according to load information, enters step 409.
Particularly, master server can be determined 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 according to the preset priority rule, in the lightest backup server of load, select the highest backup server of priority, for example: master server can be determined 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 by 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, the embodiment that master server sends backup job can receive after the backup job as shown in Figure 2, and backup server moves this backup job, stores the Backup Data stream of this backup job correspondence into storage array.
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.The priority rule that provides in the embodiment of the invention one can be provided this preset priority rule, does not repeat them here.
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 default load threshold, illustrate 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 be waited, and returns execution in step 401, again the less backup server of wait acknowledge load is to issue processing with backup job.Wherein, the priority rule that provides in the embodiment of the invention one can be provided this preset priority rule, does not repeat them here.
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; backup job on the backup server that breaks down is sent to the backup server that does not break down; 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.And when there is the backup server of the load threshold that does not reach default in the master server in the standby system in determining standby system, determine 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, improved 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 backup performance of standby system integral body, 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 are 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, gathers one time the load sample information every 2 seconds; Also can gather the load sample information after Event triggered, 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 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, determine 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 by local ethernet.
Step 503, backup server receive the backup job that master server sends, and store the Backup Data stream of this backup job correspondence into storage array.
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 determined 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, improved 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 backup performance of standby system integral body, 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 finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out 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; By 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 determining according to the load sample information that load information receiver module 61 receives the load information of backup server, and determines 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 determined.
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, determine 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, improved 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 backup performance of standby system integral body, 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 that the backup server cycle sends, and for example: backup server can be one-period in 2 seconds, sends a load sample information every 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 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 described 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 determining according to the load sample information that load information receiver module 71 receives the load information of backup server, and determines 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 determined;
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 default load threshold;
Be understandable that the purpose that the load information of part server of breaking down is updated to default 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 by 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 also sends self load sample information to this master server, thereby can make this master server determine 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 described 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 the load information of CPU utilance, memory usage, I/O of backup server and the weighted sum of the backup job number that moving, obtains the load information of backup server; Specific descriptions are seen before and are stated embodiment two, do not repeat them here;
Arbitration submodule 722 is used for determining 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 default load threshold, according to the preset priority rule backup job is ranked.
Wherein, this preset priority rule can for: determine 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, determine 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, by 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 default load threshold, and send load information sampling request to the backup server that do not break down by sampling request sending module 77, 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 determines 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; avoided 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; improved 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 backup performance of standby system integral body, 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 Backup Data stream that is used for backup job correspondence that backup job receiver module 83 is received stores storage array into, and the backup job number that is moving to load information sampling module 81 feedbacks;
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 herein.
In the foregoing description, load information sampling module 81 is gathered the load sample information of self, load information reporting module 82 is sent to master server with this load sample information, thereby master server can be determined 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, improved 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, improved the utilance of SAN bandwidth resources, improve the backup performance of standby system integral body, 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, move backup job, and store the Backup Data stream of this backup job correspondence into storage array 93;
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, determine the load information of backup server 92 according to the load sample information, and determine 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 determined 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, improved 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 backup performance of standby system integral body, 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, as 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 send backup job to master server 1001 by 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, store the Backup Data stream of this backup job correspondence into storage array 1003;
Particularly, backup server 1002 can be sent to master server 1001 with the load sample information by local ethernet, by 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, determine the load information of backup server 1002 according to this load sample information, and determine 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 by 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, determine 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; Also the backup server that breaks down can the be untreated backup job that finishes of master server 1001 is sent to 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, improved 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 backup performance of standby system integral body, 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 need to be provided with the load information that a master server is managed all load balancing cluster systems, the backup job that receives is sent to the lightest load balancing cluster system of load, determine 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, and 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, do not repeat them here.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement 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.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail 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, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.