Cloud environment deployment method and device and storage medium
By obtaining and storing cloud environment snapshots at each deployment stage in the cloud computing system and recovering based on snapshots, the problem of inefficient deployment reproduction of cloud environments is solved, and efficient cloud environment problem discovery and repair is achieved, reducing costs.
Patent Information
- Application Number
- CN202411141091.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-03
AI Technical Summary
The reproduction efficiency during cloud environment deployment is inefficient, resulting in low efficiency and high cost of problem discovery and repair. The existing technology needs to be deployed from the beginning, which takes a long time and takes up a lot of manpower.
At each deployment stage in the cloud computing system, snapshots of the cloud environment are obtained and stored. When responding to recovery instructions, restore the cloud environment based on snapshots to avoid deployment from the head.
It improves the efficiency of cloud environment reproduction, reduces costs, improves the efficiency of problem discovery and repair, and simplifies the deployment and upgrade process.
Smart Images

Figure CN119065790A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer and network communication technology, and more particularly to a cloud environment deployment method, device, and storage medium. Background Art
[0002] Cloud computing scenarios include public cloud, private cloud and hybrid cloud, which involve the deployment of cloud computing environment.
[0003] However, cloud environments may encounter problems during deployment or use, requiring developers to reproduce the cloud environment to discover and fix the problems; or developers also need to verify or test the cloud environment deployment and upgrade process by reproducing the cloud environment. However, in existing technologies, cloud environment reproduction usually requires redeploying the cloud environment from scratch, and the cloud environment deployment process involves many components and a long process, resulting in low efficiency in cloud environment reproduction, which in turn leads to low efficiency and high cost in discovering and fixing problems in the cloud environment. Summary of the invention
[0004] The embodiments of the present disclosure provide a cloud environment deployment method, device, and storage medium to improve the efficiency of cloud environment reproduction and reduce costs.
[0005] In a first aspect, an embodiment of the present disclosure provides a cloud environment deployment method, including:
[0006] In each deployment phase of deploying the target service in the cloud computing system, a snapshot of the cloud environment where the target service is located is obtained and stored; wherein one or more of the disk, operating system, application program or component in the cloud environment where the target service is located changes in different deployment phases;
[0007] In response to a recovery instruction for a target cloud environment in any deployment phase, a target snapshot corresponding to the target cloud environment is acquired, and the target cloud environment is recovered based on the target snapshot.
[0008] In a second aspect, an embodiment of the present disclosure provides a cloud environment deployment device, including:
[0009] A snapshot acquisition unit, used to acquire and store snapshots of the cloud environment where the target service is located in each deployment stage of the target service in the cloud computing system; wherein one or more of the disk, operating system, application program or component in the cloud environment where the target service is located changes in different deployment stages;
[0010] The cloud environment recovery unit is used to respond to a recovery instruction for a target cloud environment in any deployment phase, obtain a target snapshot corresponding to the target cloud environment, and recover the target cloud environment based on the target snapshot.
[0011] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor and a memory;
[0012] The memory stores computer-executable instructions;
[0013] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud environment deployment method as described in the first aspect and various possible designs of the first aspect.
[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the cloud environment deployment method described in the first aspect and various possible designs of the first aspect is implemented.
[0015] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including computer execution instructions. When a processor executes the computer execution instructions, it implements the cloud environment deployment method described in the first aspect and various possible designs of the first aspect.
[0016] The cloud environment deployment method, device and storage medium provided in the embodiments of the present disclosure respectively obtain and store snapshots of the cloud environment in which the target service is located in each deployment stage of the target service in the cloud computing system, wherein one or more of the disk, operating system, application or component in the cloud environment in which the target service is located changes in different deployment stages; in response to a recovery instruction for the target cloud environment in any deployment stage, obtain a target snapshot corresponding to the target cloud environment, and restore the target cloud environment based on the target snapshot. In the embodiments of the present disclosure, by obtaining a cloud environment snapshot for each deployment stage, the cloud environment of any deployment stage can be quickly reproduced based on the snapshot without having to deploy the cloud environment from scratch, thereby improving the efficiency of cloud environment reproduction, thereby improving the efficiency of discovering and repairing problems in the cloud environment and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] Figure 1 A schematic diagram of a scenario of a cloud environment deployment method provided by an embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram of a cloud environment deployment method flow chart provided by an embodiment of the present disclosure;
[0020] Figure 3 A schematic diagram of a cloud environment deployment method flow chart provided by another embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram of the architecture of a cloud environment deployment method provided by an embodiment of the present disclosure;
[0022] Figure 5 A structural block diagram of a cloud environment deployment device provided in an embodiment of the present disclosure;
[0023] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0025] Cloud computing scenarios include public cloud, private cloud and hybrid cloud. Cloud computing scenarios involve the deployment of cloud computing environments, especially private cloud and private cloud scenarios in hybrid clouds, which involve the deployment of a large number of cloud computing environments.
[0026] However, the cloud environment may encounter problems during deployment or use, requiring developers to reproduce the cloud environment to discover and fix the problems; or developers also need to verify or test the cloud environment deployment and upgrade process by reproducing the cloud environment to test whether the cloud environment deployment and upgrade process is smooth to ensure the deliverability and delivery cost of the hybrid cloud.
[0027] However, the reproduction of cloud environment in existing technologies usually requires redeployment of cloud environment. The cloud environment deployment process involves many components and long processes, which requires a lot of manpower. It often takes days to weeks to complete basic function verification from planning to deployment. The time required to complete development and testing is extended, resulting in low efficiency in reproducing cloud environment, which in turn leads to low efficiency and high cost in discovering and repairing problems in cloud environment.
[0028] In order to solve the above technical problems, a cloud environment deployment method is provided in the embodiment of the present disclosure, and snapshot technology is introduced. In each deployment stage of deploying the target service in the cloud computing system, snapshots of the cloud environment where the target service is located are obtained and stored, wherein one or more of the disk, operating system, application or component in the cloud environment where the target service is located changes in different deployment stages; and then, when a problem occurs in the cloud environment or testing is required and the cloud environment of a certain deployment stage needs to be reproduced, it is only necessary to trigger a recovery instruction for the target cloud environment of the deployment stage, and then the snapshot corresponding to the target cloud environment can be obtained, and the target cloud environment can be quickly restored based on the snapshot of the target cloud environment. Based on the snapshot technology, the required target cloud environment can be quickly reproduced without re-deploying the cloud environment from scratch, thereby improving the efficiency of cloud environment reproduction, thereby improving the efficiency of discovering and repairing problems in the cloud environment and reducing costs.
[0029] The cloud environment deployment method provided in the embodiments of the present disclosure can be applied to Figure 1 In the application scenario shown, when any target service is deployed in a public cloud scenario, a private cloud scenario, or a hybrid cloud scenario of a cloud computing system, there will be multiple deployment stages, including but limited to deploying common infrastructure components or libraries (Common), deploying virtual cloud environment management tools (Virtual Environment Manager, Vemanager), deploying elastic computing services (Elastic Compute Service, ECS), deploying public load balancers (Public Load Balancer, PLB) and other different deployment stages. In each deployment stage of the target service, including but not limited to the pre-deployment stage, the intermediate deployment stage, the deployment completion stage, etc., cloud environment snapshots can be obtained for storage, wherein one or more of the disk, operating system, application program or component in the cloud environment where the target service is located changes in different deployment stages. Optionally, the snapshot can be obtained in an incremental manner, that is, the first snapshot (snapshot 1) of the cloud environment where the target service is located is a complete snapshot, and each subsequent intermediate deployment stage obtains an incremental snapshot based on the previous intermediate deployment stage; optionally, a complete snapshot can be obtained separately for the cloud environment after the target service is deployed, that is, snapshot 5 can be a complete snapshot. When a target cloud environment needs to be restored later, a snapshot corresponding to the target cloud environment can be obtained, and the target cloud environment can be quickly restored based on the snapshot of the target cloud environment.
[0030] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0031] The cloud environment deployment method disclosed in the present invention will be described in detail below in conjunction with specific embodiments.
[0032] refer to Figure 2 , Figure 2 A schematic diagram of a cloud environment deployment method provided in an embodiment of the present disclosure. The method of this embodiment can be applied in a terminal device or a server, and the cloud environment deployment method includes:
[0033] S201. In each deployment stage of deploying a target service in a cloud computing system, a snapshot of the cloud environment in which the target service is located is obtained and stored; wherein one or more of the disk, operating system, application program or component in the cloud environment in which the target service is located changes in different deployment stages.
[0034] In this embodiment, when any target service is deployed in a public cloud scenario, a private cloud scenario, or a hybrid cloud scenario (including a public cloud scenario and / or a private cloud scenario of a hybrid cloud), there will be multiple deployment stages, including but not limited to deploying common infrastructure components or libraries (Common), deploying virtual cloud environment management tools (Vemanager), deploying elastic computing services (ECS), deploying public load balancers (PLB), and other different deployment stages, and each deployment stage may deploy one or more components, libraries, tools, etc. Among them, the target service includes but is not limited to applications, networks, databases, storage services, etc. Optionally, each deployment stage of deploying the target service in the cloud computing system may specifically include but is not limited to a pre-deployment stage, an intermediate deployment stage, a deployment completion stage, etc., wherein the intermediate deployment stage may include but is not limited to the above-mentioned deployment Common stage, deployment Vemanager stage, deployment ECS stage, deployment PLB stage, etc.
[0035] The cloud environment where the target service is located will usually change during each deployment phase, including but not limited to changes in the data and / or configuration status of the disk, operating system, application or component in the cloud environment. Therefore, a snapshot of the cloud environment where the target service is located can be obtained and stored in each deployment phase of the target service. That is, when the cloud environment where the target service is located changes during the deployment of the target service, a snapshot of the cloud environment can be obtained and stored. A snapshot refers to the state capture of a system, virtual machine, storage volume or database at a specific point in time, which records the data and configuration status at that point in time and allows recovery to that state when needed. Snapshots are usually used in scenarios such as data protection, backup, recovery, testing and development. In this embodiment, any known method can be used to obtain a snapshot of the cloud environment in any deployment phase, and this method is not limited in this embodiment.
[0036] Optionally, in this embodiment, a snapshot of the current cloud environment may be obtained at the beginning or end of each deployment phase.
[0037] S202: In response to a recovery instruction for a target cloud environment in any deployment phase, obtain a target snapshot corresponding to the target cloud environment, and recover the target cloud environment based on the target snapshot.
[0038] In this embodiment, when it is necessary to restore or test the target cloud environment of any deployment stage, a recovery instruction for the target cloud environment of the deployment stage can be triggered, and then a target snapshot corresponding to the target cloud environment can be obtained, and then the target cloud environment can be restored based on the target snapshot, that is, the data and / or configuration status in the target cloud environment can be restored, and any known method can be used for recovery based on the snapshot, which is not limited in this embodiment.
[0039] The cloud environment deployment method of this embodiment obtains and stores snapshots of the cloud environment where the target service is located in each deployment stage of the target service in the cloud computing system, wherein one or more of the disk, operating system, application program or component in the cloud environment where the target service is located changes in different deployment stages; in response to a recovery instruction for the target cloud environment in any deployment stage, obtains a target snapshot corresponding to the target cloud environment, and restores the target cloud environment based on the target snapshot. In this embodiment, by obtaining a cloud environment snapshot for each deployment stage, the cloud environment of any deployment stage can be quickly reproduced based on the snapshot without having to deploy the cloud environment from scratch, thereby improving the efficiency of cloud environment reproduction, thereby improving the efficiency of discovering and repairing problems in the cloud environment and reducing costs.
[0040] Based on any of the above embodiments, in each deployment stage of deploying the target service in the cloud computing system, respectively obtaining a snapshot of the cloud environment where the target service is located includes:
[0041] Acquire a first snapshot of the cloud environment where the target service is located in the first intermediate deployment stage of deploying the target service in the cloud computing system, and acquire an incremental snapshot based on the previous intermediate deployment stage in each subsequent intermediate deployment stage;
[0042] After the target service is deployed, a complete snapshot of the cloud environment where the target service is located is obtained, and the first snapshot and the incremental snapshots are cleaned up.
[0043] In this embodiment, considering that in each intermediate deployment stage before the target service is deployed, the cloud environment where the target service is located in each intermediate deployment stage may have only undergone small changes, if a complete snapshot of the cloud environment where the target service is located is obtained in each intermediate deployment stage, it will occupy computing resources and storage resources, take a long time, and affect the deployment speed of the target service. Therefore, in this embodiment, snapshots are obtained in an incremental manner in each intermediate deployment stage before the target service is deployed. In specific implementation, the first snapshot of the cloud environment where the target service is located can be obtained in the first intermediate deployment stage of deploying the target service (which can be at the start time or the end time). The first snapshot is a complete snapshot, and an incremental snapshot based on the previous intermediate deployment stage is obtained in each subsequent intermediate deployment stage. That is, the difference between the cloud environment where the target service is located in each subsequent intermediate deployment stage and the cloud environment where the target service is located in the previous intermediate deployment stage is compared, and an incremental snapshot of the difference is obtained. The incremental snapshot method can save a lot of computing resources and storage resources, and also improves the snapshot acquisition speed to avoid affecting the deployment of the target service. Optionally, a Copy on Write (COW) mechanism can be used when writing data to the snapshot. Data is written to the disk once during the intermediate deployment phase, and the disk data in the snapshot can be updated synchronously.
[0044] On this basis, in the process of deploying the target service in the cloud computing system, if it is necessary to restore the target cloud environment of any intermediate deployment stage, the recovery instruction of the target cloud environment of the intermediate deployment stage can be triggered, and then the first snapshot and all the incremental snapshots of the intermediate deployment stages before the intermediate deployment stage can be obtained and combined as the target snapshot corresponding to the target cloud environment, and the target cloud environment can be restored based on the target snapshot. Among them, the first snapshot and all the incremental snapshots of the intermediate deployment stages before the intermediate deployment stage can be restored in sequence to finally obtain the target cloud environment; or, the first snapshot and all the incremental snapshots of the intermediate deployment stages before the intermediate deployment stage can be combined into a complete snapshot of the target cloud environment, and then the target cloud environment can be restored based on this complete snapshot.
[0045] In addition, considering that the snapshot of the cloud environment where the target service is located in the intermediate deployment stage is usually only used to restore the cloud environment during the process of deploying the target service, especially, if an exception occurs during the deployment of the target service, the snapshot of the cloud environment where the target service is located in the intermediate deployment stage can be used to restore to the cloud environment before the exception, so as to facilitate the discovery and resolution of problems in the deployment process. After the target service is deployed, the application of the snapshot of the cloud environment where the target service is located in the intermediate deployment stage is relatively small, while the application of the snapshot of the cloud environment where the target service is located after the target service is deployed is relatively large. It is not convenient to obtain the snapshot of the cloud environment where the target service is located after the target service is deployed in an incremental manner. Therefore, in this embodiment, a complete snapshot can be obtained separately for the cloud environment where the target service is located after the target service is deployed. In addition, in order to save storage resources and avoid the unlimited increase of snapshots of the cloud environment where the target service is located in the intermediate deployment stage (especially when the Copy on Write mechanism is used or a large amount of incremental data is generated), which affects the read and write performance and occupies storage resources, the snapshots of the cloud environment where the target service is located in the intermediate deployment stage can also be cleaned up, including the above-mentioned first snapshot and each incremental snapshot.
[0046] On this basis, at any time after the target service is deployed, if it is necessary to restore the target cloud environment after the target service is deployed, the recovery instruction of the target cloud environment after the target service is deployed can be triggered to obtain a complete snapshot of the cloud environment where the target service is located after the target service is deployed, and the target cloud environment can be restored based on the complete snapshot.
[0047] Based on any of the above embodiments, a cloud computing system may generally include virtual machines and physical machines, so the target service may be deployed on a virtual machine of the cloud computing system, or may be deployed on a physical machine of the cloud computing system.
[0048] In an optional embodiment, the target service is deployed on a virtual machine of a cloud computing system. In each deployment stage of the target service in the cloud computing system, snapshots of the cloud environment in which the target service is located are obtained respectively. Specifically, in each deployment stage of the target service on the virtual machine, snapshots of the cloud environment in which the target service is located are obtained respectively through an image tool. The image tool can use any tool that can obtain a virtual machine image or a virtual machine snapshot, such as qemu-img, which is a powerful command line tool for creating, converting and modifying QEMU (Quick EMUlator, virtual operating system simulator) disk image files. qemu-img supports multiple disk image formats and provides rich functions to manage these image files. In this embodiment, qemu-img can be used to obtain snapshots of the cloud environment in each deployment stage of the target service on the virtual machine. For example, qemu-img can be used to make snapshots of all disks of the virtual machine. Of course, other image tools or other tools that can make virtual machine snapshots can also be used.
[0049] Optionally, in order to reduce the consumption of disk space when storing snapshots, all disks of the virtual machine where the target service is deployed can be converted to qcow2 format. qcow2 (QEMUCopy On Write2) is a disk image file format for virtual machines, which is widely used in KVM (Kernel-based Virtual Machine) and QEMU virtualization platforms. In this embodiment, by converting all disks of the virtual machine where the target service is deployed to qcow2 format, snapshots can be saved in an incremental manner, thereby saving a lot of disk space. Of course, other formats can also be used, and there is no limitation here.
[0050] In another optional embodiment, the target service may also be deployed on a physical machine of the cloud computing system. In each deployment phase of the target service in the cloud computing system, a snapshot of the cloud environment where the target service is located is obtained. Figure 3 As shown, it may include:
[0051] S301, in any deployment stage of deploying the target service on the physical machine, shutting down the first operating system on the target service system disk, and starting the second operating system on the non-target service system disk;
[0052] S302: Using the target service system disk as a data disk, and obtaining a snapshot of the target service system disk through the second operating system as a snapshot of the cloud environment where the target service is located.
[0053] In this embodiment, when taking a snapshot of the cloud environment where the target service is located and restoring the cloud environment on the physical machine, it is required that the target service system disk (logical disk) cannot be in a mounted state, otherwise there may be concurrent write processes and damage to the disk data. However, the system disk of the physical machine cannot be unmounted (at least the program for obtaining the snapshot needs to be run), and data will be written at any time. In order to solve the above problem, in this embodiment, a dual-system method is used to make snapshots and restore the cloud environment, that is, a first operating system is installed on the target service system disk for use by the target service, and a second operating system is installed on the non-target service system disk, which is only used for snapshot making and cloud environment recovery, and is not provided to the target service. When making a snapshot, the first operating system of the target service system disk can be shut down, and the second operating system on the non-target service system disk can be started. At this time, the second operating system is used as the operating system of the physical machine, and the target service system disk can be uninstalled as an ordinary data disk. In this way, a snapshot of the target service system disk can be made through the second operating system, that is, a snapshot of the target service system disk is obtained as a snapshot of the cloud environment where the target service is located. In specific implementation, the snapshot of the cloud environment where the target service is located can be obtained through the above process in each deployment stage of the target service.
[0054] Similarly, when restoring the target cloud environment based on the target snapshot, the first operating system of the target service system disk can also be shut down, and the second operating system on the non-target service system disk can be started. At this time, the second operating system serves as the operating system of the physical machine, and the target service system disk can be uninstalled as an ordinary data disk. In this way, the target cloud environment can be restored according to the target snapshot target service system disk through the second operating system. After the recovery is completed, the second operating system of the non-target service system disk is shut down, and the first operating system on the target service system disk is restarted. In this way, the target service system disk can be restored to the target cloud environment.
[0055] Optionally, in the above embodiment, when switching operating systems, the operating system switching can be achieved by setting the power-on startup item of the physical machine. For example, when shutting down the first operating system of the target service system disk and starting the second operating system on the non-target service system disk, the power-on startup item of the physical machine can be set to the second operating system on the non-target service system disk, and the physical machine can be restarted. In this way, the physical machine can start the second operating system from the non-target service system disk and shut down the first operating system; when shutting down the second operating system of the non-target service system disk and starting the first operating system on the target service system disk, the power-on startup item of the physical machine can be set to the first operating system on the target service system disk, and the physical machine can be restarted. In this way, the physical machine can start the first operating system from the target service system disk and shut down the second operating system.
[0056] Optionally, in the above embodiment, the target service system disk can be a logical disk of a disk management tool, wherein the disk management tool can be LVM (Logical Volume Manager), which is a disk management tool provided by the Linux kernel and provides the function of making snapshots for logical disks. LVM can be used to make snapshots of the target service system disk (logical disk), that is, a snapshot of the cloud environment where the target service is located is obtained; further, when the target service system disk is used as a data disk to obtain a snapshot of the target service system disk through the second operating system, the target service system disk can be used as a data disk, and the second operating system can be used to control a disk management tool such as LVM to obtain a snapshot of the target service system disk as a snapshot of the cloud environment where the target service is located.
[0057] In this embodiment, a snapshot of the cloud environment in the physical machine is created through dual systems in combination with a disk management tool. Compared with the conventional solution of copying the entire disk of the physical machine data and retaining it, this embodiment can achieve a better physical machine snapshot solution. The disk utilization rate is higher than that of the full disk copy and the recovery speed is also faster. In addition, when the snapshot is created and restored, the first operating system of the target service system disk is equivalent to the shutdown state, which effectively avoids data anomalies caused by continuous writing of system disk data during the snapshot creation and recovery process.
[0058] Based on any of the above embodiments, Figure 4 As shown, after the target service is deployed, the deployer of the target service can obtain a complete snapshot of the cloud environment where the target service is located, and can also store the complete snapshot in the cloud environment resource pool to provide it to different cloud environment demanders for use, where the cloud environment demander can be the developer's equipment, tester's equipment, etc., and of course it can also be the virtual machine or physical machine where the target service is deployed in the above embodiment, which can be used to restore the cloud environment where the target service is located for further development or testing. Specifically, the cloud environment demander can trigger a recovery instruction for the target cloud environment after the target service is deployed, obtain a complete snapshot of the cloud environment where the target service is located after the target service is deployed from the resource pool, and restore the cloud environment based on the complete snapshot.
[0059] Optionally, in this embodiment, the snapshot can be provided to the cloud environment demander in the form of a short-term lease, and recovered after the cloud environment demander has finished using it. That is, a limited number of cloud environment demanders are allowed to use the same snapshot to reproduce the same cloud environment at the same time, thereby realizing elastic supply of cloud environment. It is no longer necessary to provide a cloud environment for long-term use by several cloud environment demanders, and there is no need to maintain the cloud environment for a long time. The cloud environment demander can obtain the required snapshot from the cloud environment resource pool when needed, thereby reducing the long-term operation and maintenance costs of the cloud environment, and avoiding the problem of cloud environment instability caused by the cloud environment being used and tested by multiple parties for a long time by several cloud environment demanders.
[0060] Optionally, this embodiment may provide an operation and maintenance platform for receiving recovery instructions from the cloud environment demander, and obtaining the snapshot required by the cloud environment demander from the cloud environment resource pool according to the recovery instructions, and returning it to the cloud environment demander. Specifically, the operation and maintenance platform may obtain the snapshot required by the cloud environment demander from the cloud environment resource pool through the cloud environment manager, and return it to the cloud environment demander.
[0061] In this embodiment, snapshots are stored in a cloud environment resource pool to achieve elastic provisioning of the cloud environment. Compared with previous cloud environment provisioning solutions that are limited by lengthy processes such as inventory, planning, and deployment of physical resources, this embodiment can achieve rapid provisioning of the cloud environment. After the cloud environment deployment has been completed, while keeping the physical connection and IP address allocation unchanged, the cloud environment at any historical stage can be quickly restored on the same physical machine based on the snapshot. As long as the cloud environment is deployed, it can be restored repeatedly without worrying about damage to the cloud environment due to development and testing.
[0062] Corresponding to the cloud environment deployment method of the above embodiment, Figure 5 A structural block diagram of a cloud environment deployment device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 5 The cloud environment deployment device 500 includes: a snapshot acquisition unit 501 and a cloud environment recovery unit 502.
[0063] The snapshot acquisition unit 501 is used to acquire and store snapshots of the cloud environment where the target service is located in each deployment stage of the target service in the cloud computing system; wherein one or more of the disk, operating system, application program or component in the cloud environment where the target service is located changes in different deployment stages;
[0064] The cloud environment recovery unit 502 is used to respond to a recovery instruction for a target cloud environment in any deployment phase, obtain a target snapshot corresponding to the target cloud environment, and recover the target cloud environment based on the target snapshot.
[0065] In one or more embodiments of the present disclosure, the snapshot acquisition unit 501 is used to:
[0066] Acquire a first snapshot of the cloud environment where the target service is located in the first intermediate deployment stage of deploying the target service in the cloud computing system, and acquire an incremental snapshot based on the previous intermediate deployment stage in each subsequent intermediate deployment stage;
[0067] After the target service is deployed, a complete snapshot of the cloud environment where the target service is located is obtained, and the first snapshot and the incremental snapshots are cleaned up.
[0068] In one or more embodiments of the present disclosure, when the cloud environment recovery unit 502 obtains a target snapshot corresponding to the target cloud environment in response to a recovery instruction for the target cloud environment in any deployment stage, it is configured to:
[0069] In the process of deploying the target service in the cloud computing system, in response to a recovery instruction for a target cloud environment in any intermediate deployment stage, obtaining the first snapshot and all incremental snapshots of intermediate deployment stages before any intermediate deployment stage, combining them to obtain a target snapshot corresponding to the target cloud environment, and recovering the target cloud environment based on the target snapshot; or
[0070] In response to a recovery instruction for the target cloud environment after the target service is deployed, the complete snapshot is acquired, and the target cloud environment is restored based on the complete snapshot.
[0071] In one or more embodiments of the present disclosure, if the target service is deployed on a virtual machine of a cloud computing system, the snapshot acquisition unit 501 is used to:
[0072] In each deployment stage of deploying the target service on the virtual machine, a snapshot of the cloud environment where the target service is located is obtained through an imaging tool.
[0073] In one or more embodiments of the present disclosure, if the target service is deployed on a physical machine of a cloud computing system, the snapshot acquisition unit 501 is used to:
[0074] In any deployment stage of deploying the target service on the physical machine, the first operating system of the target service system disk is shut down, and the second operating system on the non-target service system disk is started. The target service system disk is used as a data disk, and a snapshot of the target service system disk is obtained through the second operating system as a snapshot of the cloud environment where the target service is located.
[0075] In one or more embodiments of the present disclosure, the target service system disk is a logical disk of a disk management tool; accordingly, when the snapshot obtaining unit 501 uses the target service system disk as a data disk to obtain a snapshot of the target service system disk through the second operating system, it is used to:
[0076] The target service system disk is used as a data disk, and the disk management tool is controlled by the second operating system to obtain a snapshot of the target service system disk.
[0077] In one or more embodiments of the present disclosure, when restoring the target cloud environment based on the target snapshot, the cloud environment recovery unit 502 is used to:
[0078] Shut down the first operating system of the target service system disk, and start the second operating system on the non-target service system disk. Use the second operating system to restore the target cloud environment on the target service system disk according to the target snapshot. Shut down the second operating system of the non-target service system disk, and restart the first operating system on the target service system disk.
[0079] In one or more embodiments of the present disclosure, when shutting down the first operating system of the target service system disk and starting the second operating system on the non-target service system disk, the snapshot acquisition unit 501 is used to:
[0080] The startup item of the physical machine is set to the second operating system on the non-target service system disk, and the physical machine is restarted.
[0081] In one or more embodiments of the present disclosure, after obtaining a complete snapshot of the cloud environment where the target service is located, the snapshot obtaining unit 501 is further configured to:
[0082] Storing the complete snapshot in a cloud environment resource pool;
[0083] The cloud environment recovery unit 502, in response to the recovery instruction of the target cloud environment after the target service deployment is completed, when obtaining the complete snapshot, is used to:
[0084] In response to a recovery instruction for the target cloud environment after the target service is deployed, the complete snapshot is obtained from the resource pool.
[0085] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0086] refer to Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure, and the electronic device 600 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0087] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0088] Typically, the following devices may be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0089] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0090] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0091] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0092] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0093] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0094] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0095] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0096] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0097] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0098] In a first aspect, according to one or more embodiments of the present disclosure, a cloud environment deployment method is provided, including:
[0099] In each deployment phase of deploying the target service in the cloud computing system, a snapshot of the cloud environment where the target service is located is obtained and stored; wherein one or more of the disk, operating system, application program or component in the cloud environment where the target service is located changes in different deployment phases;
[0100] In response to a recovery instruction for a target cloud environment in any deployment phase, a target snapshot corresponding to the target cloud environment is acquired, and the target cloud environment is recovered based on the target snapshot.
[0101] According to one or more embodiments of the present disclosure, in each deployment stage of deploying the target service in the cloud computing system, respectively obtaining a snapshot of the cloud environment where the target service is located includes:
[0102] Acquire a first snapshot of the cloud environment where the target service is located in the first intermediate deployment stage of deploying the target service in the cloud computing system, and acquire an incremental snapshot based on the previous intermediate deployment stage in each subsequent intermediate deployment stage;
[0103] After the target service is deployed, a complete snapshot of the cloud environment where the target service is located is obtained, and the first snapshot and the incremental snapshots are cleaned up.
[0104] According to one or more embodiments of the present disclosure, in response to a recovery instruction for a target cloud environment in any deployment phase, obtaining a target snapshot corresponding to the target cloud environment includes:
[0105] In the process of deploying the target service in the cloud computing system, in response to a recovery instruction for a target cloud environment in any intermediate deployment stage, obtaining the first snapshot and all incremental snapshots of intermediate deployment stages before any intermediate deployment stage, combining them to obtain a target snapshot corresponding to the target cloud environment, and recovering the target cloud environment based on the target snapshot; or
[0106] In response to a recovery instruction for the target cloud environment after the target service is deployed, the complete snapshot is acquired, and the target cloud environment is restored based on the complete snapshot.
[0107] According to one or more embodiments of the present disclosure, if the target service is deployed on a virtual machine of a cloud computing system, then in each deployment stage of deploying the target service in the cloud computing system, a snapshot of the cloud environment where the target service is located is obtained, including:
[0108] In each deployment stage of deploying the target service on the virtual machine, a snapshot of the cloud environment where the target service is located is obtained through an imaging tool.
[0109] According to one or more embodiments of the present disclosure, if the target service is deployed on a physical machine of a cloud computing system, then in each deployment stage of deploying the target service in the cloud computing system, a snapshot of the cloud environment where the target service is located is obtained, including:
[0110] In any deployment stage of deploying the target service on the physical machine, the first operating system of the target service system disk is shut down, and the second operating system on the non-target service system disk is started. The target service system disk is used as a data disk, and a snapshot of the target service system disk is obtained through the second operating system as a snapshot of the cloud environment where the target service is located.
[0111] According to one or more embodiments of the present disclosure, the target service system disk is a logical disk of a disk management tool; accordingly, the step of taking the target service system disk as a data disk and obtaining a snapshot of the target service system disk through the second operating system includes:
[0112] The target service system disk is used as a data disk, and the disk management tool is controlled by the second operating system to obtain a snapshot of the target service system disk.
[0113] According to one or more embodiments of the present disclosure, the restoring the target cloud environment based on the target snapshot includes:
[0114] Shut down the first operating system of the target service system disk, and start the second operating system on the non-target service system disk. Use the second operating system to restore the target cloud environment on the target service system disk according to the target snapshot. Shut down the second operating system of the non-target service system disk, and restart the first operating system on the target service system disk.
[0115] According to one or more embodiments of the present disclosure, shutting down the first operating system of the target service system disk and starting the second operating system on the non-target service system disk includes:
[0116] The startup item of the physical machine is set to the second operating system on the non-target service system disk, and the physical machine is restarted.
[0117] According to one or more embodiments of the present disclosure, after obtaining a complete snapshot of the cloud environment where the target service is located, the method further includes:
[0118] Storing the complete snapshot in a cloud environment resource pool;
[0119] The obtaining of the complete snapshot in response to a recovery instruction of the target cloud environment after the target service is deployed includes:
[0120] In response to a recovery instruction for the target cloud environment after the target service is deployed, the complete snapshot is obtained from the resource pool.
[0121] In a second aspect, according to one or more embodiments of the present disclosure, a cloud environment deployment device is provided, including:
[0122] A snapshot acquisition unit, used to acquire and store snapshots of the cloud environment where the target service is located in each deployment stage of the target service in the cloud computing system; wherein one or more of the disk, operating system, application program or component in the cloud environment where the target service is located changes in different deployment stages;
[0123] The cloud environment recovery unit is used to respond to a recovery instruction for a target cloud environment in any deployment phase, obtain a target snapshot corresponding to the target cloud environment, and recover the target cloud environment based on the target snapshot.
[0124] According to one or more embodiments of the present disclosure, the snapshot acquisition unit, when acquiring a snapshot of the cloud environment where the target service is located in each deployment stage of the target service in the cloud computing system, is used to:
[0125] Acquire a first snapshot of the cloud environment where the target service is located in the first intermediate deployment stage of deploying the target service in the cloud computing system, and acquire an incremental snapshot based on the previous intermediate deployment stage in each subsequent intermediate deployment stage;
[0126] After the target service is deployed, a complete snapshot of the cloud environment where the target service is located is obtained, and the first snapshot and the incremental snapshots are cleaned up.
[0127] According to one or more embodiments of the present disclosure, when the cloud environment recovery unit obtains a target snapshot corresponding to the target cloud environment in response to a recovery instruction for the target cloud environment in any deployment stage, it is configured to:
[0128] In the process of deploying the target service in the cloud computing system, in response to a recovery instruction for a target cloud environment in any intermediate deployment stage, obtaining the first snapshot and all incremental snapshots of intermediate deployment stages before any intermediate deployment stage, combining them to obtain a target snapshot corresponding to the target cloud environment, and recovering the target cloud environment based on the target snapshot; or
[0129] In response to a recovery instruction for the target cloud environment after the target service is deployed, the complete snapshot is acquired, and the target cloud environment is restored based on the complete snapshot.
[0130] According to one or more embodiments of the present disclosure, if the target service is deployed on a virtual machine of a cloud computing system, the snapshot acquisition unit is used to:
[0131] In each deployment stage of deploying the target service on the virtual machine, a snapshot of the cloud environment where the target service is located is obtained through an imaging tool.
[0132] According to one or more embodiments of the present disclosure, if the target service is deployed on a physical machine of a cloud computing system, the snapshot acquisition unit is used to:
[0133] In any deployment stage of deploying the target service on the physical machine, the first operating system of the target service system disk is shut down, and the second operating system on the non-target service system disk is started. The target service system disk is used as a data disk, and a snapshot of the target service system disk is obtained through the second operating system as a snapshot of the cloud environment where the target service is located.
[0134] According to one or more embodiments of the present disclosure, the target service system disk is a logical disk of a disk management tool; accordingly, when the snapshot acquisition unit uses the target service system disk as a data disk to acquire a snapshot of the target service system disk through the second operating system, it is used to:
[0135] The target service system disk is used as a data disk, and the disk management tool is controlled by the second operating system to obtain a snapshot of the target service system disk.
[0136] According to one or more embodiments of the present disclosure, when restoring the target cloud environment based on the target snapshot, the cloud environment recovery unit is configured to:
[0137] Shut down the first operating system of the target service system disk, and start the second operating system on the non-target service system disk. Use the second operating system to restore the target cloud environment on the target service system disk according to the target snapshot. Shut down the second operating system of the non-target service system disk, and restart the first operating system on the target service system disk.
[0138] According to one or more embodiments of the present disclosure, when shutting down the first operating system of the target service system disk and starting the second operating system on the non-target service system disk, the snapshot acquisition unit is used to:
[0139] The startup item of the physical machine is set to the second operating system on the non-target service system disk, and the physical machine is restarted.
[0140] According to one or more embodiments of the present disclosure, after obtaining a complete snapshot of the cloud environment where the target service is located, the snapshot obtaining unit is further configured to:
[0141] Storing the complete snapshot in a cloud environment resource pool;
[0142] The cloud environment recovery unit, in response to a recovery instruction for the target cloud environment after the target service is deployed, obtains the complete snapshot, and is used to:
[0143] In response to a recovery instruction for the target cloud environment after the target service is deployed, the complete snapshot is obtained from the resource pool.
[0144] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0145] The memory stores computer-executable instructions;
[0146] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud environment deployment method as described in the first aspect and various possible designs of the first aspect.
[0147] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the cloud environment deployment method described in the first aspect and various possible designs of the first aspect is implemented.
[0148] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, comprising computer execution instructions. When a processor executes the computer execution instructions, the cloud environment deployment method as described in the first aspect and various possible designs of the first aspect is implemented.
[0149] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0150] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0151] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A cloud environment deployment method, characterized in that: include: In each deployment phase of deploying the target service in the cloud computing system, respectively obtaining a snapshot of the cloud environment where the target service is located and storing the snapshot; One or more of the disk, operating system, application or component in the cloud environment where the target service is located changes during different deployment stages; In response to a recovery instruction for a target cloud environment in any deployment phase, a target snapshot corresponding to the target cloud environment is acquired, and the target cloud environment is recovered based on the target snapshot.
2. The method according to claim 1, characterized in that In each deployment phase of deploying the target service in the cloud computing system, respectively obtaining a snapshot of the cloud environment where the target service is located includes: Acquire a first snapshot of the cloud environment where the target service is located in the first intermediate deployment stage of deploying the target service in the cloud computing system, and acquire an incremental snapshot based on the previous intermediate deployment stage in each subsequent intermediate deployment stage; After the target service is deployed, a complete snapshot of the cloud environment where the target service is located is obtained, and the first snapshot and the incremental snapshots are cleaned up.
3. The method according to claim 2, characterized in that The step of obtaining a target snapshot corresponding to the target cloud environment in response to a recovery instruction for the target cloud environment in any deployment phase includes: In the process of deploying the target service in the cloud computing system, in response to a recovery instruction for a target cloud environment in any intermediate deployment stage, obtaining the first snapshot and all incremental snapshots of intermediate deployment stages before any intermediate deployment stage, combining them to obtain a target snapshot corresponding to the target cloud environment, and recovering the target cloud environment based on the target snapshot; or In response to a recovery instruction for the target cloud environment after the target service is deployed, the complete snapshot is acquired, and the target cloud environment is recovered based on the complete snapshot.
4. The method according to claim 3, characterized in that If the target service is deployed on a virtual machine of a cloud computing system, then in each deployment phase of deploying the target service in the cloud computing system, a snapshot of the cloud environment where the target service is located is obtained, including: In each deployment stage of deploying the target service on the virtual machine, a snapshot of the cloud environment where the target service is located is obtained through an imaging tool.
5. The method according to claim 3, characterized in that: If the target service is deployed on a physical machine of a cloud computing system, then in each deployment phase of deploying the target service in the cloud computing system, a snapshot of the cloud environment where the target service is located is obtained, including: In any deployment stage of deploying the target service on the physical machine, the first operating system of the target service system disk is shut down, and the second operating system on the non-target service system disk is started. The target service system disk is used as a data disk, and a snapshot of the target service system disk is obtained through the second operating system as a snapshot of the cloud environment where the target service is located.
6. The method according to claim 5, characterized in that The target service system disk is a logical disk of a disk management tool; accordingly, taking the target service system disk as a data disk and obtaining a snapshot of the target service system disk through the second operating system includes: The target service system disk is used as a data disk, and the disk management tool is controlled by the second operating system to obtain a snapshot of the target service system disk.
7. The method according to claim 5, characterized in that The restoring the target cloud environment based on the target snapshot includes: Shut down the first operating system of the target service system disk, and start the second operating system on the non-target service system disk. Use the second operating system to restore the target cloud environment on the target service system disk according to the target snapshot. Shut down the second operating system of the non-target service system disk, and restart the first operating system on the target service system disk.
8. The method according to any one of claims 5 to 7, characterized in that: The step of shutting down the first operating system of the target service system disk and starting the second operating system on the non-target service system disk includes: The startup item of the physical machine is set to the second operating system on the non-target service system disk, and the physical machine is restarted.
9. The method according to claim 2, characterized in that: After obtaining a complete snapshot of the cloud environment where the target service is located, the method further includes: Storing the complete snapshot in a cloud environment resource pool; The obtaining of the complete snapshot in response to a recovery instruction of the target cloud environment after the target service is deployed includes: In response to a recovery instruction for the target cloud environment after the target service is deployed, the complete snapshot is obtained from the resource pool.
10. A cloud environment deployment device, characterized in that: include: A snapshot acquisition unit, used to acquire and store snapshots of the cloud environment where the target service is located in each deployment phase of the target service in the cloud computing system; One or more of the disk, operating system, application or component in the cloud environment where the target service is located changes during different deployment stages; The cloud environment recovery unit is used to respond to a recovery instruction for a target cloud environment in any deployment phase, obtain a target snapshot corresponding to the target cloud environment, and recover the target cloud environment based on the target snapshot.
11. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 9 is implemented.
13. A computer program product, characterized in that The method comprises computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Elastic storage service system
CN103731439A
Backup and restoration method for operating system based on restoration service and equipment thereof
CN104572354A
Data backup method and device for cloud native application, equipment and medium
CN115543691A
Hierarchical mirror image backup scheduling method and device based on creative cloud base
CN115658392A
Cloud infrastructure backup in a shared storage environment
US20150365478A1
