Method, apparatus and computer program product for managing the scheduling of backup tasks
By evaluating the scheduling settings and execution information of the backup task, a scoring mechanism is provided, which solves the problem in the existing technology that the backup task scheduling settings cannot be evaluated in real time, and improves the performance and stability of the backup system.
Patent Information
- Application Number
- CN202010220592.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-03-25
AI Technical Summary
Existing backup task scheduling methods rely on the experience of system administrators and cannot evaluate the impact of scheduling settings on the performance of backup clients and servers in real time, resulting in possible IO delays and performance degradation.
By obtaining the scheduling settings and execution information of the target backup task, the impact of the scheduling settings on the performance of the backup system is determined, and a scoring mechanism is provided to help administrators adjust the scheduling settings.
It implements scientific evaluation of backup task scheduling settings, helps administrators understand whether scheduling is suitable, reduces IO delays and performance degradation, and improves the stability and availability of the backup system.
Smart Images

Figure CN113448697B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to the field of information processing, and more particularly to a method, device, and computer program product for managing the scheduling of backup tasks. Background Art
[0002] In data protection systems, the scheduling of backup tasks is a very important task. Improper scheduling settings can lead to many problems. For example, if the backup task occurs during the backup client's IO peak period, it will greatly increase the IO latency and make various services running on the client unavailable. In addition, if too many backup tasks are scheduled in the same time interval, the performance of the backup server will decline due to concurrently executed tasks, and it will also make the backup server unstable.
[0003] Currently, the scheduling of backup tasks is set by system administrators based on their experience. The problem is that system administrators often cannot know whether the current scheduling settings are appropriate for the backup client and the backup server. Summary of the invention
[0004] Embodiments of the present disclosure provide methods, devices, and computer program products for managing the scheduling of backup tasks.
[0005] In a first aspect of the present disclosure, a method for managing the scheduling of backup tasks is provided, comprising: obtaining a scheduling setting for a target backup task, the scheduling setting at least specifying a start time for executing the target backup task in a backup system; obtaining execution information associated with the execution of the target backup task according to the scheduling setting; and determining a score for the scheduling setting based on the execution information, the score indicating the degree of impact of the execution of the target backup task according to the scheduling setting on the performance of the backup system.
[0006] In a second aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, cause the electronic device to perform an action, the action including: obtaining a scheduling setting for a target backup task, the scheduling setting at least specifying a start time for executing the target backup task in a backup system; obtaining execution information associated with execution of the target backup task according to the scheduling setting; and determining a score for the scheduling setting based on the execution information, the score indicating the degree to which the execution of the target backup task according to the scheduling setting affects the performance of the backup system.
[0007] In a third aspect of the present disclosure, a computer program product is provided. The computer program product is tangibly stored in a non-transient computer storage medium and includes machine executable instructions. The machine executable instructions, when executed by a device, cause the device to perform any step of the method described in the first aspect of the present disclosure.
[0008] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the disclosure, nor is it intended to limit the scope of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.
[0010] Figure 1 A block diagram illustrating an example dispatch management system in which embodiments of the present disclosure can be implemented;
[0011] Figure 2 A flowchart illustrating an example method for managing the scheduling of backup tasks according to an embodiment of the present disclosure is shown;
[0012] Figure 3A A schematic diagram showing a curve of the impact of writing data to a backup system on I / O latency according to an embodiment of the present disclosure;
[0013] Figure 3B A schematic diagram showing a situation where backup tasks are executed simultaneously according to an embodiment of the present disclosure;
[0014] Figure 3C A schematic diagram showing a situation where the execution time interval of a target backup task partially overlaps with the system maintenance time interval according to an embodiment of the present disclosure;
[0015] Figure 4 A flowchart of an example method for determining an execution time interval according to an embodiment of the present disclosure is shown;
[0016] Figure 5A A schematic diagram showing a one-way time coordinate according to an embodiment of the present disclosure;
[0017] Figure 5B A schematic diagram of a circular time coordinate according to an embodiment of the present disclosure is shown;
[0018] Figure 6 A flowchart illustrating an example method for determining a score for a scheduling setting according to an embodiment of the present disclosure; and
[0019] Figure 7 A schematic block diagram of an example electronic device that can be used to implement embodiments of the present disclosure is shown.
[0020] In the various drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0022] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0023] As mentioned above, in the data protection system, the scheduling of backup tasks is a very important task. Good scheduling settings can ensure data security and service availability. On the contrary, inappropriate scheduling settings will cause many problems.
[0024] Traditionally, for backup clients, such as those based on virtual platforms, image-level backup is usually provided based on platform snapshot technology. Although this is a fast and simple way to perform data backup, such a backup process will affect the client's input and output (IO) performance, especially when the host merges incremental snapshot files. If the backup task occurs during the client's IO peak period, it will greatly increase the IO latency and make various services running on the client unavailable.
[0025] In addition, for the backup server, if too many backup tasks are scheduled in the same time interval, the performance of the backup server will be reduced due to the concurrently executed tasks. In this case, each backup task will take more time or even be delayed, and this may also make the backup server unstable. For some backup systems, if the backup task is run during system maintenance, the performance of the entire backup system will be reduced.
[0026] Currently, the scheduling of backup tasks is set by system administrators based on their experience. The problem is that system administrators often cannot know whether the current scheduling settings are appropriate for backup clients and backup servers. This is especially true when system administrators need to manage a large infrastructure with a large number of clients and backup scheduling settings.
[0027] The embodiments of the present disclosure provide a solution for managing the scheduling of backup tasks to solve one or more of the above problems and other potential problems. The solution evaluates the scheduling settings of backup tasks based on real backup client performance data and real backup server runtime status, so that the system administrator can know whether the backup system is in a good operating state and whether the scheduling settings need to be adjusted.
[0028] Figure 1 1 shows a block diagram of an example scheduling management system 100 in which embodiments of the present disclosure can be implemented. Figure 1 As shown, the scheduling management system 100 includes a scheduling management device 110 , a task execution device 120 , and backup devices 130 - 1 to 130 - 3 (collectively referred to as backup devices 130 ). The various methods according to the embodiments of the present disclosure may be implemented at the scheduling management device 110 .
[0029] The scheduling management device 110 may be a device capable of determining a score for a scheduling setting. The scheduling management device 110 may be, for example, a computer, a virtual machine, a server, etc., and the present disclosure is not limited in this respect. The task execution device 120 may be a device capable of backing up data on a backup device 130 according to the scheduling setting. The backup device 130 is a device having data to be backed up. The backup device 130 may be, for example, a computer, a virtual machine, a server, etc., and the present disclosure is not limited in this respect. The scheduling management device 110, the task execution device 120, and the backup device 130 may communicate with each other via a network, and the network may be, for example, the Internet, an intranet, etc.
[0030] It should be understood that the structure of the scheduling management system 100 is described for exemplary purposes only and does not imply any limitation on the scope of the present disclosure. For example, the embodiments of the present disclosure may also be applied to systems different from the scheduling management system 100. Figure 1 In the embodiment, the scheduling management device 110 and the task execution device 120 are shown as separate devices, but it should be understood that the scheduling management device 110 and the task execution device 120 can also be integrated together. It should be understood that the specific number of the above-mentioned devices is given only for illustrative purposes and does not imply any limitation on the scope of the present disclosure. For example, the embodiments of the present disclosure can also be applied to more or fewer backup devices.
[0031] Figure 21 is a flowchart of an exemplary method 200 for managing the scheduling of backup tasks according to an embodiment of the present disclosure. For example, the method 200 may be performed as follows: Figure 1 The method 200 is performed by the scheduling management device 110 shown in the figure. It should be understood that the method 200 can also be performed by other devices, and the scope of the present disclosure is not limited in this respect. It should also be understood that the method 200 can also include additional actions not shown and / or can omit the actions shown, and the scope of the present disclosure is not limited in this respect.
[0032] At 210 , the schedule management device 110 obtains schedule settings for the target backup task.
[0033] In some embodiments, the scheduling setting may specify a start time for executing a target backup task in the backup system. The backup system may include a task execution device 120 and a backup device 130. The start time may range from 0:00 to 23:59. For example, the scheduling setting may specify that the target backup task is executed at 9:00 a.m. every day. The target backup task may be backing up data on one or more backup devices 130.
[0034] At 220 , the schedule management device 110 obtains execution information associated with the execution of the target backup task according to the schedule settings.
[0035] In some embodiments, the scheduling management device 110 can obtain various information from the task execution device 120 and the backup device 130, and then determine the execution information associated with the execution of the target backup task according to the scheduling settings from the various information obtained, so as to subsequently determine the extent to which the execution of the target backup task according to the scheduling settings affects the performance of the backup system.
[0036] For example, in some embodiments, the scheduling management device 110 may first determine the execution time interval during which the target backup task is executed. For example, the scheduling management device 110 may determine the execution time interval by obtaining the historical execution duration and start time of the target backup task. For example, if the start time of the acquired target backup task is 9:00 and the historical execution duration is 1 hour, the scheduling management device 110 may determine that the execution time interval during which the target backup task is executed is 9:00-10:00. Then, the scheduling management device 110 may determine various execution information related to the execution time interval.
[0037] For example, in some embodiments, the scheduling management device 110 may determine the amount of data written to the backup system during the execution time interval. For ease of description, such execution information is also simply referred to as "the amount of data written" hereinafter. Additionally or alternatively, the scheduling management device 110 may determine the amount of data written to the backup device 130 during the execution time interval. Since the backup process merges incremental snapshot files at the end, the greater the amount of data written to the backup device during the backup process, the greater the I / O delay. Figure 3A FIG. 3 is a schematic diagram showing a curve 310 of the effect of writing data to a backup system on I / O latency according to an embodiment of the present disclosure. Figure 3A As shown, the horizontal axis represents time and the vertical axis represents the I / O delay level. Level 301 represents the I / O delay level under normal circumstances, and level 302 represents the I / O delay level when writing hundreds of megabytes of data to the backup device 130. Figure 3A As can be seen from the figure, the "amount of data written" will significantly affect the performance of the backup system.
[0038] Additionally or alternatively, in some embodiments, the scheduling management device 110 can determine the number of backup tasks executed simultaneously within the execution time interval and the number exceeds a threshold number. For ease of description, such execution information is simply referred to as the "number of parallel tasks" below. It is easy to understand that the greater the number of backup tasks executed simultaneously in the backup system, the more the performance of the backup system, especially the task execution device 120, will degrade, and the task execution device 120 may also become unstable. Therefore, determining the number of backup tasks executed simultaneously can be used to subsequently determine the extent to which the execution of the target backup task according to the scheduling settings affects the performance of the backup system. Refer to the following Figure 3B To describe such execution information.
[0039] Figure 3B FIG. 3 is a schematic diagram showing a situation 320 in which backup tasks are executed simultaneously according to an embodiment of the present disclosure. Figure 3B As shown, the horizontal axis represents time, backup task 303 is the target backup task, its start time is S1, and its execution duration is E1. In the execution interval S1 to S1+E1 of backup task 303, backup tasks 304 to 308 are also executed at the same time. Figure 3B As shown, in the time interval from S2 to S3, the number of backup tasks executed simultaneously is 4, and in the time interval from S4 to S1+E1, the number of backup tasks executed simultaneously is 3. If the threshold number is 3, the scheduling management device 110 can determine that the number of backup tasks executed simultaneously in the execution time interval from S1 to S1+E1 that exceeds the threshold number is 4.
[0040] Additionally or alternatively, in some other embodiments, the scheduling management device 110 may determine the total number of backup tasks executed at least partially within the execution time interval. For ease of description, such execution information is also simply referred to as the “total number of tasks” hereinafter. Figure 3B In this example, the scheduling management device 110 may determine that the total number of backup tasks executed within the execution time interval is 6. Alternatively, the scheduling management device 110 may exclude the target backup task when determining the total number. For example, in this example, the scheduling management device 110 determines the total number to be 5.
[0041] Additionally or alternatively, in some embodiments, the scheduling management device 110 may determine whether the execution time interval overlaps at least partially with the system maintenance time interval of the backup system. For ease of description, such execution information is also simply referred to as "system maintenance overlap" hereinafter. In some cases, if the backup task occurs during system maintenance, the maintenance process of the system may be affected and the system performance may be reduced. Therefore, it is not expected that the execution time interval of the backup task overlaps with the system maintenance time interval. Figure 3C FIG. 3 is a schematic diagram showing a situation 330 in which the execution time interval of the target backup task partially overlaps with the system maintenance time interval according to an embodiment of the present disclosure. Figure 3C As shown, the horizontal axis represents time, and the execution time interval of the target backup task 303 partially overlaps with the system maintenance time interval. In this case, the performance of the backup system will be affected.
[0042] Now return to Figure 2 At 230 , the schedule management device 110 may determine a score for the schedule setting according to the execution information, the score indicating the degree to which the execution of the target backup task according to the schedule setting affects the performance of the backup system.
[0043] As mentioned above, different execution information can indicate the performance impact of the target backup task according to the scheduling configuration on the backup system from different aspects. Therefore, in some embodiments, the scheduling management device 110 can first determine a first criterion associated with the execution information, the first criterion being used to evaluate the degree of performance impact of the execution information on the backup system, and then determine the level of performance impact of the execution information on the backup system according to the first criterion.
[0044] For example, in some embodiments, for the amount of written data within the execution time interval of the target backup task, the scheduling management device 110 may determine the following Table 1 as the first criterion associated with this type of execution information.
[0045] Table 1: First criteria associated with the amount of written data
[0046] level definition 1 Write data volume < 100MB 3 Write data volume < 200MB 5 Write data volume < 500MB 7 Write data volume < 800MB 9 Amount of data written>=800MB
[0047] Additionally or alternatively, in some embodiments, for the number of parallel tasks within the execution time interval of the target backup task, the scheduling management device 110 may determine the following Table 2 as the first criterion associated with this type of execution information, where Cmax is the upper limit of the tasks that the task execution device 120 can execute simultaneously.
[0048] Table 2 The first criterion associated with the number of parallel tasks
[0049] level definition 1 Number of parallel tasks < 40%*Cmax 3 Number of parallel tasks < 60%*Cmax 5 Number of parallel tasks < 70%*Cmax 7 Number of parallel tasks < 90%*Cmax 9 Number of parallel tasks >= 100%*Cmax
[0050] Additionally or alternatively, in some embodiments, for the total number of tasks within the execution time interval of the target backup task, the scheduling management device 110 may determine the following Table 3 as the first criterion associated with the execution information, where Tsum is the total number of backup tasks existing in the task execution device 120.
[0051] Table 3 The first criteria associated with the total number of tasks
[0052]
[0053]
[0054] Additionally or alternatively, in some embodiments, for system maintenance overlap, the schedule management device 110 may determine the following Table 4 as the first criterion associated with this type of execution information.
[0055] Table 4: First criteria associated with system maintenance overlap
[0056]
[0057] After determining the level of the execution information, the schedule management device 110 may determine a score for the schedule setting according to the level.
[0058] For example, in some embodiments, for the three items of execution information, "amount of data written", "number of parallel tasks", and "total number of tasks", the scheduling management device 110 may determine the threshold level to be 7. For the item of execution information "system maintenance overlap", the scheduling management device 110 may determine the threshold level to be 1. If the scheduling management device 110 determines that the level of the execution information is higher than or equal to the threshold level, a score for the scheduling setting is determined from the first scoring range, and the first scoring range indicates that the scheduling setting is not suitable for the target backup task. For example, taking the execution information of the amount of data written as an example, the first scoring range is 0-59 points. If the scheduling management device 110 determines that the level of the amount of data written is 7, the score of the scheduling setting is determined to be 40 points; if the level of the amount of data written is determined to be 9, the score of the scheduling setting is determined to be 20 points. On the contrary, if the scheduling management device 110 determines that the level of the execution information is lower than the threshold level, a score for the scheduling setting is determined from the second scoring range, and the second scoring range indicates that the scheduling setting is suitable for the target backup task. For example, the second scoring range is 60-100 points. If the scheduling management device 110 determines that the level of the amount of written data is 5, the score of the scheduling setting is determined to be 60 points; if the level of the amount of written data is determined to be 3, the score of the scheduling setting is determined to be 80 points, and so on. In this way, the administrator of the backup system can determine whether the scheduling setting is suitable for the target backup task based on the score, and then determine whether the scheduling setting needs to be changed.
[0059] Additionally or alternatively, the scheduling management device 110 may also determine the weight corresponding to the type of execution information by using the analytic hierarchy process (AHP) to determine the score for the scheduling setting. Such an embodiment will be described below with reference to Figure 6 Describe in detail.
[0060] It should be understood that the first criteria and scoring ranges are shown only for exemplary purposes, and do not imply any limitation on the scope of the present disclosure. For example, first criteria with other levels and definitions may also be used, other scoring ranges may also be specified, etc. The present disclosure is not limited in this respect.
[0061] In the above exemplary embodiment, by acquiring execution information associated with the execution of the target backup task according to the scheduling setting, and then determining the score for the scheduling setting according to the execution information, it is possible to evaluate the scheduling setting. According to the evaluation result, the administrator of the backup system can know whether the scheduling setting is suitable for the target backup task, and thus decide whether to adjust the scheduling setting according to the need.
[0062] In addition, it is also possible to use the acquired historical execution information to determine the future execution duration and future written data volume of the target backup task, so as to determine whether the scheduling configuration is suitable for the target backup task in the future execution time interval. Such prediction can be achieved through methods such as autoregressive moving average model (ARIMA) and convolutional neural network (CNN).
[0063] Figure 4 4 is a flowchart of an example method 400 for determining an execution time interval according to an embodiment of the present disclosure. The method 400 is an embodiment of block 220 in the method 200. For example, the method 400 may be performed by: Figure 1 The method 400 is performed by the scheduling management device 110 shown in the figure. It should be understood that the method 400 can also be performed by other devices, and the scope of the present disclosure is not limited in this respect. It should also be understood that the method 400 can also include additional actions not shown and / or can omit the actions shown, and the scope of the present disclosure is not limited in this respect.
[0064] Usually, the information directly obtained by the scheduling management device 110 from the backup system is arranged according to a one-way time coordinate. However, when determining the above execution information, especially for a backup task whose start time is earlier than the start time of the target backup task, such a one-way time coordinate is not conducive to calculation, so it needs to be adjusted.
[0065] At 410, the scheduling management device 110 may determine the execution time interval according to the start time and the historical execution duration of the target backup task. For example, if the start time of the target backup task is 9:00 and the historical execution duration is 1 hour, the scheduling management device 110 determines the execution time interval as 9:00-10:00. Figure 5A FIG. 5 shows a schematic diagram of a one-way time coordinate 510 according to an embodiment of the present disclosure. Figure 5A As shown, S1 to Sn represent the start time of different backup tasks respectively. The rectangle in the middle represents the system maintenance time interval.
[0066] At 420, the scheduling management device 110 may adjust the execution time interval to a predetermined time format. For example, in some embodiments, the scheduling management device 110 may adjust the execution time interval to use the start time of the target backup task as the time zero point and in minutes. For example, the execution time interval is originally 9:00-10:00, and the scheduling management device 110 may adjust it to 0-59. Additionally or alternatively, the scheduling management device 110 may also adjust other times relative to the start time of the target backup task. Figure 5BA schematic diagram of a circular time coordinate 520 according to an embodiment of the present disclosure is shown. In this way, execution information can be conveniently calculated. In addition, such an approach can also take the following factors into account: since the scheduling setting often specifies the time when the backup task is executed every day, the execution of the backup task is based on a 24-hour cycle. For example, when the execution time interval of the target backup task includes 24:00, its impact on other backup tasks with a start time of 0:00 should be taken into account. Through such a circular time coordinate, the execution information can be calculated more accurately.
[0067] For example, in some embodiments, in order to determine the execution information of "amount of data written", the scheduling management device 110 can set the array AWRA = {wr1, wr2, wr3, ...}, the length of which is 1440, which is used to store the write rate of the backup system corresponding to each minute, and the first element in the array corresponds to the write rate at the start time of the target backup task. Through this array, the scheduling management device 110 can easily calculate the amount of data written to the backup system within the execution time interval of the target task.
[0068] Additionally or alternatively, in some embodiments, in order to determine the execution information of "number of parallel tasks", the scheduling management device 110 may set the array BTCA = {bc1, bc2, bc3, ...}, where the length of the array is 1440, which is used to save the number of parallel tasks in the backup system corresponding to each minute, and the first element in the array corresponds to the number of parallel tasks at the start time of the target backup task.
[0069] Additionally or alternatively, in some embodiments, in order to determine the execution information of "total number of tasks", the scheduling management device 110 can adjust the start time of other backup tasks relative to the start time of the target backup task. Assuming that the start time of the target backup task is S_J, the start time of other backup tasks in the backup system can be adjusted and saved in the array ASTA_J, ASTA_J = {(S_(J+1)-S_J),...(S_N-S_J),(S_1+24-S_J),(S_2+24-S_J)...(S_(J-1)+24-S_J)}, where S_(J+1) to S_N are times later than S_J, and S_1 to S_(J-1) are times earlier than S_J. In this way, the scheduling management device 110 can easily determine which backup tasks occur at least partially within the execution time interval of the target backup task.
[0070] Additionally or alternatively, in some embodiments, in order to determine the execution information of "system maintenance overlap", the scheduling management device 110 may adjust the system maintenance time relative to the start time of the target backup task. For example, if the start time of system maintenance MW_S >= S_J, then adjust MW_S to MW_S - S_J; if the start time of system maintenance MW_S < S_J, then adjust MW_S to MW_S + 24 - S_J.
[0071] It should be understood that the predetermined time format is shown only for illustrative purposes and does not imply any limitation on the scope of the present disclosure. For example, other time formats may also be used to adjust the execution time interval. The present disclosure is not limited in this regard.
[0072] In the above exemplary embodiments, by adjusting the execution time interval of the target task to a predetermined time format, the computational amount can be reduced and it is beneficial to more accurately determine the execution information, thereby facilitating the determination of the score for the scheduling setting.
[0073] Figure 6 A flowchart of an example method 600 for determining a score for a scheduling setting according to an embodiment of the present disclosure is shown. Method 600 is an embodiment of block 230 in method 200. For example, method 600 may be executed by the scheduling management device 110 as shown in Figure 1 It should be understood that method 600 may also be executed by other devices, and the scope of the present disclosure is not limited in this regard. It should also be understood that method 600 may further include additional actions not shown and / or may omit the actions shown, and the scope of the present disclosure is not limited in this regard.
[0074] At 610, the scheduling management device 110 may obtain another scheduling setting for the target backup task, where the another scheduling setting is different from the scheduling setting. At 620, the scheduling management device 110 may determine another level of the performance impact of the execution information on the backup system according to the another scheduling setting. This process is similar to the process of how to determine the level described above with respect to Figure 2 and will not be described in detail here.
[0075] At 630, the scheduling management device 110 may determine a weight corresponding to the type of execution information, where the weight indicates the relative degree of the performance impact of this type of execution information on the backup system compared with other types of execution information. As mentioned above, different types of execution information may reflect the performance impact on the backup system from different aspects. Therefore, the relative degree of the performance impact of different types of execution information on the backup system can be taken into account to more accurately evaluate the scheduling setting.
[0076] For example, in some embodiments, since the execution information of "amount of data written" will affect the I / O delay of the backup device, in order to ensure that the backup device is not affected, the scheduling management device 110 can determine the weight corresponding to "amount of data written" to 0.7 and the overall weight of other types of execution information to 0.3.
[0077] Additionally or alternatively, in other embodiments, the scheduling management device 110 may use the analytic hierarchy process to further determine the secondary weights corresponding to other types of execution information. The analytic hierarchy process is a method for making complex decisions, which is applied in many fields. The main idea is to determine the weight distribution of each key indicator by comparing the relative importance of each key indicator, thereby comparing various alternatives. For example, the scheduling management device 110 may first specify the relative importance of "number of parallel tasks", "total number of tasks" and "system maintenance overlap" as: number of parallel tasks / system maintenance overlap = 9, total number of tasks / system maintenance overlap = 7 and number of parallel tasks / total number of tasks = 3. According to the analytic hierarchy process, after calculation and consistency check, the scheduling management device 110 can determine the secondary weights of these three execution information as 0.78, 0.15 and 0.07.
[0078] Specifically, the scheduling management device 110 may generate a relative impact table of the three items of execution information according to the specified weights 9, 7, and 1, as shown in Table 5 below.
[0079] Table 5 Relative impact of system maintenance overlap, total number of tasks and number of parallel tasks
[0080]
[0081]
[0082] In other words, the relative influence matrix is Using the summation method on this matrix, we can get the weight vector as Then, the obtained weight vector is checked for consistency. First, the maximum eigenvalue λ is calculated according to the following formula (1): max :
[0083]
[0084] Where n is the matrix dimension, W is the obtained weight vector, A c is the relative influence matrix. Then, the consistency index CI is calculated according to the following formula (2):
[0085]
[0086] Then the consistency rate CR is calculated according to the following formula (3):
[0087] CR=CI / RI (3)
[0088] The values corresponding to RI are shown in Table 6 below.
[0089] Table 6 RI values in consistency test
[0090]
[0091] In this example, λ is calculated max is 3.08, and CR is 0.07. If CR is less than 0.1, it means that the consistency check is passed. Therefore, in this example, the scheduling management device 110 determines that the secondary weight vectors corresponding to the "number of parallel tasks", "total number of tasks" and "system maintenance overlap" are In other words, the secondary weights corresponding to “number of parallel tasks”, “total number of tasks”, and “system maintenance overlap” are 0.78, 0.15, and 0.07, respectively.
[0092] At 640 , the schedule management device 110 may determine a score for the schedule setting and another score for another schedule setting according to the level, the other level, and the weight.
[0093] For example, in some embodiments, the scheduling management device 110 has determined that the level of execution information of the type "amount of data written" according to the scheduling setting is AGI1, and the level of execution information of the type "amount of data written" according to another scheduling setting is AGI2. Therefore, the scheduling management device 110 can generate a relative impact table of the scheduling setting and the other scheduling setting, as shown in Table 7 below.
[0094] Table 7 Relative impact of scheduling setting and another scheduling setting
[0095] Scheduling settings Another schedule setting Scheduling settings 1 <![CDATA[AGI2 / AGI1]]> Another schedule setting <![CDATA[AGI1 / AGI2]]> 1
[0096] In other words, the relative impact matrix corresponding to the execution information of the "amount of data written" type is: According to the summation method, the vector corresponding to the execution information of this type can be obtained as As mentioned above in describing 630, the schedule management device 110 has determined that the weight corresponding to this type of execution information is 0.7. Therefore, the schedule management device 110 may determine that the score for the schedule setting is 0.7*V AGI1 , the rating for another scheduling setting is 0.7*V AGI2 .
[0097] Additionally, in some embodiments, if there are other types of execution information, such as “number of parallel tasks”, “total number of tasks”, and “system maintenance overlap”, the scheduling management device 110 may similarly determine vectors corresponding to these three types of execution information, namely and Then, according to the determined secondary weight vector Get V bsi =|V bs ,V br ,V mi |*W bsi Then, the scheduling management device 110 can to determine a score for a scheduling setting and a score for another scheduling setting.
[0098] It should be understood that the values of the weights are shown only for exemplary purposes, and do not imply any limitation on the scope of the present disclosure. For example, different types of execution information may also correspond to other weight values. In addition, it should be understood that two scheduling settings are shown only for exemplary purposes, and do not imply any limitation on the scope of the present disclosure. For example, the method may also be applied to a greater number of scheduling settings.
[0099] In the above exemplary embodiment, by setting different weights for different types of execution information, the relative degree of impact of different types of execution information on the performance of the backup system can be taken into account, thereby more accurately evaluating the scheduling settings. In addition, by scoring different scheduling settings, the suitability of different scheduling settings for the same backup task can be compared, further guiding the optimization of the scheduling of the backup task.
[0100] Figure 7 Schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. Figure 1 The scheduling management device 110 shown can be implemented by the electronic device 700. Figure 7 As shown, the electronic device 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 702 or computer program instructions loaded from a storage unit 708 to a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0101] Multiple components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The various processes and processing described above, such as methods 200, 400, and 600, may be performed by the processing device 701. For example, in some embodiments, the methods 200, 400, and 600 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the CPU 701, one or more actions of the methods 200, 400, and 600 described above may be performed.
[0103] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0104] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination of the above. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0105] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0106] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0107] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0108] These computer-readable program instructions can be provided to a processing device of a general-purpose computer, a special-purpose computer or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing device of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0109] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0110] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0111] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for managing the scheduling of backup tasks, comprising: Obtaining a scheduling setting for a target backup task, the scheduling setting at least specifying a start time for executing the target backup task in a backup system; Acquire multiple types of execution information associated with the execution of the target backup task according to the scheduling setting; performing a pairwise comparison of each of the plurality of types of execution information, wherein the pairwise comparisons respectively determine a relative weight of each of the plurality of types of execution information relative to each other of the plurality of types of execution information; as well as Based on the pairwise comparison of each of the plurality of types of the execution information, a score for the scheduling setting is determined, the score indicating a degree to which the execution of the target backup task according to the scheduling setting affects performance of the backup system.
2. The method according to claim 1, wherein obtaining the plurality of types of execution information comprises: Obtaining the historical execution duration of the target backup task; Determining an execution time interval during which the target backup task is executed based on the start time and the historical execution duration; as well as Based on the execution time interval, at least one of the following is determined: the amount of data written to the backup system during the execution time interval; the number of backup tasks executed simultaneously within the execution time interval, the number exceeding a threshold number; a total number of backup tasks executed at least in part within the execution time interval; as well as Whether the execution time interval at least partially overlaps with the system maintenance time interval of the backup system.
3. The method according to claim 2, wherein determining the execution time interval during which the target backup task is executed comprises: determining the execution time interval based on the start time and the historical execution duration; as well as The execution time interval is adjusted to a predetermined time format.
4. The method of claim 1 , wherein determining the score for the scheduling setting comprises: determining a first criterion associated with one or more types of the execution information of the plurality of types, the first criterion being used to evaluate the extent to which the type of the execution information affects the performance of the backup system; determining, based on the first criteria associated with the corresponding type of the execution information, a level of impact of each of the plurality of types of the execution information on the performance of the backup system; as well as The score set for the schedule is determined based on the level for each of the plurality of types of execution information.
5. The method of claim 4, wherein determining the score for the scheduling setting based on the level comprises: determining the score from a first score range based on determining that the level is not below a threshold level, the first score range indicating that the scheduling setting is not suitable for the target backup task; as well as Based on determining that the level is below the threshold level, the score is determined from a second score range, the second score range indicating that the scheduling settings are suitable for the target backup task.
6. The method of claim 4, wherein determining the score for the scheduling setting based on the level comprises: Acquire another scheduling setting for the target backup task, the another scheduling setting being different from the scheduling setting; determining, based on the another scheduling setting, another level of impact of each of the plurality of types of the execution information on the performance of the backup system; determining weights corresponding to respective types of the execution information, the weights indicating a relative degree of impact of the execution information of the type on the performance of the backup system compared to other types of execution information; as well as Based on the level, the further level, and the weight, the score for the scheduling setting and another score for the further scheduling setting are determined.
7. The method according to claim 4, further comprising: generating the pairwise comparisons for each of the plurality of types of the execution information by comparing a relative impact of each of the plurality of types of the execution information relative to each of the other types of the execution information; generating a weight for each type of the execution information of the plurality of types based on the pairwise comparison; as well as The score set for the schedule is determined based on the level and a weight for each of the plurality of types of execution information.
8. An electronic device comprising: at least one processing unit; at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform actions, the actions comprising: Obtaining a scheduling setting for a target backup task, the scheduling setting at least specifying a start time for executing the target backup task in a backup system; Acquire multiple types of execution information associated with the execution of the target backup task according to the scheduling setting; performing a pairwise comparison of each of the plurality of types of execution information, wherein the pairwise comparisons respectively determine a relative weight of each of the plurality of types of execution information relative to each other of the plurality of types of execution information; and Based on the pairwise comparison of each of the plurality of types of the execution information, a score for the scheduling setting is determined, the score indicating the extent to which the execution of the target backup task according to the scheduling setting affects the performance of the backup system.
9. The electronic device according to claim 8, wherein acquiring the plurality of types of execution information comprises: Obtaining the historical execution duration of the target backup task; Determining an execution time interval during which the target backup task is executed based on the start time and the historical execution duration; as well as Based on the execution time interval, at least one of the following is determined: the amount of data written to the backup system during the execution time interval; the number of backup tasks executed simultaneously within the execution time interval, the number exceeding a threshold number; a total number of backup tasks executed at least in part within the execution time interval; as well as Whether the execution time interval at least partially overlaps with the system maintenance time interval of the backup system.
10. The electronic device according to claim 9, wherein determining the execution time interval during which the target backup task is executed comprises: determining the execution time interval based on the start time and the historical execution duration; as well as The execution time interval is adjusted to a predetermined time format.
11. The electronic device of claim 8, wherein determining the score for the schedule setting comprises: determining a first criterion associated with one or more types of the execution information of the plurality of types, the first criterion being used to evaluate the extent to which the type of the execution information affects the performance of the backup system; determining, based on the first criteria associated with the corresponding type of the execution information, a level of impact of each of the plurality of types of the execution information on the performance of the backup system; as well as The score set for the schedule is determined based on the level for each of the plurality of types of execution information.
12. The electronic device of claim 11, wherein determining the score for the scheduling setting based on the level comprises: determining the score from a first score range based on determining that the level is not below a threshold level, the first score range indicating that the scheduling setting is not suitable for the target backup task; as well as Based on determining that the level is below the threshold level, the score is determined from a second score range, the second score range indicating that the scheduling settings are suitable for the target backup task.
13. The electronic device of claim 11, wherein determining the score for the scheduling setting based on the level comprises: Acquire another scheduling setting for the target backup task, the another scheduling setting being different from the scheduling setting; determining, based on the another scheduling setting, another level of impact of each of the plurality of types of the execution information on the performance of the backup system; determining weights corresponding to respective types of the execution information, the weights indicating a relative degree of impact of the execution information of the type on the performance of the backup system compared to other types of execution information; as well as Based on the level, the further level, and the weight, the score for the scheduling setting and another score for the further scheduling setting are determined.
14. The electronic device according to claim 11, wherein the actions further comprise: generating the pairwise comparisons for each of the plurality of types of the execution information by comparing a relative impact of each of the plurality of types of the execution information relative to each of the other types of the execution information; generating a weight for each type of the execution information of the plurality of types based on the pairwise comparison; as well as The score set for the schedule is determined based on the level and a weight for each of the plurality of types of execution information.
15. A computer program product tangibly stored in a non-transitory computer storage medium and comprising machine executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1-7.
Citation Information
Patent Citations
Method for improving backup efficiency of cloud computing dispatching system
CN103259829A
Data migration method and apparatus used for storage device
CN107179879A
Method and apparatus for data backup, and computer program product
CN110058966A
Method and apparatus for allocating resources among backup tasks in a data backup system
US20080244601A1
Method and System for Scheduling and Controlling Backups in a Computer System
US20090300633A1
