A method, device, electronic device and storage medium for cross-cloud application migration

By combining OAM application templates and image files, the issues of migration timeliness and consistency during cloud migration were resolved, enabling fast and complete cross-cloud application migration.

CN116248646BActive Publication Date: 2026-02-03CHINA UNIONPAY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211631864.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2026-02-03
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

Existing technologies cannot meet the timeliness requirements of current business needs during cloud migration, and cannot effectively guarantee the consistency and integrity of the migration.

Method used

An Open Application Model (OAM) based application template is adopted. The OAM application template is generated by obtaining the component configuration information of the target application and then transmitted to the target cloud platform. The target application is reconstructed in combination with the image file to ensure that the application's dependencies are clearly described and can be migrated quickly.

Benefits of technology

It enables rapid cross-cloud application migration, ensuring the timeliness of the migration while guaranteeing the consistency and integrity of the migrated applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116248646B_ABST
    Figure CN116248646B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic equipment and storage medium for cross-cloud application migration, wherein the method comprises: in response to a target application migration instruction, obtaining an OAM application template corresponding to the target application; the OAM application template is generated based on component configuration information of the target application; transmitting the OAM application template to a first cloud platform; the first cloud platform is configured to create the target application based on the received OAM application template. The OAM application template import / export speed is very fast, which can well meet the timeliness requirements of migration. In addition, the OAM application template can clearly describe the dependency relationship between each application component and the operation and maintenance component, which can well guarantee the consistency and integrity of the target application reconstructed by the first cloud platform.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of cloud migration, in particular, to a cross-cloud application migration method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the rapid development of information technology, cloud computing technology is becoming mature. Where there is cloud, there is cloud migration technology. Cloud migration refers to the business of helping enterprises to migrate applications and data from the local to the cloud or from one cloud platform to another. Different cloud platforms often use different technical architectures.

[0003] Taking the migration of a target application from cloud platform A to cloud platform B as an example, a cloud migration scheme is provided in the related art, which reconstructs the application service of cloud platform A on cloud platform B. This scheme needs to completely copy the data of cloud platform A, which makes the timeliness of migration unable to meet the needs of existing businesses. SUMMARY

[0004] The embodiments of the present disclosure at least provide a cross-cloud application migration method, device, electronic equipment and storage medium, which can quickly realize cross-cloud application migration while further ensuring the consistency and integrity of migration.

[0005] In a first aspect, the embodiments of the present disclosure provide a cross-cloud application migration method, comprising:

[0006] In response to a target application migration instruction, an OAM application template corresponding to the target application is obtained; the OAM application template is generated based on component configuration information of the target application;

[0007] The OAM application template is transmitted to a first cloud platform; the first cloud platform is configured to create the target application based on the received OAM application template.

[0008] In a possible implementation, the OAM application template is transmitted to the first cloud platform, comprising:

[0009] In response to a target application migration instruction, it is determined whether the first cloud platform has a mirror file of the target application;

[0010] Based on the determination result, the OAM application template is transmitted to the first cloud platform.

[0011] In a possible implementation, the OAM application template is transmitted to the first cloud platform based on the determination result, comprising:

[0012] If it is determined that the image file of the target application exists on the first cloud platform, only the OAM application template is transmitted to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application; or...

[0013] If it is determined that the image file of the target application does not exist on the first cloud platform, the image file of the target application is obtained; the OAM application template and the image file of the target application are transmitted together to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application.

[0014] In one possible implementation, transmitting the OAM application template to the first cloud platform includes:

[0015] In response to a target application migration command, obtain the image file of the target application;

[0016] The OAM application template and the image file of the target application are transmitted together to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application.

[0017] In one possible implementation, the image file of the target application is obtained in the following manner:

[0018] Obtain the image file of the target application from the local machine;

[0019] Obtain the image file of the target application from a pre-built image repository.

[0020] In one possible implementation, obtaining the image file of the target application from a pre-built image repository includes:

[0021] Read the target image information from the OAM application template;

[0022] Based on the target image information, search for image files that match the target application from a pre-built image repository.

[0023] In one possible implementation, the image repository is used to transfer the image file of the target application to the first cloud platform in response to a target application migration instruction.

[0024] In one possible implementation, the image repository is used to receive image files uploaded from multiple cloud platforms, and to send image files to multiple cloud platforms.

[0025] In one possible implementation, the component configuration information of the target application includes at least the following information:

[0026] Component application information, component operation and maintenance information, and topology relationship information between components.

[0027] Secondly, this disclosure also provides a method for cross-cloud application migration, including:

[0028] Obtain the OAM application template sent by the target cloud platform; the OAM application template is generated based on the component configuration information of the target application;

[0029] The target application is created based on the OAM application template.

[0030] In one possible implementation, creating the target application based on the OAM application template includes:

[0031] Obtain the image file of the target application;

[0032] The target application is created based on the OAM application template and the image file of the target application.

[0033] In one possible implementation, the image file of the target application is obtained in the following manner:

[0034] Obtain the image file of the target application from the local machine;

[0035] Obtain the image file of the target application from a pre-built image repository;

[0036] Receive the image file of the target application sent by the target cloud platform.

[0037] In one possible implementation, creating the target application based on the OAM application template and the target application's image file includes:

[0038] Extract relevant application information from the image file of the target application according to the OAM application template;

[0039] The target application is created based on the application information.

[0040] Thirdly, this disclosure also provides an apparatus for cross-cloud application migration, comprising:

[0041] The acquisition module is used to acquire the OAM application template corresponding to the target application in response to the target application migration instruction; the OAM application template is generated based on the component configuration information of the target application.

[0042] The migration module is used to transmit the OAM application template to the first cloud platform; the first cloud platform is used to create the target application based on the received OAM application template.

[0043] Fourthly, this disclosure also provides an apparatus for cross-cloud application migration, comprising:

[0044] The acquisition module is used to acquire the OAM application template sent by the target cloud platform; the OAM application template is generated based on the component configuration information of the target application.

[0045] A module is created to create the target application based on the OAM application template.

[0046] Fifthly, this disclosure also provides an electronic device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, a method for cross-cloud application migration as described in any one of the first aspect and its various embodiments, the second aspect and its various embodiments is performed.

[0047] In a sixth aspect, this disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs a method for cross-cloud application migration as described in any one of the first aspect and its various embodiments, and the second aspect and its various embodiments.

[0048] Using the aforementioned method, apparatus, electronic devices, and storage media for cross-cloud application migration, in response to a target application migration command, a pre-generated OAM application template for the target application can be obtained. This OAM application template is then transferred to the first cloud platform to be migrated. The first cloud platform can then reconstruct the target application based on the OAM application template. The OAM application template import and export speed is very fast, effectively meeting the timeliness requirements of migration. Furthermore, the OAM application template clearly describes the dependencies between various application components and operational components, ensuring the consistency and integrity of the target application reconstructed by the first cloud platform.

[0049] Other advantages of this disclosure will be explained in more detail below with reference to the accompanying drawings.

[0050] It should be understood that the above description is merely an overview of the technical solution of this disclosure, so as to enable a clearer understanding of the technical means of this disclosure, and thus enable its implementation in accordance with the contents of the specification. To make the above and other objects, features, and advantages of this disclosure more apparent and understandable, specific embodiments of this disclosure are illustrated below. Attached Figure Description

[0051] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to this disclosure and, together with the specification, serve to explain the technical solutions of this disclosure. It should be understood that the following drawings only show some embodiments of this disclosure and should not be considered as limiting the scope. Those skilled in the art can obtain other related drawings based on these drawings without creative effort. Furthermore, the same reference numerals denote the same components throughout the drawings. In the drawings:

[0052] Figure 1 A flowchart illustrating a method for cross-cloud application migration provided by an embodiment of this disclosure is shown;

[0053] Figure 2 This illustration shows an application diagram of a cross-cloud application migration method provided in an embodiment of the present disclosure;

[0054] Figure 3 The flowchart illustrates a specific method for exporting image media in the cross-cloud application migration method provided in this embodiment of the present disclosure.

[0055] Figure 4 The flowchart illustrates a specific method for importing image media in the cross-cloud application migration method provided in this embodiment of the present disclosure.

[0056] Figure 5 A flowchart illustrating another method for cross-cloud application migration provided by an embodiment of this disclosure is shown;

[0057] Figure 6 A schematic diagram of an apparatus for cross-cloud application migration provided in an embodiment of this disclosure is shown;

[0058] Figure 7 A schematic diagram of another apparatus for cross-cloud application migration provided by an embodiment of this disclosure is shown;

[0059] Figure 8 A schematic diagram of an electronic device provided in an embodiment of this disclosure is shown. Detailed Implementation

[0060] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0061] In the description of embodiments disclosed herein, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of features, numbers, steps, behaviors, components, portions or combinations thereof disclosed herein, and are not intended to exclude the possibility of the presence of one or more other features, numbers, steps, behaviors, components, portions or combinations thereof.

[0062] Unless otherwise stated, " / " means "or". For example, A / B can mean A or B. In this article, "and / or" is merely a way of describing the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.

[0063] The terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of embodiments of this disclosure, unless otherwise stated, "a plurality of" means two or more.

[0064] Research has revealed a cloud migration solution for reconstructing application services of cloud platform A on cloud platform B. This solution involves creating a data file mapping relationship between the source cloud host and the target cloud host in the target distributed storage cluster of the target cloud platform; retrieving virtual machine data files from the source distributed storage cluster; and migrating the virtual machine data files to the target distributed storage cluster according to the data file mapping relationship to establish the target cloud host cluster.

[0065] It must be acknowledged that the above solutions can achieve automated cross-cloud application scaling and migration to some extent, but:

[0066] 1) Different clouds have very different implementations of computing, storage, and networking. Directly copying the physical topology required by one application to another cloud may cause problems.

[0067] 2) An application often contains complex sequential dependencies. The above method only provides the final runtime environment of the application, but cannot reflect the dependencies of the application.

[0068] 3) This solution requires the collection of all environmental information, which is extremely complex in production. It needs to collect everything from the configuration information of all virtual machines to a single kernel parameter, which can result in a very long processing time.

[0069] To at least partially address one or more of the aforementioned problems and other potential issues, this disclosure provides at least one cross-cloud application migration solution based on the Open Application Model (OAM). OAM is a standard specification focused on describing applications. With this specification, application descriptions can be completely separated from the details of infrastructure deployment and application management. This solution draws on this characteristic of OAM and designs a standardized application import and export mechanism that can save applications as a medium that is easy to transmit and manage, making application migration more convenient and stable.

[0070] To facilitate understanding of this embodiment, a method for cross-cloud application migration disclosed in this disclosure will first be described in detail. The execution subject of the cross-cloud application migration method provided in this disclosure is generally an electronic device with certain computing power. This electronic device may include, for example, a terminal device, a server, or other processing devices. The terminal device may be a user equipment (UE), a mobile device, a cellular phone, an in-vehicle device, a wearable device, etc.

[0071] In practical applications, considering that the cross-cloud application migration method provided in this disclosure adopts a specific implementation based on the OAM application template, the above method can be implemented based on a separate OAM controller. The following examples will primarily use the OAM controller as the execution entity. Furthermore, in some possible implementations, this cross-cloud application migration method can be implemented by the processor calling computer-readable instructions stored in memory.

[0072] See Figure 1 The diagram shows a flowchart of a cross-cloud application migration method provided in this embodiment of the disclosure. The execution entity of this method can be the OAM controller of this platform. The method includes steps S101 to S102, wherein:

[0073] S101: In response to the target application migration command, obtain the OAM application template corresponding to the target application; the OAM application template is generated based on the component configuration information of the target application;

[0074] S102: Transmit the OAM application template to the first cloud platform; the first cloud platform is used to create the target application based on the received OAM application template.

[0075] To facilitate understanding of the cross-cloud application migration method provided in this disclosure, the application scenarios of the method will be described in detail below. The cross-cloud application migration method provided in this disclosure can be applied to various application scenarios that require cloud migration. For example, it can be migrating an application from a local machine to a cloud platform, or migrating from one platform to another. The migration here mainly refers to the migration of application services and application data. The target application can be any application that needs to be migrated, such as Weibo, UnionPay, etc., without specific limitations.

[0076] Among them, the target application migration instruction can be generated for the target application. In actual application, it can be automatically generated when the platform resources cannot meet the needs of the target application, or it can be initiated by the first cloud platform to which it is to be migrated, or it can be generated under other circumstances. There are no specific restrictions here.

[0077] If a cross-cloud application migration is determined to be necessary, the first step is to obtain the OAM application template corresponding to the target application. Then, the OAM application template is transferred to the first cloud platform. The first cloud platform can be a cloud platform automatically selected based on the need for elastic scaling, or a cloud platform targeted based on specific cloud migration requirements; no specific restrictions are imposed here.

[0078] Upon receiving an OAM application template, the aforementioned first cloud platform can rebuild the target application based on the OAM application template. In the process of rebuilding the target application, in addition to the OAM application template, an image file of the target application is also required. This image file can be obtained locally (i.e., from the first cloud platform), from a pre-built image repository, or received from another cloud platform.

[0079] Regardless of which method the image file is obtained in, the First Cloud Platform can extract relevant application information from the target application's image file according to the OAM application template, and then create the target application based on the application information.

[0080] The OAM application template here is generated based on the component configuration information of the target application. This is mainly because the target application is pre-deployed based on OAM, that is, the target application can be built with the help of the OAM tool.

[0081] OAM, as an application description specification, is based on the core concept of application-centricity. It emphasizes that development and operations should collaborate around a set of declarative, flexible, and extensible upper-level abstractions (YAML files written according to the OAM specification), rather than directly using complex and obscure infrastructure layer application programming interfaces (APIs). After the YAML files written according to the OAM specification are submitted to Kubernetes, the OAM plugin will automatically translate them into complete Deployment and HPA objects to actually run.

[0082] In summary, the target application and the OAM application template are highly correlated. In this embodiment, the target application can be saved as an application template. The OAM controller can package the application information, operation and maintenance information, and topology relationship information between multiple components into an application template.

[0083] During the actual reconstruction of the target application on the First Cloud Platform, in addition to the OAM application template, the image file of the target application is also required. The image file can be owned by the First Cloud Platform itself, received from other cloud platforms, or obtained from an image repository that connects to multiple platforms.

[0084] Here, if it is determined that the target application needs to be migrated, we can first determine whether the target application image file exists on the first cloud platform, and then transfer the OAM application template to the first cloud platform based on the determination result.

[0085] Here, if it is determined that the image file of the target application exists on the first cloud platform, only the OAM application template is transmitted to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application; or, if it is determined that the image file of the target application does not exist on the first cloud platform, the image file of the target application is obtained; the OAM application template and the image file of the target application are transmitted together to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application.

[0086] In practical applications, the existence of the target application's image file on the first cloud platform can be determined based on a single communication between the OAM controller of this platform and the first cloud platform. For example, the target application's identification information can be sent to the first cloud platform. If the first cloud platform finds the target application's image file based on the identification information, it will send feedback to this platform. In this case, if this platform confirms that the target application needs to be migrated, it only needs to transfer the OAM application template to the first cloud platform. If the first cloud platform does not find the target application's image file based on the identification information, it will also send feedback to this platform. At this time, this platform can directly obtain the target application's image file from its local machine, or it can first obtain the target application's image file from a pre-built image repository, and then transfer the OAM application template and the target application's image file together to the first cloud platform.

[0087] In addition, the OAM controller of this platform can also trigger the automatic transfer of image files from the image repository to the First Cloud Platform, without specific restrictions.

[0088] It should be noted that in this embodiment of the disclosure, no judgment is required. That is, regardless of whether the first cloud platform has an image file of the target application, the image file of the target application can be obtained directly from this platform or the image repository, and the OAM application template can be transmitted to the first cloud platform together with the image file.

[0089] In practical applications, due to limitations in transmission bandwidth, if it is determined that an image file exists on the first cloud platform, it is best not to transmit the relevant image file on this platform in order to further improve the timeliness of the migration.

[0090] The image repository in this embodiment serves as a repository platform that interfaces with multiple platforms. It can receive image files uploaded from multiple cloud platforms and send image files to multiple cloud platforms. In practical applications, the functionality of the image repository can be determined based on the needs of various applications. For example, image files of different versions of the same application can be periodically cleaned up; no specific limitations are imposed here.

[0091] In the process of obtaining the image file of the target application from the image repository, the target image information can first be read from the OAM application template, and then the image file matching the target application can be found from the pre-built image repository based on the target image information.

[0092] To facilitate a further understanding of the cross-cloud application migration method provided in the embodiments of this disclosure, the following can be combined with... Figures 2-4 Further examples will be provided.

[0093] like Figure 2As shown, this involves two different Kubernetes clusters. An application, originally deployed on a public cloud platform, now needs to be migrated to a private cloud platform or undergo cross-cloud elastic scaling.

[0094] The following will demonstrate the process of migrating the application to a private cloud platform, such as... Figure 3 As shown.

[0095] Step 1: Save the target application as an application template. The OAM controller packages the application information, operation and maintenance information and topology relationship information between multiple components into an application template.

[0096] Step 2: Export the application template as an image. The OAM controller will then pull the corresponding image from the image repository and package it into an image medium, along with the application template and the image information read from the application template.

[0097] Step 3: The OAM controller pushes the image media to the image repository;

[0098] Step 4: The image repository pushes the image media to the private cloud platform (i.e., the first cloud platform).

[0099] It is known that in practical applications, the OAM application template and the target application image file can be packaged into an image medium and then transmitted to the first cloud platform.

[0100] In this way, the OAM controller of the production cloud platform can export application templates from the image media and create applications from the templates, such as... Figure 4 As shown.

[0101] See Figure 5 The diagram shows a flowchart of a cross-cloud application migration method provided in this embodiment. The execution entity of this method can be the OAM controller of the cloud platform to be migrated. The method includes steps S501 to S502, wherein:

[0102] S501: Obtain the OAM application template sent by the target cloud platform; the OAM application template is generated based on the component configuration information of the target application;

[0103] S502: Create a target application based on the OAM application template.

[0104] Here, if an OAM application template is obtained, a target application can be created based on the OAM application template. Alternatively, if an image file of the target application is obtained, the target application can be reconstructed along with the OAM application template. For the specific creation process, please refer to the description in the above embodiments, which will not be repeated here.

[0105] For information on obtaining the image file, please refer to the description in the above embodiments, which will not be repeated here.

[0106] In the description of this specification, the references to terms such as "some possible implementations," "some implementations," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that implementation or example is included in at least one implementation or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same implementation or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more implementations or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different implementations or examples described in this specification, as well as the features of different implementations or examples.

[0107] Regarding the method flowcharts of embodiments of this disclosure, certain operations are described as different steps performed in a certain order. Such flowcharts are illustrative and not restrictive. Some steps described herein may be grouped together and performed in a single operation, some steps may be divided into multiple sub-steps, and some steps may be performed in an order different from that shown herein. The various steps shown in the flowcharts may be implemented in any way by any circuit structure and / or tangible mechanism (e.g., software running on a computer device, hardware (e.g., logic functions implemented by a processor or chip), and / or any combination thereof).

[0108] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0109] Based on the same inventive concept, this disclosure also provides a cross-cloud application migration apparatus corresponding to the cross-cloud application migration method. Since the principle of the apparatus in this disclosure for solving the problem is similar to the cross-cloud application migration method described above in this disclosure, the implementation of the apparatus can refer to the implementation of the method, and the repeated parts will not be described again.

[0110] Reference Figure 6 The diagram shown is a schematic of an apparatus for cross-cloud application migration provided in an embodiment of this disclosure. The apparatus includes: an acquisition module 601 and a migration module 602; wherein,

[0111] The acquisition module 601 is used to obtain the OAM application template corresponding to the target application in response to the target application migration instruction; the OAM application template is generated based on the component configuration information of the target application.

[0112] Migration module 602 is used to transfer the OAM application template to the first cloud platform; the first cloud platform is used to create the target application based on the received OAM application template.

[0113] The aforementioned cross-cloud application migration device, in response to a target application migration command, can obtain a pre-generated OAM application template for the target application. This OAM application template is then transmitted to the first cloud platform to be migrated. The first cloud platform can then reconstruct the target application based on the OAM application template. The OAM application template import and export speed is very fast, effectively meeting the timeliness requirements of migration. Furthermore, the OAM application template clearly describes the dependencies between various application components and operational components, ensuring the consistency and integrity of the target application reconstructed by the first cloud platform.

[0114] In one possible implementation, migration module 602 is used to transfer the OAM application template to the first cloud platform according to the following steps:

[0115] In response to the target application migration command, determine whether the target application image file exists on the first cloud platform;

[0116] Based on the judgment results, the OAM application template is transmitted to the first cloud platform.

[0117] In one possible implementation, migration module 602 is configured to transfer the OAM application template to the first cloud platform based on the judgment result, according to the following steps:

[0118] If it is determined that the target application's image file exists on the first cloud platform, only the OAM application template is transferred to the first cloud platform; the first cloud platform is then used to create the target application based on the OAM application template and the target application's image file; or,

[0119] If it is determined that the image file of the target application does not exist on the first cloud platform, the image file of the target application is obtained; the OAM application template and the image file of the target application are transferred to the first cloud platform together; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application.

[0120] In one possible implementation, migration module 602 is used to transfer the OAM application template to the first cloud platform according to the following steps:

[0121] In response to the target application migration command, obtain the image file of the target application;

[0122] The OAM application template and the target application's image file are transferred together to the First Cloud Platform; the First Cloud Platform is used to create the target application based on the OAM application template and the target application's image file.

[0123] In one possible implementation, the acquisition module 601 is configured to acquire the image file of the target application in one of the following ways:

[0124] Obtain the image file of the target application from the local machine;

[0125] Obtain the image file of the target application from a pre-built image repository.

[0126] In one possible implementation, the acquisition module 601 is configured to acquire the image file of the target application from a pre-built image repository according to the following steps:

[0127] Read target image information from the OAM application template;

[0128] Based on the target image information, search for image files that match the target application from a pre-built image repository.

[0129] In one possible implementation, the image repository is used to transfer the image file of the target application to the first cloud platform in response to a target application migration instruction.

[0130] In one possible implementation, the image repository is used to receive image files uploaded from multiple cloud platforms, and to send image files to multiple cloud platforms.

[0131] In one possible implementation, the component configuration information of the target application includes at least the following information:

[0132] Component application information, component operation and maintenance information, and topology relationship information between components.

[0133] Reference Figure 7 The diagram shown is a schematic of an apparatus for cross-cloud application migration provided in an embodiment of this disclosure. The apparatus includes: an acquisition module 701 and a creation module 702; wherein,

[0134] The acquisition module 701 is used to acquire the OAM application template sent by the target cloud platform; the OAM application template is generated based on the component configuration information of the target application.

[0135] Create module 702, which is used to create target applications based on OAM application templates.

[0136] In one possible implementation, creation module 702 is used to create a target application based on an OAM application template according to the following steps:

[0137] Obtain the image file of the target application;

[0138] Create the target application based on the OAM application template and the target application's image file.

[0139] In one possible implementation, the acquisition module 701 is configured to acquire the image file of the target application in one of the following ways:

[0140] Obtain the image file of the target application from the local machine;

[0141] Obtain the image file of the target application from a pre-built image repository;

[0142] Receive the image file of the target application sent by the target cloud platform.

[0143] In one possible implementation, the creation module 702 is used to create the target application based on the OAM application template and the target application's image file according to the following steps:

[0144] Extract relevant application information from the target application's image file according to the OAM application template;

[0145] Create the target application based on the application information.

[0146] It should be noted that the apparatus in this embodiment can implement the various processes of the aforementioned method and achieve the same effects and functions, which will not be elaborated here.

[0147] This disclosure also provides an electronic device, such as... Figure 8 The diagram shown is a schematic representation of an electronic device structure provided in this embodiment of the present disclosure, including: a processor 801, a memory 802, and a bus 803. The memory 802 stores machine-readable instructions executable by the processor 801 (e.g., ...). Figure 6 The device obtains the execution instructions corresponding to module 601 and migration module 602; for example, Figure 7 In the device, the processor 801 obtains the corresponding execution instructions of the module 701 and creates the corresponding execution instructions of the module 702. When the electronic device is running, the processor 801 and the memory 802 communicate via the bus 803. When machine-readable instructions are executed by the processor 801, they are executed as follows: Figure 1 or Figure 5 The steps of the cross-cloud application migration method are shown.

[0148] This disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the cross-cloud application migration method described in the above-described method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0149] This disclosure also provides a computer program product carrying program code. The program code includes instructions that can be used to execute the steps of the cross-cloud application migration method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.

[0150] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.

[0151] The various embodiments in this disclosure are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on its differences from other embodiments. In particular, the descriptions of the apparatus, device, and computer-readable storage medium embodiments are simplified because they are substantially similar to the method embodiments; relevant details can be found in the descriptions of the method embodiments.

[0152] The apparatus, device, and computer-readable storage medium provided in this disclosure correspond one-to-one with the method. Therefore, the apparatus, device, and computer-readable storage medium also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the apparatus, device, and computer-readable storage medium will not be repeated here.

[0153] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, apparatus (devices or systems), or computer-readable storage media. Therefore, this disclosure can take the form of a completely hardware implementation, a completely software implementation, or an implementation combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer-readable storage medium implemented on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-readable program code.

[0154] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices or systems), and computer-readable storage media according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0155] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0156] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0157] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0158] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0159] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device. Furthermore, although the operations of the methods of this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0160] While the spirit and principles of this disclosure have been described with reference to several specific embodiments, it should be understood that this disclosure is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for convenience of expression. This disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims

1. A method for migrating cross-cloud applications, characterized in that, include: In response to the target application migration command, obtain the OAM application template corresponding to the target application; The OAM application template is generated based on the component configuration information of the target application. The component configuration information includes at least component application information, component operation and maintenance information, and topology relationship information between components. The OAM application template describes the dependency relationship between application components and operation and maintenance components. The OAM application template is transmitted to the first cloud platform; the first cloud platform is used to create the target application based on the received OAM application template, and the created target application has consistency and integrity with the original target application; The step of transmitting the OAM application template to the first cloud platform includes: In response to the target application migration command, determine whether the first cloud platform has an image file of the target application; If it is determined that the image file of the target application exists on the first cloud platform, only the OAM application template is transmitted to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application.

2. The method according to claim 1, characterized in that, The step of transmitting the OAM application template to the first cloud platform also includes: If it is determined that the image file of the target application does not exist on the first cloud platform, the image file of the target application is obtained; the OAM application template and the image file of the target application are transmitted together to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application.

3. The method according to claim 1, characterized in that, The step of transmitting the OAM application template to the first cloud platform includes: In response to a target application migration command, obtain the image file of the target application; The OAM application template and the image file of the target application are transmitted together to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application.

4. The method according to claim 2 or 3, characterized in that, Obtain the image file of the target application using one of the following methods: Obtain the image file of the target application from the local machine; Obtain the image file of the target application from a pre-built image repository.

5. The method according to claim 4, characterized in that, The step of obtaining the target application's image file from a pre-built image repository includes: Read the target image information from the OAM application template; Based on the target image information, search for image files that match the target application from a pre-built image repository.

6. The method according to claim 4, characterized in that, The image repository is used to transfer the image file of the target application to the first cloud platform in response to the target application migration command.

7. The method according to claim 4, characterized in that, The image repository is used to receive image files uploaded from multiple cloud platforms, and to send image files to multiple cloud platforms.

8. A method for migrating cross-cloud applications, characterized in that, include: If it is determined that the target application image file exists on the first cloud platform, only the OAM application template sent by the target cloud platform is obtained; The OAM application template is generated based on the component configuration information of the target application. The component configuration information includes at least component application information, component operation and maintenance information, and topology relationship information between components. The OAM application template describes the dependency relationship between application components and operation and maintenance components. The target application is created based on the OAM application template, and the created target application has consistency and integrity with the original target application. The target application is created based on the OAM application template and the image file of the target application that exists on the first cloud platform itself.

9. The method according to claim 8, characterized in that, Creating the target application based on the OAM application template includes: Obtain the image file of the target application; The target application is created based on the OAM application template and the image file of the target application.

10. The method according to claim 9, characterized in that, Obtain the image file of the target application using one of the following methods: Obtain the image file of the target application from the local machine; Obtain the image file of the target application from a pre-built image repository; Receive the image file of the target application sent by the target cloud platform.

11. The method according to claim 9 or 10, characterized in that, Creating the target application based on the OAM application template and the target application's image file includes: Extract relevant application information from the image file of the target application according to the OAM application template; The target application is created based on the application information.

12. An apparatus for cross-cloud application migration, characterized in that, include: The acquisition module is used to obtain the OAM application template corresponding to the target application in response to the target application migration command; The OAM application template is generated based on the component configuration information of the target application. The component configuration information includes at least component application information, component operation and maintenance information, and topology relationship information between components. The OAM application template describes the dependency relationship between application components and operation and maintenance components. The migration module is used to transmit the OAM application template to the first cloud platform; the first cloud platform is used to create the target application based on the received OAM application template, and the created target application has consistency and integrity with the original target application; The migration module is specifically used for: In response to the target application migration command, determine whether the first cloud platform has an image file of the target application; If it is determined that the image file of the target application exists on the first cloud platform, only the OAM application template is transmitted to the first cloud platform; the first cloud platform is used to create the target application based on the OAM application template and the image file of the target application.

13. An apparatus for cross-cloud application migration, characterized in that, include: The acquisition module is used to acquire only the OAM application template sent by the target cloud platform if it is determined that the image file of the target application exists on the first cloud platform. The OAM application template is generated based on the component configuration information of the target application. The component configuration information includes at least component application information, component operation and maintenance information, and topology relationship information between components. The OAM application template describes the dependency relationship between application components and operation and maintenance components. A creation module is used to create the target application based on the OAM application template, and the created target application has consistency and integrity with the original target application. The target application is created based on the OAM application template and the image file of the target application existing on the first cloud platform itself.

14. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and the machine-readable instructions, when executed by the processor, perform the method for cross-cloud application migration as described in any one of claims 1 to 11.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the method of cross-cloud application migration as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Cross-virtual platform virtual machine migration method and apparatus

    CN107656797A

  • Method and system for migrating applications and computer readable medium thereof

    CN112181488A