Private mirror image copying method and device for cross-cloud region, equipment and storage medium

By interacting with the central site, the image replication request information is obtained and processed, the private image is pulled from the source cloud area to the central site, and distributed to the target cloud area, solving the problem of cumbersome and low security of the private image replication process across the cloud area, and achieving efficient and secure image replication and cloud architecture expansion.

CN119537091APending Publication Date: 2025-02-28CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311108278.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The process of private mirror replication across cloud regions in the prior art is cumbersome, with security issues and inefficiency issues.

Method used

By obtaining the image copy request information, pull the target private image into the central site and modify its status. If successfully pulled, issue a distribution command to the central site, and copy the image to the target cloud area based on the area information of the target cloud area.

Benefits of technology

It has achieved simplification of private mirror replication across cloud regions, improved information security and efficiency, reduced pressure on infrastructure services, reduced deployment costs and workload, and is conducive to the expansion of cloud architecture and the availability of cloud services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537091A_ABST
    Figure CN119537091A_ABST
Patent Text Reader

Abstract

The invention provides a private mirror image copying method and device for a cross-cloud region, equipment and a storage medium, and relates to the technical field of cloud computing. The method comprises the following steps: acquiring mirror image copying request information; the mirror image copying request information comprises mirror image information of a target private mirror image and area information of a target cloud area; according to the mirror image copying request information, pulling the target private mirror image into the central site, and modifying the state of the target private mirror image; if it is determined that the target private mirror image is successfully pulled, issuing a distribution instruction to the central site; the distribution instruction is used for indicating the central site to copy the target private mirror image into the target cloud region based on the region information of the target cloud region. By means of interaction with the central site, the function of copying the private mirror image in the cross-cloud area is achieved, one-time system deployment is achieved, the pressure of infrastructure service is relieved, the cost and workload of infrastructure service deployment are reduced, expansion of the cloud architecture is facilitated, and the availability of infrastructure service is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing technology, and in particular to a method, device, equipment and storage medium for copying a private image across cloud regions. Background Art

[0002] Mirroring is a technology used for business continuity, disaster recovery and backup. The contents of the mirror can be systems, CDs, software, websites and even servers. In order to meet customer needs, it is often necessary to copy the mirror in one cloud area to another cloud area for use.

[0003] In the prior art, technicians mainly focus on the implementation of cross-platform image replication, but pay little attention to the simplification of the infrastructure and the embodiment of scalability in image replication. At present, users mainly download the image on the source cloud area and then upload it to the target cloud area to achieve image replication, which is extremely cumbersome. In particular, there are security issues and low efficiency in cross-cloud private image replication.

[0004] Therefore, a private image replication method across cloud regions is urgently needed to solve the above problems. Summary of the invention

[0005] The present application provides a method, apparatus, device and storage medium for copying a private image across cloud regions, which are used to solve technical problems such as how to simplify the process of copying a private image across cloud regions and how to improve information security in image copying.

[0006] In a first aspect, the present application provides a method for replicating a private image across cloud regions, the method comprising:

[0007] Obtaining image copy request information; wherein the image copy request information includes image information of the target private image and region information of the target cloud region;

[0008] Pull the target private image to the central site according to the image copy request information, and modify the state of the target private image;

[0009] If it is determined that the target private image is pulled successfully, a distribution instruction is sent to the central site; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud area based on the area information of the target cloud area.

[0010] Optionally, in the method as described above, pulling the target private image to the central site according to the image copy request information includes:

[0011] Parsing the image copy request information to determine the image information of the target private image and the region information of the target cloud region;

[0012] Based on the image information of the target private image, determine the original cloud area of ​​the target private image; wherein the original cloud area is the cloud area where the target private image is stored;

[0013] Send a pull instruction to the central site; wherein the pull instruction is used to instruct the central site to pull the target private image from the original cloud area to the central site.

[0014] Optionally, in the above method, before sending the pull instruction to the central site, the method further includes:

[0015] Based on preset permission rule information, determine whether the target private image stored in the original cloud area can be copied to the target cloud area; wherein the preset permission rule information is used to characterize whether the target private image stored in the original cloud area can be copied to the target cloud area.

[0016] Optionally, in the above method, after determining that the target private image stored in the original cloud area can be copied to the target cloud area, the method further includes:

[0017] The target private image is encrypted so that the target private image is in an encrypted state.

[0018] Optionally, in the method as described above, if it is determined that the target private image is pulled successfully, the process includes:

[0019] If it is determined based on the scheduled monitoring task that the target private image exists in the central site, it is determined that the target private image is pulled successfully; wherein the scheduled monitoring task is a task for regularly monitoring the execution status of the image copy request information.

[0020] Optionally, the method as described above further comprises:

[0021] If it is determined that the target private image is copied successfully, the target private image is deleted from the central site, and the state of the target private image is restored.

[0022] Optionally, the method as described above further comprises:

[0023] Each step information of executing the image copy request information is recorded in a preset relational database. If it is determined that an abnormality occurs in the process of executing the image copy request information, a prompt information is sent to relevant personnel; wherein the prompt information is used to prompt the relevant personnel about the image copy abnormality.

[0024] In a second aspect, the present application provides a cross-cloud region private image replication device, the device comprising:

[0025] An acquisition unit, configured to acquire image copy request information; wherein the image copy request information includes image information of a target private image and region information of a target cloud region;

[0026] A pulling unit, configured to pull the target private image to a central site according to the image copy request information, and to modify the state of the target private image;

[0027] A copying unit is used to send a distribution instruction to the central site if it is determined that the target private image is pulled successfully; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud area based on the area information of the target cloud area.

[0028] In a third aspect, the present application provides an electronic device, the electronic device comprising: a processor, and a memory communicatively connected to the processor;

[0029] The memory stores computer-executable instructions;

[0030] The processor executes the computer-executable instructions stored in the memory to implement any of the methods described above.

[0031] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement any of the methods described above.

[0032] In a fifth aspect, the present application provides a computer program product, including a computer program, which is used to implement the method as described above when executed by a processor.

[0033] The method, device, equipment and storage medium for cross-cloud region private image replication provided by the present application include: obtaining image replication request information; wherein the image replication request information includes the image information of the target private image and the region information of the target cloud region; according to the image replication request information, the target private image is pulled to the central site, and the state of the target private image is modified; if it is determined that the pull of the target private image is successful, a distribution instruction is issued to the central site; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud region based on the region information of the target cloud region. The solution of the present application realizes the function of cross-cloud region private image replication by interacting with the central site, realizes one-time system deployment, reduces the pressure on infrastructure services, and also reduces the cost and workload of infrastructure service deployment, which is conducive to the expansion of cloud architecture and increases the availability of basic services. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0035] Figure 1 A schematic diagram of an infrastructure as a service architecture provided for an embodiment of the present application;

[0036] Figure 2 A flowchart of a private image replication method across cloud regions provided in an embodiment of the present application;

[0037] Figure 3 A logical schematic diagram of an orchestration system implementing mirror replication provided in an embodiment of the present application;

[0038] Figure 4 A schematic diagram of the structure of a private image replication device across cloud regions provided in an embodiment of the present application;

[0039] Figure 5 A schematic diagram of the structure of another cross-cloud region private image replication device provided in an embodiment of the present application;

[0040] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0041] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0043] A cloud image is a copy of server data created in the cloud, mainly used to create fault-tolerant and redundant server computing infrastructure. In cloud computing, an image is a regional resource, and a private image belongs to the region where it is created. If you need to use a private image in another region, you can use the cross-region image replication function to achieve this.

[0044] However, cloud computing basic services need to be deployed separately on servers, which is often complex and difficult. In particular, most existing technologies only focus on the implementation of cross-platform image replication, and rarely focus on the simplification of the infrastructure and the embodiment of scalability. At present, users mainly download the image from the source cloud area and then upload it to the target cloud area to achieve image replication, which is extremely cumbersome.

[0045] For example, Figure 1 The following is a schematic diagram of an infrastructure as a service architecture provided by an embodiment of the present application. Figure 1 As shown in FIG. 1 , the central site of the Infrastructure as a Service (IAAS) architecture is connected to cloud regions A to E through switches. Figure 1 In the IaaS architecture shown, how to implement cross-cloud region private image replication while avoiding infrastructure complexity and solving problems such as inconvenience in expansion is a problem to be solved in cross-cloud region private image replication.

[0046] In order to solve the above problems, the present application provides a method for copying private images across cloud regions. Based on the existing IAAS infrastructure, the image copying across cloud regions is realized through the interaction between the orchestration system and the central site. Specifically, the orchestration system pulls the private image to the central site and modifies the status of the private image. When it is determined that the pull is complete, the orchestration system issues a distribution instruction to instruct the central site to copy the private image to the target area, thereby completing the copying of the private image. The present application implements the function of copying private images across cloud regions, realizes one-time system deployment, reduces the pressure on infrastructure services, reduces the cost and workload of infrastructure service deployment, and is conducive to the expansion of cloud architecture and the availability of cloud services.

[0047] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0048] Figure 2 A flowchart of a private image replication method across cloud regions provided for an embodiment of the present application. The execution subject of the embodiment of the present application may be a private image replication device across cloud regions, and the private image replication device across cloud regions may be located on an electronic device, and the electronic device may be a mobile terminal, such as a mobile phone, a tablet, a computer, etc., which is not limited by the present application. In the present application, the private image replication device across cloud regions may also be used as an orchestration system or a part of an orchestration system, and the image replication across cloud regions is realized by interacting with the orchestration system and the central site. The embodiment of the present application is described in detail by taking the execution subject as an orchestration system as an example.

[0049] like Figure 2 As shown, the cross-cloud region private image replication method provided by this embodiment includes:

[0050] S201. Obtain image copy request information; wherein the image copy request information includes image information of a target private image and region information of a target cloud region.

[0051] Exemplarily, when copying a private image across cloud regions, the orchestration system first receives an image copy request message. The image copy request message should at least include the image information of the target private image and the region information of the target cloud region. The original cloud region where the target private image is stored can be determined through the image information of the target private image, and the address of the destination to which the target private image will be copied can be determined through the region information of the target cloud region, and the destination is also the target cloud region.

[0052] S202: According to the image copy request information, pull the target private image to the central site, and modify the state of the target private image.

[0053] Exemplarily, after obtaining the image copy request information, the orchestration system of the present application pulls the target private image to the central site according to the image copy request information, and at the same time, modifies the status of the target private image. For example, before copying, the status of the target private image is "available", and during the process of executing the image copy, the status of the target private image is modified to "copying". The status of the target private image can also be represented by other words or symbols, which is not limited by the present application.

[0054] The present application does not limit how to pull the target private image to the central site according to the image copy request information. In one example, pulling the target private image to the central site according to the image copy request information may include:

[0055] S10: Parse the image copy request information to determine the image information of the target private image and the region information of the target cloud region.

[0056] S20. Determine the original cloud region of the target private image based on the image information of the target private image; wherein the original cloud region is the cloud region where the target private image is stored.

[0057] S30. Send a pull instruction to the central site; wherein the pull instruction is used to instruct the central site to pull the target private image from the original cloud area to the central site.

[0058] Exemplarily, the orchestration system parses the acquired image copy request information to determine the image information of the target private image and the regional information of the target cloud region; then, based on the image information of the target private image, the original cloud region of the target private image can be determined; then, the orchestration system sends a pull instruction to the central site to instruct the central site to pull the target private image from the original cloud region to the central site, so as to subsequently copy the target private image.

[0059] Among them, by issuing instructions to the central site to pull the target private image to the central site, instead of directly interacting with the cloud area under the central site, the complexity of the infrastructure can be reduced, and subsequent expansion is facilitated, thereby improving the scalability of the entire system.

[0060] For example, in some examples, before sending a pull instruction to the central site, it is also necessary to determine whether the target private image can be copied to the target cloud area to ensure the information security of the private image during the copying process. Therefore, the method of the present application may also include:

[0061] Based on preset permission rule information, determine whether the target private image stored in the original cloud area can be copied to the target cloud area; wherein the preset permission rule information is used to characterize whether the target private image stored in the original cloud area can be copied to the target cloud area.

[0062] Exemplarily, before sending a pull instruction to the central site, the orchestration system first retrieves the preset permission rule information that characterizes whether the target private image stored in the original cloud area can be copied to the target cloud area, and then determines whether the target private image stored in the original cloud area can be copied to the target cloud area based on the preset permission rule information. If it is determined that the target private image stored in the original cloud area can be copied to the target cloud area, a pull instruction is sent to the central site; if it is determined that the target private image stored in the original cloud area cannot be copied to the target cloud area, no pull instruction is sent to the central site. Among them, only when it is determined that the target private image stored in the original cloud area can be copied to the target cloud area based on the preset permission rule information, the instruction to pull the target private image from the original cloud area is sent to the central site, and the copying security of the private image is ensured by permission verification, and the private image is also ensured not to be abused.

[0063] In some examples, in order to further improve information security when copying a private image, after determining that the target private image stored in the original cloud area can be copied to the target cloud area, the following steps may also be included:

[0064] The target private image is encrypted so that the target private image is in an encrypted state.

[0065] Exemplarily, in order to ensure the information security of private images during the copying process, after determining that the target private image stored in the original cloud area can be copied to the target cloud area, the orchestration system can also encrypt the target private image to make the target private image in an encrypted state, thereby ensuring that the target private image pulled to the central site and the target private image subsequently copied to the target cloud area are both encrypted, thereby ensuring the information security of the private image copying process.

[0066] S203: If it is determined that the target private image is pulled successfully, a distribution instruction is issued to the central site; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud area based on the area information of the target cloud area.

[0067] Exemplarily, after issuing a pull instruction to the central site, the orchestration system monitors whether the target private image is pulled successfully. If the pull fails, it is determined that the private image copying has failed. If it is determined that the target private image is pulled successfully, the orchestration system further issues a distribution instruction to the central site to instruct the central site to copy the target private image to the target cloud area based on the regional information of the target cloud area, thereby completing the copying of the target private image.

[0068] In one example, determining that the target private image is successfully pulled may include:

[0069] If it is determined based on the scheduled monitoring task that the target private image exists in the central site, it is determined that the target private image is pulled successfully; wherein the scheduled monitoring task is a task for regularly monitoring the execution status of the image copy request information.

[0070] Exemplarily, in the process of executing the image copy task indicated by the image copy request information, the orchestration system is also used to periodically monitor the execution of the image copy task. If after issuing a pull instruction to the central site, based on the periodic monitoring task, it is determined that the target private image exists in the central site, it can be determined that the target private image is pulled successfully. After determining that the target private image is pulled successfully, a distribution instruction is issued to the central site to copy the target private image to the target cloud area, thereby completing the private image replication across cloud areas. If, based on the periodic monitoring task, it is determined that the pull of the target private image fails, it can be determined that the private image replication fails.

[0071] When it is determined that the private image replication fails, the status of the target private image can be modified to "replication failure" so that the user can determine the replication status of the private image through the status of the target private image.

[0072] In addition, when it is determined that the pull of the target private image fails, the central site can be set to repeat the pull instruction multiple times to pull the target private image multiple times, thereby improving the replication success rate of the target private image.

[0073] The cross-cloud region private image replication method provided by the embodiment of the present application includes: obtaining image replication request information; wherein the image replication request information includes the image information of the target private image and the region information of the target cloud region; according to the image replication request information, the target private image is pulled to the central site, and the state of the target private image is modified; if it is determined that the pull of the target private image is successful, a distribution instruction is issued to the central site; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud region based on the region information of the target cloud region. The solution of the present application realizes the function of cross-cloud region private image replication by interacting with the central site, realizes one-time system deployment, reduces the pressure on infrastructure services, and also reduces the cost and workload of infrastructure service deployment, which is conducive to the expansion of cloud architecture and increases the availability of basic services.

[0074] Based on the above embodiments, in some examples, the method of the present application may further include:

[0075] If it is determined that the target private image is successfully copied, the target private image is deleted from the central site and the state of the target private image is restored.

[0076] Exemplarily, when the central site copies the target private image to the target cloud region based on the regional information of the target cloud region, the target private image will be available in the target cloud region. When it is determined that the target private image is stored in the target cloud region, it is determined that the target private image has been successfully copied. If it is determined that the target private image has been successfully copied, the orchestration system can further delete the target private image from the central site to reduce the target private image's memory usage at the central site, and also prevent the target private image from being tampered with or leaked, thereby improving the information security of the target private image. In addition, the state of the target private image is also restored, for example, the state of the target private image is restored to "available" to facilitate the subsequent use of the target private image.

[0077] In some examples, the method of the present application may further include:

[0078] Each step of executing the image copy request information is recorded in a preset relational database. If it is determined that an abnormality occurs in the process of executing the image copy request information, a prompt message is sent to relevant personnel; wherein the prompt message is used to prompt relevant personnel about the image copy abnormality.

[0079] Exemplarily, the orchestration system may also record each step information of executing the image copy request information in a permanent preset relational database. Among them, the present application does not limit the preset relational database. For example, the preset relational database may be a MySQL database. After the orchestration system records each step information of executing the image copy request information in the preset relational database, it also performs data analysis on the recorded data. If it is determined that an abnormality occurs in the process of executing the image copy request information, a prompt message is sent to the relevant personnel to inform the relevant personnel of the image copy abnormality. The relevant personnel may include users, technicians, operation and maintenance personnel, etc., and can be set according to needs so that the relevant personnel can view and analyze the problem as soon as possible, thereby reducing the system maintenance cost and improving the efficiency of troubleshooting.

[0080] For example, Figure 3 A logical diagram of an orchestration system implementing mirror replication provided in an embodiment of the present application. Figure 3As shown, the orchestration system first obtains the image copy request information, and then pulls the target private image to the central site according to the image copy request information, and modifies the status of the target private image to "copying". Then, it is determined whether the target private image is pulled successfully. If it is determined that the pull is successful, a distribution instruction is issued to the central site to copy the target private image to the target cloud area; if it is determined that the pull fails, the copy fails, and the image status is modified to "copy failed"; after issuing the distribution instruction to the central site, it is further determined whether the target private image has been successfully copied to the target cloud area. If it is determined that the copy is successful, the target private image in the central site is deleted, and the status of the target private image is modified to "available"; if it is determined that the copy fails, the image status is modified to "copy failed". By interacting with the central site, private image replication across cloud regions is realized, and one-time system deployment is achieved, which reduces the pressure on infrastructure services, and also reduces the cost and workload of infrastructure service deployment, which is conducive to the expansion of cloud architecture.

[0081] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0082] Figure 4 A schematic diagram of the structure of a cross-cloud private image replication device provided in an embodiment of the present application. Figure 4 As shown, the cross-cloud region private image replication device 40 provided in the embodiment of the present application includes an acquisition unit 401 , a pulling unit 402 and a replication unit 403 .

[0083] The acquisition unit 401 is used to acquire image replication request information; wherein the image replication request information includes image information of the target private image and region information of the target cloud region;

[0084] The pulling unit 402 is used to pull the target private image to the central site according to the image copy request information, and modify the state of the target private image;

[0085] The copy unit 403 is used to send a distribution instruction to the central site if it is determined that the target private image is pulled successfully; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud area based on the area information of the target cloud area.

[0086] The device provided in this embodiment can be used to execute the method of the above embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.

[0087] Figure 5 A structural diagram of another cross-cloud region private image replication device provided in an embodiment of the present application. Figure 5As shown, the cross-cloud region private image replication device 50 provided in the embodiment of the present application includes an acquisition unit 501 , a pulling unit 502 and a replication unit 503 .

[0088] The acquisition unit 501 is used to acquire image replication request information; wherein the image replication request information includes image information of the target private image and regional information of the target cloud region;

[0089] The pulling unit 502 is used to pull the target private image to the central site according to the image copy request information, and modify the state of the target private image;

[0090] The copy unit 503 is used to send a distribution instruction to the central site if it is determined that the target private image is pulled successfully; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud area based on the area information of the target cloud area.

[0091] In one example, the pulling unit 502 includes a parsing module 5021 , a determining module 5022 , and a pulling module 5023 .

[0092] The parsing module 5021 is used to parse the image copy request information and determine the image information of the target private image and the region information of the target cloud region.

[0093] The determination module 5022 is used to determine the original cloud area of ​​the target private image based on the image information of the target private image; wherein the original cloud area is the cloud area where the target private image is stored.

[0094] The pull module 5023 is used to send a pull instruction to the central site; wherein the pull instruction is used to instruct the central site to pull the target private image from the original cloud area to the central site.

[0095] In one example, the pulling unit 502 also includes a permission module 5024 .

[0096] The permission module 5024 is used to determine, before sending a pull instruction to the central site, whether the target private image stored in the original cloud area can be copied to the target cloud area based on preset permission rule information; wherein the preset permission rule information is used to characterize whether the target private image stored in the original cloud area can be copied to the target cloud area.

[0097] In one example, the pulling unit 502 also includes an encryption module 5025 .

[0098] The encryption module 5025 is used to encrypt the target private image after determining that the target private image stored in the original cloud area can be copied to the target cloud area, so that the target private image is in an encrypted state.

[0099] In one example, the device 50 further includes a monitoring unit 504 .

[0100] The monitoring unit 504 is used to determine that the target private image is successfully pulled if it is determined that the target private image exists in the central site based on the scheduled monitoring task; wherein the scheduled monitoring task is a task for regularly monitoring the execution status of the image copy request information.

[0101] In one example, the device 50 further includes an editing unit 505 .

[0102] The editing unit 505 is configured to delete the target private image from the central site and restore the state of the target private image if it is determined that the target private image is copied successfully.

[0103] In one example, the device 50 further includes a record analysis unit 506 .

[0104] The record analysis unit 506 is used to record each step information of executing the image copy request information in a preset relational database, and if it is determined that the process of executing the image copy request information is abnormal, a prompt message is sent to relevant personnel; wherein the prompt message is used to prompt the relevant personnel about the image copy abnormality.

[0105] The device provided in this embodiment can be used to execute the method of the above embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.

[0106] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. In addition, it can also be stored in the memory of the above device in the form of program code, and the functions of the above data processing modules can be called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0107] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 60 includes: a processor 601, and a memory 602 communicatively connected to the processor.

[0108] The memory 602 stores computer-executable instructions; the processor 601 executes the computer-executable instructions stored in the memory 602 to implement any of the aforementioned methods.

[0109] In the specific implementation of the above electronic device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The method disclosed in the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution.

[0110] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement any of the methods described above.

[0111] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to computer instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0112] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement any of the aforementioned methods when executed by a processor.

[0113] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0114] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0115] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0116] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0117] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. If not specifically stated, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. If not specifically stated, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc.

[0118] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0119] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0120] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0121] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for replicating a private image across cloud regions, characterized in that: The method comprises: Obtaining image copy request information; wherein the image copy request information includes image information of the target private image and region information of the target cloud region; Pull the target private image to the central site according to the image copy request information, and modify the state of the target private image; If it is determined that the target private image is pulled successfully, a distribution instruction is sent to the central site; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud area based on the area information of the target cloud area.

2. The method according to claim 1, characterized in that: Pulling the target private image to the central site according to the image copy request information includes: Parsing the image copy request information to determine the image information of the target private image and the region information of the target cloud region; Based on the image information of the target private image, determine the original cloud area of ​​the target private image; wherein the original cloud area is the cloud area where the target private image is stored; Send a pull instruction to the central site; wherein the pull instruction is used to instruct the central site to pull the target private image from the original cloud area to the central site.

3. The method according to claim 2, characterized in that Before sending the pull instruction to the central site, the method further includes: Based on preset permission rule information, determine whether the target private image stored in the original cloud area can be copied to the target cloud area; wherein the preset permission rule information is used to characterize whether the target private image stored in the original cloud area can be copied to the target cloud area.

4. The method according to claim 3, characterized in that After determining that the target private image stored in the original cloud area can be copied to the target cloud area, the method further includes: The target private image is encrypted so that the target private image is in an encrypted state.

5. The method according to claim 1, characterized in that: If it is determined that the target private image is pulled successfully, it includes: If it is determined based on the scheduled monitoring task that the target private image exists in the central site, it is determined that the target private image is pulled successfully; wherein the scheduled monitoring task is a task for regularly monitoring the execution status of the image copy request information.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If it is determined that the target private image is copied successfully, the target private image is deleted from the central site, and the state of the target private image is restored.

7. The method according to claim 6, characterized in that The method further comprises: Each step information of executing the image copy request information is recorded in a preset relational database. If it is determined that an abnormality occurs in the process of executing the image copy request information, a prompt information is sent to relevant personnel; wherein the prompt information is used to prompt the relevant personnel about the image copy abnormality.

8. A private image replication device across cloud regions, characterized in that: The device comprises: An acquisition unit, configured to acquire image copy request information; wherein the image copy request information includes image information of a target private image and region information of a target cloud region; A pulling unit, configured to pull the target private image to a central site according to the image copy request information, and to modify the state of the target private image; A copying unit is used to send a distribution instruction to the central site if it is determined that the target private image is pulled successfully; wherein the distribution instruction is used to instruct the central site to copy the target private image to the target cloud area based on the area information of the target cloud area.

9. An electronic device, characterized in that: The electronic device comprises: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.