CN110673977B - Data recovery optimization method, device, equipment and medium - Google Patents

Data recovery optimization method, device, equipment and medium Download PDF

Info

Publication number
CN110673977B
CN110673977B CN201910927752.5A CN201910927752A CN110673977B CN 110673977 B CN110673977 B CN 110673977B CN 201910927752 A CN201910927752 A CN 201910927752A CN 110673977 B CN110673977 B CN 110673977B
Authority
CN
China
Prior art keywords
recovery
target
control parameter
period
target file
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.)
Active
Application number
CN201910927752.5A
Other languages
Chinese (zh)
Other versions
CN110673977A (en
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201910927752.5A priority Critical patent/CN110673977B/en
Publication of CN110673977A publication Critical patent/CN110673977A/en
Application granted granted Critical
Publication of CN110673977B publication Critical patent/CN110673977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an optimization method for data recovery, which comprises the following steps: setting a target control parameter for controlling the recovery speed of the target file; the target file is a file with a data volume smaller than the specified data volume; acquiring a preset condition meeting the target period requirement; the target period is specifically a recovery period for recovering the target file; judging whether the current recovery period meets the condition; if the current control parameter is consistent with the target control parameter, adjusting the current control parameter to be the target control parameter so as to recover the target file; if not, adjusting the current control parameter to the appointed control parameter preset by the user. Therefore, the method and the device disclosed by the invention have the advantages that the recovery efficiency of the target file and the speed of the whole recovery process are improved, and the requirements of users can be better met. In addition, the invention provides an optimization device, equipment and a storage medium for data recovery, which correspond to the method.

Description

Data recovery optimization method, device, equipment and medium
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to an optimization method, an optimization device, an optimization apparatus, and a medium for data recovery.
Background
With the rapid development of information technology, the dependence of various industries on network application and data information is more and more strong, and the data storage technology is widely applied to various fields. Therefore, it is important to ensure the storage safety of data information and to recover data safely and stably when a storage device fails or data needs to be migrated. When data recovery is performed, the data recovery speed needs to be controlled in order to prevent the influence on the working performance of the front end caused by the fact that too many resources are occupied due to the fact that the data recovery speed is too high. In the prior art, before data recovery, the maximum data volume and the maximum number of objects that can be recovered in one recovery period are limited, and a user can set the priorities of low, medium, high and full volumes as required to control the recovery speed, so that the data can be recovered at the set speed, and the limitation on the recovery speed of the data is realized.
During the storage process, files with large data volume are split into storage objects with default sizes, and some files are storage objects with smaller data volume than the default sizes; when files with small data volume are restored by adopting the prior art, the data volume restored within the same time is small, and the efficiency in the restoring process is low; in addition, since the data to be restored generally includes both the storage object corresponding to the file with a large data amount and the storage object corresponding to the file with a small data amount, and after the user cannot set the priority and the corresponding restoration speed in the prior art, the user performs data restoration according to the fixed restoration parameters corresponding to the priority in the whole restoration process, so that the efficiency is low when restoring the files, the speed of the whole restoration process is slow, a large amount of time is wasted, and the user's requirements cannot be better satisfied.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a medium for optimizing data recovery. Whether the current recovery period is the recovery period of the target file or not can be judged; therefore, the adopted control parameters are determined according to the two conditions of the recovery period of the target file and the recovery period of other file data, so as to control different recovery speeds; on the premise of ensuring that the working performance of the front end is not affected, the recovery efficiency of the target file and the speed of the whole recovery process are improved, and the requirements of users are better met.
In order to solve the above technical problem, the present invention provides an optimization method for data recovery, including:
setting a target control parameter for controlling the recovery speed of the target file; the target file is a file with a data volume smaller than the specified data volume;
acquiring a preset condition meeting the target period requirement; the target period is specifically a recovery period for recovering the target file;
judging whether the current recovery period meets the condition;
if the current control parameter is consistent with the target control parameter, adjusting the current control parameter to be the target control parameter so as to recover the target file;
If not, adjusting the current control parameter to the appointed control parameter preset by the user.
Preferably, the condition is that a ratio of the target file of the historical recovery period adjacent to the current recovery period is greater than a preset ratio; wherein the target file proportion is the ratio of the number of target files in the history recovery period to the total number of objects;
the step of judging whether the current recovery period meets the condition specifically includes:
acquiring the target file proportion;
judging whether the target file proportion is larger than the preset proportion or not;
if yes, the current recovery period is in accordance with the condition.
Preferably, the acquiring the target file ratio specifically includes:
in the historical recovery period, judging whether the data value of each recovery object is smaller than a preset target data value or not;
if so, determining that the recovery object is a target file;
and counting the number of the target files, and calculating the ratio of the number to the total number of the recovered objects.
Preferably, the method further comprises the following steps:
and generating a log for recording each recovery object, the number of the target files and the total object number of the historical recovery period.
Preferably, the method further comprises the following steps:
and updating the preset proportion and the target data value according to the content recorded in the log.
Preferably, the method further comprises the following steps:
judging whether an abnormal condition exists according to the content recorded in the log;
if yes, a warning prompt is carried out in the log.
Preferably, the method further comprises the following steps:
after the target control parameter is set, judging whether the target recovery speed corresponding to the target control parameter is smaller than the specified recovery speed corresponding to the specified control parameter;
if yes, keeping the current control parameter as the specified control parameter.
In order to solve the above technical problem, the present invention further provides an optimization apparatus for data recovery, including:
the setting module is used for setting a target control parameter for controlling the recovery speed of the target file; the target file is a file with a data volume smaller than the specified data volume;
the acquisition module is used for acquiring preset conditions meeting the target period requirements; the target period is specifically a recovery period for recovering the target file;
the judging module is used for judging whether the current recovery period meets the condition; if the first adjustment module is matched with the second adjustment module, entering a first adjustment module; if not, entering a second adjusting module;
The first adjusting module is used for adjusting the current control parameter to the target control parameter so as to recover the target file;
and the second adjusting module is used for adjusting the current control parameter to a specified control parameter preset by a user.
In order to solve the above technical problem, the present invention further provides an optimization device for data recovery, including a memory for storing a computer program;
a processor for implementing the steps of the optimization method for data recovery as described in any one of the above when executing the computer program.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the optimization method for data recovery according to any one of the above items.
The invention provides an optimization method for data recovery, which comprises the following steps of firstly, setting a target control parameter for controlling the recovery speed of a target file; the target file is a file with a data volume smaller than the specified data volume. And according to the acquired condition meeting the target period requirement; judging whether the current recovery period meets the condition; therefore, the current control parameters are determined aiming at the target period and other recovery periods so as to control different recovery speeds; if the target period is the target period, adjusting the current control parameter to be the target control parameter so as to improve the recovery speed of the target file; if the file is recovered in other recovery periods, the current control parameters are adjusted to the appointed control parameters preset by the user, and the file is recovered continuously at the appointed recovery speed. Therefore, in the recovery process, if the current recovery period is the target period, the current control parameter is adjusted to enable the current control parameter to have the recovery speed adaptive to the target file; if in other recovery periods, the control is carried out according to the appointed control parameters of the user, so that the recovery efficiency of the target file and the speed of the whole recovery process are improved on the premise of ensuring that the working performance of the front end is not influenced, a large amount of working time is saved, and the requirements of the user can be better met.
In addition, the optimization device, the equipment and the storage medium for data recovery provided by the invention correspond to the method, and have the same beneficial effects.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of an optimization method for data recovery according to an embodiment of the present invention;
fig. 2 is a flowchart of another optimization method for data recovery according to an embodiment of the present invention;
fig. 3 is a structural diagram of an optimization apparatus for data recovery according to an embodiment of the present invention;
fig. 4 is a structural diagram of an optimization device for data recovery according to an embodiment of the present invention.
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 obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide an optimization method, a device, equipment and a medium for data recovery. Whether the current recovery period is the recovery period of the target file or not can be judged; therefore, the adopted control parameters are determined according to the two conditions of the recovery period of the target file and the recovery periods of other file data, so as to control different recovery speeds; on the premise of ensuring that the working performance of the front end is not affected, the recovery efficiency of the target file and the speed of the whole recovery process are improved, and the requirements of users are better met.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of an optimization method for data recovery according to an embodiment of the present invention; as shown in fig. 1, an optimization method for data recovery according to an embodiment of the present invention includes steps S101 to S105:
step S101: setting a target control parameter for controlling the recovery speed of the target file; the target file is a file with a data volume smaller than the specified data volume;
it can be understood that the control parameters are used to control the recovery speed of the file, and different control parameters are used for regulation, which will result in different recovery speeds, i.e. the maximum data amount and the maximum number of objects that can be recovered in one recovery period are different. In one embodiment, a target control parameter for controlling the restoration speed of the target file is set in advance. Specifically, the target control parameter may maximize the recovery speed of the target file in the current application environment without affecting the working performance of the front end. It is understood that the target control parameter is a control parameter corresponding to the maximum restoration speed of the target file. It should be noted that, a person skilled in the art may set the target control parameter according to an actual application situation, and the embodiment of the present invention is not limited.
Step S102: acquiring a preset condition meeting the target period requirement; the target period is specifically a recovery period for recovering the target file;
step S103: judging whether the current recovery period meets the condition; if yes, go to step S104; if not, the step S105 is entered;
step S104: adjusting the current control parameter to a target control parameter to recover the target file;
step S105: and adjusting the current control parameters to the appointed control parameters preset by the user.
In specific implementation, a preset condition meeting the requirement of a target period is obtained; judging whether the current recovery period meets the condition; that is, whether the current recovery period is the recovery period of the target file is judged, if yes, the control parameter can be adjusted to the target control parameter to recover the target file under the target file recovery scene. By adjusting the control parameters to the target control parameters, the maximum number of objects which can be recovered in each recovery period is increased, and the number of objects recovered in each data recovery operation is increased. If not, the file is currently in other file recovery scenes. And when the priority is set by the user, the control is continued according to the preset designated control parameters so as to ensure the working performance of the front end.
In the target file recovery scenario, the target file is to be continuously recovered for a certain period of time. During the data recovery process, each recovery scenario lasts for a period of time, and each recovery period is short in duration, usually set to several seconds. The duration of one recovery scenario takes multiple recovery periods. For example, the recovery period is 2s, the current recovery scenario is 30s, and the next recovery scenario is entered after all data in the current recovery scenario is recovered.
Specifically, since each recovery scenario continues for multiple recovery cycles, for example, in the target file recovery scenario, multiple consecutive recovery cycles are used to recover the data of the target file. Therefore, whether the current recovery period is the recovery period of the target file or not can be judged through the history recovery period adjacent to the current recovery period. If the data recovered by the historical recovery period is the target file, the historical recovery period is in the target file recovery scene, and the current recovery period adjacent to the historical recovery period can be judged to be the target file recovery scene, and the current recovery period is the target file recovery period. It can be understood that, when the recovery scene lasts for a longer time, the shorter the recovery period is set, the more accurate the determination result is.
In one embodiment, the condition is that the ratio of the target files of the historical recovery period adjacent to the current recovery period is greater than a preset ratio; the target file proportion is the ratio of the number of the target files in the historical recovery period to the total number of the objects;
the specific steps of judging whether the current recovery period meets the conditions provided by the invention include:
acquiring a target file ratio;
judging whether the target file proportion is larger than a preset proportion or not;
if yes, the current recovery period is in accordance with the condition.
In specific implementation, whether the current recovery period is the recovery period of the target file is determined by judging whether the current recovery period meets the condition. When judging whether the current recovery period meets the condition, firstly, the target file proportion of the historical recovery period is obtained, namely the ratio of the number of the target files to the total number of the objects in the historical recovery period. And when the obtained target file proportion is larger than the preset proportion, determining that the historical recovery period is the recovery period of the target file. Therefore, the current recovery period is determined to be the recovery period of the target file. It should be noted that, the preset ratio can be determined by various ways according to the actual application situation by those skilled in the art.
In one embodiment, the obtaining the target file ratio specifically includes:
in a historical recovery period, judging whether the data value of each recovery object is smaller than a preset target data value or not;
if so, determining that the recovery object is a target file;
the number of target files is counted and the ratio of the number to the total number of objects restored is calculated.
Specifically, the target file proportion is equal to the ratio of the number of target files in the history recovery period to the total number of objects. Therefore, the number of target files in the history recovery period and the total number of objects are respectively obtained, and the target file ratio can be calculated. When the number of the target files is obtained, each recovery object can be judged according to the target data value, whether the data volume of the recovery object is smaller than the target data value or not is judged, and if yes, the recovery object is determined to be the target file. It will be appreciated that the data size of the target file may be less than the data size of the storage object having the default size into which the file having the large data size is split. In one embodiment, the target data value may be set to the data amount of the storage object of the default size, and when the data amount of the restoration object is smaller than the data amount of the storage object of the default size, the restoration object is determined to be the target file. It should be noted that, those skilled in the art can determine the target data value according to the actual application.
In the specific implementation, counting is carried out in the process of each recovery period, and when the current recovery object is determined to be the target file, the number of the target files is increased by one; each time an object is restored, one is added to the total number of objects. And after the recovery period is finished, counting the number of the target files recovered in the recovery period and the total number of the recovered objects.
The invention provides an optimization method for data recovery, which comprises the following steps of firstly, setting a target control parameter for controlling the recovery speed of a target file; the target file is a file with a data volume smaller than the specified data volume. And according to the acquired condition meeting the target period requirement; judging whether the current recovery period meets the condition; therefore, the current control parameters are determined aiming at the target period and other recovery periods so as to control different recovery speeds; if the target period is the target period, adjusting the current control parameter to be the target control parameter so as to improve the recovery speed of the target file; if the file is recovered in other recovery periods, the current control parameters are adjusted to the appointed control parameters preset by the user, and the file is recovered continuously at the appointed recovery speed. Therefore, in the recovery process, if the current recovery period is the target period, the current control parameter is adjusted to enable the current control parameter to have the recovery speed adaptive to the target file; if in other recovery periods, the control is carried out according to the appointed control parameters of the user, so that the recovery efficiency of the target file and the speed of the whole recovery process are improved on the premise of ensuring that the working performance of the front end is not influenced, a large amount of working time is saved, and the requirements of the user can be better met.
Fig. 2 is a flowchart of another optimization method for data recovery according to an embodiment of the present invention; as shown in fig. 2, the method for optimizing data recovery according to the present invention further includes steps S201 to S204:
step S201: and generating a log for recording each recovery object of the historical recovery period, the number of target files and the total number of the objects.
By generating logs of the recovery objects, the number of target files and the total number of the objects in the historical recovery period, subsequent workers can check and check conveniently, analysis is carried out according to the recorded content, and all parameters in the subsequent recovery process can be adjusted in time.
As shown in fig. 2, the method for optimizing data recovery according to the embodiment of the present invention further includes:
step S202: and updating the preset proportion and the target data value according to the content recorded in the log.
Specifically, according to information such as the number of recovery objects, target files and the total number of objects in a historical recovery period, whether a preset proportion and a target data value adopted at present need to be updated or not is analyzed, so that the efficiency of the whole recovery process is improved better on the premise of not influencing the working performance of a front end; if the data needs to be recovered, the preset proportion and the target data value are updated, so that the data can be better adapted to the current application environment, the recovery efficiency is improved to the maximum extent, and the requirements of users are met.
As shown in fig. 2, the method for optimizing data recovery according to the embodiment of the present invention further includes:
step S203: judging whether an abnormal condition exists according to the content recorded in the log; if yes, go to step S204;
step S204: a warning prompt is made in the log.
In the recovery process, judging whether an abnormal condition exists according to the content recorded in the log; when the recovery process is found to be abnormal, warning prompt can be carried out in the log, so that workers can find the abnormal problem in time conveniently, the abnormal problem can be found and solved quickly by analyzing the content recorded by the log, and the recovery speed in the whole process is improved.
Specifically, the contact information may be based on a pre-stored contact information of the staff, such as a mailbox or a telephone number. When the recovery process is abnormal, the abnormal information can be notified to the staff according to the contact way, so that the staff can timely process the abnormal information. The whole recovery process is more efficient, the worker is not required to check all the time, and convenience is brought to work.
In one embodiment, the method for optimizing data recovery further includes:
after the target control parameter is set, judging whether the target recovery speed corresponding to the target control parameter is smaller than the designated recovery speed corresponding to the designated control parameter;
If so, keeping the current control parameter as the designated control parameter.
It is understood that the current control parameter is a specific control parameter preset by a user, so as to achieve the recovery speed of the data to reach the specific recovery speed. After the target control parameters are set, whether the target recovery speed corresponding to the target control parameters is smaller than the specified recovery speed corresponding to the specified control parameters or not can be judged firstly, if yes, the current recovery speed is higher, the data recovery efficiency is higher, the recovery can be continued according to the current recovery speed, the subsequent judgment of whether the recovery period is the target file or not is not needed, the flexibility of data recovery is improved, and the requirements of users are met better.
The invention also provides an embodiment corresponding to the data recovery optimizing device, and the data recovery optimizing device is explained based on the angle of the functional module.
Fig. 3 is a structural diagram of an optimization apparatus for data recovery according to an embodiment of the present invention; as shown in fig. 3, an optimization apparatus for data recovery according to an embodiment of the present invention includes:
a setting module 10, configured to set a target control parameter for controlling a recovery speed of a target file; the target file is a file with a data volume smaller than the specified data volume;
An obtaining module 11, configured to obtain a preset condition that meets a target period requirement; the target period is specifically a recovery period for recovering the target file;
a judging module 12, configured to judge whether a current recovery period meets a condition; if the first adjustment module is matched with the second adjustment module, entering a first adjustment module; if yes, entering a first adjusting module 13; if not, entering a second adjusting module 14;
a first adjusting module 13, configured to adjust the current control parameter to a target control parameter to restore the target file;
and a second adjusting module 14, configured to adjust the current control parameter to a specified control parameter preset by a user.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here.
The invention provides an optimization device for data recovery, which comprises the following steps of firstly, setting a target control parameter for controlling the recovery speed of a target file; the target file is a file with a data volume smaller than the specified data volume. And according to the acquired condition meeting the target period requirement; judging whether the current recovery period meets the condition; therefore, the current control parameters are determined aiming at the target period and other recovery periods so as to control different recovery speeds; if the target period is the target period, adjusting the current control parameter to be the target control parameter so as to improve the recovery speed of the target file; if the file is recovered in other recovery periods, the current control parameters are adjusted to the appointed control parameters preset by the user, and the file is recovered continuously at the appointed recovery speed. Therefore, in the recovery process, if the current recovery period is the target period, the current control parameter is adjusted to enable the current control parameter to have the recovery speed adaptive to the target file; if in other recovery periods, the control is carried out according to the appointed control parameters of the user, so that the recovery efficiency of the target file and the speed of the whole recovery process are improved on the premise of ensuring that the working performance of the front end is not influenced, a large amount of working time is saved, and the requirements of the user can be better met.
The data recovery optimizing device provided by the embodiment of the invention further comprises:
the generating module is used for generating a log for recording the number of all recovery objects, target files and the total number of the objects in the historical recovery period;
the updating module is used for updating the preset proportion and the target data value according to the content recorded in the log;
the warning module is used for judging whether an abnormal condition exists according to the content recorded in the log; if yes, warning prompt is carried out in the log;
the maintaining module is used for judging whether the target recovery speed corresponding to the target control parameter is less than the specified recovery speed corresponding to the specified control parameter after the target control parameter is set; if so, the current control parameter is kept as the designated control parameter.
The invention also provides an embodiment corresponding to the data recovery optimizing equipment, and the data recovery optimizing equipment is explained based on the angle of hardware.
Fig. 4 is a structural diagram of an optimization device for data recovery according to an embodiment of the present invention; as shown in fig. 4. The data recovery optimization device provided by the embodiment of the invention comprises a memory 20, a storage unit and a data processing unit, wherein the memory 20 is used for storing a computer program;
a processor 21 for implementing the steps of the optimization method for data recovery as described in any one of the above when executing the computer program.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement relevant steps in the optimization method for data recovery disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like.
In some embodiments, the data recovery optimizing device may further include an input/output interface 22, a communication interface 23, a power supply 24, and a communication bus 25.
Those skilled in the art will appreciate that the architecture shown in FIG. 4 does not constitute a limitation of an optimized device for data recovery and may include more or fewer components than those shown.
Since the embodiment of this section corresponds to the embodiment of the method section, please refer to the description of the embodiment of the method section for the embodiment of this section, and details are not repeated here.
The optimization equipment for data recovery provided by the invention can realize the following method: firstly, setting a target control parameter for controlling the recovery speed of a target file; the target file is a file with a data volume smaller than the specified data volume. And according to the acquired condition meeting the target period requirement; judging whether the current recovery period meets the condition; therefore, the current control parameters are determined aiming at the target period and other recovery periods so as to control different recovery speeds; if the target period is the target period, adjusting the current control parameter to be the target control parameter so as to improve the recovery speed of the target file; if the file is recovered in other recovery periods, the current control parameters are adjusted to the appointed control parameters preset by the user, and the file is recovered continuously at the appointed recovery speed. Therefore, in the recovery process, if the current recovery period is the target period, the current control parameter is adjusted to enable the current control parameter to have the recovery speed adaptive to the target file; if in other recovery periods, the control is carried out according to the appointed control parameters of the user, so that the recovery efficiency of the target file and the speed of the whole recovery process are improved on the premise of ensuring that the working performance of the front end is not influenced, a large amount of working time is saved, and the requirements of the user can be better met.
Finally, the invention also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is understood that, if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and performs all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above detailed description is provided for a method, an apparatus, a device and a medium for optimizing data recovery provided by the present invention. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It should also be noted that, in this specification, relational terms such as first and second, and the like are 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 the process, method, article, or apparatus that comprises the element.

Claims (8)

1. An optimization method for data recovery, comprising:
setting a target control parameter for controlling the recovery speed of the target file; the target file is a file of which the data volume is smaller than the specified data volume;
Acquiring a preset condition meeting the target period requirement; the target period is specifically a recovery period for recovering the target file;
judging whether the current recovery period meets the condition;
if the current control parameter is consistent with the target control parameter, adjusting the current control parameter to be the target control parameter so as to recover the target file;
if not, adjusting the current control parameter to a designated control parameter preset by a user;
the condition is that the ratio of the target file of the historical recovery period adjacent to the current recovery period is greater than a preset ratio; the target file proportion is the ratio of the number of the target files in the historical recovery period to the total number of the objects;
the step of judging whether the current recovery period meets the condition specifically includes:
acquiring the target file proportion;
judging whether the target file proportion is larger than the preset proportion or not;
if yes, the current recovery period is in accordance with the condition;
wherein the obtaining of the target file proportion specifically comprises:
in the historical recovery period, judging whether the data value of each recovery object is smaller than a preset target data value or not;
if so, determining that the recovery object is a target file;
And counting the number of the target files, and calculating the ratio of the number to the total recovered objects.
2. The method of optimizing data recovery according to claim 1, further comprising:
and generating a log for recording each recovery object, the number of the target files and the total object number of the historical recovery period.
3. The method of optimizing data recovery according to claim 2, further comprising:
and updating the preset proportion and the target data value according to the content recorded in the log.
4. The method of optimizing data recovery according to claim 2, further comprising:
judging whether an abnormal condition exists according to the content recorded in the log;
and if so, performing warning prompt in the log.
5. The method of optimizing data recovery according to claim 1, further comprising:
after the target control parameter is set, judging whether the target recovery speed corresponding to the target control parameter is smaller than the specified recovery speed corresponding to the specified control parameter;
if yes, keeping the current control parameter as the specified control parameter.
6. An apparatus for optimizing data recovery, comprising:
the setting module is used for setting a target control parameter for controlling the recovery speed of the target file; the target file is a file with a data volume smaller than the specified data volume;
the acquisition module is used for acquiring preset conditions meeting the target period requirements; the target period is specifically a recovery period for recovering the target file;
the judging module is used for judging whether the current recovery period meets the condition; if the first adjustment module is matched with the second adjustment module, entering a first adjustment module; if not, entering a second adjusting module;
the first adjusting module is used for adjusting the current control parameter to the target control parameter so as to recover the target file;
the second adjusting module is used for adjusting the current control parameter to a designated control parameter preset by a user;
the condition is that the ratio of the target file of the historical recovery period adjacent to the current recovery period is greater than a preset ratio; the target file proportion is the ratio of the number of the target files in the historical recovery period to the total number of the objects;
the step of judging whether the current recovery period meets the condition specifically includes:
Acquiring the target file proportion;
judging whether the target file proportion is larger than the preset proportion or not;
if yes, the current recovery period is in accordance with the condition;
wherein the obtaining of the target file proportion specifically comprises:
in the historical recovery period, judging whether the data value of each recovery object is smaller than a preset target data value or not;
if so, determining that the recovery object is a target file;
and counting the number of the target files, and calculating the ratio of the number to the total number of the recovered objects.
7. An optimization device for data recovery, comprising a memory for storing a computer program;
a processor for implementing the steps of the method of optimizing data recovery according to any one of claims 1 to 5 when executing said computer program.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the optimization method of data recovery according to any one of claims 1 to 5.
CN201910927752.5A 2019-09-27 2019-09-27 Data recovery optimization method, device, equipment and medium Active CN110673977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910927752.5A CN110673977B (en) 2019-09-27 2019-09-27 Data recovery optimization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910927752.5A CN110673977B (en) 2019-09-27 2019-09-27 Data recovery optimization method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110673977A CN110673977A (en) 2020-01-10
CN110673977B true CN110673977B (en) 2022-06-07

Family

ID=69079725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910927752.5A Active CN110673977B (en) 2019-09-27 2019-09-27 Data recovery optimization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110673977B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391317A (en) * 2017-09-14 2017-11-24 郑州云海信息技术有限公司 A kind of method, apparatus of data recovery, equipment and computer-readable recording medium
CN107885616A (en) * 2017-09-29 2018-04-06 上海爱数信息技术股份有限公司 A kind of mass small documents back-up restoring method based on file system parsing
CN108804039A (en) * 2018-06-04 2018-11-13 平安科技(深圳)有限公司 Adaptive data restore flow control method, device, electronic equipment and storage medium
CN108984339A (en) * 2018-06-05 2018-12-11 Oppo广东移动通信有限公司 Data reconstruction method and Related product

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8756200B2 (en) * 2004-05-14 2014-06-17 Oracle International Corporation Undo advisor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391317A (en) * 2017-09-14 2017-11-24 郑州云海信息技术有限公司 A kind of method, apparatus of data recovery, equipment and computer-readable recording medium
CN107885616A (en) * 2017-09-29 2018-04-06 上海爱数信息技术股份有限公司 A kind of mass small documents back-up restoring method based on file system parsing
CN108804039A (en) * 2018-06-04 2018-11-13 平安科技(深圳)有限公司 Adaptive data restore flow control method, device, electronic equipment and storage medium
CN108984339A (en) * 2018-06-05 2018-12-11 Oppo广东移动通信有限公司 Data reconstruction method and Related product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
数据恢复技术的分析与实践;王彩霞;《信息与电脑(理论版)》;20120615(第06期);全文 *

Also Published As

Publication number Publication date
CN110673977A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN108089814B (en) Data storage method and device
CN107273182B (en) Method and system for dynamically expanding virtual machine resources
CN110704283A (en) Method, device and medium for uniformly generating alarm information
CN110021792B (en) Charging control method and device, terminal equipment and computer storage medium
CN112256383B (en) Method, device, equipment and medium for adjusting CPU core number of virtual machine
US20230305880A1 (en) Cluster distributed resource scheduling method, apparatus and device, and storage medium
CN113010312A (en) Hyper-parameter tuning method, device and storage medium
CN110673977B (en) Data recovery optimization method, device, equipment and medium
CN110109970B (en) Data query processing method and device
CN111024410B (en) Power overrun fault detection method and device for vehicle, vehicle and storage medium
CN107562703B (en) Dictionary tree reconstruction method and system
CN110231772B (en) Method, device and equipment for acquiring process model
CN115421859B (en) Dynamic loading method and device for configuration file, computer equipment and storage medium
CN112905119B (en) Data write-in control method, device and equipment of distributed storage system
CN106201612B (en) A kind of information processing method and electronic equipment
CN110780597B (en) Control method, device, equipment and medium for preventing steering engine from oscillating
CN112396100B (en) Optimization method, system and related device for fine-grained classification model
CN111025178B (en) Stability test method for main-standby switching of power supply module and related components
CN114880157A (en) Fault injection method and device
CN111258724B (en) Data processing method, device, equipment and storage medium of distributed system
CN110704241B (en) Method, device, equipment and medium for recovering file metadata
CN111104383B (en) Method and device for detecting sudden drift change of event log
CN111124754A (en) Data recovery method, device, equipment and medium
CN112767937A (en) Multi-device voice control method, system, device and readable storage medium
CN106126392A (en) The determination methods of a kind of AM/BAM application program and device

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
GR01 Patent grant
GR01 Patent grant