A method, device, equipment and medium for monitoring timed snapshot tasks

By detecting the system environment and sending alarms, and executing and retrying snapshot tasks in a timely manner, it solves the problem of difficulty in timely perception and processing by users when scheduled snapshot tasks fail to execute, thereby achieving risk avoidance and loss reduction, and improving user experience.

CN114675998BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210300900.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2024-10-22
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

When the existing scheduled snapshot task fails during execution, it is difficult for users to detect and process it in time, resulting in business impact and potential losses. The existing alarm and management mechanism cannot effectively predict and avoid risks.

Method used

By detecting the system environment every time a threshold time passes, determine whether it has an impact on the snapshot task, and send an alarm when the impact is detected; execute the snapshot task when the trigger conditions are met, and retry within the preset time period after failure; in the snapshot Issue an alert to the user when the task execution fails to ensure that the user handles it in a timely manner.

Benefits of technology

It can promptly inform users and avoid risks in the execution of scheduled snapshot tasks in advance, avoid expanding losses, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114675998B_ABST
    Figure CN114675998B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and readable medium for monitoring a scheduled snapshot task, the method comprising: detecting the system environment every time a threshold time passes, and judging whether the snapshot task is affected based on the detected system environment; in response to the detected system environment affecting the snapshot task, sending the detected system parameters and corresponding alarms to a user; in response to satisfying the triggering condition of the snapshot task, executing the snapshot task and judging whether the snapshot task is successfully executed; in response to the snapshot task execution failure, re-executing the snapshot task at each set time interval within a preset time period; in response to the snapshot task still failing to execute within the preset time period, sending an alarm of the snapshot task execution failure to the user. By using the solution of the present invention, the user can be informed in time and the risks existing in the current scheduled snapshot task execution process can be avoided in advance, and timely repairs can be performed after an abnormality occurs, so as to avoid the expansion of losses and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and more particularly to a method, device, equipment and readable medium for monitoring a timed snapshot task. Background Art

[0002] Similar to using a camera to capture an instantaneous image of nature at a certain point in time, a file system snapshot is used to capture the content of a certain data set at a certain point in time to prevent data from being contaminated or lost due to viruses, configuration file corruption, system crashes, etc. When a user wants to restore to the state when the snapshot was created, he can perform a restore operation through snapshot rollback and start from the beginning from the snapshot capture time point, or create multiple parallel storage spaces from the data image at this point in time. In order to facilitate timely backup of file system data, a scheduled snapshot task is usually set in the server. Users can set a scheduled strategy to automatically back up the file system and create snapshots to avoid a large data gap before and after the snapshot rollback due to long-term non-snapshot backup operations, which affects user use. However, the scheduled snapshot task is automatically performed in the background, and users cannot perceive whether it is successful or not. It is also difficult for users to deal with the consequences of the failure of the scheduled snapshot task in a timely manner, which may affect user business and cause user losses. The existing alarm and management of scheduled snapshot tasks mainly focuses on the process of snapshot task triggering. However, the processing during the triggering process is limited. It is impossible to proactively avoid the risks that may exist in creating tasks before triggering, and the adverse consequences caused by creation failure after triggering. Summary of the invention

[0003] In view of this, the purpose of the embodiments of the present invention is to propose a method, device, equipment and readable medium for monitoring timed snapshot tasks. By using the technical solution of the present invention, users can be informed in a timely manner and risks existing in the execution process of the current timed snapshot task can be avoided in advance. Repairs can be made in a timely manner after an abnormality occurs, losses can be avoided from expanding, and user experience can be improved.

[0004] Based on the above purpose, an aspect of an embodiment of the present invention provides a method for monitoring a timed snapshot task, comprising the following steps:

[0005] The system environment is detected every time a threshold time passes, and based on the detected system environment, it is determined whether the snapshot task is affected;

[0006] In response to the detected system environment affecting the snapshot task, the detected system parameters and corresponding alarms are sent to the user;

[0007] In response to satisfying the triggering condition of the snapshot task, executing the snapshot task and determining whether the snapshot task is executed successfully;

[0008] In response to a failure in executing the snapshot task, re-executing the snapshot task at set intervals within a preset time period;

[0009] In response to the snapshot task still failing to execute within the preset time period, an alarm of the snapshot task execution failure is issued to the user.

[0010] According to an embodiment of the present invention, detecting the system environment every time a threshold time passes, and judging whether the snapshot task is affected based on the detected system environment includes:

[0011] Every time the threshold time has passed, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected;

[0012] Compare the detected data with corresponding preset thresholds respectively;

[0013] In response to detection data of any one of CPU usage, I / O waiting data volume and storage pool capacity being greater than a corresponding preset threshold, it is determined that the system environment has an impact on the snapshot task.

[0014] According to an embodiment of the present invention, the data of the CPU usage rate, the amount of I / O waiting data and the storage pool capacity of the system are detected every time a threshold time passes, including:

[0015] Set the detection time period and detection interval;

[0016] During the detection period, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected every detection interval.

[0017] The detected data of the same type are added together and averaged to obtain the final detection data.

[0018] According to one embodiment of the present invention, it also includes:

[0019] In response to any of the three situations of system power failure, configuration node switching and system upgrade, various types of resource residues in the system are cleaned up after the snapshot task is executed.

[0020] Another aspect of an embodiment of the present invention further provides a device for monitoring a timed snapshot task, the device comprising:

[0021] A judgment module, the judgment module is configured to detect the system environment every time a threshold time passes, and determine whether the snapshot task is affected based on the detected system environment;

[0022] a sending module, the sending module being configured to send the detected system parameters and corresponding alarms to a user in response to the detected system environment affecting the snapshot task;

[0023] An execution module, the execution module is configured to execute the snapshot task and determine whether the snapshot task is executed successfully in response to satisfying the triggering condition of the snapshot task;

[0024] A retry module, the retry module is configured to, in response to a failure in executing the snapshot task, re-execute the snapshot task at set intervals within a preset time period;

[0025] The alarm module is configured to send an alarm of snapshot task execution failure to the user in response to the snapshot task still failing to execute within a preset time period.

[0026] According to one embodiment of the present invention, the judgment module is further configured to:

[0027] Every time the threshold time has passed, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected;

[0028] Compare the detected data with corresponding preset thresholds respectively;

[0029] In response to detection data of any one of CPU usage, I / O waiting data volume and storage pool capacity being greater than a corresponding preset threshold, it is determined that the system environment has an impact on the snapshot task.

[0030] According to one embodiment of the present invention, the judgment module is further configured to:

[0031] Set the detection time period and detection interval;

[0032] During the detection period, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected every detection interval.

[0033] The detected data of the same type are added together and averaged to obtain the final detection data.

[0034] According to one embodiment of the present invention, a cleaning module is further included, and the cleaning module is configured to:

[0035] In response to any of the three situations of system power failure, configuration node switching and system upgrade, various types of resource residues in the system are cleaned up after the snapshot task is executed.

[0036] Another aspect of the embodiments of the present invention further provides a computer device, the computer device comprising:

[0037] at least one processor; and

[0038] The memory stores computer instructions executable on the processor, and the instructions implement the steps of any one of the above methods when executed by the processor.

[0039] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.

[0040] The present invention has the following beneficial technical effects: the method for monitoring the scheduled snapshot task provided by the embodiment of the present invention detects the system environment every time a threshold time passes, and determines whether the snapshot task is affected based on the detected system environment; in response to the detected system environment affecting the snapshot task, the detected system parameters and corresponding alarms are sent to the user; in response to the triggering condition of the snapshot task being met, the snapshot task is executed and it is determined whether the snapshot task is successfully executed; in response to the failure of the snapshot task to execute, the snapshot task is re-executed at each set interval within a preset time period; in response to the snapshot task still failing to execute within the preset time period, a technical solution of sending an alarm of the failure of the snapshot task to the user can promptly inform the user and avoid the risks existing in the current scheduled snapshot task execution process in advance, can promptly repair after the abnormality occurs, can avoid the expansion of losses, and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0042] Figure 1 A schematic flowchart of a method for monitoring a timed snapshot task according to an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of a device for monitoring a timed snapshot task according to an embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of a computer device according to an embodiment of the present invention;

[0045] Figure 4 FIG. 1 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0047] Based on the above purpose, a first aspect of an embodiment of the present invention provides an embodiment of a method for monitoring a timing snapshot task. Figure 1 Shown is a schematic flow chart of the method.

[0048] like Figure 1 As shown in , the method may include the following steps:

[0049] S1 detects the system environment every time a threshold time passes, and determines whether the snapshot task is affected based on the detected system environment.

[0050] The method of the present invention can adopt C language and Python language to design and implement the monitoring module of the timed snapshot task, integrate the monitoring module into the system and automatically run according to the set parameters. Directed detection of the environmental conditions required for the snapshot task trigger can prevent the failure of the snapshot-related operation. When the environment is detected to be abnormal, the user is notified of the potential risk of causing the failure of the timed snapshot-related operation. The user performs preprocessing. If a certain time interval occurs between the completion of the current timed snapshot task trigger and the next timed snapshot task trigger, multiple detections will be performed. For example, if a detection is set every 30 minutes and the detection is started 2 hours before the next timed snapshot task triggers, a maximum of 4 detection operations can be performed. A manual call interface can be provided to the user. After the user has processed it, the user can manually call for detection to determine whether the user operation is effective. An interface can be provided to the user, and the user can manually turn off the automatic monitoring function, and a list of currently monitored resources is provided for the user to select. An interface for timing the opening of applications can be provided to the user. When the user temporarily closes some applications to reduce the risk of snapshot task operation failure, the application can be added to the list of applications that are timed to open, and the application is automatically opened at a specified time. An expandable interface can be reserved, and new resources can be actively added for monitoring according to needs, and thresholds can be actively set. During detection, the system's CPU usage, I / O waiting data volume, and storage pool capacity data can be detected every time the threshold time passes, and the detected data can be compared with the corresponding preset thresholds. If the detection data of any one of the CPU usage, I / O waiting data volume, and storage pool capacity is greater than the corresponding preset threshold, it is determined that the system environment has an impact on the snapshot task. During detection, a multi-point detection and averaging strategy is adopted. First, the detection time period and detection interval are set, and then the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected once every detection interval within the detection time period. Finally, the detected data of the same type are added and averaged to obtain the final detection data.

[0051] In response to the detected system environment affecting the snapshot task, S2 sends the detected system parameters and corresponding alarms to the user.

[0052] If the result of the judgment is that the current system environment may have an impact on the snapshot task to be performed, the specific data detected and the alarm need to be sent to the user, prompting the user to close some applications or take other abnormal response measures to reduce the risk of snapshot task operation failure.

[0053] In response to the triggering condition of the snapshot task being met, S3 executes the snapshot task and determines whether the snapshot task is executed successfully.

[0054] When a user creates a scheduled snapshot task for a file system, the system automatically allocates resources for it, sets a scheduled task, and polls regularly to determine whether the scheduled snapshot task trigger conditions are met. Once the trigger conditions are met, the snapshot can be deleted or created, and the system continuously determines whether the snapshot deletion or creation operation is executed successfully.

[0055] S4: In response to the snapshot task execution failure, re-execute the snapshot task at set intervals within a preset time period.

[0056] If the snapshot deletion or creation operation fails, the system automatically determines the reason for the failure, automatically generates an alarm, and records it in the scheduled task resource attributes. The attribute information records the exceptions that occurred in the current task and the details of the exceptions. After the scheduled snapshot task fails, you can set a time period, such as 5 minutes, and then re-trigger the snapshot task every 1 minute. If the snapshot creation or deletion operation is successful during this period, the resource is queried to see if it contains alarm information. If it does, the alarm information is cleared without feedback to the user.

[0057] S5: In response to the snapshot task still failing to execute within the preset time period, an alarm of snapshot task execution failure is issued to the user.

[0058] If the snapshot task still fails to execute within the above time period, an alarm needs to be issued to the user. The alarms for snapshot creation and deletion failure are performed separately. Creation failure and success only affect the created alarm information, and do not affect the deleted alarm information, and vice versa. After the alarm information is generated, the alarm information is reported, and the detection operation of the scheduled snapshot alarm is triggered every 5 seconds, and the alarm information is automatically obtained and displayed to the user.

[0059] Through the technical solution of the present invention, the user can be informed in time and the risks existing in the execution process of the current scheduled snapshot task can be avoided in advance, and repairs can be made in time after an abnormality occurs, which can avoid the expansion of losses and improve user experience.

[0060] In a preferred embodiment of the present invention, detecting the system environment every time a threshold time passes, and judging whether the snapshot task is affected based on the detected system environment includes:

[0061] Every time the threshold time has passed, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected;

[0062] Compare the detected data with corresponding preset thresholds respectively;

[0063] In response to detection data of any one of CPU usage, I / O waiting data volume and storage pool capacity being greater than a corresponding preset threshold, it is determined that the system environment has an impact on the snapshot task.

[0064] In a preferred embodiment of the present invention, the data of the CPU usage rate, the amount of I / O waiting data and the storage pool capacity of the system are detected every time a threshold time passes, and include:

[0065] Set the detection time period and detection interval;

[0066] During the detection period, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected every detection interval.

[0067] The same type of detected data is added together and averaged to obtain the final detection data. The overall environment of the current system is detected, and factors such as the CPU usage, IO wait value, and storage pool capacity in the current system can be detected and judged. The strategy of multi-point monitoring and averaging is adopted during detection. For example, when detecting the CPU status, the system status is continuously detected for 5 minutes, and the detection is performed every 10 seconds. The final average value is used to determine the CPU usage of the system. Other data can be detected in the same way. When it is found that the status of various types of resources in the system is abnormal and the usage rate is too high, which may cause the snapshot task operation to fail, the user is prompted to close some applications or take other abnormal response measures to reduce the risk of snapshot task operation failure.

[0068] In a preferred embodiment of the present invention, it also includes:

[0069] In response to any of the three situations of system power failure, configuration node switching and system upgrade, after the snapshot task is executed, various types of residual resources in the system are cleaned up. Under normal circumstances, when the snapshot creation or deletion operation fails, the system will automatically clean up the resources generated by the operation or the impact on the system configuration to avoid residual resources affecting the normal operation of other services. However, when encountering situations such as system power failure, configuration node switching or system upgrade, the snapshot-related operation itself may not be able to clean up the residual resources normally, and it is necessary to actively clean up the resources. When the scheduled snapshot task is triggered, the residual resources or abnormal configurations of various types in the system are actively cleaned up. A snapshot relationship mapping table can be automatically maintained in the system. When the snapshot is created, the new snapshot information is written into the mapping table. When the snapshot is deleted, the snapshot information is deleted from the mapping table. After the scheduled snapshot task is triggered, automatic cleaning is performed to verify the validity of each entry in the mapping table. For invalid entries, active cleaning is performed. According to the information in the mapping table, the resources required for various types of snapshots in the system are verified. When the resources of the snapshot that do not exist in the mapping table are found, the residual resources are automatically cleaned up to avoid residual resources affecting normal business.

[0070] When a scheduled snapshot task fails to execute, user data backup may fail. When a system failure occurs and data rollback is required, the latest file system snapshot information cannot be obtained in time, resulting in increased file system data loss costs. The technical solution of the present invention can promptly inform users of the risks in the current scheduled snapshot task execution process and avoid them in advance. It can also promptly inform users after an abnormality occurs and repair it in time. It can also automatically clean up various types of resource residues and abnormal configuration information in the system to avoid losses and improve user experience.

[0071] It should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiment can achieve the same or similar effect as any of the above-mentioned method embodiments corresponding thereto.

[0072] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0073] Based on the above purpose, a second aspect of an embodiment of the present invention provides a device for monitoring a timed snapshot task, such as Figure 2 As shown, the device 200 includes:

[0074] A judgment module, the judgment module is configured to detect the system environment every time a threshold time passes, and determine whether the snapshot task is affected based on the detected system environment;

[0075] a sending module, the sending module being configured to send the detected system parameters and corresponding alarms to a user in response to the detected system environment affecting the snapshot task;

[0076] An execution module, the execution module is configured to execute the snapshot task and determine whether the snapshot task is executed successfully in response to satisfying the triggering condition of the snapshot task;

[0077] A retry module, the retry module is configured to, in response to a failure in executing the snapshot task, re-execute the snapshot task at set intervals within a preset time period;

[0078] The alarm module is configured to send an alarm of snapshot task execution failure to the user in response to the snapshot task still failing to execute within a preset time period.

[0079] In a preferred embodiment of the present invention, the judgment module is further configured to:

[0080] Every time the threshold time has passed, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected;

[0081] Compare the detected data with corresponding preset thresholds respectively;

[0082] In response to detection data of any one of CPU usage, I / O waiting data volume and storage pool capacity being greater than a corresponding preset threshold, it is determined that the system environment has an impact on the snapshot task.

[0083] In a preferred embodiment of the present invention, the judgment module is further configured to:

[0084] Set the detection time period and detection interval;

[0085] During the detection period, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected every detection interval.

[0086] The detected data of the same type are added together and averaged to obtain the final detection data.

[0087] In a preferred embodiment of the present invention, a cleaning module is further included, and the cleaning module is configured to:

[0088] In response to any of the three situations of system power failure, configuration node switching and system upgrade, various types of resource residues in the system are cleaned up after the snapshot task is executed.

[0089] Based on the above purpose, a third aspect of an embodiment of the present invention provides a computer device. Figure 3 FIG. 2 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 3 As shown, the embodiment of the present invention includes the following apparatus: at least one processor 21; and a memory 22, the memory 22 stores computer instructions 23 that can be run on the processor, and when the instructions are executed by the processor, the following method is implemented:

[0090] The system environment is detected every time a threshold time passes, and based on the detected system environment, it is determined whether the snapshot task is affected;

[0091] In response to the detected system environment affecting the snapshot task, the detected system parameters and corresponding alarms are sent to the user;

[0092] In response to satisfying the triggering condition of the snapshot task, executing the snapshot task and determining whether the snapshot task is executed successfully;

[0093] In response to a failure in executing the snapshot task, re-executing the snapshot task at set intervals within a preset time period;

[0094] In response to the snapshot task still failing to execute within the preset time period, an alarm of the snapshot task execution failure is issued to the user.

[0095] In a preferred embodiment of the present invention, detecting the system environment every time a threshold time passes, and judging whether the snapshot task is affected based on the detected system environment includes:

[0096] Every time the threshold time has passed, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected;

[0097] Compare the detected data with corresponding preset thresholds respectively;

[0098] In response to detection data of any one of CPU usage, I / O waiting data volume and storage pool capacity being greater than a corresponding preset threshold, it is determined that the system environment has an impact on the snapshot task.

[0099] In a preferred embodiment of the present invention, the data of the CPU usage rate, the amount of I / O waiting data and the storage pool capacity of the system are detected every time a threshold time passes, and include:

[0100] Set the detection time period and detection interval;

[0101] During the detection period, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected every detection interval.

[0102] The detected data of the same type are added together and averaged to obtain the final detection data.

[0103] In a preferred embodiment of the present invention, it also includes:

[0104] In response to any of the three situations of system power failure, configuration node switching and system upgrade, various types of resource residues in the system are cleaned up after the snapshot task is executed.

[0105] Based on the above purpose, a fourth aspect of an embodiment of the present invention provides a computer-readable storage medium. Figure 4 FIG. 2 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 4 As shown, the computer readable storage medium 31 stores a computer program 32 that performs the following method when executed by a processor:

[0106] The system environment is detected every time a threshold time passes, and based on the detected system environment, it is determined whether the snapshot task is affected;

[0107] In response to the detected system environment affecting the snapshot task, the detected system parameters and corresponding alarms are sent to the user;

[0108] In response to satisfying the triggering condition of the snapshot task, executing the snapshot task and determining whether the snapshot task is executed successfully;

[0109] In response to a failure in executing the snapshot task, re-executing the snapshot task at set intervals within a preset time period;

[0110] In response to the snapshot task still failing to execute within the preset time period, an alarm of the snapshot task execution failure is issued to the user.

[0111] In a preferred embodiment of the present invention, detecting the system environment every time a threshold time passes, and judging whether the snapshot task is affected based on the detected system environment includes:

[0112] Every time the threshold time has passed, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected;

[0113] Compare the detected data with corresponding preset thresholds respectively;

[0114] In response to detection data of any one of CPU usage, I / O waiting data volume and storage pool capacity being greater than a corresponding preset threshold, it is determined that the system environment has an impact on the snapshot task.

[0115] In a preferred embodiment of the present invention, the data of the CPU usage rate, the amount of I / O waiting data and the storage pool capacity of the system are detected every time a threshold time passes, and include:

[0116] Set the detection time period and detection interval;

[0117] During the detection period, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected every detection interval.

[0118] The detected data of the same type are added together and averaged to obtain the final detection data.

[0119] In a preferred embodiment of the present invention, it also includes:

[0120] In response to any of the three situations of system power failure, configuration node switching and system upgrade, various types of resource residues in the system are cleaned up after the snapshot task is executed.

[0121] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0122] In addition, the above method steps and system units may also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.

[0123] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0124] In one or more exemplary designs, the function can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the function can be stored on a computer-readable medium or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transfer a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special computer. As an example and not limiting, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of an instruction or data structure and can be accessed by a general or special computer or a general or special processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwaves are used to send software from a website, server or other remote source, the above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwaves are all included in the definition of the medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0125] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0126] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0127] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0128] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0129] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for monitoring a timed snapshot task, characterized in that: The following steps are involved: The system environment is detected every time the threshold time has passed, and based on the detected system environment, it is determined whether the snapshot task is affected. The system CPU usage, I / O waiting data volume, and storage pool capacity data are detected every time the threshold time has passed. Compare the detected data with corresponding preset thresholds respectively; In response to detection data of any one of a CPU usage rate, an amount of I / O waiting data, and a storage pool capacity being greater than a corresponding preset threshold, determining that the system environment has an impact on the snapshot task; In response to the detected system environment affecting the snapshot task, the detected system parameters and corresponding alarms are sent to the user; In response to satisfying the triggering condition of the snapshot task, executing the snapshot task and determining whether the snapshot task is executed successfully; In response to a failure in executing the snapshot task, re-executing the snapshot task at set intervals within a preset time period; In response to the snapshot task still failing to execute within the preset time period, an alarm of snapshot task execution failure is issued to the user.

2. The method according to claim 1, characterized in that The data of the CPU usage, I / O waiting data volume, and storage pool capacity of the system are detected every time the threshold time passes, including: Set the detection time period and detection interval; During the detection period, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected every detection interval. The detected data of the same type are added together and averaged to obtain the final detection data.

3. The method according to claim 1, characterized in that: Also includes: In response to any of the three situations of system power failure, configuration node switching and system upgrade, various types of resource residues in the system are cleaned up after the snapshot task is executed.

4. A device for monitoring a scheduled snapshot task, characterized in that: The device comprises: A judgment module, wherein the judgment module is configured to detect the system environment every time a threshold time passes, and determine whether the snapshot task is affected based on the detected system environment, and detect the CPU usage rate, I / O waiting data volume and storage pool capacity data of the system every time a threshold time passes; compare the detected data with corresponding preset thresholds respectively; in response to any one of the detected data of the CPU usage rate, the I / O waiting data volume and the storage pool capacity being greater than the corresponding preset threshold, determine that the system environment has an impact on the snapshot task; a sending module, the sending module being configured to send the detected system parameters and corresponding alarms to a user in response to the detected system environment affecting the snapshot task; An execution module, wherein the execution module is configured to execute the snapshot task and determine whether the snapshot task is executed successfully in response to satisfying the triggering condition of the snapshot task; A retry module, wherein the retry module is configured to re-execute the snapshot task at set intervals within a preset time period in response to a snapshot task execution failure; An alarm module is configured to issue an alarm of snapshot task execution failure to a user in response to the snapshot task still failing to execute within the preset time period.

5. The device according to claim 4, characterized in that The judging module is further configured as follows: Set the detection time period and detection interval; During the detection period, the system's CPU usage, I / O waiting data volume, and storage pool capacity data are detected every detection interval. The detected data of the same type are added together and averaged to obtain the final detection data.

6. The device according to claim 4, characterized in that It also includes a cleaning module, wherein the cleaning module is configured as follows: In response to any of the three situations of system power failure, configuration node switching and system upgrade, various types of resource residues in the system are cleaned up after the snapshot task is executed.

7. A computer device, characterized in that: include: at least one processor; as well as A memory, wherein the memory stores computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 3.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.