CN114817134A - Snapshot task monitoring method, device, equipment and medium - Google Patents

Snapshot task monitoring method, device, equipment and medium Download PDF

Info

Publication number
CN114817134A
CN114817134A CN202210469658.1A CN202210469658A CN114817134A CN 114817134 A CN114817134 A CN 114817134A CN 202210469658 A CN202210469658 A CN 202210469658A CN 114817134 A CN114817134 A CN 114817134A
Authority
CN
China
Prior art keywords
task
target snapshot
snapshot task
monitoring
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210469658.1A
Other languages
Chinese (zh)
Inventor
卢训
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210469658.1A priority Critical patent/CN114817134A/en
Publication of CN114817134A publication Critical patent/CN114817134A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/128Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Abstract

The application discloses a snapshot task monitoring method, a device, equipment and a medium, which relate to the technical field of computers, and the method comprises the following steps: acquiring a task execution monitoring request initiated by a user side; creating a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database; after the target snapshot task is executed, state information of the target snapshot task is obtained, and target snapshot task monitoring information is determined based on the target snapshot task and the state information of the target snapshot task; and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information. By the technical scheme, the situations that the number of tasks is not clear and the progress of the tasks is not clear can be effectively avoided, the control capacity of the snapshot task is improved, the accuracy of monitoring the snapshot task is improved, and the backup efficiency of the stored timing snapshot is improved.

Description

Snapshot task monitoring method, device, equipment and medium
Technical Field
The invention relates to the technical field of computers, in particular to a snapshot task monitoring method, a snapshot task monitoring device, snapshot task monitoring equipment and snapshot task monitoring media.
Background
At present, the timed snapshot is a scene for creating a data snapshot for a data volume of a storage device according to a set time, the scene realizes a function of creating snapshot copy at a fixed time, and data backup can be performed in a data reading and writing cool and quiet time period. The existing timing snapshot of the source volume of the storage terminal based on the Linux Agent plug-in (snapshot Agent program in the Linux system) has the problems that the task number of the snapshot volume is not clear, the creation names of the snapshot volume are named by using Linux time ID and 16-system random ID in a combined mode, the naming is irregular, and the task number of the snapshot volume cannot be counted. When a large number of snapshot volumes created based on the Linux Agent plug-in exist in the storage end, task management is extremely difficult, and the snapshot tasks cannot be classified in a detailed mode.
Therefore, in the snapshot task monitoring process, how to avoid situations of unclear task quantity and unclear task progress, increase the control capability of the snapshot task, improve the accuracy of snapshot task monitoring, and improve the backup efficiency of storing the timing snapshot is a problem to be solved in the field.
Disclosure of Invention
In view of this, an object of the present invention is to provide a snapshot task monitoring method, apparatus, device, and medium, which can effectively increase the capability of controlling a snapshot task, improve the accuracy of monitoring the snapshot task, and improve the backup efficiency of storing a timing snapshot. The specific scheme is as follows:
in a first aspect, the present application discloses a snapshot task monitoring method, including:
acquiring a task execution monitoring request initiated by a user side;
creating a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database;
after the target snapshot task is executed, state information of the target snapshot task is obtained, and target snapshot task monitoring information is determined based on the target snapshot task and the state information of the target snapshot task;
and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information.
Optionally, the acquiring a task execution monitoring request initiated by a user side includes:
establishing a secure communication protocol interface with the user side;
and acquiring a task execution monitoring request which is sent by the user side and is created based on a preset snapshot task execution plug-in by utilizing the secure communication protocol interface.
Optionally, after the target snapshot task is executed, acquiring state information of the target snapshot task includes:
generating a task execution instruction based on the target snapshot task, generating task execution end information after the target snapshot task is executed and completed by utilizing a local preset command line interface according to the task execution instruction, and sending the task execution end information to a monitoring plug-in which is pre-constructed in the preset command line interface;
and determining the target snapshot task of which the task is finished according to the task execution finishing information, and monitoring the target snapshot task of which the task is finished so as to obtain the state information of the target snapshot task.
Optionally, the completing the execution of the target snapshot task by using a local preset command line interface and according to the task execution instruction includes:
judging whether the target snapshot task matched with the task execution instruction exists in the preset database or not by using the monitoring plug-in the preset command line interface;
and if the target snapshot task matched with the execution instruction exists in the preset database, sending the target snapshot task to a preset queue in the monitoring plug-in, so that the preset command line interface executes the target snapshot task according to the preset queue and the task execution instruction.
Optionally, the determining, by using the monitoring plug-in the preset command line interface, whether the target snapshot task matched with the task execution instruction exists in the preset database includes:
determining a preset period by a preset period determining method;
and judging whether the target snapshot task matched with the task execution instruction exists in the preset database or not by utilizing the monitoring plug-in the preset command line interface based on the preset period.
Optionally, after determining the target snapshot task monitoring information based on the target snapshot task and the target snapshot task state information, the method further includes:
determining a unique identifier of a source snapshot based on the target snapshot task, and acquiring all target snapshot task monitoring information corresponding to the unique identifier;
and classifying all the target snapshot task monitoring information corresponding to the unique identifier by using a preset classification method to obtain different types of target snapshot task monitoring information.
Optionally, the sending the target snapshot task monitoring information to the user side includes:
summarizing the different types of target snapshot task monitoring information in a list form to obtain a target snapshot task monitoring list;
and sending the target snapshot task monitoring list to the user side.
In a second aspect, the present application discloses a snapshot task monitoring apparatus, including:
the task execution monitoring request acquisition module is used for acquiring a task execution monitoring request initiated by a user side;
the target snapshot task saving module is used for establishing a target snapshot task according to the task execution monitoring request and saving the target snapshot task to a local preset database;
the target snapshot task monitoring information determining module is used for acquiring the state information of the target snapshot task after the target snapshot task is executed, and determining target snapshot task monitoring information based on the target snapshot task and the state information of the target snapshot task;
and the target snapshot task monitoring information sending module is used for sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the snapshot task monitoring method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program realizes the steps of the snapshot task monitoring method disclosed in the foregoing when being executed by a processor.
The snapshot task monitoring method comprises the steps of obtaining a task execution monitoring request initiated by a user side; creating a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database; after the target snapshot task is executed, state information of the target snapshot task is obtained, and target snapshot task monitoring information is determined based on the target snapshot task and the state information of the target snapshot task; and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information. According to the snapshot task backup method and device, after the target snapshot task is created and executed, the state information of the target snapshot task is obtained to obtain the target snapshot task monitoring information, so that the situations that the task quantity is not clear and the task progress is not clear are avoided, then the target snapshot task monitoring information is sent to the user side, the control capacity of the snapshot task can be effectively improved, the snapshot task monitoring accuracy is improved, and the backup efficiency of storing the timing snapshot is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a snapshot task monitoring method disclosed herein;
FIG. 2 is a flow diagram of a snapshot task queue disclosed herein;
FIG. 3 is a flow chart of a snapshot task monitoring method disclosed herein;
fig. 4 is a detailed flowchart of a snapshot task monitoring method disclosed in the present application;
fig. 5 is a detailed schematic diagram of a snapshot task monitoring method disclosed in the present application;
fig. 6 is a schematic structural diagram of a snapshot task monitoring apparatus disclosed in the present application;
fig. 7 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the current background, the timed snapshot is a scene for creating the data snapshot for the data volume of the storage device according to the set time, the scene realizes the function of creating the snapshot copy at the fixed time, and the data backup can be performed in the data reading and writing cool and quiet time period. The existing timing snapshot of the source volume of the storage terminal based on the Linux Agent plug-in (snapshot Agent program in the Linux system) has the problems that the task number of the snapshot volume is not clear, the creation names of the snapshot volume are named by using Linux time ID and 16-system random ID in a combined mode, the naming is irregular, and the task number of the snapshot volume cannot be counted. When a large number of snapshot volumes created based on the Linux Agent plug-in exist in the storage end, task management is extremely difficult, and the snapshot tasks cannot be classified in a detailed mode. Therefore, in the snapshot task monitoring process, how to avoid situations of unclear task quantity and unclear task progress, increase the control capability of the snapshot task, improve the accuracy of snapshot task monitoring, and improve the backup efficiency of storing the timing snapshot is a problem to be solved in the field.
Referring to fig. 1, an embodiment of the present invention discloses a snapshot task monitoring method, which may specifically include:
step S11: and acquiring a task execution monitoring request initiated by a user side.
Step S12: and establishing a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database.
Step S13: and after the target snapshot task is executed, acquiring the state information of the target snapshot task, and determining the monitoring information of the target snapshot task based on the target snapshot task and the state information of the target snapshot task.
In this embodiment, a task execution instruction is generated based on the target snapshot task, after the target snapshot task is executed and completed by using a local preset command line interface according to the task execution instruction, task execution end information is generated and sent to a monitoring plug-in pre-built in the preset command line interface, then the target snapshot task with the task execution end is determined according to the task execution end information, the target snapshot task with the task execution end is monitored to obtain state information of the target snapshot task, and then target snapshot task monitoring information is determined based on the target snapshot task and the target snapshot task state information.
It can be understood that after a task execution instruction is generated based on the target snapshot task, the monitoring plugin in the preset command line interface is used to determine whether the target snapshot task matched with the task execution instruction exists in the preset database, and if the target snapshot task matched with the execution instruction exists in the preset database, the target snapshot task is sent to a preset queue in the monitoring plugin, so that the preset command line interface executes the target snapshot task according to the preset queue and the task execution instruction.
In this embodiment, determining whether the target snapshot task matching the task execution instruction exists in the preset database by using the monitoring plug-in the preset command line interface includes: and determining a preset period by a preset period determining method, and then judging whether the target snapshot task matched with the task execution instruction exists in the preset database or not by utilizing the monitoring plug-in the preset command line interface based on the preset period.
Step S14: and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information.
In this embodiment, after determining the target snapshot task monitoring information based on the target snapshot task and the target snapshot task state information, the method further includes: determining a unique identifier of a source snapshot based on the target snapshot task, acquiring all target snapshot task monitoring information corresponding to the unique identifier, classifying all target snapshot task monitoring information corresponding to the unique identifier by using a preset classification method to obtain different types of target snapshot task monitoring information, summarizing the different types of target snapshot task monitoring information in a list form to obtain a target snapshot task monitoring list, and sending the target snapshot task monitoring list to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring list.
For example, as shown in fig. 2, a preset period is 1 minute, that is, the monitoring plug-in the preset command line interface judges every minute whether the target snapshot task matching the task execution instruction exists in the preset database, for example, four queues exist, if the target snapshot task matching the execution instruction exists in the preset database, the target snapshot task is placed in a queue, the task capacity of one queue is 1024, and if the number of the target snapshot tasks in the first queue is 1024, the 1025 th target snapshot task is placed in the second queue. Determining a unique identifier (i.e., id is 0) of the source snapshot based on the target snapshot task, wherein the unique identifier of the source snapshot can also be Host _ id, Vdisk _ id, Sys _ time and the like, then classifying according to the id of the source snapshot, task progress, task quantity, time period and the like, and finally displaying a target snapshot task monitoring list through a Graphical User Interface (GUI) of a User side.
In the embodiment, a task execution monitoring request initiated by a user side is obtained; creating a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database; after the target snapshot task is executed, state information of the target snapshot task is obtained, and target snapshot task monitoring information is determined based on the target snapshot task and the state information of the target snapshot task; and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information. According to the snapshot task backup method and device, after the target snapshot task is created and executed, the state information of the target snapshot task is obtained to obtain the target snapshot task monitoring information, so that the situations that the task quantity is not clear and the task progress is not clear are avoided, then the target snapshot task monitoring information is sent to the user side, the control capacity of the snapshot task can be effectively improved, the snapshot task monitoring accuracy is improved, and the backup efficiency of storing the timing snapshot is improved.
Referring to fig. 3, an embodiment of the present invention discloses a snapshot task monitoring method, which may specifically include:
step S21: and establishing a secure communication protocol interface with the user side, and then acquiring a task execution monitoring request which is sent by the user side and is created based on a preset snapshot task execution plug-in.
In this embodiment, a snapshot task is issued to a user display Interface through an SSH (Secure Shell) Interface, and then the snapshot task issued by the user is converted through an IPMI (Intelligent Platform Management Interface) to obtain a task execution monitoring request.
Step S22: and establishing a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database.
Step S23: and after the target snapshot task is executed, acquiring the state information of the target snapshot task, and determining the monitoring information of the target snapshot task based on the target snapshot task and the state information of the target snapshot task.
Step S24: and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information.
In this embodiment, a secure communication protocol interface with the user side is established, and then a task execution monitoring request which is sent by the user side and is created based on a preset snapshot task execution plug-in is acquired by using the secure communication protocol interface; creating a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database; after the target snapshot task is executed, state information of the target snapshot task is obtained, and target snapshot task monitoring information is determined based on the target snapshot task and the state information of the target snapshot task; and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information. According to the snapshot task backup method and device, after the target snapshot task is created and executed, the state information of the target snapshot task is obtained to obtain the target snapshot task monitoring information, so that the situations that the task quantity is not clear and the task progress is not clear are avoided, then the target snapshot task monitoring information is sent to the user side, the control capacity of the snapshot task can be effectively improved, the snapshot task monitoring accuracy is improved, and the backup efficiency of storing the timing snapshot is improved.
For example, as shown in fig. 4, a Linux User issues a snapshot task to a GUI (Graphical User Interface) through an SSH Interface, then generates a task execution monitoring request through an IPMI, sends the task execution monitoring request to an MCS (storage system in a computer), so as to create a target snapshot task according to the task execution monitoring request, then generates a task execution instruction based on the target snapshot task, executes the target snapshot task by using a CLI (Command-Line Interface) in the MCS, then monitors the target snapshot task after the execution is finished by using an MCS _ LVX (monitoring plugin) pre-constructed on the CLI to obtain target snapshot task monitoring information, and classifies the target snapshot task monitoring information according to the number of tasks, the task progress, the time period, and the like to obtain a target snapshot task monitoring list, and then the user is enabled to monitor the target snapshot task through a GUI.
For example, as shown in fig. 5, a specific process for determining the target snapshot task monitoring information is as follows, the MCS _ LVX plugin determines whether the target snapshot task matching the task execution instruction exists in the database every minute, if the target snapshot task matched with the execution instruction exists in the preset database, the target snapshot task is sent to a preset queue in the monitoring plug-in, then CLI executes the target snapshot task according to the preset queue, and then after the execution is finished, the MCS _ LVX plug-in acquires the state information of the target snapshot task after the execution is finished, and then, determining target snapshot task monitoring information based on the ID of the target snapshot task, the basic information of the target snapshot task such as the task progress and the like and the state information of the target snapshot task, and then sending the target snapshot task monitoring information to the user side through the SSH interface.
Referring to fig. 6, an embodiment of the present invention discloses a snapshot task monitoring device, which may specifically include:
a task execution monitoring request obtaining module 11, configured to obtain a task execution monitoring request initiated by a user side;
the target snapshot task saving module 12 is configured to create a target snapshot task according to the task execution monitoring request, and save the target snapshot task to a local preset database;
a target snapshot task monitoring information determining module 13, configured to obtain state information of the target snapshot task after the target snapshot task is executed, and determine target snapshot task monitoring information based on the target snapshot task and the target snapshot task state information;
and a target snapshot task monitoring information sending module 14, configured to send the target snapshot task monitoring information to the user side, so that the user side monitors the target snapshot task based on the target snapshot task monitoring information.
In the embodiment, a task execution monitoring request initiated by a user side is obtained; creating a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database; after the target snapshot task is executed, state information of the target snapshot task is obtained, and target snapshot task monitoring information is determined based on the target snapshot task and the state information of the target snapshot task; and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information. According to the snapshot task backup method and device, after the target snapshot task is created and executed, the state information of the target snapshot task is obtained to obtain the target snapshot task monitoring information, so that the situations that the task quantity is not clear and the task progress is not clear are avoided, then the target snapshot task monitoring information is sent to the user side, the control capacity of the snapshot task can be effectively improved, the snapshot task monitoring accuracy is improved, and the backup efficiency of storing the timing snapshot is improved.
In some specific embodiments, the task execution monitoring request obtaining module 11 may specifically include:
the security protocol interface establishing module is used for establishing a security protocol interface with the user side;
and the task execution monitoring request acquisition module is used for acquiring a task execution monitoring request which is sent by the user side and is created based on a preset snapshot task execution plug-in by utilizing the security protocol interface.
In some specific embodiments, the target snapshot task monitoring information determining module 13 may specifically include:
the task execution ending information generating module is used for generating a task execution instruction based on the target snapshot task, generating task execution ending information after the target snapshot task is executed and completed by utilizing a local preset command line interface according to the task execution instruction, and sending the task execution ending information to a monitoring plug-in which is pre-constructed in the preset command line interface;
and the state information acquisition module is used for determining the target snapshot task of which the task is finished according to the task execution finishing information and monitoring the target snapshot task of which the task is finished so as to obtain the state information of the target snapshot task.
In some specific embodiments, the target snapshot task monitoring information determining module 13 may specifically include:
the judging module is used for judging whether the target snapshot task matched with the task execution instruction exists in the preset database by utilizing the monitoring plug-in the preset command line interface;
and the target snapshot task execution module is used for sending the target snapshot task to a preset queue in the monitoring plug-in if the target snapshot task matched with the execution instruction exists in the preset database, so that the preset command line interface executes the target snapshot task according to the preset queue and the task execution instruction.
In some specific embodiments, the target snapshot task monitoring information determining module 13 may specifically include:
the preset period determining module is used for determining a preset period by a preset period determining method;
and the specific judgment module is used for judging whether the target snapshot task matched with the task execution instruction exists in the preset database or not by using the monitoring plug-in the preset command line interface based on the preset period by the user.
In some specific embodiments, the target snapshot task monitoring information determining module 13 may specifically include:
the unique identification determining module is used for determining a unique identification of a source snapshot based on the target snapshot task and acquiring all target snapshot task monitoring information corresponding to the unique identification;
and the classification module is used for classifying all the target snapshot task monitoring information corresponding to the unique identifier by using a preset classification method so as to obtain different types of target snapshot task monitoring information.
In some specific embodiments, the target snapshot task monitoring information sending module 14 may specifically include:
the target snapshot task monitoring list determining module is used for summarizing different types of target snapshot task monitoring information in a list form to obtain a target snapshot task monitoring list;
and the target snapshot task monitoring list sending module is used for sending the target snapshot task monitoring list to the user side.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the snapshot task monitoring method executed by an electronic device disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223, etc., and the storage may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the electronic device 20, so as to realize the operation and processing of the data 223 in the memory 22 by the processor 21, which may be Windows, Unix, Linux, and the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the snapshot task monitoring method performed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 may include data received by the snapshot task monitoring device and transmitted by an external device, or may include data collected by the self input/output interface 25.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Further, an embodiment of the present application further discloses a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is loaded and executed by a processor, the steps of the snapshot task monitoring method disclosed in any of the foregoing embodiments are implemented.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The snapshot task monitoring method, apparatus, device and storage medium provided by the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A snapshot task monitoring method is characterized by comprising the following steps:
acquiring a task execution monitoring request initiated by a user side;
creating a target snapshot task according to the task execution monitoring request, and storing the target snapshot task to a local preset database;
after the target snapshot task is executed, state information of the target snapshot task is obtained, and target snapshot task monitoring information is determined based on the target snapshot task and the state information of the target snapshot task;
and sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information.
2. The snapshot task monitoring method according to claim 1, wherein the acquiring of the task execution monitoring request initiated by the user side includes:
establishing a secure communication protocol interface with the user side;
and acquiring a task execution monitoring request which is sent by the user side and is created based on a preset snapshot task execution plug-in by utilizing the secure communication protocol interface.
3. The snapshot task monitoring method according to claim 1, wherein the obtaining of the state information of the target snapshot task after the target snapshot task is executed includes:
generating a task execution instruction based on the target snapshot task, generating task execution end information after the target snapshot task is executed and completed by utilizing a local preset command line interface according to the task execution instruction, and sending the task execution end information to a monitoring plug-in which is pre-constructed in the preset command line interface;
and determining the target snapshot task of which the task is finished according to the task execution finishing information, and monitoring the target snapshot task of which the task is finished so as to obtain the state information of the target snapshot task.
4. The snapshot task monitoring method according to claim 3, wherein the completing of the execution of the target snapshot task by using a local preset command line interface and according to the task execution instruction comprises:
judging whether the target snapshot task matched with the task execution instruction exists in the preset database or not by using the monitoring plug-in the preset command line interface;
and if the target snapshot task matched with the execution instruction exists in the preset database, sending the target snapshot task to a preset queue in the monitoring plug-in, so that the preset command line interface executes the target snapshot task according to the preset queue and the task execution instruction.
5. The snapshot task monitoring method according to claim 4, wherein the determining, by the monitoring plug-in the preset command line interface, whether the target snapshot task matching the task execution instruction exists in the preset database includes:
determining a preset period by a preset period determining method;
and judging whether the target snapshot task matched with the task execution instruction exists in the preset database or not by utilizing the monitoring plug-in the preset command line interface based on the preset period.
6. The snapshot task monitoring method according to any one of claims 1 to 5, wherein after determining target snapshot task monitoring information based on the target snapshot task and the target snapshot task state information, further comprising:
determining a unique identifier of a source snapshot based on the target snapshot task, and acquiring all target snapshot task monitoring information corresponding to the unique identifier;
and classifying all the target snapshot task monitoring information corresponding to the unique identifier by using a preset classification method to obtain different types of target snapshot task monitoring information.
7. The snapshot task monitoring method of claim 6, wherein the sending the target snapshot task monitoring information to the user side comprises:
summarizing the different types of target snapshot task monitoring information in a list form to obtain a target snapshot task monitoring list;
and sending the target snapshot task monitoring list to the user side.
8. A snapshot task monitoring apparatus, comprising:
the task execution monitoring request acquisition module is used for acquiring a task execution monitoring request initiated by a user side;
the target snapshot task saving module is used for establishing a target snapshot task according to the task execution monitoring request and saving the target snapshot task to a local preset database;
the target snapshot task monitoring information determining module is used for acquiring the state information of the target snapshot task after the target snapshot task is executed, and determining target snapshot task monitoring information based on the target snapshot task and the state information of the target snapshot task;
and the target snapshot task monitoring information sending module is used for sending the target snapshot task monitoring information to the user side so that the user side can monitor the target snapshot task based on the target snapshot task monitoring information.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing said computer program to implement a snapshot task monitoring method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements a snapshot task monitoring method as claimed in any one of claims 1 to 7.
CN202210469658.1A 2022-04-30 2022-04-30 Snapshot task monitoring method, device, equipment and medium Pending CN114817134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210469658.1A CN114817134A (en) 2022-04-30 2022-04-30 Snapshot task monitoring method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210469658.1A CN114817134A (en) 2022-04-30 2022-04-30 Snapshot task monitoring method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114817134A true CN114817134A (en) 2022-07-29

Family

ID=82509363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210469658.1A Pending CN114817134A (en) 2022-04-30 2022-04-30 Snapshot task monitoring method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114817134A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117687844A (en) * 2024-01-30 2024-03-12 苏州元脑智能科技有限公司 Method and device for realizing timing snapshot, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117687844A (en) * 2024-01-30 2024-03-12 苏州元脑智能科技有限公司 Method and device for realizing timing snapshot, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
EP2871553B1 (en) Systems and methods for protecting virtualized assets
EP3606008A1 (en) Method and device for realizing resource scheduling
US20150326648A1 (en) System and method for hand-offs in cloud environments
CN109992350B (en) Migration method and device for virtual machines in resource pool of cloud computing system
CN105049268A (en) Distributed computing resource allocation system and task processing method
CN111130962B (en) Automatic configuration method, equipment, system and storage medium for switch
CN112769652B (en) Node service monitoring method, device, equipment and medium
CN101771565B (en) Analogy method for realizing multitudinous or different baseboard management controllers by single server
WO2021190659A1 (en) System data acquisition method and apparatus, and medium and electronic device
CN110851303B (en) Data backup method, system and equipment
CN108009010B (en) Management device, system, method, electronic device and storage medium for thin client
CN108234551B (en) Data processing method and device
CN107623581B (en) Service list generation method, device and system, and acquisition and reporting method and device
CN114817134A (en) Snapshot task monitoring method, device, equipment and medium
CN113220342A (en) Centralized configuration method and device, electronic equipment and storage medium
CN114328026B (en) Virtual disk backup method, device, equipment and medium
US11416318B1 (en) Application programming interface for integration flow design
CN111431951B (en) Data processing method, node equipment, system and storage medium
CN113656378A (en) Server management method, device and medium
CN113726885A (en) Method and device for adjusting flow quota
CN113079152A (en) Data transmission method, device and medium
CN108566293B (en) Electronic device, zk node information notification method, and storage medium
CN111343101A (en) Server current limiting method and device, electronic equipment and readable storage medium
CN117176613B (en) Data acquisition method and device
CN115390834A (en) File generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination