CN110968399B - Virtual machine reloading method and device and computer readable storage medium - Google Patents

Virtual machine reloading method and device and computer readable storage medium Download PDF

Info

Publication number
CN110968399B
CN110968399B CN201911310309.XA CN201911310309A CN110968399B CN 110968399 B CN110968399 B CN 110968399B CN 201911310309 A CN201911310309 A CN 201911310309A CN 110968399 B CN110968399 B CN 110968399B
Authority
CN
China
Prior art keywords
virtual machine
image file
storage space
attribute information
system storage
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
CN201911310309.XA
Other languages
Chinese (zh)
Other versions
CN110968399A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911310309.XA priority Critical patent/CN110968399B/en
Publication of CN110968399A publication Critical patent/CN110968399A/en
Application granted granted Critical
Publication of CN110968399B publication Critical patent/CN110968399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The embodiment of the invention discloses a virtual machine reloading method, a virtual machine reloading device and a computer readable storage medium; the embodiment of the invention receives a reloading request of a virtual machine, wherein the reloading request carries an identity mark of the virtual machine and a first storage address of an image file, acquires virtual machine attribute information corresponding to the identity mark, constructs a downloading process and an uploading process according to the first storage address and the virtual machine attribute information when the virtual machine attribute information indicates that a system storage space and a backup data space exist in the virtual machine, copies original data in the system storage space into the backup data space when the downloading process and the uploading process are triggered, writes the image file into the system storage space based on the downloading process and the uploading process when the original data in the system storage space are completely copied into the backup data space, and covers the original data in the system storage space with the written image file so as to reload the virtual machine; the security of the service data of the virtual machine can be improved.

Description

Virtual machine reloading method and device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a virtual machine reloading method, device and computer readable storage medium.
Background
In recent years, with the rapid development of cloud computing, more and more users deploy services by applying for virtual machines to replace physical machines, so as to save the cost of enterprises. Meanwhile, in order to ensure that service data of a service deployed through a virtual machine is safe and reliable, the service data of the virtual machine is usually backed up to obtain backup data, such as a snapshot. On the existing cloud computing platform, once a user makes a snapshot, when the user needs to reload the virtual machine, the reloading task fails, and in order to reload the virtual machine, the prior art generally needs to delete all the snapshots before reloading.
In the research and practice process of the prior art, the inventor of the present invention finds that once important service data is stored in a snapshot of a user, if the virtual machine is reloaded at this time, the service data is lost, so that the security of the service data of the virtual machine is greatly reduced.
Disclosure of Invention
The embodiment of the invention provides a virtual machine reloading method, a virtual machine reloading device and a computer readable storage medium. The security of the service data of the virtual machine can be improved.
A virtual machine reinstallation method, comprising:
receiving a reloading request of a virtual machine, wherein the reloading request carries an identity mark of the virtual machine and a first storage address of an image file;
Obtaining virtual machine attribute information corresponding to the identity;
when the virtual machine attribute information indicates that a system storage space and a backup data space exist in the virtual machine, a downloading process and an uploading process are constructed according to the first storage address and the virtual machine attribute information, wherein the downloading process is used for downloading and reloading an image file of the virtual machine, and the uploading process is used for uploading the image file to the system storage space;
when the downloading process and the uploading process are triggered, copying the original data in the system storage space into the backup data space;
when the original data in the system storage space are all copied to the backup data space, writing the image file into the system storage space based on the downloading process and the uploading process, and covering the written image file with the original data in the system storage space so as to reload the virtual machine.
Correspondingly, an embodiment of the present invention provides a virtual machine reloading device, including:
the device comprises a receiving unit, a storage unit and a storage unit, wherein the receiving unit is used for receiving a reloading request of a virtual machine, and the reloading request carries an identity mark of the virtual machine and a first storage address of an image file;
The acquisition unit is used for acquiring the virtual machine attribute information corresponding to the identity;
the construction unit is used for constructing a downloading process and an uploading process according to the first storage address and the virtual machine attribute information when the virtual machine attribute information indicates that a system storage space and a backup data space exist in the virtual machine, wherein the downloading process is used for downloading and reloading the image file of the virtual machine, and the uploading process is used for uploading the image file to the system storage space;
the copying unit is used for copying the original data in the system storage space into the backup data space when the downloading process and the uploading process are triggered;
and the reloading unit is used for writing the image file into the system storage space based on the downloading process and the uploading process when the original data in the system storage space are completely copied to the backup data space, and overlaying the written image file on the original data in the system storage space so as to reload the virtual machine.
Optionally, in some embodiments, the building unit may specifically be configured to detect, according to the first storage address, a format of the image file; when the format of the image file is a non-target format, acquiring a local image file in a target format from storage data of the virtual machine, taking the local image file as a target image file, and constructing the downloading process and the uploading process according to the attribute information of the virtual machine and the target image file; when the format of the image file is a target format, the image file is used as a target image file, and the downloading process and the uploading process are constructed according to the attribute information of the virtual machine and the target image file.
Optionally, in some embodiments, the building unit may specifically be configured to query the cache data of the virtual machine for a local image file in a target format; when the local image file in the target format exists in the cache data, the local image file in the target format is used as a target image file, and the downloading process and the uploading process are constructed according to the virtual machine attribute information and the target image file; when the local mirror image file in the target format does not exist in the local cache, converting the file format of the local mirror image file in the non-target format into the target format in a local database of the virtual machine, obtaining a converted local mirror image file, taking the converted local mirror image file as the target mirror image file, uploading the target mirror image file to a storage area corresponding to the first storage address, and constructing the downloading process and the uploading process according to the attribute information of the virtual machine and the target mirror image file.
Optionally, in some embodiments, the building unit may specifically be configured to build an initial downloading process according to the first storage address and the target image file; inquiring a second storage address of the system storage space in the virtual machine attribute information; constructing an initial uploading process according to the second storage address and the target image file; and adjusting the initial downloading process and the initial uploading process to obtain the downloading process and the uploading process.
Optionally, in some embodiments, the building unit may be specifically configured to obtain an output address of the standard output and an input address of the standard input; and unifying the output address and the input address to obtain the downloading process and the uploading process.
Optionally, in some embodiments, the reloading unit may be specifically configured to write the target image file into the system storage space through the downloading process and the uploading process; covering the original data in the system storage space by adopting the target image file to obtain a covered system storage space; and adjusting the storage space of the covered system according to the identity so as to reload the virtual machine.
Optionally, in some embodiments, the reloading unit may be specifically configured to truncate an area of the memory uncovered by the target image file in the covered system storage space, to obtain a truncated system storage space; according to the identity, the model of the virtual machine is obtained, and the preset memory capacity of the system memory space corresponding to the model is obtained; and expanding the memory capacity of the truncated system memory space according to the preset memory capacity, so that the memory capacity of the truncated system memory space is the same as the preset memory capacity, and the virtual machine after reinstallation is obtained.
Optionally, in some embodiments, the obtaining unit may be specifically configured to query the system storage space information of the virtual machine in the attribute information of the virtual machine; when the system storage space information does not exist in the virtual machine attribute information, determining that the system storage space does not exist in the virtual machine, creating the system storage space according to the identity, updating the virtual machine attribute information, and inquiring backup data information of the virtual machine in the virtual machine attribute information; when the system storage space information exists in the virtual machine attribute information, determining that the virtual machine exists in the system storage space, and inquiring backup data information of the virtual machine in the virtual machine attribute information; when the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, a downloading process and an uploading process are constructed according to the first storage address and the virtual machine attribute information, and the method comprises the following steps: when the virtual machine is determined to have a system storage space according to the virtual machine attribute information and the virtual machine attribute information is determined to have backup data information, a downloading process and an uploading process are constructed according to the first storage address and the virtual machine attribute information.
In addition, the embodiment of the invention also provides electronic equipment, which comprises a processor and a memory, wherein the memory stores application programs, and the processor is used for running the application programs in the memory to realize the virtual machine reloading method provided by the embodiment of the invention.
In addition, the embodiment of the invention also provides a computer readable storage medium, which stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in any virtual machine reloading method provided by the embodiment of the invention.
After receiving a reloading request of a virtual machine, the reloading request carries an identity mark of the virtual machine and a first storage address of an image file, acquires virtual machine attribute information corresponding to the identity mark, then constructs a downloading process and an uploading process according to the first storage address and the virtual machine attribute information when the virtual machine attribute information indicates that a system storage space and a backup data space exist in the virtual machine, the downloading process is used for downloading the image file of the reloading virtual machine, the uploading process is used for uploading the image file to the system storage space, when the downloading process and the uploading process are triggered, original data in the system storage space are copied to the backup data space, then, when the original data in the system storage space are completely copied to the backup data space, the image file is written into the system storage space based on the downloading process and the uploading process, and the written image file is covered on the system storage
Original data in the space to reload the virtual machine; when the virtual machine is reloaded, the original data in the system storage space is copied into the backup data space before the image file is written into and covers the system storage space, so that the backup data space of the virtual machine before the reloading is protected, the original data in the system storage space of the virtual machine before the reloading is also protected, and the safety of service data of the virtual machine can be greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a virtual machine reloading method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a virtual machine reloading method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of receiving a reload request through a reload page according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of detecting virtual machine attribute information according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a download process and an upload process constructed according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a build data flow pipeline provided by an embodiment of the present invention;
FIG. 7 is a schematic flow chart of downloading and uploading a target image file according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of copy-on-write provided by an embodiment of the present invention;
FIG. 9 is a schematic diagram of memory space adjustment for a system memory space according to an embodiment of the present invention;
FIG. 10 is another flow chart of a virtual machine reloading method according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of a virtual machine management page provided by an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a virtual machine reloading apparatus according to an embodiment of the present invention;
FIG. 13 is a schematic structural diagram of a building unit of a virtual machine reloading apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a reloading unit of the virtual machine reloading apparatus according to the embodiment of the present invention;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The embodiment of the invention provides a virtual machine reloading method, a virtual machine reloading device and a computer readable storage medium. The virtual machine reloading device can be integrated in electronic equipment, and the network equipment can be a server or a terminal and other equipment.
By virtual machine is meant a computer system that operates in a completely isolated environment by software emulation of a complete hardware function. In creating a virtual machine, it is necessary to create a system storage space, such as a system disk, in a data storage platform, and create the virtual machine by installing an image file of the virtual machine system in the system disk. The reloading of the virtual machine can be understood as reloading the system of the virtual machine, wherein the reloading process mainly comprises the steps of writing the image file of the virtual machine system into the system storage control again, covering the original data of the system storage space, and obtaining the reloaded virtual machine after the covering writing is completed.
For example, referring to fig. 1, taking the case that the virtual machine reloading device is integrated in an electronic device, a reloading request of a virtual machine is received, where the reloading request carries an identity of the virtual machine and a first storage address of an image file for reloading the virtual machine, virtual machine attribute information corresponding to the identity of the virtual machine is obtained in a virtual machine data storage platform, when at least the virtual machine exists in a system storage space and a backup data space in the virtual machine attribute information, a downloading process and an uploading process for writing the image file into the system storage space are constructed according to the first storage address of the image file and the virtual machine attribute information, when the downloading process and the uploading process are triggered, original data of the system storage space are copied into the backup data space of the virtual machine, when the original data in the system storage space are all copied into the backup data space, the image file is written into the system storage space based on the downloading process and the uploading process, and the written image file covers the original data in the system storage space, so as to reload the virtual machine.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The embodiment will be described from the perspective of a virtual machine reloading apparatus, which may be specifically integrated in an electronic device, where the electronic device may be a server or a device such as a terminal; the terminal may include a tablet computer, a notebook computer, a personal computer (PC, personal Computer), and the like.
A virtual machine reinstallation method, comprising: receiving a reloading request of a virtual machine, wherein the reloading request carries an identity mark of the virtual machine and a first storage address of an image file, acquiring virtual machine attribute information corresponding to the identity mark, constructing a downloading process and an uploading process according to the first storage address and the virtual machine attribute information when the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, the downloading process is used for downloading the image file of the reloading virtual machine, the uploading process is used for uploading the image file to the system storage space, when the downloading process and the uploading process are triggered, copying original data in the system storage space into the backup data space, when the original data in the system storage space are completely copied into the backup data space, writing the image file into the system storage space based on the downloading process and the uploading process, and covering the written image file with the original data in the system storage space so as to reload the virtual machine.
As shown in fig. 2, the specific flow of the virtual machine reloading method is as follows:
101. and receiving a reload request of the virtual machine.
The reloading request carries the identity of the virtual machine and the first storage address of the image file in the virtual machine data storage platform.
The virtual machine data storage platform may be a cloud computing management platform, for example, openStack (an open-source cloud computing management platform), on which a user may store an image file, a system storage space, a backup data space, and the like required for creating or reloading a virtual machine.
The first storage address may be an address of a storage of an image file stored in the virtual machine data storage platform.
For example, there may be various types of receiving the reload request of the virtual machine, for example, the user may send the reload request to the reload page as shown in fig. 3, for example, the user may enter the identity of the virtual machine and the first storage address of the image file in the reload page as shown in fig. 3, trigger the reload control to generate the reload request of the virtual machine, and the reload device of the virtual machine receives the reload request. The user can also add the identity of the virtual machine and the first storage address of the image file in the reloading request, and directly send the request to the virtual machine reloading device. The user can also send the identity and the first storage address in the reloading request to a third party database or a third party platform, and then send the storage address stored in the third party database or the third party platform to a virtual machine reloading device, and the virtual machine reloading device obtains the identity of the virtual machine and the first storage address of the mirror image file from the third party database or the third party data platform according to the storage address. After the first storage address of the identity and the mirror image file is obtained from the third party database or the third party data platform, feedback information can be sent to the terminal corresponding to the user.
102. And obtaining virtual machine attribute information corresponding to the identity.
The virtual machine attribute information may be information related to the virtual machine attribute stored in the virtual machine data storage platform by the virtual machine corresponding to the identity, for example, may be system storage space information, backup data information, and the like, when the system storage space information exists in the virtual machine attribute information, it may be determined that the virtual machine exists in the system storage space, for example, a system disk, and the like, and when the backup data space information exists in the virtual machine attribute information, it may be determined that the virtual machine exists in the backup data space, and the like.
For example, the identity of the virtual machine is used as a query condition, all storage information corresponding to the identity is queried on the virtual machine data storage platform, virtual machine attribute information corresponding to the identity is screened out from the storage information, for example, the storage information corresponding to the identity can be queried in a system disk pool of a distributed storage database (Ceph) of the virtual machine data storage platform, the storage information corresponding to the identity can also be queried in the Ceph, the queried storage information is obtained, and the virtual machine attribute information corresponding to the identity is screened out from the storage information.
Optionally, the obtained attribute information of the virtual machine may also be detected. Therefore, after the step of obtaining the virtual machine attribute information corresponding to the identity, as shown in fig. 4, the method for reloading the virtual machine may further include: inquiring system storage space information of the virtual machine in the attribute information of the virtual machine, determining that the virtual machine does not exist in the system storage space when the system storage space information does not exist in the attribute information of the virtual machine, creating the system storage space according to the identity, updating the attribute information of the virtual machine, inquiring backup data information of the virtual machine in the attribute information of the virtual machine, determining that the virtual machine exists in the system storage space when the system storage space information exists in the attribute information of the virtual machine, and inquiring the backup data information of the virtual machine in the attribute information of the virtual machine.
For example, whether system storage space information corresponding to the virtual machine identity is present is queried in the obtained virtual machine attribute information, for example, the system storage space is a system disk, the system disk is mainly used for storing system data of the virtual machine, when the system storage space information corresponding to the virtual machine identity is not queried in the virtual machine attribute information, it is indicated that the system disk does not exist in the virtual machine, the system disk needs to be conventionally created, after the system disk is created, whether backup data information is present in the virtual machine attribute information is continuously queried, the backup data information can be related information such as the size and the position of backup data storage of the virtual machine backup, the backup data space of the virtual machine can be a snapshot generally, and when the backup data information is present in the system, the backup data space of the virtual machine can be determined. And when the existence of the system disk information is directly inquired in the attribute information of the virtual machine, continuing to inquire whether the corresponding snapshot exists in the virtual machine in the attribute information of the virtual machine. And when the snapshot of the virtual machine is not queried in the attribute information of the virtual machine, ending the reloading of the virtual machine. When the virtual machine attribute information inquires that the virtual machine has a snapshot, the storage address of the snapshot on the virtual machine data storage platform is acquired, and step 103 is entered.
103. When the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, a downloading process and an uploading process are constructed according to the first storage address and the virtual machine attribute information.
The downloading process may be a process of downloading an image file required for reloading the virtual machine, and the uploading process may be a process of uploading the image file to a system memory space of the virtual machine to be reloaded.
The system storage space may be a space for storing virtual machine system data, for example, may be a system disk.
The backup data space may be a space storing backup data of the virtual machine, for example, may be a snapshot, and the backup data may be data obtained by backing up service data of the virtual machine, and may generally be data such as snapshot data.
For example, when the virtual machine attribute information indicates that the virtual machine exists in the system storage space and the backup data space, for example, when the existence system storage space information and the backup data space are queried in the virtual machine attribute information, the existence system storage space and the backup data space of the virtual machine can be determined, and when the virtual machine exists in the system storage space and the backup data space, the format of the image file stored in the virtual machine data storage platform needs to be detected and adjusted according to the first storage address, and based on the detection and adjustment result, a downloading process and an uploading process are constructed, as shown in fig. 5, specifically as follows:
S1, detecting the format of the image file according to the first storage address.
For example, according to the first storage address, the virtual machine data storage platform queries the image file of the reloaded virtual machine, and detects the image file format of the virtual machine, for example, when using the Ceph rad volume as the system disk of the virtual machine, the stored image format must be in the raw format, so that the target format of the image file is the raw format, but the image file in the raw format may be stored in the image repository of the virtual machine data storage platform, and the image file in the qcow2 format may also be stored. According to the first storage address, a stored image file is found on the virtual machine data storage platform, the current format of the image file is obtained, the current format is compared with a target format, for example, the obtained image file format is compared with a raw format, when the image file format is the raw format, the image file format is confirmed to meet the reloading requirement, when the image file format is qcow2, the image file format is confirmed to not meet the reloading requirement, and format conversion is needed.
S2, when the format of the image file is a non-target format, acquiring a local image file in a target format from storage data of the virtual machine, taking the local image file as a target image file, and constructing a downloading process and an uploading process according to the attribute information of the virtual machine and the target image file.
For example, when the image file is in a non-target format, for example, when the image file is in qcow2, the cache data of the computing node is continuously queried whether the image file in raw format exists, if so, the image file in raw format is taken as a target image file, if not, the image file in qcow2 format stored in the local computing node needs to be subjected to format conversion, and a qcow-img (a format conversion function) command can be used to convert the qcow2 image file stored in the local computing node to obtain a local image file converted into raw format, and the local image file converted into raw format is taken as the target image file to be uploaded to an image file storage area corresponding to the first storage address. And after the uploading is completed, constructing a downloading process and an uploading process according to the uploaded target image file and the attribute information of the virtual machine.
The target image file can be obtained by converting the image file format, whether the target image file is directly obtained or the target image file is obtained by converting the local image file. According to the obtained target image file and virtual machine attribute information, a downloading process and an uploading process are constructed, and the specific process can be as follows:
(1) And constructing an initial downloading process according to the first storage address and the target image file.
The initial downloading process comprises standard output, wherein the standard output is used for outputting the downloaded target image file.
For example, an initial downloading process is constructed according to the first storage address and the target image file, for example, a downloading event is determined to be a standard output for downloading the target image file to the local computing node in the first storage address of the virtual machine data storage platform, the downloading address is set to be the first storage address according to the determined downloading event, the downloading content is set to be the target image file, and the downloading output is carried out to the standard output. After the setting is completed, other process creation parameters are added to complete the construction of the initial downloading process.
(2) And inquiring a second storage address of the system storage space in the virtual machine attribute information.
The second storage address may be a system storage space, such as a system disk, an address in a system disk pool of the virtual machine data storage platform.
For example, a second storage address of a system storage space is queried in the attribute information of the virtual machine, for example, taking the system storage space as a system disk as an example, when the system disk is queried in the attribute information of the virtual machine for the first time, the creation information when the system disk is conventionally created is obtained, the second storage address is obtained in the creation information, when the system disk is queried in the attribute information of the virtual machine for the first time, the attribute information of the system disk is obtained, and the second storage address is screened out from the attribute information of the system disk.
(3) And constructing an initial uploading process according to the second storage address and the target image file.
The initial uploading process may include standard input, where the standard input may be to input the target image file into the system memory space.
For example, an initial uploading process is constructed according to the second storage address and the target image file, for example, an uploading event is determined to upload the target image file to the system storage space at the local computing node, the uploading address is set to be the second storage address according to the determined uploading event, the uploading content is the target image file stored at the local computing node, and the target image file is uploaded through standard input of the uploading process. After the setting is completed, other process creation parameters are added to complete the creation of the initial uploading process.
(4) And adjusting the initial downloading process and the initial uploading process to obtain the downloading process and the uploading process.
For example, the output address of the standard output and the input address of the standard input are obtained, for example, the storage address of the target image file downloaded from the virtual machine data storage platform and output to the local computing node is queried in the standard output, the storage address is the output address of the standard output, for example, the target image file is downloaded as a difference file to the first position of the local database of the local computing node through the initial downloading process, and then the first position is the output address of the standard output; the uploading start address of uploading the target image file from the local computing node to the system memory space is searched in the standard input, the uploading start address is the input address, for example, the target image file is uploaded from the second address of the local computing node through the initial uploading process and is uploaded to the system memory space, and then the second position can be the input address of the standard input. The output address and the input address are unified to obtain a downloading process and an uploading process, for example, the output address and the input address are set to be the same address to obtain the downloading process and the uploading process, so that a data flow pipeline is built between the standard output of the downloading process and the standard input of the uploading process, as shown in fig. 6, at this time, it can be found that the target image file downloaded by the downloading process is directly input into the uploading process through the data flow pipeline in a nova (a management component) program of the local computing node, and then is directly uploaded into the system storage space through the uploading process, as shown in fig. 7, without being stored or transferred in the local computing process, so that the memory of the local computing node is not occupied.
When the memory of the target image file is large, the local disk capacity of the local computing stage needs to be consumed, which affects normal services of the local computing node, such as nova-computer (virtual machine lifecycle management) and libvirt (virtual machine management). Especially, when the local disk space of the local computing node is insufficient, the downloading of the downloading target image file as the difference file is also failed. Therefore, in the embodiment of the application, the pipeline technology is adopted, so that the transfer of the target image file in the memory of the local computing node can be effectively avoided, the zero occupation of the local disk space of the local computing node is realized, the copying of user state data is reduced, and the efficiency of covering the target image file in the memory space of the writing system can be improved.
And S3, when the format of the image file is a target format, taking the image file as a target image file, and constructing a downloading process and an uploading process according to the attribute information of the virtual machine and the target image file.
For example, when the image file format is the target format, the image file stored in the virtual machine data storage platform is used as the target image file, for example, when the image file format stored in the first storage location of the virtual machine data storage platform is raw, the image file of raw can be identified as the target image file that needs to be downloaded and uploaded to the system storage space. According to the attribute information of the virtual machine and the target image file, a downloading process and an uploading process are constructed, and the process of constructing the downloading process and the uploading process is consistent with the method in the step S2, and will not be described again here.
104. When the downloading process and the uploading process are triggered, the original data in the system storage space are copied into the backup data space.
For example, when the downloading process and the uploading process are triggered, at this time, the copy-on-write of the original data in the system storage space is triggered, and according to the rule of copy-on-write, the downloading process and the uploading process do not temporarily perform downloading and uploading actions during copy-on-write, but copy the original data in the system storage space into the backup data space, for example, take the system storage space as a system disk, take the backup data space as a snapshot as an example, store the original data in the system disk in the virtual machine data storage platform, where the original data may be service data, system data, other data and the like of the virtual machine before being created to be reloaded, or may be initial data in the system disk created by adopting a conventional creation method, and copy the original data in a Ceph rad volume by a form of copy-on-write (Cow), as shown in fig. 8. Therefore, in the copying process, original snapshot data is protected, snapshot backup can be carried out on data which is not backed up by the system disk, and the data in the system disk and the snapshot can not be lost before the system disk is overwritten.
105. When the original data of the system storage space are all copied to the backup data space, the image file is written into the system storage space based on the downloading process and the uploading process, and the written image file covers the original data in the system space so as to reload the virtual machine.
For example, when the original data in the system storage space is copied to the backup data space, based on the downloading process and the uploading process, the target image file is written into the system storage space, and the written target image file covers the original data in the system storage space, and the memory space of the system storage space covering the target image file is adjusted to obtain the reloaded virtual machine, as shown in fig. 9, the specific process is as follows:
and C1, writing the target image file into a system storage space through a downloading process and an uploading process.
For example, the target image file is downloaded from the virtual machine data storage platform to the standard output through the downloading process, the target image file is directly streamed to the labeling input of the uploading process through the data stream pipeline, then the target image file is uploaded to the system storage space through the uploading process, for example, the system storage space is taken as a system disk as an example, the target image file is downloaded to the standard output of the local computing node through the downloading process as a difference file, and because the output address of the standard output is the same as the input address of the labeling input, and a data stream channel exists between the standard output and the standard input, the target image file downloaded to the standard output directly reaches the standard input through the data stream, and the target image file in the standard input is uploaded to the system disk through the uploading process.
And C2, covering the original data in the system storage space by using the target image file to obtain the covered system storage space.
For example, the original data of the system storage space is overwritten by the target image file written by the uploading process, and the overwriting process is dynamic, and a part of the original data is written to be overwritten, for example, the original data of the system storage space is overwritten by writing data of a fixed memory or a random memory each time, until the whole overwriting of the target image file is completed. In the process of covering the original data in the system storage space, the original data in the system storage space can be randomly covered, or the system data in the original data in the system storage space can be preferentially covered, when the system data is covered, the original data in other parts are continuously covered, and when all the target image files cover the system storage space, the covered system storage space is obtained.
In steps C1 and C2, it should be noted that, in the writing and overwriting process, the writing and overwriting processes are synchronous, that is, the writing of the target image file of how much memory is to be used for overwriting the original data of how much memory, instead of overwriting after the complete writing.
And C3, adjusting the storage space of the covered system to reload the virtual machine.
For example, the memory area of the covered system storage space is adjusted, and after the adjustment is completed, the virtual machine after reinstallation is obtained, and the specific process is as follows:
(1) And cutting off the memory area which is not covered by the target image file in the covered system storage space to obtain a cut-off system space.
For example, detecting the memory area in the system storage space after the coverage to obtain the area covered by the target image file and the area covered by the target image file, reserving the area covered by the target image file, and cutting off the area not covered by the target image file to obtain the system space after the coverage of the target image file. After the truncation, the memory of the system memory space becomes smaller and becomes the same as the memory size of the target image file. For example, the memory size of the target image file is 2G (memory data unit), the memory size of the original data in the system disk is 1G, the total memory size of the system disk is 3G, at this time, after the target image file covers the original data, the memory size of the data in the system disk is 2G, so that the memory space of 1G in the system disk does not cover the target image file, the memory space of 1G in the system disk needs to be truncated, the system disk after the truncation is obtained, and the memory size of the system disk after the truncation is 2G.
(2) And according to the identity, acquiring the model of the virtual machine, acquiring the preset memory capacity of the system memory space corresponding to the model, and expanding the memory capacity of the truncated system memory space to ensure that the memory capacity of the truncated system memory space is the same as the preset memory capacity, thereby obtaining the reloaded virtual machine.
The preset memory capacity is a memory capacity preset by the virtual machine at the beginning of creation and meeting the operation requirement, and the content capacity can be set according to practical application, for example, can be 2G, 3G or nG.
For example, according to the identity of the virtual machine carried in the reloading request, the model of the virtual machine is obtained, the preset memory capacity of the model is obtained, the preset memory capacity is compared with the memory capacity of the system memory space after interception, and a capacity difference value between the memory capacity of the system memory space after interception and the preset memory capacity is obtained, for example, the preset content capacity is 3G, the memory capacity of the system memory space after interception is 2G, and the capacity difference value is 1G. The memory capacity of the post-stage system memory space is expanded according to the capacity difference, the expanded memory capacity is the capacity difference, for example, taking the preset memory capacity as 3G, the memory capacity of the post-truncation system memory space as 2G as an example, the memory capacity of the post-truncation system memory space in the rad volume can be expanded through a resize (an expanded memory capacity function) command, the expanded capacity is 1G, the memory capacity of the post-expansion system memory space is 3G, and at this time, the content capacity of the post-truncation system memory space after expansion is the same as the preset memory capacity. After the capacity expansion is completed, the virtual machine can be reloaded, and the reloaded virtual machine can be obtained.
As can be seen from the foregoing, in this embodiment, after receiving a reloading request of a virtual machine, the reloading request carries an identity identifier of the virtual machine and a first storage address of an image file, so as to obtain virtual machine attribute information corresponding to the identity identifier, then, when the virtual machine attribute information indicates that a system storage space and a backup data space exist in the virtual machine, a downloading process and an uploading process are constructed according to the first storage address and the virtual machine attribute information, the downloading process is used for downloading the image file of the reloading virtual machine, the uploading process is used for uploading the image file to the system storage space, when the downloading process and the uploading process are triggered, original data in the system storage space are copied to the backup data space, then, when all original data in the system storage space are copied to the backup data space, the image file is written into the system storage space based on the downloading process and the uploading process, and the written image file covers the original data in the system storage space so as to reload the virtual machine; when the virtual machine is reloaded, the original data in the system storage space is copied into the backup data space before the image file is written into and covers the system storage space, so that the backup data space of the virtual machine before the reloading is protected, the original data in the system storage space of the virtual machine before the reloading is also protected, and the safety of service data of the virtual machine can be greatly improved.
According to the method described in the above embodiments, examples are described in further detail below.
In this embodiment, the virtual machine reloading apparatus is specifically integrated in an electronic device, and the system storage space is a system disk, the backup data space is a snapshot, and the target format of the image file is raw.
As shown in fig. 10, a virtual machine reloading method specifically includes the following steps:
201. the electronic device receives a reload request for the virtual machine.
For example, the electronic device may receive a reload request of the virtual machine through the reload page, for example, a user inputs an identity of the virtual machine and a first storage address of an image file in a data storage platform of the virtual machine at an information input interface of the reload page, triggers a reload control, generates a reload request of the virtual machine, and the reload request is received by a reload device of the virtual machine. The user can also directly generate a reloading request through the terminal by the identity of the virtual machine and the first storage address, the reloading request is directly sent to the electronic equipment, and the electronic equipment receives the reloading request. The user can also store the first storage address carrying the virtual machine identity and the mirror image file in the reloading request to the third party database or the third party platform, after the electronic device receives the reloading request, the electronic device obtains the first storage address of the virtual machine identity and the mirror image file in the third party database or the third party platform according to the information in the reloading request, for example, the user stores the first storage address carrying the virtual machine identity and the mirror image file in the third party database or the third party platform, obtains the address stored in the third party database or the third party platform, adds the address to the reloading request, sends the reloading request to the electronic device, extracts the address in the third party database or the third party platform after the electronic device receives the reloading request, obtains the identity of the virtual machine and the first storage address of the mirror image file in the third party database or the third party platform, and sends feedback information to the terminal of the user.
202. And the electronic equipment acquires the virtual machine attribute information corresponding to the identity.
For example, the electronic device may obtain first storage information corresponding to the identity in a system disk pool of the Ceph, may also obtain second storage information corresponding to the identity in a rad volume of the Ceph, and use the first storage information and the second storage information as storage information stored in the Ceph of the virtual machine data storage platform by the virtual machine, where virtual machine attribute information of the virtual machine is screened out from the storage information.
Optionally, the electronic device may further detect the virtual machine attribute information after obtaining the virtual machine attribute information, and mainly detect whether system disk information for indicating whether a system disk exists in the virtual machine and snapshot information for indicating whether a snapshot exists in the virtual machine exist in the virtual machine attribute information. When the system disk information is included in the virtual machine attribute information, it may be stated that the virtual machine has a system disk, then it is continuously queried whether snapshot information exists in the virtual machine attribute information, if snapshot information exists in the virtual machine attribute information, it may be determined that the virtual machine has a snapshot, then step 203 may be continuously performed; if the snapshot information does not exist in the attribute information of the virtual machine, it can be determined that the virtual machine does not exist, and the reinstallation of the virtual machine can be ended. When the attribute information of the virtual machine does not contain the system disk information, it is indicated that the virtual machine does not have the system disk, for this reason, it is necessary to create the system disk of the virtual machine according to a conventional creation method, and acquire the second storage address of the system disk in the virtual machine data storage platform, after the creation of the system disk is completed, it is continued to query whether snapshot information exists in the attribute information of the virtual machine, if so, it is indicated that the virtual machine has a snapshot, then step 203 may be continued, otherwise, the reloading of the virtual machine is terminated.
203. And when the virtual machine attribute information indicates that the virtual machine has a system disk and a snapshot, the electronic equipment detects the format of the image file according to the first storage address.
For example, when the virtual machine attribute information indicates that the virtual machine has a system disk and a snapshot, the electronic device finds an image file in the virtual machine data storage platform according to the first storage address, detects whether the format of the image file is a raw format, and stores the image file in an image warehouse of the virtual machine data storage platform in raw and qcow2 formats, and confirms that the image file can reload the virtual machine when the format of the image file is the raw format. When the format of the image file is qcow2 format, the image file is confirmed to be not in accordance with the reloading condition, and the format of the image file needs to be converted.
204. When the format of the image file is qcow2, the electronic device acquires a local image file of raw from storage data of the virtual machine, takes the local image file as a target image file, and constructs a downloading process and an uploading process according to attribute information of the virtual machine and the target image file.
For example, when the format of the image file is qcow2, the electronic device queries whether the image file in the raw format exists in the cache data of the local computing node, if the image file in the raw format exists, the image file in the raw format is used as a target image file, if the image file in the raw format does not exist, the local image file in the qcow2 format is obtained in the local database of the local computing node, the qcow2 local image file is continuously subjected to format conversion by adopting the qemu-img command, the local image file in the raw format is obtained, the local image file is used as a temporary image and uploaded in an image warehouse corresponding to the first storage address, and the temporary image file in the raw format is used as the target image file. And constructing a downloading process and an uploading process according to the target image file and the attribute information of the virtual machine.
When the target image file is obtained, a downloading process and an uploading process are required to be constructed according to the target image file and the attribute information of the virtual machine, and the specific process can be as follows:
(1) And the electronic equipment constructs an initial downloading process according to the first storage address and the target image file.
For example, the electronic device takes the standard output of the target image file downloaded to the local computing node in the virtual machine data storage platform as a download event, sets the download address as the first storage address, the download content as the target image file, sets the output as the standard output of the local computing node, adds other parameters required for creating the download process, and finally completes the construction of the initial download process.
(2) The electronic device queries the second storage address of the system disk in the virtual machine attribute information.
For example, the electronic device screens attribute information of the system disk from attribute information of the virtual machine, and extracts a second storage address from the attribute information.
The attribute information of the system disk may be attribute information of the system disk which is stored in the virtual machine data storage platform at the beginning, or may be attribute information of the system disk which is conventionally created in the virtual machine data storage platform.
(3) And the electronic equipment initially uploads the process according to the second storage address and the target image file.
For example, the electronic device uploads the target image file on the local computing node to the system disk through the standard input as an uploading event, sets the uploading address as the second storage address, uploads the content as the target image file, sets the input as the standard input of the local computing node, adds other parameters required for creating the initial uploading process, and finally completes the creation of the initial uploading process.
(4) And the electronic equipment adjusts the initial downloading process and the initial uploading process to obtain the downloading process and the uploading process.
For example, the electronic device obtains an output address of a standard output in an initial downloading process, obtains an input address of a standard input in an initial uploading process, unifies the output address and the input address into the same address, and constructs a data stream pipeline in the standard output and the standard input, and the target image file can directly reach the standard input of the uploading process from the standard output of the downloading process through the data stream pipeline, so that zero memory space occupation of the local computing node can be realized.
205. When the format of the image file is raw, the electronic equipment takes the image file as a target image file, and a downloading process and an uploading process are constructed according to the attribute information of the virtual machine and the target image file.
For example, when the format of the image file is raw, the image file stored at the first storage address of the virtual machine data storage platform may be used as a target image file, and the electronic device constructs a downloading process and an uploading process according to the target image file and the attribute information of the virtual machine. Because the process of constructing the downloading process and the uploading process according to the target image file and the virtual machine attribute information is the same as the method of constructing the downloading process and the uploading process in step 204, the description thereof will not be repeated here.
206. When the downloading process and the uploading process are triggered, the electronic device copies the original data in the system disk into the snapshot.
For example, when the downloading process and the uploading process are triggered, the copy-on-write of the original data in the system disk is also triggered, and according to the copy-on-write rule, the electronic device pauses the downloading process to download the target image file and the uploading process pauses uploading the target image file when copying on write. When the downloading process and the uploading process are suspended, the original data of the system disk is copied to the snapshot.
207. When the original data of the system disk is completely copied to the snapshot, the electronic equipment writes the image file into the system disk based on the downloading process and the uploading process, and the written image file covers the original data in the system disk so as to reload the virtual machine.
For example, when the original data of the system disk is completely copied to the snapshot, the electronic device overwrites the image file on the original data in the system disk based on the downloading process and the uploading process, so as to reload the virtual machine, and the specific process may be as follows:
and E1, the electronic equipment writes the target image file into the system disk through a downloading process and an uploading process.
For example, the electronic device downloads the target image file as a difference file to a standard output of the local computing node through a downloading process, transmits the target image file to a standard input of an uploading process through a data stream pipeline connecting the standard output and the standard input, and writes the target image file to the system disk through the uploading process.
And E2, the electronic equipment adopts the target image file to cover the original data in the system disk, and the covered system disk is obtained.
For example, the electronic device will write the target image files of the system disk to overwrite the original data in the system disk, the overwriting process is dynamic, and the target image files of how much memory are written, the original data of the system disk are overwritten from these written target image files until the target image files are all written to the system disk and all the data of the memory size of the target image files are overwritten.
It should be noted that the writing and overwriting processes in steps E1 and E2 are synchronized, and thus, overwriting and writing may also be referred to as overwriting.
And E3, the electronic equipment adjusts the covered system disk to reload the virtual machine.
For example, the electronic device adjusts the memory area of the covered system disk to obtain the reloaded virtual machine, and the specific adjustment process is as follows:
(1) And the electronic equipment cuts the area which is not covered by the target image file in the covered system disk to obtain the cut system disk.
For example, in general, the memory space of the target image file is smaller than the memory space of the system disk, so when the target image file is completely written in the system disk, two areas exist, one is a covered memory area covered by the target image file, the other is an uncovered memory area uncovered by the target image file, the electronic device reserves the memory space of the covered memory area, cuts the uncovered memory area, and the system disk is obtained after cutting, and the memory size of the system after cutting is the memory size of the target image file.
(2) The electronic equipment obtains the preset memory capacity of the system disk corresponding to the model according to the model of the virtual machine, expands the memory capacity of the truncated system disk, enables the memory capacity of the truncated system disk to be the same as the preset memory capacity, and obtains the virtual machine after reloading.
For example, the electronic device obtains the model of the virtual machine according to the identity of the virtual machine in the reloading request, obtains the preset memory capacity of the system disk corresponding to the model according to the model of the virtual machine, compares the memory capacity of the system disk after interception with the preset memory capacity to obtain the capacity difference value between the system disk after interception and the preset memory capacity, and can expand the memory capacity of the system disk after interception in the rad volume by using the restore command, wherein the expanded memory capacity is the capacity difference value, and at the moment, the memory capacity of the system disk after interception after expansion is the same as the preset memory capacity. After the capacity expansion is completed, the reloading of the whole virtual machine is completed, and the reloaded virtual machine can be obtained. After the virtual machine is reloaded, the user can also query the snapshot of the reloaded virtual machine, the image file, the basic information of the virtual machine and the like through the virtual machine management page, as shown in fig. 11.
The reloading process of the virtual machine can be regarded as that the target image file is rewritten in the system disk, the rewritten system is cut off and expanded, and finally the reloaded virtual machine is obtained.
As can be seen from the foregoing, after receiving a reloading request of a virtual machine, the electronic device in this embodiment carries an identity of the virtual machine and a first storage address of an image file, obtains virtual machine attribute information corresponding to the identity, then, when the virtual machine attribute information indicates that a system disk and a snapshot exist in the virtual machine, constructs a downloading process and an uploading process according to the first storage address and the virtual machine attribute information, where the downloading process is used to download the image file of the reloading virtual machine, and the uploading process is used to upload the image file to a system storage space, when the downloading process and the uploading process are triggered, copy original data in the system storage space into the snapshot, and then, when all original data in the system storage space are copied into the snapshot, write the image file into the system storage space based on the downloading process and the uploading process, and cover the written image file with the original data in the system storage space, so as to reload the virtual machine; when the virtual machine is reloaded, the original data in the system storage space is copied into the snapshot before the image file is written into and covers the system storage space, so that the snapshot of the virtual machine before the reloading is protected, the original data in the system storage space of the virtual machine before the reloading is also protected, and the security of service data of the virtual machine can be greatly improved.
In order to better implement the above method, the embodiment of the present invention further provides a virtual machine reloading apparatus, where the virtual machine reloading apparatus may be integrated into an electronic device, such as a server or a terminal, where the terminal may include a tablet computer, a notebook computer, and/or a personal computer.
For example, as shown in fig. 12, the virtual machine reloading apparatus may include a receiving unit 301, an acquiring unit 302, a constructing unit 303, a copying unit 304, and a reloading unit 305, as follows:
(1) A receiving unit 301;
the receiving unit 301 is configured to receive a reload request of the virtual machine, where the reload request carries an identity of the virtual machine and a first storage address of the image file.
For example, the receiving unit 301 may be specifically configured to receive a reloading request of a virtual machine through a reloading page, and may also receive, through a third party database or a third party platform, an identity of the virtual machine and a first storage address of an image file carried in the reloading request, and after receiving the reloading request, generate feedback information and send the feedback information to a terminal corresponding to a user.
(2) An acquisition unit 302;
the obtaining unit 302 is configured to obtain virtual machine attribute information corresponding to the identity.
For example, the obtaining unit 302 may specifically be configured to query system storage space information of the virtual machine in the attribute information of the virtual machine, determine that the virtual machine does not have a system storage space when the system storage space information does not exist in the attribute information of the virtual machine, create the system storage space according to the identity, update the attribute information of the virtual machine, and query backup data information of the virtual machine in the attribute information of the virtual machine; when the system storage space information exists in the virtual machine attribute information, determining that the virtual machine exists in the system storage space, inquiring backup data information of the virtual machine in the virtual machine attribute information, and when the backup data information exists, determining that the virtual machine exists in the backup data space.
(3) A construction unit 303;
and a construction unit 303, configured to construct a downloading process and an uploading process according to the first storage address and the virtual machine attribute information when the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, where the downloading process is used for downloading the image file of the loaded virtual machine, and the uploading process is used for uploading the image file to the system storage space.
The construction unit 303 may include a detection subunit 3031, a first construction subunit 3032, and a second construction subunit 3033, as shown in fig. 13, specifically shown as follows:
A detection subunit 3031, configured to detect a format of the image file according to the first storage address;
a first construction subunit 3032, configured to obtain, when the format of the image file is a non-target format, a local image file in a target format from the storage data of the virtual machine, and use the local image file as a target image file, and according to the attribute information of the virtual machine and the target image file, construct a downloading process and an uploading process;
and the second construction subunit 3033 is configured to construct a downloading process and an uploading process according to the attribute information of the virtual machine and the target image file by using the image file as the target image file when the format of the image file is the target format.
For example, the detecting subunit 3031 detects the format of the image file according to the first storage address, the first constructing subunit 3032 obtains the local image file in the target format from the storage data of the virtual machine when the format of the image file is in the non-target format, uses the local image file as the target image file, and constructs the downloading process and the uploading process according to the attribute information and the target image file of the virtual machine, and the component downloading process and the uploading process when the format of the image file is in the target format, and the second constructing subunit 3033 uses the image file as the target image file when the format of the image file is in the target format, and constructs the downloading process and the uploading process according to the attribute information and the target image file of the virtual machine.
(4) A copy unit 304;
and the copying unit 304 is used for copying the original data in the system memory space into the backup data space when the downloading process and the uploading process are triggered.
For example, the copying unit 304 may specifically be configured to trigger, when a downloading process and an uploading process are triggered, copy-on-write of original data in a system disk, and according to a copy-on-write rule, suspend the downloading process from downloading the target image file when copying on write, and suspend the uploading process from uploading the target image file. When the downloading process and the uploading process are suspended, the original data of the system storage space are copied to the backup data space.
(5) A reloading unit 305;
and the reloading unit 305 is configured to write the image file into the system storage space based on the downloading process and the uploading process when the original data in the system storage space is completely copied to the backup data space, and overwrite the written image file with the original data in the system storage space, so as to reload the virtual machine.
The reassembly unit 305 may include a writing subunit 3051, a covering subunit 3052, and an adjusting subunit 3053, as shown in fig. 14, specifically as follows:
the writing subunit 3051 is configured to write, when all original data in the system storage space are copied to the backup data space, the target image file into the system storage space through a downloading process and an uploading process;
The covering subunit 3052 is configured to cover the original data in the system storage space with the target image file, so as to obtain a covered system storage space;
and the adjusting subunit 3053 is configured to adjust the covered system storage space to reload the virtual machine.
For example, when the original data in the system storage space is copied to the backup data space by the writing subunit 3051, the target image file is written to the system storage space by the downloading process and the uploading process, the covering subunit 3052 covers the original data in the system storage space with the target image file to obtain the covered system storage space, and the adjusting subunit 3053 adjusts the covered system storage space to reload the virtual machine.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
As can be seen from the foregoing, in this embodiment, after the receiving unit 301 receives the reloading request of the virtual machine, the reloading request carries the identity of the virtual machine and the first storage address of the image file, the obtaining unit 302 obtains the virtual machine attribute information corresponding to the identity, then, when the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, the constructing unit 303 constructs, according to the first storage address and the virtual machine attribute information, a downloading process and an uploading process, where the downloading process is used for downloading the image file of the reloading virtual machine, and the uploading process is used for uploading the image file to the system storage space, when the downloading process and the uploading process are triggered, the copying unit 304 copies the original data in the system storage space into the backup data space, and then, when the original data in the system storage space is all copied into the backup data space, the reloading unit 305 writes the image file into the system storage space based on the downloading process and the uploading process, and covers the original data in the system storage space with the written image file, so as to reload the virtual machine; when the virtual machine is reloaded, the original data in the system storage space is copied into the backup data space before the image file is written into and covers the system storage space, so that the backup data space of the virtual machine before the reloading is protected, the original data in the system storage space of the virtual machine before the reloading is also protected, and the safety of service data of the virtual machine can be greatly improved.
The embodiment of the invention also provides an electronic device, as shown in fig. 15, which shows a schematic structural diagram of the electronic device according to the embodiment of the invention, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 15 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall detection of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions as follows:
receiving a reloading request of a virtual machine, wherein the reloading request carries an identity mark of the virtual machine and a first storage address of an image file, acquiring virtual machine attribute information corresponding to the identity mark, constructing a downloading process and an uploading process according to the first storage address and the virtual machine attribute information when the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, the downloading process is used for downloading the image file of the reloading virtual machine, the uploading process is used for uploading the image file to the system storage space, when the downloading process and the uploading process are triggered, copying original data in the system storage space into the backup data space, when the original data in the system storage space are completely copied into the backup data space, writing the image file into the system storage space based on the downloading process and the uploading process, and covering the written image file with the original data in the system storage space so as to reload the virtual machine.
For example, the electronic device receives a reloading request of the virtual machine through a reloading page, and can also receive an identity identifier of the virtual machine and a first storage address of an image file carried in the reloading request through a third party database or a third party platform, acquire storage information corresponding to the identity identifier, inquire virtual machine attribute information in the storage information, inquire system storage space information in the virtual machine attribute information, and when the system storage space information does not exist in the virtual machine attribute information, determine that the virtual machine does not exist in the system storage space, then create the system storage space according to the identity identifier, and continuously inquire whether backup data information exists in the virtual machine attribute information; when the system storage space information exists in the virtual machine attribute information, the virtual machine is indicated to exist in the system storage space, and whether backup data information exists in the virtual machine attribute information is continuously inquired. When the backup data information exists in the virtual machine attribute information, it can be determined that the virtual machine exists in the backup data space. When the attribute information of the virtual machine indicates that the virtual machine has a system storage space and a backup data space, detecting the format of an image file according to a first storage address, and when the format of the image file is a non-target format, acquiring a local image file in a target format from storage data of the virtual machine, taking the local image file as a target image file, and constructing a downloading process and an uploading process according to the attribute information of the virtual machine and the target image file; when the format of the image file is the target format, the image file is used as the target image file, and a downloading process and an uploading process are constructed according to the attribute information of the virtual machine and the target image file. When the downloading process and the uploading process are triggered, the copy-on-write of the original data in the system disk is also triggered, and according to the copy-on-write rule, the downloading process is suspended to download the target image file and the uploading process is suspended to upload the target image file when the copy-on-write is performed. When the downloading process and the uploading process are suspended, the original data of the system storage space are copied to the backup data space. When the original data in the system storage space is completely copied to the backup data space, the target image file is written into the system storage space through the downloading process and the uploading process, the original data in the system storage space is covered by the target image file, the covered system storage space is obtained, and the covered system storage space is adjusted to reload the virtual machine.
The specific implementation of each operation may be referred to the previous embodiments, and will not be described herein.
As can be seen from the foregoing, after receiving a reloading request of a virtual machine, the reloading request carries an identity of the virtual machine and a first storage address of an image file, acquires virtual machine attribute information corresponding to the identity, then, when the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, constructs a downloading process and an uploading process according to the first storage address and the virtual machine attribute information, the downloading process is used for downloading the image file of the reloading virtual machine, the uploading process is used for uploading the image file to the system storage space, when the downloading process and the uploading process are triggered, original data in the system storage space are copied to the backup data space, then, when all original data in the system storage space are copied to the backup data space, the image file is written into the system storage space based on the downloading process and the uploading process, and the written image file covers the original data in the system storage space, so as to reload the virtual machine; when the virtual machine is reloaded, the original data in the system storage space is copied into the backup data space before the image file is written into and covers the system storage space, so that the backup data space of the virtual machine before the reloading is protected, the original data in the system storage space of the virtual machine before the reloading is also protected, and the safety of service data of the virtual machine can be greatly improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any one of the virtual machine reinstallation methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
receiving a reloading request of a virtual machine, wherein the reloading request carries an identity mark of the virtual machine and a first storage address of an image file, acquiring virtual machine attribute information corresponding to the identity mark, constructing a downloading process and an uploading process according to the first storage address and the virtual machine attribute information when the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, the downloading process is used for downloading the image file of the reloading virtual machine, the uploading process is used for uploading the image file to the system storage space, when the downloading process and the uploading process are triggered, copying original data in the system storage space into the backup data space, when the original data in the system storage space are completely copied into the backup data space, writing the image file into the system storage space based on the downloading process and the uploading process, and covering the written image file with the original data in the system storage space so as to reload the virtual machine.
For example, the electronic device receives a reloading request of the virtual machine through a reloading page, and can also receive an identity identifier of the virtual machine and a first storage address of an image file carried in the reloading request through a third party database or a third party platform, acquire storage information corresponding to the identity identifier, inquire virtual machine attribute information in the storage information, inquire system storage space information in the virtual machine attribute information, and when the system storage space information does not exist in the virtual machine attribute information, determine that the virtual machine does not exist in the system storage space, then create the system storage space according to the identity identifier, and continuously inquire whether backup data information exists in the virtual machine attribute information; when the system storage space information exists in the virtual machine attribute information, the virtual machine is indicated to exist in the system storage space, and whether backup data information exists in the virtual machine attribute information is continuously inquired. When the backup data information exists in the virtual machine attribute information, it can be determined that the virtual machine exists in the backup data space. When the attribute information of the virtual machine indicates that the virtual machine has a system storage space and a backup data space, detecting the format of an image file according to a first storage address, and when the format of the image file is a non-target format, acquiring a local image file in a target format from storage data of the virtual machine, taking the local image file as a target image file, and constructing a downloading process and an uploading process according to the attribute information of the virtual machine and the target image file; when the format of the image file is the target format, the image file is used as the target image file, and a downloading process and an uploading process are constructed according to the attribute information of the virtual machine and the target image file. When the downloading process and the uploading process are triggered, the copy-on-write of the original data in the system disk is also triggered, and according to the copy-on-write rule, the downloading process is suspended to download the target image file and the uploading process is suspended to upload the target image file when the copy-on-write is performed. When the downloading process and the uploading process are suspended, the original data of the system storage space are copied to the backup data space. When the original data in the system storage space is completely copied to the backup data space, the target image file is written into the system storage space through the downloading process and the uploading process, the original data in the system storage space is covered by the target image file, the covered system storage space is obtained, and the covered system storage space is adjusted to reload the virtual machine.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute the steps in any virtual machine reloading method provided by the embodiment of the present invention, the beneficial effects that any virtual machine reloading method provided by the embodiment of the present invention can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
The foregoing has described in detail the method, apparatus and computer readable storage medium for reloading a virtual machine according to the embodiments of the present invention, and specific examples have been applied to illustrate the principles and embodiments of the present invention, and the above description of the embodiments is only for aiding in understanding the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (11)

1. A virtual machine reinstallation method, comprising:
receiving a reloading request of a virtual machine, wherein the reloading request carries an identity mark of the virtual machine and a first storage address of an image file;
obtaining virtual machine attribute information corresponding to the identity;
when the virtual machine attribute information indicates that a system storage space and a backup data space exist in the virtual machine, a downloading process and an uploading process are constructed according to the first storage address and the virtual machine attribute information, wherein the downloading process is used for downloading and reloading an image file of the virtual machine, and the uploading process is used for uploading the image file to the system storage space;
when the downloading process and the uploading process are triggered, copying the original data in the system storage space into the backup data space;
when the original data in the system storage space are all copied to the backup data space, writing the image file into the system storage space based on the downloading process and the uploading process, and covering the written image file with the original data in the system storage space so as to reload the virtual machine.
2. The virtual machine reloading method as defined in claim 1, wherein constructing a download process and an upload process according to the first storage address and virtual machine attribute information comprises:
Detecting the format of the mirror image file according to the first storage address;
when the format of the image file is a non-target format, acquiring a local image file in a target format from storage data of the virtual machine, taking the local image file as a target image file, and constructing the downloading process and the uploading process according to the attribute information of the virtual machine and the target image file;
when the format of the image file is a target format, the image file is used as a target image file, and the downloading process and the uploading process are constructed according to the attribute information of the virtual machine and the target image file.
3. The method for reloading a virtual machine according to claim 2, wherein when the format of the image file is a non-target format, the method comprises obtaining a local image file in a target format from storage data of the virtual machine, taking the local image file as a target image file, and constructing the downloading process and the uploading process according to the attribute information of the virtual machine and the target image file, wherein the method comprises the steps of:
inquiring a local mirror image file in a target format in cache data of a computing node;
when the local image file in the target format exists in the cache data, the local image file in the target format is used as a target image file, and the downloading process and the uploading process are constructed according to the virtual machine attribute information and the target image file;
When the local mirror image file in the target format does not exist in the cache data, converting the file format of the local mirror image file in the non-target format into the target format in a local database of the virtual machine, obtaining a converted local mirror image file, taking the converted local mirror image file as the target mirror image file, uploading the target mirror image file to a storage area corresponding to the first storage address, and constructing the downloading process and the uploading process according to the attribute information of the virtual machine and the target mirror image file.
4. A method of reloading a virtual machine according to any one of claims 2 or 3, wherein said constructing the download process and the upload process according to the virtual machine attribute information and the target image file comprises:
constructing an initial downloading process according to the first storage address and the target image file;
inquiring a second storage address of the system storage space in the virtual machine attribute information;
constructing an initial uploading process according to the second storage address and the target image file;
and adjusting the initial downloading process and the initial uploading process to obtain the downloading process and the uploading process.
5. The virtual machine reloading method according to claim 4, wherein the initial download process includes a standard output, the standard output is outputting the downloaded target image file, the initial upload process includes a standard input, the standard input is inputting the target image file into a system storage space, and the adjusting the initial download process and the initial upload process to obtain the download process and the upload process includes:
acquiring an output address of the standard output and an input address of the standard input;
and unifying the output address and the input address to obtain the downloading process and the uploading process.
6. The virtual machine reloading method as defined in claim 2, wherein the writing the image file into the system memory space based on the download process and the upload process and overwriting the written image file with the original data of the system memory space to reload the virtual machine comprises:
writing the target image file into the system storage space through the downloading process and the uploading process;
covering the original data in the system storage space by adopting the target image file to obtain a covered system storage space;
And adjusting the storage space of the covered system according to the identity so as to reload the virtual machine.
7. The method for reloading a virtual machine according to claim 6, wherein said adjusting the system memory space after the overlay according to the identity to reload the virtual machine comprises:
intercepting the memory area which is not covered by the target image file in the covered system storage space to obtain an intercepted system storage space;
according to the identity, the model of the virtual machine is obtained, and the preset memory capacity of the system memory space corresponding to the model is obtained;
and expanding the memory capacity of the truncated system memory space according to the preset memory capacity, so that the memory capacity of the truncated system memory space is the same as the preset memory capacity, and the virtual machine after reinstallation is obtained.
8. The method for reloading a virtual machine according to claim 1, wherein after obtaining the virtual machine attribute information corresponding to the identity, the method further comprises:
inquiring system storage space information of the virtual machine in the virtual machine attribute information;
when the system storage space information does not exist in the virtual machine attribute information, determining that the system storage space does not exist in the virtual machine, creating the system storage space according to the identity, updating the virtual machine attribute information, and inquiring backup data information of the virtual machine in the virtual machine attribute information;
When the system storage space information exists in the virtual machine attribute information, determining that the virtual machine exists in the system storage space, and inquiring backup data information of the virtual machine in the virtual machine attribute information;
when the virtual machine attribute information indicates that the virtual machine has a system storage space and a backup data space, a downloading process and an uploading process are constructed according to the first storage address and the virtual machine attribute information, and the method comprises the following steps: when the virtual machine is determined to have a system storage space according to the virtual machine attribute information and the virtual machine attribute information is determined to have backup data information, a downloading process and an uploading process are constructed according to the first storage address and the virtual machine attribute information.
9. A virtual machine reinstallation apparatus, comprising:
the device comprises a receiving unit, a storage unit and a storage unit, wherein the receiving unit is used for receiving a reloading request of a virtual machine, and the reloading request carries an identity mark of the virtual machine and a first storage address of an image file;
the acquisition unit is used for acquiring the virtual machine attribute information corresponding to the identity;
the construction unit is used for constructing a downloading process and an uploading process according to the first storage address and the virtual machine attribute information when the virtual machine attribute information indicates that a system storage space and a backup data space exist in the virtual machine, wherein the downloading process is used for downloading and reloading the image file of the virtual machine, and the uploading process is used for uploading the image file to the system storage space;
The copying unit is used for copying the original data in the system storage space into the backup data space when the downloading process and the uploading process are triggered;
and the reloading unit is used for writing the image file into the system storage space based on the downloading process and the uploading process when the original data in the system storage space are completely copied to the backup data space, and overlaying the written image file on the original data in the system storage space so as to reload the virtual machine.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the virtual machine reinstallation method of any one of claims 1 to 8.
11. An electronic device comprising a processor and a memory, the memory storing an application, the processor configured to run the application in the memory to perform the steps in the virtual machine reinstallation method of any one of claims 1 to 8.
CN201911310309.XA 2019-12-18 2019-12-18 Virtual machine reloading method and device and computer readable storage medium Active CN110968399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911310309.XA CN110968399B (en) 2019-12-18 2019-12-18 Virtual machine reloading method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911310309.XA CN110968399B (en) 2019-12-18 2019-12-18 Virtual machine reloading method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110968399A CN110968399A (en) 2020-04-07
CN110968399B true CN110968399B (en) 2023-09-22

Family

ID=70034945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911310309.XA Active CN110968399B (en) 2019-12-18 2019-12-18 Virtual machine reloading method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110968399B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111209090B (en) * 2020-04-17 2020-07-24 腾讯科技(深圳)有限公司 Method and assembly for creating virtual machine in cloud platform and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307207A (en) * 2010-09-25 2012-01-04 广东电子工业研究院有限公司 System and method for online customizing virtual machine image
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN105279011A (en) * 2015-11-17 2016-01-27 国云科技股份有限公司 Method for performing system restoring on virtual machine according to mirror image
CN105335253A (en) * 2015-10-28 2016-02-17 北京百度网讯科技有限公司 Method and device for creating virtual machine system disk snapshots
WO2016165472A1 (en) * 2015-07-13 2016-10-20 中兴通讯股份有限公司 Method and device for creating virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307207A (en) * 2010-09-25 2012-01-04 广东电子工业研究院有限公司 System and method for online customizing virtual machine image
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
WO2016165472A1 (en) * 2015-07-13 2016-10-20 中兴通讯股份有限公司 Method and device for creating virtual machine
CN105335253A (en) * 2015-10-28 2016-02-17 北京百度网讯科技有限公司 Method and device for creating virtual machine system disk snapshots
CN105279011A (en) * 2015-11-17 2016-01-27 国云科技股份有限公司 Method for performing system restoring on virtual machine according to mirror image

Also Published As

Publication number Publication date
CN110968399A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
US20230244404A1 (en) Managing digital assets stored as components and packaged files
CN109739815B (en) File processing method, system, device, equipment and storage medium
CN101719073B (en) Intelligent client-based on-demand downloading realization method
US10055149B2 (en) Intelligent snapshot tree replication
TWI609277B (en) Location independent files
KR101994163B1 (en) Device and method for synchronizing compression contents file and system using the same
US10684838B2 (en) Dynamic application deployment
CN108234554B (en) Cloud file editing method and device
CN103473065A (en) Virtual machine creation method capable of rapidly restoring system disk
CN111433760A (en) Enhanced techniques for replicating cloud-stored files
CN104519078A (en) A method and a device for realizing cloud storage
CN107659663A (en) A kind of method, apparatus of data syn-chronization, equipment and storage medium
JP4755244B2 (en) Information generation method, information generation program, and information generation apparatus
CN104133717A (en) Service automatic generation and deployment method for data open system
CN116737195A (en) Upgrade method of operating system, electronic equipment and storage medium
CN110968399B (en) Virtual machine reloading method and device and computer readable storage medium
CN107133067A (en) Cloud platform dispositions method and device
JP6610189B2 (en) Synchronize collaborative documents with online document management systems
US20120303590A1 (en) Management of deduplicated data during restoration in a network archival and retrieval system
WO2020107469A1 (en) Application processing method and apparatus and storage medium
CN116028280A (en) Cross-cluster data migration method, device, equipment and medium
CN109597537B (en) File synchronization method, device and equipment
CN111522688B (en) Data backup method and device for distributed system
CN111158709A (en) Cluster deployment method, device and equipment and computer readable storage medium
US20240069779A1 (en) Object storage based asynchronous mailbox, eventual consistency for cross-region communication

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40022320

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant