An application deployment method, cloud platform, edge node, and storage medium
By generating and providing application configuration images and deployment information through the cloud platform, the problem of cumbersome application deployment caused by differences in edge node configurations is solved, and efficient application deployment is achieved.
Patent Information
- Application Number
- CN202210661706.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-13
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-06-13
AI Technical Summary
In edge computing scenarios, the configuration differences between different edge nodes lead to cumbersome and inefficient application deployment.
The cloud platform obtains application information and edge node configuration information, generates application configuration images and deployment information, and provides them to the edge nodes. The edge nodes then automatically deploy the applications based on this information.
It improves the efficiency of application deployment, adapts to the configuration differences of different edge nodes, and achieves efficient application deployment.
Smart Images

Figure CN117278570B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of edge computing and cloud-edge collaboration technology, and in particular to an application deployment method, cloud platform, edge node and storage medium. Background Technology
[0002] With the development of technologies such as containers, Kubernetes, and the Internet of Things, the data generated at the network edge is growing rapidly. However, transmitting massive amounts of data to the cloud center puts a strain on network bandwidth and latency, and it also makes it impossible to guarantee the privacy of user data. To solve these problems, edge computing has been developed.
[0003] Currently, edge computing, compared to central cloud, is characterized by its large scale and diverse configurations. In edge computing application scenarios, the different configurations of the number of application replicas, memory, and central processing capabilities deployed on different edge nodes make the work of deploying applications on different edge nodes very cumbersome and inefficient. Summary of the Invention
[0004] To address the aforementioned technical problems, embodiments of the present invention aim to provide an application deployment method, a cloud platform, edge nodes, and a storage medium. The cloud platform, for the application to be deployed and the edge nodes of the application to be deployed, utilizes the application information of the application to be deployed and the configuration information of the edge nodes of the application to be deployed to generate the information required for deploying the application on the edge nodes. This enables the generation of corresponding information for the deployment of different applications on different edge nodes, and provides the generated information to the corresponding edge nodes, allowing the edge nodes to directly perform application deployment based on the corresponding information, thereby improving the efficiency of application deployment.
[0005] The technical solution of this invention is implemented as follows:
[0006] This invention provides an application deployment method applied to a cloud platform, the method comprising:
[0007] Obtain application information of the target application, as well as configuration information of the edge nodes where the target application is to be deployed;
[0008] Using the application information and the configuration information, an application configuration image and application deployment information are generated; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image;
[0009] The application configuration image and application deployment information are provided to the edge node so that the edge node can use the application deployment information to call the application configuration image and complete the deployment of the target application.
[0010] In the above method, obtaining the application information of the target application and the configuration information of the edge node where the target application is to be deployed includes:
[0011] The application information and configuration information can be obtained through the cloud management page.
[0012] In the above method, generating the application configuration image and application deployment information using the application information and the configuration information includes:
[0013] Application configuration information is generated using the application information and configuration information through the cloud management page; the application configuration information is the configuration information for deploying the target application on the edge node.
[0014] Using cloud integration tools, construct the application configuration image based on the application configuration information;
[0015] The application deployment information is generated based on the application configuration image through the cloud management page.
[0016] In the above method, providing the application configuration image and the application deployment information to the edge node includes:
[0017] Using cloud integration tools, the application configuration image is sent to the edge node;
[0018] The application deployment information is stored in a cloud repository through a cloud management page, so that the edge node can retrieve the application deployment information from the cloud repository when the application deployment for the target application is triggered.
[0019] In the above method, after generating the application configuration image and application deployment information using the application information and the configuration information, the method further includes:
[0020] Upon receiving an application deployment instruction via the cloud management page, the application deployment instruction is sent to the edge node via the cloud management page; wherein, the application deployment instruction is used to instruct the edge node to deploy the target application.
[0021] This invention provides an application deployment method for edge nodes, the method comprising:
[0022] Obtain application configuration image and application deployment information from the cloud platform; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image;
[0023] Based on a preset load balancing strategy, a target host is selected from multiple host machines contained in the edge node;
[0024] The application deployment information is used to invoke the application configuration image and deploy the target application on the target host machine.
[0025] In the above method, obtaining application deployment information from the cloud platform includes:
[0026] Upon receiving an application deployment instruction from the cloud platform, the application deployment information is retrieved from the cloud repository of the cloud platform according to the application deployment instruction.
[0027] In the above method, obtaining application deployment information from the cloud platform includes:
[0028] Upon receiving a deployment trigger operation for the target application, the application deployment information is retrieved from the cloud repository of the cloud platform.
[0029] In the above method, obtaining the application configuration image from the cloud platform includes:
[0030] Receive the application configuration image sent by the cloud platform and store the application configuration image in the edge repository.
[0031] In the above method, after deploying the target application on the target host machine by calling the application configuration image using the application deployment information, the method further includes:
[0032] In the event that the target host machine fails, a backup host machine different from the target host machine is selected from the plurality of host machines based on the preset load balancing strategy.
[0033] The application deployment information is used to invoke the application configuration image, and the target application is deployed on the backup host machine.
[0034] This invention provides a cloud platform, the cloud platform comprising:
[0035] The first acquisition module is used to acquire application information of the target application and configuration information of the edge nodes of the target application to be deployed.
[0036] A generation module is used to generate an application configuration image and application deployment information using the application information and the configuration information; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image;
[0037] A module is provided to provide the edge node with the application configuration image and the application deployment information, so that the edge node can use the application deployment information to call the application configuration image and complete the deployment of the target application.
[0038] This invention provides a cloud platform, which includes a first processor, a first memory, and a first communication bus;
[0039] The first communication bus is used to establish a communication connection between the first processor and the first memory;
[0040] The first processor is used to execute the computer program stored in the first memory to implement the above-described application deployment method applied to the cloud platform.
[0041] This invention provides an edge node, the edge node comprising:
[0042] The second acquisition module is used to acquire application configuration image and application deployment information from the cloud platform; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image;
[0043] The selection module is used to select a target host from multiple host machines included in the edge node based on a preset load balancing strategy.
[0044] The deployment module is used to call the application configuration image using the application deployment information and deploy the target application on the target host machine.
[0045] This invention provides an edge node, which includes a second processor, a second memory, and a second communication bus;
[0046] The second communication bus is used to establish a communication connection between the second processor and the second memory;
[0047] The second processor is used to execute the computer program stored in the second memory to implement the above-described application deployment method applied to the edge node.
[0048] The present invention provides a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the above-described application deployment method.
[0049] This invention provides an application deployment method, a cloud platform, edge nodes, and a storage medium. The method includes: acquiring application information of a target application and configuration information of the edge nodes where the target application is to be deployed; generating an application configuration image and application deployment information using the application information and configuration information; the application configuration image is an image used to deploy the target application on the edge nodes, and the application deployment information is information used to call the application configuration image; and providing the application configuration image and application deployment information to the edge nodes so that the edge nodes can use the application deployment information to call the application configuration image and complete the deployment of the target application. The technical solution provided by this invention allows the cloud platform to generate the information required to deploy the application on the edge nodes, based on the application information of the application to be deployed and the configuration information of the edge nodes, thereby enabling the generation of corresponding information for the deployment of different applications on different edge nodes and providing the generated information to the corresponding edge nodes. This allows the edge nodes to directly deploy the application based on the corresponding information, improving the efficiency of application deployment. Attached Figure Description
[0050] Figure 1 A flowchart illustrating an application deployment method provided in an embodiment of the present invention. Figure 1 ;
[0051] Figure 2 A flowchart illustrating an application deployment method provided in an embodiment of the present invention. Figure 2 ;
[0052] Figure 3 A schematic diagram illustrating an exemplary cloud platform and edge node structure provided for an embodiment of the present invention;
[0053] Figure 4 A schematic diagram illustrating an exemplary process for deploying an application on an edge node, provided as an embodiment of the present invention;
[0054] Figure 5 A schematic diagram of the structure of a cloud platform provided in an embodiment of the present invention. Figure 1 ;
[0055] Figure 6 A schematic diagram of the structure of a cloud platform provided in an embodiment of the present invention. Figure 2 ;
[0056] Figure 7 A schematic diagram of an edge node provided in an embodiment of the present invention. Figure 1 ;
[0057] Figure 8 A schematic diagram of an edge node provided in an embodiment of the present invention. Figure 2 . Detailed Implementation
[0058] The technical solutions of the present invention will now be clearly and completely described with reference to the accompanying drawings of the embodiments of the present invention. It is to be understood that the specific embodiments described herein are merely for explaining the relevant application and are not intended to limit the application. Furthermore, it should be noted that, for ease of description, only the parts relevant to the relevant application are shown in the accompanying drawings.
[0059] This invention provides an application deployment method implemented by a cloud platform. Figure 1 A flowchart illustrating an application deployment method provided in an embodiment of the present invention. Figure 1 .like Figure 1 As shown, the main steps include:
[0060] S101. Obtain the application information of the target application and the configuration information of the edge nodes of the target application to be deployed.
[0061] In an embodiment of the present invention, the cloud platform obtains the application information of the target application and the configuration information of the edge node to which the target application is to be deployed.
[0062] It should be noted that, in the embodiments of the present invention, the cloud platform can obtain the application information of the target application and the configuration information of the edge node to which the target application is to be deployed. The target application is the application that the cloud platform needs to deploy to the edge node. Since the environmental configuration information of the edge node is different, the deployment method for the same target application will also be different. Therefore, the cloud platform obtains the application information of the target application and the configuration information of the edge node to which the target application is to be deployed, and deploys the corresponding application on the edge node in a targeted manner.
[0063] Specifically, in embodiments of the present invention, the cloud platform obtains application information of the target application and configuration information of the edge nodes of the target application to be deployed, including: obtaining application information and configuration information through a cloud management page.
[0064] It should be noted that, in the embodiments of the present invention, the cloud platform can obtain the application information of the target application and the configuration information of the edge nodes of the target application to be deployed through the cloud management page. The application information includes the number of copies of the target application, the required memory, etc. Of course, the specific application information can be set according to actual needs and application scenarios, and the present invention does not limit this.
[0065] S102. Using application information and configuration information, generate application configuration image and application deployment information; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image.
[0066] In an embodiment of the present invention, the cloud platform uses application information and configuration information to generate an application configuration image and application deployment information; the application configuration image is an image used to deploy the target application on edge nodes, and the application deployment information is information used to call the application configuration image.
[0067] It should be noted that, in the embodiments of the present invention, after the cloud platform obtains the application information and the configuration information of the edge node through the cloud management page, it can generate an application configuration image and application deployment information using the application information and configuration information. The application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image.
[0068] Specifically, in embodiments of the present invention, the cloud platform uses application information and configuration information to generate application configuration images and application deployment information, including: generating application configuration information using application information and configuration information through a cloud management page; the application configuration information is the configuration information for deploying the target application on edge nodes; constructing an application configuration image based on the application configuration information using a cloud integration tool; and generating application deployment information based on the application configuration image through a cloud management page.
[0069] It should be noted that, in the embodiments of the present invention, the cloud platform generates application configuration information using application information and configuration information through a cloud management page. This application configuration information is the configuration information for deploying the target application on the edge node. Then, the cloud platform uses a cloud integration tool to build an application configuration image based on the application configuration information. Subsequently, through the cloud management page, application deployment information is generated based on the application configuration image. The cloud integration tool can be the continuous integration tool Jenkins. The application configuration information can be sent to the cloud integration tool Jenkins in the form of source code or scripts. The implementation process of the cloud integration tool Jenkins building the application configuration image based on the application configuration information can be as follows: the cloud integration tool Jenkins packages the application configuration information into an application, and then uses the packaged application to generate the application configuration image.
[0070] It should be noted that, in the embodiments of the present invention, the cloud platform generates application configuration images and application deployment information based on the application information of the target application and the configuration information of the edge node where the target application is to be deployed. That is, for the same application, the application configuration images and application deployment information generated using the application information and configuration information will also be different due to the different edge nodes to be deployed. Of course, for different applications, even if the edge nodes to be deployed are the same, the application configuration images and application deployment information generated using different application information will also be different. Therefore, the cloud platform generates different application configuration images and application deployment information for different applications and the edge nodes to which the corresponding applications are to be deployed. Thus, based on the generated application configuration images and application deployment information, it is possible to deploy different applications to different edge nodes.
[0071] Specifically, in the embodiments of the present invention, after the cloud platform generates the application configuration image and application deployment information using application information and configuration information, it can also perform the following steps: when receiving the application deployment instruction through the cloud management page, the application deployment instruction is sent to the edge node through the cloud management page; wherein, the application deployment instruction is used to instruct the edge node to deploy the target application.
[0072] It should be noted that, in the embodiments of the present invention, when the cloud platform receives an application deployment instruction through the cloud management page, it sends the application deployment instruction to the edge node through the cloud management page. The application deployment instruction is used to instruct the edge node to deploy the target application. The cloud management page may have an optional application deployment button. If the button is touched, it indicates that the cloud platform has received the application deployment instruction for selecting the application through the cloud management page.
[0073] S103. Provide the application configuration image and application deployment information to the edge nodes so that the edge nodes can use the application deployment information to call the application configuration image and complete the deployment of the target application.
[0074] In an embodiment of the present invention, the cloud platform provides application configuration images and application deployment information to edge nodes, so that the edge nodes can use the application deployment information to call the application configuration images and complete the deployment of the target application.
[0075] It should be noted that, in the embodiments of the present invention, after the cloud platform obtains the application configuration image and application deployment information, it provides the application configuration image and application deployment information to the edge nodes so that the edge nodes can use the application deployment information to call the application configuration image and complete the deployment of the target application.
[0076] Specifically, in embodiments of the present invention, the cloud platform provides application configuration images and application deployment information to edge nodes, including: using cloud integration tools to send application configuration images to edge nodes; and storing application deployment information in a cloud repository through a cloud management page, so that edge nodes can retrieve application deployment information from the cloud repository when application deployment for a target application is triggered.
[0077] It should be noted that, in the embodiments of the present invention, the cloud platform uses cloud integration tools to send the application configuration image to the edge node, and then stores the application deployment information in the cloud repository through the cloud management page, so that the edge node can directly obtain the application deployment information from the cloud repository when the target application is deployed.
[0078] It should be noted that, in the embodiments of the present invention, after the cloud platform stores the application deployment information in the cloud repository through the cloud management page, the edge node can directly obtain the application deployment information from the cloud repository when the target application is triggered, thereby improving the efficiency of application deployment.
[0079] This invention provides an application deployment method applied to a cloud platform. The method includes: acquiring application information of a target application and configuration information of edge nodes where the target application is to be deployed; generating an application configuration image and application deployment information using the application information and configuration information; the application configuration image is an image used to deploy the target application on the edge nodes, and the application deployment information is information used to call the application configuration image; and providing the application configuration image and application deployment information to the edge nodes so that the edge nodes can use the application deployment information to call the application configuration image and complete the deployment of the target application. The application deployment method provided by this invention allows the cloud platform to generate application deployment information and an application configuration image required for deploying the application on the edge nodes, based on the application information of the application to be deployed and the configuration information of the edge nodes. This enables the generation of corresponding information for deploying different applications on different edge nodes and provides the generated information to the corresponding edge nodes, allowing the edge nodes to directly deploy the application based on the corresponding information, thus improving the efficiency of application deployment.
[0080] This invention provides an application deployment method implemented by edge nodes. Figure 2 A flowchart illustrating an application deployment method provided in an embodiment of the present invention. Figure 2 .like Figure 2 As shown, the main steps include:
[0081] S201. Obtain the application configuration image and application deployment information from the cloud platform; the application configuration image is the image used to deploy the target application on the edge node, and the application deployment information is the information used to call the application configuration image.
[0082] In an embodiment of the present invention, the edge node obtains the application configuration image and application deployment information from the cloud platform; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image.
[0083] It should be noted that, in the embodiments of the present invention, the edge node can obtain the application configuration image and application deployment information from the cloud platform. The application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image.
[0084] Specifically, in an embodiment of the present invention, the edge node obtains application deployment information from the cloud platform, including: upon receiving an application deployment instruction sent by the cloud platform, obtaining application deployment information from the cloud repository of the cloud platform according to the application deployment instruction.
[0085] It should be noted that, in the embodiments of the present invention, if the edge node receives an application deployment instruction sent by the cloud platform, it can directly obtain the application deployment information from the cloud platform's cloud repository according to the application deployment instruction.
[0086] Specifically, in an embodiment of the present invention, the edge node obtains application deployment information from the cloud platform, including: upon receiving a deployment trigger operation for the target application, obtaining application deployment information from the cloud repository of the cloud platform.
[0087] It should be noted that, in the embodiments of the present invention, the process of the edge node receiving the deployment trigger operation for the target application can be as follows: the edge management page of the edge node can display different versions of application deployment options for different applications. If the corresponding application deployment button or the touchable area of a certain version of the application is touched, it is considered that the edge node has received the deployment trigger operation for the corresponding application. At this time, the edge node can directly obtain the application deployment information from the cloud repository of the cloud platform.
[0088] Specifically, in an embodiment of the present invention, the edge node obtains the application configuration image from the cloud platform, including: receiving the application configuration image sent by the cloud platform and storing the application configuration image in the edge repository.
[0089] It should be noted that, in the embodiments of the present invention, after the edge node obtains the application configuration image from the cloud repository of the cloud platform, it stores the application configuration image in the edge repository.
[0090] It should be noted that, in the embodiments of the present invention, the edge node stores the application configuration image to the edge repository, which can avoid the impact of network speed between the cloud platform and the edge node when the edge node deploys the target application, thereby improving the efficiency of the target application deployment on the edge node.
[0091] S202. Based on the preset load balancing strategy, select the target host from the multiple host machines contained in the edge node.
[0092] In an embodiment of the present invention, the edge node selects a target host from multiple host machines contained in the edge node based on a preset load balancing strategy.
[0093] It should be noted that, in the embodiments of the present invention, after the edge node obtains the application configuration image and application deployment information from the cloud platform, it will select a target host from multiple host machines included in the edge node based on a preset load balancing strategy. The preset load balancing strategy is a strategy to select the host machine for application deployment based on the memory, load and other information of the multiple host machines included in the edge node. The host machine selected from the host machines included in the edge node is either idle or supports the deployment of the target application. For example, the determination that the host machine supports the deployment of the target application may be that the remaining capacity of the host machine's memory and central processing unit (CPU) meets the needs of the target application.
[0094] S103. Use the application deployment information to call the application configuration image and deploy the target application on the target host machine.
[0095] In an embodiment of the present invention, the edge node uses application deployment information to invoke the application configuration image and deploys the target application on the target host machine.
[0096] It should be noted that, in the embodiments of the present invention, the edge node uses the application deployment information to call the application configuration image, and then uses the application configuration image to deploy the target application on the target host machine.
[0097] Specifically, in the embodiments of the present invention, after the edge node uses the application deployment information to call the application configuration image and deploys the target application on the target host, it can also perform the following steps: in the event that the target host fails, based on a preset load balancing strategy, a backup host different from the target host is selected from multiple hosts; the application deployment information is used to call the application configuration image and the target application is deployed on the backup host.
[0098] It should be noted that, in the embodiments of the present invention, if the target host machine where the target application is deployed crashes, the edge node selects a backup host machine that is different from the target host machine from multiple host machines based on a preset load balancing strategy, and uses the application deployment information to call the application configuration image to deploy the target application on the backup host machine, so as to achieve the normal operation of the target application on the edge node.
[0099] It should be noted that, in the embodiments of the present invention, the edge node stores the application configuration image to the edge repository, so that when the host machine where the target application is deployed goes down, the application configuration image in the edge repository can be used directly to deploy the target application on the standby host machine, thereby improving the efficiency of edge node failover.
[0100] Figure 3 This is a schematic diagram illustrating an exemplary cloud platform and edge node structure provided for an embodiment of the present invention. Figure 3 As shown, the cloud platform includes a cloud management page, a cloud integration tool, and a cloud repository. The edge nodes include multiple host machines and an edge repository. The cloud management page is responsible for managing the application configuration information of different edge nodes for different applications, maintaining the edge nodes, and triggering the generation of application configuration images. The cloud integration tool is mainly responsible for executing the generation of application configuration images. The edge nodes are mainly responsible for deploying applications to the multiple host machines they contain. The edge repository is used to store the application configuration images of the edge nodes.
[0101] Figure 4 This is a schematic diagram illustrating an exemplary process for deploying an application on an edge node, as provided in an embodiment of the present invention. Figure 4As shown, the cloud platform obtains the application information of the target application and the configuration information of the edge nodes where the target application is to be deployed through the cloud management page. It then generates application configuration information using the application and configuration information. Next, using cloud integration tools, it builds an application configuration image based on the application configuration information. After the application configuration image is built, one branch sends the application configuration image to the edge nodes, and another branch sends it to the cloud management page. The cloud management page then generates application deployment information based on the application configuration image and sends it to the cloud repository for storage. After the cloud platform generates the application deployment information, it can choose to force the deployment of the target application on the edge nodes or postpone its deployment. If the cloud platform receives an application deployment instruction through the cloud management page, it indicates that the cloud platform is forcing the deployment of the target application on the edge nodes. In this case, the cloud management page sends an application deployment instruction to the edge nodes, enabling the edge nodes to obtain the application configuration image and application deployment information from the cloud platform upon receiving the instruction, and then use the application deployment information to call the application configuration image and deploy the target application on the edge nodes. If the cloud platform does not force the deployment of the target application on the edge nodes, the edge nodes can trigger the deployment of the target application themselves.
[0102] This invention provides an application deployment method applied to edge nodes. The method includes: obtaining an application configuration image and application deployment information from a cloud platform; the application configuration image is an image used to deploy a target application on the edge node, and the application deployment information is information used to invoke the application configuration image; selecting a target host from multiple host machines included in the edge node based on a preset load balancing strategy; and invoking the application configuration image using the application deployment information to deploy the target application on the target host. The application deployment method provided by this invention allows the cloud platform to generate the necessary information for deploying the application on the edge node, based on the application information of the application to be deployed and the configuration information of the edge node. This enables the generation of corresponding information for different applications deployed on different edge nodes, and provides the generated information to the corresponding edge nodes, allowing the edge nodes to directly deploy the application based on the corresponding information, thus improving the efficiency of application deployment.
[0103] This invention provides a cloud platform, Figure 5 A schematic diagram of the structure of a cloud platform provided in an embodiment of the present invention. Figure 1 .like Figure 5 As shown, it includes:
[0104] The first acquisition module 501 is used to acquire application information of the target application and configuration information of the edge nodes of the target application to be deployed.
[0105] The generation module 502 is used to generate an application configuration image and application deployment information using the application information and the configuration information; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image;
[0106] A module 503 is provided to the edge node to provide the application configuration image and the application deployment information, so that the edge node can use the application deployment information to call the application configuration image and complete the deployment of the target application.
[0107] In one embodiment of the present invention, the acquisition module 501 is further configured to acquire the application information and the configuration information through a cloud management page.
[0108] In one embodiment of the present invention, the generation module 502 is further configured to generate application configuration information using the application information and the configuration information through a cloud management page; the application configuration information is the configuration information for deploying the target application on the edge node; using a cloud integration tool, constructing the application configuration image based on the application configuration information; and generating application deployment information based on the application configuration image through the cloud management page.
[0109] In one embodiment of the present invention, the providing module 503 is further configured to use a cloud integration tool to send the application configuration image to the edge node; and to store the application deployment information in a cloud repository through a cloud management page, so that the edge node can obtain the application deployment information from the cloud repository when the application deployment for the target application is triggered.
[0110] In one embodiment of the present invention, the cloud platform further includes a sending module (not shown in the figure), which is used to send the application deployment instruction to the edge node through the cloud management page when the application deployment instruction is received through the cloud management page; wherein the application deployment instruction is used to instruct the edge node to deploy the target application.
[0111] Figure 6 A schematic diagram of the structure of a cloud platform provided in an embodiment of the present invention. Figure 2 .like Figure 6 As shown, the cloud platform includes a first processor 601, a first memory 602, and a first communication bus 603;
[0112] The first communication bus 603 is used to realize the communication connection between the first processor 601 and the first memory 602;
[0113] The first processor 601 is used to execute the computer program stored in the first memory 602 to implement the above-described application deployment method applied to the cloud platform.
[0114] This invention provides a cloud platform that acquires application information of a target application and configuration information of edge nodes where the target application is to be deployed. Using the application information and configuration information, it generates an application configuration image and application deployment information. The application configuration image is used to deploy the target application on the edge nodes, and the application deployment information is used to invoke the application configuration image. The platform provides the application configuration image and application deployment information to the edge nodes, allowing them to invoke the application configuration image using the deployment information to complete the deployment of the target application. The cloud platform provided by this invention generates the necessary information for deploying the application on the edge nodes, based on the application information and the configuration information of the edge nodes. This enables the platform to generate corresponding information for different applications deployed on different edge nodes and provides this information to the corresponding edge nodes, allowing them to directly deploy the application based on the corresponding information, thus improving the efficiency of application deployment.
[0115] This invention provides an edge node, Figure 7 A schematic diagram of an edge node provided in an embodiment of the present invention. Figure 1 .like Figure 7 As shown, it includes:
[0116] The second acquisition module 701 is used to acquire application configuration image and application deployment information from the cloud platform; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image;
[0117] The selection module 702 is used to select a target host from multiple host machines included in the edge node based on a preset load balancing strategy.
[0118] Deployment module 703 is used to call the application configuration image using the application deployment information and deploy the target application on the target host machine.
[0119] In one embodiment of the present invention, the acquisition module 701 is further configured to, upon receiving an application deployment instruction sent by the cloud platform, acquire the application deployment information from the cloud repository of the cloud platform according to the application deployment instruction.
[0120] In one embodiment of the present invention, the acquisition module 701 is further configured to acquire the application deployment information from the cloud repository of the cloud platform when a deployment trigger operation for the target application is received.
[0121] In one embodiment of the present invention, the acquisition module 701 is further configured to receive the application configuration image sent by the cloud platform and store the application configuration image in an edge repository.
[0122] In one embodiment of the present invention, the deployment module 703 is further configured to, in the event that the target host machine crashes, select a backup host machine different from the target host machine from the plurality of host machines based on the preset load balancing strategy; and use the application deployment information to call the application configuration image to deploy the target application on the backup host machine.
[0123] Figure 8 A schematic diagram of an edge node provided in an embodiment of the present invention. Figure 2 .like Figure 8 As shown, the edge node includes a second processor 801, a second memory 802, and a second communication bus 803;
[0124] The second communication bus 803 is used to realize the communication connection between the second processor 801 and the second memory 802;
[0125] The second processor 801 is used to execute the computer program stored in the second memory 802 to implement the above-described application deployment method applied to edge nodes.
[0126] This invention provides an edge node that obtains application configuration images and application deployment information from a cloud platform. The application configuration image is used to deploy a target application on the edge node, and the application deployment information is used to invoke the application configuration image. Based on a preset load balancing strategy, a target host is selected from multiple host machines included in the edge node. The application deployment information is used to invoke the application configuration image, and the target application is deployed on the target host machine. The edge node provided by this invention allows the cloud platform to generate the necessary information for deploying the application on the edge node, based on the application information of the application to be deployed and the configuration information of the edge node. This enables the generation of corresponding information for different applications deployed on different edge nodes, and provides the generated information to the corresponding edge nodes, allowing the edge nodes to directly deploy the application based on the corresponding information, thus improving the efficiency of application deployment.
[0127] This invention provides a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the application deployment method described above. The computer-readable storage medium can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or it can be a device including one or any combination of the above-mentioned memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
[0128] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0129] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. 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 and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0130] 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.
[0131] 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.
[0132] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. An application deployment method applied to a cloud platform, characterized in that, The method includes: Obtain application information of the target application, as well as configuration information of the edge nodes where the target application is to be deployed; Application configuration information is generated using the application information and the configuration information; the application configuration information is the configuration information for deploying the target application on the edge node; an application configuration image is constructed based on the application configuration information, and application deployment information is generated based on the application configuration image; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image; the application configuration image and the application deployment information vary depending on the application information of the target application and / or the configuration information of the edge node where the target application is to be deployed; Using cloud integration tools, the application configuration image is sent to the edge node; through the cloud management page, the application deployment information is stored in the cloud repository, so that when the edge node triggers the application deployment for the target application, it can retrieve the application deployment information from the cloud repository and use the application deployment information to call the application configuration image to complete the deployment of the target application.
2. The method of claim 1, wherein, The acquisition of application information of the target application and configuration information of the edge nodes where the target application is to be deployed includes: The application information and configuration information can be obtained through the cloud management page.
3. The method of claim 1, wherein, The step of generating application configuration information using the application information and the configuration information includes: Application configuration information is generated using the application information and configuration information through the cloud management page; the application configuration information is the configuration information for deploying the target application on the edge node. Accordingly, the step of constructing the application configuration image based on the application configuration information and generating application deployment information based on the application configuration image includes: Using cloud integration tools, construct the application configuration image based on the application configuration information; The application deployment information is generated based on the application configuration image through the cloud management page.
4. The method of claim 1, wherein, After generating the application configuration image and application deployment information using the application information and the configuration information, the method further includes: Upon receiving an application deployment instruction via the cloud management page, the application deployment instruction is sent to the edge node via the cloud management page; wherein, the application deployment instruction is used to instruct the edge node to deploy the target application.
5. A method of application deployment, characterized by, Applied to edge nodes, the method includes: The system receives the application configuration image sent by the cloud platform using cloud integration tools and stores the application configuration image in the edge repository; the application configuration image is an image used to deploy the target application on the edge node. Based on a preset load balancing strategy, a target host is selected from multiple host machines contained in the edge node; When application deployment for the target application is triggered, application deployment information is obtained from the cloud repository stored on the cloud management page of the cloud platform, and the application deployment information is used to call the application configuration image to deploy the target application on the target host. The application deployment information is the information used to call the application configuration image. The application configuration image and the application deployment information are different depending on the application information of the target application and / or the configuration information of the edge node where the target application is to be deployed. The application deployment information is generated based on the application configuration image. The application configuration image is constructed based on the application configuration information. The application configuration information is generated using the application information and the configuration information. The application configuration information is the configuration information for deploying the target application on the edge node.
6. The method according to claim 5, characterized in that, The acquisition of application deployment information includes: Upon receiving an application deployment instruction from the cloud platform, the application deployment information is retrieved from the cloud repository of the cloud platform according to the application deployment instruction.
7. The method according to claim 5, characterized in that, After deploying the target application on the target host machine by calling the application configuration image using the application deployment information, the method further includes: In the event that the target host machine crashes, a backup host machine different from the target host machine is selected from the plurality of host machines based on the preset load balancing strategy; The application deployment information is used to invoke the application configuration image, and the target application is deployed on the backup host machine.
8. A cloud platform, characterized in that, The cloud platform includes: The first acquisition module is used to acquire application information of the target application and configuration information of the edge nodes of the target application to be deployed. A generation module is used to generate application configuration information using the application information and the configuration information; the application configuration information is the configuration information for deploying the target application on the edge node; the module constructs the application configuration image based on the application configuration information, and generates application deployment information based on the application configuration image; the application configuration image is an image used to deploy the target application on the edge node, and the application deployment information is information used to call the application configuration image; the application configuration image and the application deployment information differ depending on the application information of the target application and / or the configuration information of the edge node where the target application is to be deployed; A module is provided for sending the application configuration image to the edge node using a cloud integration tool; and storing the application deployment information in a cloud repository through a cloud management page, so that when the edge node triggers the application deployment for the target application, it can retrieve the application deployment information from the cloud repository and use the application deployment information to call the application configuration image to complete the deployment of the target application.
9. A cloud platform, characterized in that, The cloud platform includes a first processor, a first memory, and a first communication bus; The first communication bus is used to establish a communication connection between the first processor and the first memory; The first processor is configured to execute a computer program stored in the first memory to implement the application deployment method of any one of claims 1-4 applied to a cloud platform.
10. An edge node, characterized in that, The edge nodes include: The second acquisition module is used to receive the application configuration image sent by the cloud platform using the cloud integration tool, and store the application configuration image in the edge repository; the application configuration image is an image used to deploy the target application on the edge node; The selection module is used to select a target host from multiple host machines included in the edge node based on a preset load balancing strategy. The deployment module is used to, upon triggering application deployment for the target application, retrieve application deployment information from a cloud repository stored on the cloud management page of the cloud platform, and use the application deployment information to call the application configuration image to deploy the target application on the target host. The application deployment information is the information used to call the application configuration image; the application configuration image and the application deployment information differ depending on the application information of the target application and / or the configuration information of the edge node where the target application is to be deployed; the application deployment information is generated based on the application configuration image; the application configuration image is constructed based on the application configuration information; the application configuration information is generated using the application information and the configuration information; the application configuration information is the configuration information for deploying the target application on the edge node.
11. An edge node, characterized in that, The edge node includes a second processor, a second memory, and a second communication bus; The second communication bus is used to establish a communication connection between the second processor and the second memory; The second processor is configured to execute the computer program stored in the second memory to implement the application deployment method of any one of claims 5-7 applied to an edge node.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the application deployment method according to any one of claims 1-7.
Citation Information
Patent Citations
Edge application management method and system
CN110737442A
Container Docker-based application deployment method and device, and electronic equipment
CN113835827A
Edge application deployment method and device, equipment and storage medium
CN114265664A
