Application software continuous delivery method and system for multi-cloud scenarios

Through the continuous delivery system of application software for multi-cloud scenarios, component classes and configuration information are used to generate deployment manifests and realize automated deployment. This solves the problem of application deployment complexity and vendor lock-in in multi-cloud environments, improves deployment efficiency and flexibility, and reduces costs. User usage threshold.

CN114968273BActive Publication Date: 2024-08-23ZHEJIANG UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210706452.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2024-08-23
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

In multi-cloud scenarios, the deployment and version management of enterprise applications are complex. Especially due to the diversity of different cloud environments and application versions, existing delivery tools require a lot of manual intervention, which increases the probability of errors and the user threshold. Some cloud service provider deployment platforms have vendor lock-in issues and cannot implement multi-cloud deployment.

Method used

Provides a continuous delivery system for application software oriented to multi-cloud scenarios, including server and client. It generates a component deployment list through the instantiation and configuration information of component classes to achieve automated deployment, and performs environment configuration and resource initialization on the client. Support Application deployment in multi-cloud environments reduces manual intervention.

Benefits of technology

It achieves rapid and accurate deployment of applications in multi-cloud environments, lowers user thresholds, reduces manual operation errors, supports application deployment and version management in multi-cloud environments, solves the problem of vendor lock-in, and improves deployment efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114968273B
    Figure CN114968273B
Patent Text Reader

Abstract

The present invention discloses a method and system for continuous delivery of application software for multi-cloud scenarios, including a server and a client; the server is deployed on one side of an application delivery provider, and is used to implement instantiation of a component class included in an application based on a provided component class, and to generate a component deployment list through configuration information, and transmit the component deployment list to the client after passing a security check; the server is also used to test the instance of the component class included in the application after the client application is deployed; the client is installed in a production environment specified by the user, and is used to perform environment configuration on the received component deployment list to form an execution list, and after resource initialization of the execution list, the application is deployed by executing components on the execution list. The method and system can quickly and accurately realize continuous delivery of application function software for various cloud scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of continuous application delivery, and in particular, to a method and system for continuous application software delivery for multi-cloud scenarios. Background Art

[0002] With the development of information technology, the trend of enterprise informatization is becoming increasingly obvious. Many enterprises have gradually tended to intelligent management, that is, enterprises are moving to the cloud. Enterprise cloud refers to the whole process of enterprises using the Internet technology and cloud computing technology to connect social resources, shared platforms and work content, so as to carry out the construction of information management infrastructure, management methods, business processes and other applications. As more and more enterprises move their businesses to the cloud, the difficulty of private delivery of enterprise applications has increased exponentially. On the one hand, the cloud environment used by each enterprise is different, including public cloud, private cloud, hybrid cloud, etc., so each deployment environment needs to be configured during delivery; on the other hand, different enterprises use different applications, and there are different versions of the same application. For example, user A needs to deploy version 1.0 of application 1 and version 1.0 of application 2, while user B needs to deploy version 2.0 of application 1. In order to ensure that enterprise users can obtain a good service experience, the enterprise application delivery platform needs to efficiently complete the configuration of different environments and multi-version management, otherwise, the user's multi-cloud deployment and version upgrade needs will not be met.

[0003] In the scenario of large-scale cloud computing and cloud storage, it is unrealistic to manually manage and deploy tens of millions of virtual machines. In order to achieve efficient application deployment, many cloud resource automated deployment tools have emerged in the past decade. Their main implementation method is to use domain-specific languages ​​(DSLs) to describe the cloud resources required for deploying applications, parse the DSLs into scripting languages ​​for deploying cloud resources through a parsing engine, and use the parsed languages ​​to call the cloud service provider's API to achieve cloud resource allocation and application deployment. In the past decade, many organizations and companies have released delivery / deployment tools for cloud environments. These delivery tools abstract the application layer and reduce the differences in deployment in different cloud service environments by setting environment variables as configurable inputs, making cross-cloud deployment possible.

[0004] However, when enterprises conduct actual deployment, they often involve configuring service middleware, such as deploying the initialization database script, publishing configuration center data, or registering open platform business data. If enterprises choose to use existing delivery tools for deployment, a lot of manual intervention is required during the deployment process, such as manual database initialization. In these manual operations, command line operations are likely to be involved, which increases the probability of error and raises the user's usage threshold. Therefore, there is an urgent need to develop a delivery tool that achieves zero manual intervention during the delivery process to lower the user's usage threshold.

[0005] At present, mainstream cloud service providers have launched deployment platforms for their cloud services, such as CloudFormation launched by AWS, Azure's Cloud Recourses and Google Cloud DeploymentManager launched by Azure. The deployment platforms provided by these cloud service providers have vendor lock-in problems and cannot be applied to multi-cloud deployment. In order to solve the vendor lock-in problem, several open organizations have proposed some open standards for cloud application deployment, such as OVF, TOSCA, CAMP and OCCI. Some scholars have also expanded on these open standards to support elastic expansion, fine-grained deployment, and PaaS and SaaS services. Summary of the invention

[0006] In view of the deficiencies in the prior art, the object of the present invention is to provide a method and system for continuous delivery of application software for multi-cloud scenarios, which can quickly and accurately achieve continuous delivery of application function software for multi-cloud scenarios.

[0007] To achieve the above-mentioned purpose of the invention, an embodiment provides a system for continuous delivery of application software for multi-cloud scenarios, including a server and a client.

[0008] The server is deployed on the application delivery provider side, and is used to implement the instantiation of the application containing the component class based on the provided component class, and generate the component deployment list through the configuration information, and transmit the component deployment list to the client after passing the security check; it is also used to test the instance of the application containing the component class after the client application is deployed;

[0009] The client is installed in a production environment specified by a user, and is used to configure the environment of a received component deployment list to form an execution list, and after initializing resources on the execution list, execute components on the execution list to deploy the application.

[0010] In one embodiment, the component class includes environment variables and operation templates of the component; wherein the environment variables are used to improve the versatility of the component in different deployment environments, including user environment configuration;

[0011] The operation template includes the metadata, deployment method and capabilities of the component. The metadata of the component is used to describe the basic information of the component; the deployment method is used to specify the way users choose to deploy the component; the capability is used to support more fine-grained deployment operations and to describe the deployment rules of the component.

[0012] In one embodiment, the capability includes metadata, a basic template, and a front-end template of the capability, wherein the metadata of the capability is used to describe the basic information of the capability; the basic template and the front-end template are used to reuse the code of the same function in different components, the basic template is used to describe the component execution details, and the front-end template is used to describe the front-end components used in the process of generating component deployment lists and execution lists.

[0013] In one embodiment, the server includes a component / application repository, a configuration rendering engine, a security gateway, and a test engine;

[0014] The component / application warehouse is used to store component classes and applications, wherein each application includes multiple instances of component classes;

[0015] The configuration rendering engine is used to implement the instantiation of the component class by configuring the component class information;

[0016] The security gateway is used to establish communication with the client and perform security detection;

[0017] The test engine is used to test the instantiation of the application including the component class after the application is deployed on the client.

[0018] In one embodiment, the configuration rendering engine instantiates the component class and converts it into a manifest template, and renders the manifest template into a dynamic form that can be displayed on a web page. After receiving the configuration information filled in by the user through the dynamic form, the configuration information filled in by the user replaces the placeholder in the manifest template to generate a component deployment manifest.

[0019] In one embodiment, after the application is deployed on the client, the server receives the automatic test flowchart drawn by the user through the web page to orchestrate the automated test; the test engine sends the automatic test flowchart in the JSON file format to the back-end engine factory for processing and conversion into an executable engine instance. The engine factory executes all engine instances and records the running results of the instances to complete the test.

[0020] In one embodiment, the client supports various deployment environments, including physical machines, public clouds, private clouds, and hybrid clouds, including an environment rendering engine and an execution engine;

[0021] The environment rendering engine is used to obtain a component deployment list through a security gateway, and render the component deployment list into a dynamic form on a web page, and after receiving the environment variables filled in by the user through the dynamic form, use the filled-in environment variables to modify the component deployment list to generate an execution list;

[0022] The execution engine is used to convert the execution list into executable code after receiving the execution list and initializing resources, and execute the components through the connector to implement application deployment.

[0023] In one embodiment, the component class also includes some built-in components, which include encapsulation of existing deployment tools and support for middleware. The execution engine uses the existing deployment tools provided by the component class to initialize resources, wherein middleware refers to a type of software between applications and system software.

[0024] In one embodiment, the process of executing a component in the execution engine includes:

[0025] (1) Generate a directed acyclic graph for multiple component classes included in the application based on component dependencies, and perform topological sorting on the component classes in the directed acyclic graph;

[0026] (2) Parallel execution of multiple independent component classes without dependencies found through topological sorting;

[0027] (3) Execute component capabilities for each independent component class. After successful execution, find the components that the independent component class depends on. If all are executed successfully, the application is deployed successfully. When the component capability execution of the independent component class fails, find the components that depend on the independent component class and set the failure status of these components, indicating the failure status of submitting the independent component.

[0028] To achieve the above-mentioned purpose of the invention, an embodiment further provides a method for continuous delivery of application software for multi-cloud scenarios, wherein the method applies the above-mentioned system and comprises the following steps:

[0029] Step 1: deploy the server on the application delivery provider side, use the server to instantiate the component class included in the application based on the provided component class, generate a component deployment list based on the configuration information, and transmit the component deployment list to the client after passing the security check;

[0030] Step 2: Install the client in the production environment specified by the user, use the client to configure the environment of the received component deployment list to form an execution list, initialize the resources of the execution list, and execute the components of the execution list to deploy the application;

[0031] Step 3: After the client application is deployed, test the application including the component class instance.

[0032] Compared with the prior art, the present invention has the following beneficial effects:

[0033] By defining component classes and introducing capabilities, and providing a deployment server in application delivery, the client is installed in the user-specified production environment settings, and the application is instantiated and configured based on the component class through the server to generate a component deployment list and transmit it to the client. The environment is configured based on the component class on the client side to form an execution list, and the components are executed on the execution list to deploy the application. This method can be applied to the continuous interaction of applications in various cloud environments, and can also quickly realize the reuse of deployment definitions (configuration information and environment configuration). BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0035] Figure 1 It is a structural diagram of a system for continuous delivery of application software for multi-cloud scenarios provided by an embodiment;

[0036] Figure 2 is a flowchart of component execution provided by an embodiment;

[0037] Figure 3 The application provided in the embodiment includes an instantiation schematic diagram of a component class;

[0038] Figure 4 It is a schematic diagram of capabilities provided by the embodiment. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the protection scope of the present invention.

[0040] Figure 1 Schematic diagram of the structure of the system for continuous delivery of application software for multi-cloud scenarios provided by the embodiment. Figure 1 As shown, the system for continuous delivery of application software provided in the embodiment includes a server and a client. The server is deployed on the application delivery provider side, and is used to implement the instantiation of the application containing the component class based on the provided component class, and generate the component deployment list through the configuration information, and transmit the component deployment list to the client after passing the security check; it is also used to test the application containing the component class instance after the client application is deployed. In the embodiment, the application refers to a service application provided to the user, and an application contains multiple component class instances, and each component class contains multiple capabilities.

[0041] The component class provided in the embodiment is defined as a DSL of the component that includes two categories, namely, the environment variables of the component and the operation template of the component. The system extracts the environment variables in the component to improve the versatility of the component class in different deployment environments. The environment variables contain the user's environment configuration, such as the type of resources used (public cloud, private cloud, hybrid cloud, physical machine, etc.) and the configuration of the database (such as the address of the database). The operation template includes the metadata, deployment method and capabilities of the component, that is, the system encapsulates the metadata, deployment method and capabilities of the component into an operation template of the component. Among them, the metadata of the component describes the basic information of the component, and the deployment method specifies the method of deploying the component selected by the user. Of course, the system also supports deployment in a variety of ways, including component deployment using existing deployment tools such as Kubernetes and Helm.

[0042] The capabilities in the operation template define the capabilities that the component has, which is used to support more fine-grained deployment operations. Define a set of capability DSLs to describe the deployment rules of components, which includes capability metadata, capability basic templates, and capability front-end templates. The metadata of capabilities is similar to component metadata and is used to describe the basic information of capabilities. In order to maximize code reuse, use basic templates and front-end templates to reuse the code of the same function in different components. The basic template describes the execution details of the execution engine, while the front-end template is used to describe the front-end components in the configuration rendering engine and the environment rendering engine to generate dynamic forms.

[0043] Specifically, the server includes a component / application warehouse, a configuration rendering engine, a security gateway, and a test engine. Among them, the component / application warehouse is used to store component classes and applications, wherein each application contains multiple instances of component classes. The embodiment also provides some built-in components, including encapsulation of existing deployment tools (Helm, Ansible, Kubernetes) and support for commonly used middleware (databases, message queues, etc.). Among them, commonly used middleware refers to a type of software between applications and system software, including databases (MySQL, Redis, MongoDB, PostgreSQL, PolarDB-X), message queues (RocketMQ, RabbitMQ), load balancing, distributed applications (SchedulerX, enterprise-level distributed application service EDAS), object storage, full-text search engine (Elasticsearch), etc.

[0044] When deploying an application, it is necessary to instantiate the component classes corresponding to the components contained in the application. The configuration rendering engine instantiates the component class and converts it into a manifest template, and renders the manifest template into a dynamic form that can be displayed on the web page. After receiving the configuration information (such as database address, cloud resource address, etc.) filled in by the user through the dynamic form, the configuration information filled in by the user replaces the placeholder in the manifest template to generate a component deployment manifest. When the client initiates a request to the server, the request will undergo a series of security checks through the security gateway. If it is determined to be a safe request, the server will return the corresponding component deployment manifest. The security gateway includes a whitelist filter, a common gateway, and a network application firewall (WAF). After completing the application deployment operation on the client, the server receives the automatic test flowchart drawn by the user through the web page to orchestrate the automated test; the test engine will send the automatic test flowchart in JSON file format to the backend engine factory for processing and conversion into an executable engine instance. Finally, the engine factory will execute all engine instances and record the running results of the instances to complete the test.

[0045] In the embodiment, the client is installed in the production environment specified by the user, and is used to form an execution list after the received component deployment list is configured for the environment. After the execution list is initialized for resources, the application is deployed by executing the components on the execution list. Specifically, the system supports a variety of deployment environments, including physical machines, public clouds, private clouds, hybrid clouds, etc. The client includes an environment rendering engine and an execution engine. First, the environment rendering engine obtains the component deployment list through the security gateway of the server, and renders the component deployment list into a dynamic form on the web page, which is convenient for users to fill in the environment variable information. After the user input is completed, the environment variables filled in by the user through the dynamic form are received, and the component deployment list is modified using the environment variables filled in by the user to generate an execution list. At this time, the execution engine receives the execution list and uses the initialization tool provided by the component to initialize the resources (middleware, etc.). After completing the initialization, the execution engine converts the execution list into executable code and executes the component through a connector (operating on the user's production environment such as a cloud network or a physical machine) to achieve the final deployment operation of the application.

[0046] Figure 2 : is a flowchart of component execution provided by the embodiment. Figure 2 As shown, the client execution engine includes the following steps when executing component deployment:

[0047] (1) Generate a directed acyclic graph for multiple component classes included in the application based on component dependencies, and perform topological sorting on the component classes in the directed acyclic graph;

[0048] (2) Parallel execution of multiple independent component classes without dependencies found through topological sorting;

[0049] (3) Execute component capabilities for each independent component class. After successful execution, find the components that the independent component class depends on. If all are executed successfully, the application is deployed successfully. When the component capability execution of the independent component class fails, find the components that depend on the independent component class and set the failure status of these components, indicating the failure status of submitting the independent component.

[0050] Based on the system provided above, the embodiment also provides a method for continuous delivery of application software for multi-cloud scenarios, including the following steps:

[0051] Step 1: deploy the server on the application delivery provider side, use the server to instantiate the component class included in the application based on the provided component class, generate a component deployment list based on the configuration information, and transmit the component deployment list to the client after passing the security check;

[0052] Step 2: Install the client in the production environment specified by the user, use the client to configure the environment of the received component deployment list to form an execution list, initialize the resources of the execution list, and execute the components of the execution list to deploy the application;

[0053] Step 3: After the client application is deployed, test the application including the component class instance.

[0054] like Figure 3 As shown, the embodiment also provides an application that includes instances of two component classes, an App component class and an instance of a MySQL component class. For the instance of the App component class, this component instance will be deployed using Kubernetes (an open source container orchestration engine), and it has two Docker (an open source application container engine) image-related environment variables imageHost (image host address) and imageTag. The component has the DeployImage capability, which is used to deploy the Docker image to the user environment. For the MySQL (a relational database management system) component class instance, this component instance will be deployed through the MySQL5.7 installation package. Three database-related environment variables are extracted, namely host (host address), port (port) and dbname (database name), which are used to access the database. The component class has both CreateDB and InitSQL capabilities, providing the ability to create a new database and initialize database SQL.

[0055] Figure 4The following is a DSL describing capabilities, which describes the ability to create table operations in a relational database. The content in content.script is the front-end template, which is used as the input for the configuration rendering engine. In this example, the configuration rendering engine renders a code box for entering the code to create the table. After the user completes the input, the configuration rendering engine updates the specific area in the list with the user input. The basic template includes the content corresponding to the executeCode key, which describes the execution-related information.

[0056] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A system for continuous delivery of application software for multi-cloud scenarios, characterized in that: Including server and client; The server is deployed on the application delivery provider side, and is used to implement the instantiation of the application containing the component class based on the provided component class, and generate the component deployment list through the configuration information, and transmit the component deployment list to the client after passing the security check; it is also used to test the application containing the component class instance after the client application deployment is completed; wherein, the component class includes the environment variables and operation templates of the component; the environment variables are used to improve the versatility of the component in different deployment environments, including the user's environment configuration; the operation template includes the metadata, deployment method and capability of the component, and the metadata of the component is used to describe the basic information of the component; the deployment method is used to specify the method in which the user chooses to deploy the component; the capability is used to support more fine-grained deployment operations, and is used to describe the deployment rules of the component. The capability includes the metadata of the capability, the basic template and the front-end template, and the metadata of the capability is used to describe the basic information of the capability; the basic template and the front-end template are used to reuse the code of the same function in different components, the basic template is used to describe the execution details of the component, and the front-end template is used to describe the front-end components used in the process of generating the component deployment list and the execution list; The client is installed in a production environment specified by a user, and is used to configure the environment of the received component deployment list to form an execution list. After initializing the resources of the execution list, the application is deployed by executing the components of the execution list, including: The client supports various deployment environments, including physical machines, public clouds, private clouds and hybrid clouds, and includes an environment rendering engine and an execution engine; the environment rendering engine is used to obtain a component deployment list through a security gateway, and render the component deployment list into a dynamic form on a web page, and after receiving the environment variables filled in by the user through the dynamic form, use the filled-in environment variables to modify the component deployment list to generate an execution list; the execution engine is used to convert the execution list into executable code and execute the component through a connector after receiving the execution list and initializing resources, so as to realize the deployment of the application; The process of executing components in the execution engine includes: (1) Generate a directed acyclic graph for multiple component classes contained in the application based on component dependencies, and perform topological sorting on the component classes in the directed acyclic graph; (2) Parallel execution of multiple independent component classes without dependencies found through topological sorting; (3) Execute component capabilities for each independent component class. After successful execution, find the components that the independent component class depends on. If all are executed successfully, the application is deployed successfully. When the component capability execution of an independent component class fails, find the components that depend on the independent component class and set the failure status of these components, indicating the failure status of submitting the independent component.

2. The system for continuous delivery of application software for multi-cloud scenarios according to claim 1, characterized in that: The server includes a component / application repository, a configuration rendering engine, a security gateway, and a test engine; The component / application warehouse is used to store component classes and applications, wherein each application includes multiple instances of component classes; The configuration rendering engine is used to implement the instantiation of the component class by configuring the component class information; The security gateway is used to establish communication with the client and perform security detection; The test engine is used to test the instantiation of the application including the component class after the application is deployed on the client.

3. The system for continuous delivery of application software for multi-cloud scenarios according to claim 2, characterized in that: The configuration rendering engine instantiates the component class and converts it into a manifest template, and renders the manifest template into a dynamic form that can be displayed on a web page. After receiving the configuration information filled in by the user through the dynamic form, the configuration information filled in by the user replaces the placeholder in the manifest template to generate a component deployment manifest.

4. The system for continuous delivery of application software for multi-cloud scenarios according to claim 2, characterized in that: After the application is deployed on the client, the server receives the automatic test flowchart drawn by the user through the web page to orchestrate the automated test; the test engine sends the automatic test flowchart in the JSON file format to the back-end engine factory for processing and conversion into an executable engine instance. The engine factory executes all engine instances and records the running results of the instances to complete the test.

5. The system for continuous delivery of application software for multi-cloud scenarios according to claim 1, characterized in that: The component class also includes some built-in components, which include encapsulation of existing deployment tools and support for middleware. The execution engine uses the existing deployment tools provided by the component class to initialize resources, wherein middleware refers to a type of software between applications and system software.

6. A method for continuous delivery of application software for multi-cloud scenarios, characterized in that: The method uses the system according to any one of claims 1 to 5, comprising the following steps: Step 1: deploy the server on the application delivery provider side, use the server to instantiate the component class included in the application based on the provided component class, generate a component deployment list based on the configuration information, and transmit the component deployment list to the client after passing the security check; Step 2: Install the client in the production environment specified by the user, use the client to configure the environment of the received component deployment list to form an execution list, initialize the resources of the execution list, and execute the components of the execution list to deploy the application; Step 3: After the client application is deployed, test the application including the component class instance.

Citation Information

Patent Citations

  • Method and system for deploying applications on cloud computing platform

    CN109117148A

  • Resource deployment system and method based on cloud cost

    CN112685179A

  • Automatic deployment of application security policy using application manifest and dynamic process analysis in a containerization environment

    US20200218798A1