CN115373894A - Data recovery method and device, electronic equipment and computer readable medium - Google Patents

Data recovery method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115373894A
CN115373894A CN202110559268.9A CN202110559268A CN115373894A CN 115373894 A CN115373894 A CN 115373894A CN 202110559268 A CN202110559268 A CN 202110559268A CN 115373894 A CN115373894 A CN 115373894A
Authority
CN
China
Prior art keywords
virtual machine
target virtual
capacity
data
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
CN202110559268.9A
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110559268.9A priority Critical patent/CN115373894A/en
Publication of CN115373894A publication Critical patent/CN115373894A/en
Pending legal-status Critical Current

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The embodiment of the disclosure discloses a data recovery method, a data recovery device, an electronic device and a medium. The method comprises the following steps: obtaining incremental backup data corresponding to a target virtual machine; detecting the resource utilization rate of a physical machine where the target virtual machine is located; according to the resource utilization rate, the initial virtual machine capacity of the target virtual machine is increased to obtain a target virtual machine with increased capacity, wherein the target virtual machine with increased capacity takes effect through restarting; and calling the computing resources of the target virtual machine with the increased capacity according to the pre-configured time period parameters so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity. According to the method and the device, the incremental data to be recovered in the incremental backup data can be quickly and efficiently recovered to the target virtual machine.

Description

Data recovery method and device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a data recovery method, apparatus, electronic device, and computer-readable medium.
Background
At present, the problem of data unavailability often occurs in target databases. The reasons for the unavailability of data may be: dirty data is introduced or some data is deleted due to a malfunction. For data that is desired to be recovered for a target time period, the following is generally adopted: and directly copying the latest snapshot of the physical backup file to the target virtual machine, and then copying the incremental data corresponding to the target time period to the target virtual machine to restore the data to be restored to the target database.
However, when the data is recovered in the above manner, there are often the following technical problems:
when the data volume of the incremental data corresponding to the target time period is large, the problems of low copying speed and low copying efficiency exist. Thus, a long time of downtime may be caused, resulting in a poor user experience.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose data recovery methods, apparatuses, electronic devices and computer readable media to solve one or more of the technical problems noted in the background section above.
In a first aspect, some embodiments of the present disclosure provide a data recovery method, including: obtaining incremental backup data corresponding to a target virtual machine; detecting the resource utilization rate of a physical machine where the target virtual machine is located; according to the resource utilization rate, the initial virtual machine capacity of the target virtual machine is increased to obtain a target virtual machine with increased capacity, wherein the target virtual machine with increased capacity is effective after being restarted; and calling the computing resources of the target virtual machine with the increased capacity according to a pre-configured time period parameter so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity.
In a second aspect, some embodiments of the present disclosure provide a data recovery apparatus, including: the obtaining unit is configured to obtain incremental backup data corresponding to the target virtual machine; the detection unit is configured to detect the resource utilization rate of a physical machine where the target virtual machine is located; a promoting unit configured to promote an initial virtual machine capacity of the target virtual machine according to the resource utilization rate to obtain a capacity-promoted target virtual machine, wherein the capacity-promoted target virtual machine has come into effect by restarting; and the calling unit is configured to call the computing resources of the target virtual machine with the increased capacity according to a preconfigured time period parameter so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method as described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the disclosure provide a computer readable medium having a computer program stored thereon, where the program when executed by a processor implements a method as described in any implementation of the first aspect.
The above embodiments of the present disclosure have the following beneficial effects: according to the data recovery method, incremental data to be recovered in the incremental backup data can be quickly and efficiently recovered to the target virtual machine. Specifically, when the data amount of the incremental data corresponding to the target time zone is large, there are problems of a low copy speed and a low copy efficiency. Therefore, the system is down for a long time, and the user experience is poor. Based on this, the data recovery method of some embodiments of the present disclosure may first obtain incremental backup data corresponding to the target virtual machine. And then, detecting the resource utilization rate of the physical machine where the target virtual machine is located to determine the idle computing resources of the physical machine where the current target virtual machine is located. And then, according to the resource utilization rate, the initial virtual machine capacity of the target virtual machine is increased to obtain a capacity-increased target virtual machine, wherein the capacity-increased target virtual machine is effective through restarting. In this way, more computing resources may be subsequently used to recover the incremental data to be recovered. The data recovery speed and the copying efficiency can be greatly improved. In addition, the problem of long-time downtime is solved, and user experience is improved laterally. And finally, calling the computing resources of the target virtual machine with the increased capacity, and restoring the incremental data to be restored in the incremental backup data, corresponding to the time period, to the target virtual machine with the increased capacity. Therefore, the data recovery method can quickly and efficiently recover the incremental data to be recovered in the incremental backup data to the target virtual machine.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of one application scenario of a data recovery method according to some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a data recovery method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a data recovery method according to the present disclosure;
FIG. 4 is a schematic illustration of data recovery to be recovered in some embodiments of a data recovery method according to the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of a data recovery apparatus according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of one application scenario of a data recovery method according to some embodiments of the present disclosure.
In the application scenario of fig. 1, the electronic device 101 may first acquire incremental backup data 102 corresponding to a target virtual machine 103. Then, the resource usage 105 of the physical machine in which the target virtual machine 103 is located is detected. In the application scenario, the resource utilization 105 may be: "60%". Further, according to the resource utilization rate 105, the initial virtual machine capacity 106 of the target virtual machine 103 is adjusted to obtain a capacity-increased target virtual machine 104, wherein the capacity-increased target virtual machine 104 is enabled by restarting. As an example, the initial virtual machine capacity 106 of target virtual machine 103 may be: "memory: 1.7GB, the number of cores of a Central Processing Unit (CPU): 2 cores, size of hard disk: 250GB ". The virtual machine capacity of the target virtual machine 104 after the capacity is increased may be: "memory: 3.5GB, the core number of the central processing unit: 4 cores, size of hard disk: 500GB ". Finally, according to a pre-configured time period parameter 107, the computing resource of the target virtual machine 104 with the increased capacity is called, so as to restore the incremental data 108 to be restored in the incremental backup data 102 to the target virtual machine 104 with the increased capacity. In this application scenario, the time period parameter 107 may be: "T: 12 days 3 months-14 days 3 months ".
The electronic device 101 may be hardware or software. When the electronic device is hardware, the electronic device may be implemented as a distributed cluster formed by a plurality of servers or terminal devices, or may be implemented as a single server or a single terminal device. When the electronic device is embodied as software, it may be installed in the above-listed hardware devices. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of electronic devices in fig. 1 is merely illustrative. There may be any number of electronic devices, as desired for implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of a data recovery method according to the present disclosure is shown. The data recovery method comprises the following steps:
step 201, obtaining incremental backup data corresponding to a target virtual machine.
In some embodiments, an execution subject (e.g., the electronic device shown in fig. 1) of the data recovery method may obtain incremental backup data corresponding to the target virtual machine in a wired connection manner or a wireless connection manner. The incremental backup data may be modification log information of the data. The incremental backup data may include at least one of: change log information of data, increase log information of data, and delete log information of data.
As an example, the incremental backup data described above may be modification log information for target data in a database (e.g., a MongoDB database) of the target distributed file store.
Step 202, detecting the resource utilization rate of the physical machine where the target virtual machine is located.
In some embodiments, the execution subject may detect a resource usage rate of a physical machine in which the target virtual machine is located. A Virtual Machine (Virtual Machine) may be a complete computer system that runs in a completely isolated environment and has complete hardware system functions through software simulation. The work that can be done in the physical machine can be implemented in the virtual machine. When creating a virtual machine in a computer, it is necessary to use a part of the hard disk and the memory capacity of a physical machine as the hard disk and the memory capacity of the virtual machine. Each virtual machine has an independent hard disk and an independent operating system, and the virtual machines can be operated like a physical machine. The resource utilization rate represents the load degree of each task executed by the current physical machine. The higher the resource utilization, the more heavily the load characterizing the physical machine to perform the various tasks. The lower the resource utilization, the less the load characterizing the physical machine performing the various tasks.
By way of example, the resource usage may be, but is not limited to, at least one of: the utilization rate of the current memory of the physical machine where the target virtual machine is located, the utilization rate of the current CPU of the physical machine where the target virtual machine is located, and the utilization rate of the current hard disk of the physical machine where the target virtual machine is located.
In some optional implementation manners of some embodiments, the detecting a resource usage rate of a physical machine in which the target virtual machine is located may include:
in the first step, in response to receiving a target operating system instruction input by a target user, popping up a popup window representing the resource use condition of each hardware of the physical machine. As an example, the target operating system instruction may be: "taskmgr".
And secondly, determining the utilization rate of the central processing unit and the internal memory of the physical machine according to the popup window. As an example, the execution subject may determine the utilization rates of the central processing unit and the memory in the physical machine by querying data analysis information at a corresponding position in the popup window.
It should be further noted that the execution agent may utilize the Linux operating system instruction to detect the resource utilization of the physical machine. The Linux operating system instruction can be a top-c command, so that process information, memory utilization rate, CPU vacancy rate and the like of a physical machine can be checked.
And 203, according to the resource utilization rate, increasing the initial virtual machine capacity of the target virtual machine to obtain the target virtual machine with increased capacity.
In some embodiments, the execution subject may upgrade, according to the resource utilization rate, an initial virtual machine capacity of the target virtual machine, to obtain the target virtual machine with an effective upgraded capacity. The virtual machine capacity may be configuration information of the virtual machine. The virtual machine capacity may include, but is not limited to, at least one of: the core number corresponding to the CPU, the size of the memory and the size of the hard disk. And the target virtual machine with the increased capacity is effective through restarting.
As an example, the execution main body may boost an initial virtual machine capacity of the target virtual machine through a desktop virtual machine software (VMware) according to a resource usage rate, so as to obtain the target virtual machine with the boosted capacity.
As an example, the execution subject may restart the capacity-boosted target virtual machine to enable the capacity-boosted target virtual machine to be effective.
And 204, calling the computing resources of the target virtual machine with the increased capacity according to a pre-configured time period parameter, so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity.
In some embodiments, the execution main body may call, according to a pre-configured time period parameter, a computing resource of the target virtual machine after capacity increase to restore the incremental data to be restored in the incremental backup data to the target virtual machine after capacity increase. The incremental data to be restored in the incremental backup data may be modification log information corresponding to the data to be restored. The data to be recovered may be lost data in the target database. And restoring the data to be restored to a target database in the target virtual machine through the incremental data to be restored and the latest snapshot of the physical backup. The time period parameter may be a parameter corresponding to the incremental data to be restored in the incremental backup data.
As an example, the execution subject may determine, according to a pre-configured time period parameter, incremental data to be restored from the incremental backup data. Then, the execution subject may call the computing resource of the target virtual machine with the increased capacity to restore the incremental data to be restored to the target virtual machine with the increased capacity.
In some optional implementation manners of some embodiments, in response to detecting that the incremental data to be restored is restored to the target virtual machine after the capacity is increased, the execution main body may adjust the virtual machine capacity of the target virtual machine after the capacity is increased to the initial virtual machine capacity. Here, the virtual machine capacity of the target virtual machine after the capacity is increased is adjusted to the initial virtual machine capacity, so that it is possible to avoid an influence on the performance of other tasks of the physical machine.
In some optional implementation manners of some embodiments, the execution main body may call, by using a target restoration tool, the computing resource of the target virtual machine with the increased capacity, so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity. As an example, the target recovery tool may include: under the MongoDB database bin catalogue, a Mongodump tool and a mongorestore tool are arranged.
Here, fig. 3 illustrates an example diagram of a physical backup data restore. From the physical backup 302, a physical backup most recent snapshot 303 is taken. The physical backup last snapshot 303 is then copied to the target virtual machine 301. Then, according to the incremental data 305 to be restored in the incremental backup data 304, the state of the data of the last snapshot 303 of the physical backup is modified, so that the data 306 to be restored can be obtained. Finally, the data to be restored 306 is restored to the target database 307.
In some optional implementation manners of some embodiments, the execution main body may modify a resource configuration item of the central processing unit and a resource configuration item of the memory corresponding to the target virtual machine to increase the core number and the memory size of the central processing unit corresponding to the target virtual machine. The above embodiments of the present disclosure have the following beneficial effects: according to the data recovery method of some embodiments of the disclosure, incremental data to be recovered in the incremental backup data can be quickly and efficiently recovered to the target virtual machine. Specifically, when the data amount of the incremental data corresponding to the target time zone is large, there are problems of a low copy speed and a low copy efficiency. Therefore, the system is down for a long time, and the user experience is poor. Based on this, the data recovery method of some embodiments of the present disclosure may first obtain incremental backup data corresponding to the target virtual machine. And then, detecting the resource utilization rate of the physical machine where the target virtual machine is located to determine the idle computing resources of the physical machine where the current target virtual machine is located. And then, according to the resource utilization rate, the initial virtual machine capacity of the target virtual machine is increased, and the target virtual machine with the increased capacity is obtained. And the target virtual machine with the increased capacity is effective through restarting. In this way, more computing resources may be subsequently used to recover the incremental data to be recovered. The data recovery speed and the copying efficiency can be greatly improved. In addition, the problem of long-time downtime is solved, and user experience is improved laterally. And finally, calling the computing resources of the target virtual machine with the increased capacity, and restoring the incremental data to be restored in the incremental backup data, corresponding to the time period, to the target virtual machine with the increased capacity. Therefore, the data recovery method can quickly and efficiently recover the incremental data to be recovered in the incremental backup data to the target virtual machine.
With further reference to fig. 4, a flow 400 of further embodiments of a data recovery method according to the present disclosure is shown. The data recovery method comprises the following steps:
step 401, obtaining incremental backup data corresponding to the target virtual machine.
Step 402, detecting the resource utilization rate of the physical machine where the target virtual machine is located.
And step 403, in response to that the resource utilization rate is less than or equal to a predetermined threshold, increasing the core number and the memory size of the central processing unit corresponding to the target virtual machine, so as to obtain the target virtual machine with increased capacity.
In some embodiments, in response to the resource utilization being less than or equal to the predetermined threshold, an execution subject (e.g., the electronic device shown in fig. 1) may increase the number of cores and the memory size of the central processing unit corresponding to the target virtual machine, so as to obtain the target virtual machine with the increased capacity.
As an example, the predetermined threshold value may be 0.8. The above resource usage rate may be 0.6. Therefore, the resource usage rate is equal to or less than a predetermined threshold. The execution main body can adjust the initial virtual machine capacity (the memory: 1.7GB, the core number of the central processing unit: 2 cores, the size of the hard disk: 250 GB) of the target virtual machine to the adjusted virtual machine capacity (the memory: 3.5GB, the core number of the central processing unit: 4 cores, the size of the hard disk: 500 GB).
As another example, in response to that the resource utilization rate is less than or equal to a predetermined threshold, the execution main body may use a desktop virtual machine (VMware) to increase the number of cores and the size of the memory of the central processing unit corresponding to the target virtual machine, so as to obtain the target virtual machine with increased capacity.
Step 404, according to a pre-configured time period parameter, invoking a computing resource of the target virtual machine with the increased capacity to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity.
In some embodiments, specific implementation of steps 401, 402, and 404 and technical effects brought by the implementation may refer to steps 201, 202, and 204 in the embodiment corresponding to fig. 2, and are not described herein again.
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 2, the flow 400 of the data recovery method in some embodiments corresponding to fig. 4 highlights a specific step of increasing the virtual machine capacity of the target virtual machine. Therefore, the solutions described in the embodiments can increase the number of threads of the virtual machine by increasing the number of CPU cores of the target virtual machine, and increase the running speed of the target virtual machine by increasing the size of the memory. Therefore, the speed of restoring the incremental backup data of the target virtual machine can be more clearly and simply explained.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a data recovery apparatus, which correspond to those shown in fig. 2, and which may be applied in various electronic devices in particular.
As shown in fig. 5, a data recovery apparatus 500 includes: the device comprises an acquisition unit 501, a detection unit 502, a lifting unit 503 and a calling unit 504. The obtaining unit 501 is configured to obtain incremental backup data corresponding to a target virtual machine; a detecting unit 502 configured to detect a resource utilization rate of a physical machine in which the target virtual machine is located; a promoting unit 503, configured to promote an initial virtual machine capacity of the target virtual machine according to the resource utilization rate, to obtain a capacity-promoted target virtual machine, where the capacity-promoted target virtual machine has come into effect by restarting; the invoking unit 504 is configured to invoke the computing resource of the target virtual machine with the increased capacity according to a preconfigured time period parameter, so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity.
In some optional implementations of some embodiments, the hoisting unit 503 in the data recovery apparatus 500 may be further configured to: and in response to that the resource utilization rate is less than or equal to a preset threshold value, increasing the core number and the memory size of the central processing unit corresponding to the target virtual machine to obtain the target virtual machine with the increased capacity.
In some optional implementations of some embodiments, the data recovery apparatus 500 further includes: a virtual machine capacity adjustment unit (not shown). Wherein the virtual machine capacity adjustment unit may be configured to: and in response to the target virtual machine after detecting that the incremental data to be recovered is recovered to the capacity increased, adjusting the virtual machine capacity of the target virtual machine after the capacity increased to the initial virtual machine capacity.
In some optional implementations of some embodiments, the data recovery apparatus 500 further includes: the unit is restarted (not shown). Wherein the restart unit may be configured to: and restarting the target virtual machine in response to the virtual machine capacity of the target virtual machine after the capacity is increased being adjusted to the initial virtual machine capacity.
In some optional implementations of some embodiments, the invoking unit 504 in the data restoring apparatus 500 may be further configured to: and calling the computing resources of the target virtual machine with the increased capacity by using a target recovery tool so as to recover the incremental data to be recovered in the incremental backup data to the target virtual machine with the increased capacity.
In some optional implementations of some embodiments, the detection unit 502 in the data recovery apparatus 500 may be further configured to: responding to a target operating system instruction input by a received target user, and popping up a popup window for representing the resource use condition of each hardware of the physical machine; and determining the utilization rate of the central processing unit and the internal memory of the physical machine according to the popup window.
In some optional implementations of some embodiments, the hoisting unit 503 in the data recovery apparatus 500 may be further configured to: and modifying the resource configuration item of the central processing unit and the resource configuration item of the memory corresponding to the target virtual machine so as to improve the core number and the memory size of the central processing unit corresponding to the target virtual machine.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to FIG. 6, a block diagram of an electronic device (e.g., the electronic device of FIG. 1) 600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing device (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage device 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: obtaining incremental backup data corresponding to a target virtual machine; detecting the resource utilization rate of a physical machine where the target virtual machine is located; according to the resource utilization rate, the initial virtual machine capacity of the target virtual machine is increased to obtain a target virtual machine with increased capacity, wherein the target virtual machine with increased capacity is effective after being restarted; and calling the computing resource of the target virtual machine with the increased capacity according to a pre-configured time period parameter so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a detection unit, a promotion unit, and a call unit. The names of the units do not form a limitation on the units themselves in some cases, for example, the acquiring unit may also be described as a "unit that acquires incremental backup data corresponding to the target virtual machine".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A method of data recovery, wherein the method comprises:
obtaining incremental backup data corresponding to a target virtual machine;
detecting the resource utilization rate of a physical machine where the target virtual machine is located;
according to the resource utilization rate, the initial virtual machine capacity of the target virtual machine is increased to obtain a target virtual machine with increased capacity, wherein the target virtual machine with increased capacity is effective after being restarted;
and calling the computing resources of the target virtual machine with the increased capacity according to a pre-configured time period parameter so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity.
2. The method according to claim 1, wherein the increasing the initial virtual machine capacity of the target virtual machine according to the resource usage rate to obtain the target virtual machine with increased capacity comprises:
and in response to that the resource utilization rate is less than or equal to a preset threshold value, increasing the core number and the memory size of a central processing unit corresponding to the target virtual machine to obtain the target virtual machine with the increased capacity.
3. The method of claim 1, wherein the method further comprises:
and in response to the detection that the incremental data to be recovered is recovered to the target virtual machine with the increased capacity, adjusting the virtual machine capacity of the target virtual machine with the increased capacity to the initial virtual machine capacity.
4. The method of claim 3, wherein the method further comprises:
and restarting the target virtual machine in response to the adjustment of the virtual machine capacity of the target virtual machine after the capacity is increased to the initial virtual machine capacity.
5. The method of claim 1, wherein the invoking of the computing resources of the capacity-boosted target virtual machine to restore the incremental data to be restored in the incremental backup data to the capacity-boosted target virtual machine comprises:
and calling the computing resources of the target virtual machine with the increased capacity by using a target recovery tool so as to recover the incremental data to be recovered in the incremental backup data to the target virtual machine with the increased capacity.
6. The method of claim 1, wherein the detecting the resource usage rate of the physical machine in which the target virtual machine is located comprises:
responding to a target operating system instruction input by a receiving target user, and popping up a popup window representing the resource use condition of each hardware of the physical machine;
and determining the utilization rate of a central processing unit and a memory of the physical machine according to the popup window.
7. The method of claim 2, wherein the increasing the core count and the memory size of the central processing unit corresponding to the target virtual machine comprises:
and modifying the resource configuration item of the central processing unit and the resource configuration item of the memory corresponding to the target virtual machine so as to increase the core number and the memory size of the central processing unit corresponding to the target virtual machine.
8. A data recovery apparatus comprising:
the acquisition unit is configured to acquire incremental backup data corresponding to a target virtual machine;
the detection unit is configured to detect the resource utilization rate of a physical machine where the target virtual machine is located;
a promoting unit configured to promote an initial virtual machine capacity of the target virtual machine according to the resource utilization rate to obtain a capacity-promoted target virtual machine, wherein the capacity-promoted target virtual machine has come into effect by restarting;
and the calling unit is configured to call the computing resources of the target virtual machine with the increased capacity according to a preconfigured time period parameter so as to restore the incremental data to be restored in the incremental backup data to the target virtual machine with the increased capacity.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202110559268.9A 2021-05-21 2021-05-21 Data recovery method and device, electronic equipment and computer readable medium Pending CN115373894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110559268.9A CN115373894A (en) 2021-05-21 2021-05-21 Data recovery method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110559268.9A CN115373894A (en) 2021-05-21 2021-05-21 Data recovery method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN115373894A true CN115373894A (en) 2022-11-22

Family

ID=84059063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110559268.9A Pending CN115373894A (en) 2021-05-21 2021-05-21 Data recovery method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115373894A (en)

Similar Documents

Publication Publication Date Title
US11544137B2 (en) Data processing platform monitoring
CN107644075B (en) Method and device for collecting page information
CN113722117A (en) Message queue processing method, thread pool parameter adjusting method, device and equipment
CN111625592A (en) Load balancing method and device for distributed database
CN116701053B (en) Method, device, equipment and medium for restoring data backup of production environment database
CN111078418B (en) Operation synchronization method, device, electronic equipment and computer readable storage medium
CN111831503B (en) Monitoring method based on monitoring agent and monitoring agent device
CN112817687A (en) Data synchronization method and device
US10997058B2 (en) Method for performance analysis in a continuous integration pipeline
US20220229689A1 (en) Virtualization platform control device, virtualization platform control method, and virtualization platform control program
US11777810B2 (en) Status sharing in a resilience framework
CN112817701B (en) Timer processing method, device, electronic equipment and computer readable medium
CN116302271A (en) Page display method and device and electronic equipment
CN115373894A (en) Data recovery method and device, electronic equipment and computer readable medium
CN113434384B (en) Pressure testing method and device
CN112882921B (en) Fault simulation method and device
CN111290873B (en) Fault processing method and device
CN112241332B (en) Interface compensation method and device
CN110807058B (en) Method and system for exporting data
CN112163176A (en) Data storage method and device, electronic equipment and computer readable medium
CN114398233B (en) Load abnormality detection method and device, server and storage medium
CN112749042B (en) Application running method and device
CN113761548B (en) Data transmission method and device for Shuffle process
CN115629918B (en) Data processing method, device, electronic equipment and storage medium
EP3872630A2 (en) Request processing method and apparatus, electronic device, and computer 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