Edge application deployment method, device, equipment and storage medium

Through layered mirroring and multi-edge server collaboration, the problem of poor efficiency caused by network interruptions in edge computing deployment is solved and efficient deployment under interruption is achieved.

CN114265664BActive Publication Date: 2024-10-01CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111423720.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-10-01
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

Existing edge computing deployment methods require data retransmission in the event of network interruption, resulting in poor efficiency.

Method used

By receiving the program image acquisition request sent by the edge server, perform layered image processing on the target application, allocate multiple Docker image layers and send them to the edge server respectively, so that each edge server can obtain data from the main server and/or other edges. The server obtains multiple Docker image layers, merges them into an image program or installation package, and completes the deployment.

Benefits of technology

When the network of the main server or some edge servers is interrupted, there is no need or only need to retransmit some data, which improves deployment efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114265664B_ABST
    Figure CN114265664B_ABST
Patent Text Reader

Abstract

The present application provides an edge application deployment method, device, equipment and storage medium. It includes receiving a program image acquisition request sent by multiple edge servers; according to the program image acquisition request, the program or installation package corresponding to the target application is layered and imaged to obtain multiple Docker image layers; after the multiple Docker image layers are distributed, they are sent to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer, so that each edge server in the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, and merges the multiple Docker image layers into a mirrored program or mirrored installation package, and runs the mirrored program or installs the mirrored installation package to complete the deployment of the target application. The method of the present application improves the efficiency of application deployment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to communication technology, and in particular to an edge application deployment method, device, equipment and storage medium. Background Art

[0002] With the continuous development of IoT technology, the way applications operate is changing, and IoT places higher demands on the response time of applications.

[0003] At present, edge computing is an emerging computing model in which computing occurs near the location where data is collected and analyzed. By placing computing services on edge servers that are closer to the location where computing tasks are generated than cloud computing, applications can respond faster. Currently, edge computing can be implemented based on the Docker application container engine.

[0004] However, when deploying applications to edge servers, existing program deployment methods need to retransmit data if a network interruption occurs, which results in poor efficiency. Summary of the invention

[0005] The present application provides an edge application deployment method, apparatus, device and storage medium to solve the problem of poor efficiency in deploying application programs to edge servers in the event of a network interruption.

[0006] In a first aspect, the present application provides an edge application deployment method, which is applied to a main server, comprising: receiving a program image acquisition request for a target application sent by multiple edge servers; according to the program image acquisition request, performing layered image processing on the program or installation package corresponding to the target application to obtain multiple Docker image layers; after allocating the multiple Docker image layers, they are sent to multiple edge servers for storage respectively, wherein each edge server stores at least one Docker image layer, so that each of the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, and merges the multiple Docker image layers into a mirrored program or a mirrored installation package, and runs the mirrored program or installs the mirrored installation package to complete the deployment of the target application.

[0007] In a possible implementation, multiple Docker image layers are distributed and sent to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer, so that each of the multiple edge servers obtains other Docker image layers from a main server and / or other edge servers to obtain multiple Docker image layers, including: distributing the multiple Docker image layers using a bitstream BitTorrent protocol and sending them to different edge servers among the multiple edge servers, wherein each edge server stores at least one Docker image layer; sending download information to the multiple edge servers, so that each of the multiple edge servers sends a download request to the main server and / or other edge servers according to the download information to obtain other Docker image layers, so as to obtain multiple Docker image layers, wherein the download information is determined according to a program image acquisition request, and the download information includes address information corresponding to the main server and each edge server.

[0008] In a possible implementation, before receiving the program image acquisition requests for the target application sent by multiple edge servers, the method further includes: if it is determined that at least one edge server is in a running state, sending the existing Docker image layer to at least one edge server.

[0009] In a possible implementation, according to the program image acquisition request, the program or installation package corresponding to the target application is layered and imaged to obtain multiple Docker image layers, and it also includes: using inotify-tools to monitor the deployment status to delete the corresponding program or installation package after determining that multiple Docker image layers are obtained.

[0010] In one possible implementation, after the program or installation package corresponding to the target application is layered and imaged to obtain multiple Docker image layers, it also includes: obtaining a regular image corresponding to the program image acquisition request, and calculating the memory usage of the regular image, wherein the regular image is a non-layered image; calculating the memory usage of multiple Docker image layers, and determining the image optimization result based on the memory usage of the multiple Docker image layers and the memory usage of the regular image; sending the image optimization result to the client to display and output the image optimization result.

[0011] In one possible implementation, after the program or installation package corresponding to the target application is layered and imaged to obtain multiple Docker image layers, it also includes: recording a first moment when the multiple Docker image layers are distributed and sent to multiple edge servers; receiving a second moment when the multiple Docker image layers are obtained from any one of the multiple edge servers; determining a first image transmission time according to the first moment and the second moment; using a traditional image distribution method to distribute and send the multiple Docker image layers to the multiple edge servers again, and recording a third moment when the sending starts using the traditional image distribution method and a fourth moment when the sending is completed; determining a second image transmission time according to the third moment and the fourth moment; determining transmission capacity data according to the first image transmission time and the second image transmission time; and sending the transmission capacity data to the client for display output.

[0012] In the second aspect, the present application provides an edge application deployment method, which is applied to an edge server, including: sending a program image acquisition request for a target application to a main server, so that the main server, according to the program image acquisition request, hierarchically images the corresponding program or installation package of the target application to obtain multiple Docker image layers, and distributes the multiple Docker image layers and sends them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer; obtaining other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers; merging multiple Docker image layers into a mirrored program or a mirrored installation package, and running the mirrored program or installing the mirrored installation package to complete the deployment of the target application.

[0013] In a possible implementation, a program image acquisition request for a target application is sent to a main server, so that the main server, according to the program image acquisition request, hierarchically images a corresponding program or installation package of the target application to obtain multiple Docker image layers, and distributes the multiple Docker image layers and sends them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer, including: sending a program image acquisition request for the target application to the main server, so that the main server distributes the multiple Docker image layers using a bitstream BitTorrent protocol and sends them to different edge servers among the multiple edge servers, wherein each edge server stores at least one Docker image layer, and sending download information to the multiple edge servers, wherein the download information is determined according to the program image acquisition request, and the download information includes address information corresponding to the main server and each edge server; accordingly, obtaining other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, including: sending a download request to the main server and / or other edge servers according to the download information to obtain other Docker image layers, to obtain multiple Docker image layers, wherein the download information includes address information corresponding to the main server and each edge server.

[0014] In a possible implementation, before sending the program image acquisition request to the main server, the method further includes: if the edge server is in a running state, receiving an existing Docker image layer sent by the main server.

[0015] In a possible implementation, before sending a program image acquisition request for a target application to a main server, it also includes: a first edge server receives a preset image sent by the main server, and sends the preset image to a second edge server; the first edge server uses a traffic control tool to limit the transmission speed of the first edge server; a third edge server and a fourth edge server obtain the preset image from the first edge server and the second edge server; if the third edge server and the fourth edge server can obtain the preset image from the first edge server and the second edge server, it is determined that image transmission can be performed when a single-point network is unstable.

[0016] In the third aspect, the present application provides an edge application deployment device, which is applied to a main server, and includes: a request receiving module, which is used to receive program image acquisition requests for a target application sent by multiple edge servers; an image layer acquisition module, which is used to perform layered image processing on the program or installation package corresponding to the target application according to the program image acquisition request to obtain multiple Docker image layers; an image layer sending module, which is used to distribute the multiple Docker image layers and send them to multiple edge servers for storage respectively, wherein each edge server stores at least one Docker image layer, so that each of the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, and merges the multiple Docker image layers into an imaged program or an imaged installation package, and runs the imaged program or installs the imaged installation package to complete the deployment of the target application.

[0017] In a fourth aspect, the present application provides an edge application deployment device, which is applied to an edge server, including: a request sending module, which is used to send a program image acquisition request for a target application to a main server, so that the main server, according to the program image acquisition request, hierarchically images the corresponding program or installation package of the target application to obtain multiple Docker image layers, and distributes the multiple Docker image layers and sends them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer; an image layer acquisition module, which is used to obtain other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers; a processing module, which is used to merge multiple Docker image layers into an imaged program or an imaged installation package, and run the imaged program or install the imaged installation package to complete the deployment of the target application.

[0018] In a fifth aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the edge application deployment method as described in the first aspect above.

[0019] In a sixth aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory to implement the edge application deployment method as described in the second aspect above.

[0020] In a seventh aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the edge application deployment method as described in the first aspect above.

[0021] In an eighth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the edge application deployment method as described in the second aspect above.

[0022] The edge application deployment method, apparatus, device and storage medium provided by the present application receive program image acquisition requests for target applications sent by multiple edge servers, and according to the program image acquisition requests, perform layered image processing on the program or installation package corresponding to the target application to obtain multiple Docker image layers, and send the multiple Docker image layers to different edge servers respectively, so that each edge server can obtain other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, and then merge the multiple Docker image layers into a mirrored program or a mirrored installation package, and finally run the mirrored program or install the mirrored installation package, so as to achieve the effect of not needing to retransmit data or only needing to retransmit part of the data when the main server or part of the edge servers are disconnected from the network when deploying the edge application, thereby achieving the purpose of improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0024] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0025] Figure 2 Schematic diagram of the process of edge application deployment method provided in the embodiment of the present application Figure 1 ;

[0026] Figure 3 A diagrammatic diagram of a mirror optimization result provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of transmission capability data provided by an embodiment of the present application;

[0028] Figure 5 Schematic diagram of the process of edge application deployment method provided in the embodiment of the present application Figure 2 ;

[0029] Figure 6 A schematic diagram of the interactive process of the edge application deployment method provided in an embodiment of the present application;

[0030] Figure 7 A schematic diagram of an edge application deployment device provided in an embodiment of the present application Figure 1 ;

[0031] Figure 8 A schematic diagram of an edge application deployment device provided in an embodiment of the present application Figure 2 ;

[0032] Fig. 9 A schematic diagram of an edge application deployment device provided in an embodiment of the present application Figure 3 ;

[0033] Fig.10 A schematic diagram of an edge application deployment device provided in an embodiment of the present application Figure 4 ;

[0034] Fig.11 A schematic diagram of an electronic device provided in an embodiment of the present application.

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

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

[0037] As IoT technology plays a greater role in daily life, people are demanding faster network service response speeds for daily life services.

[0038] Edge computing technology enables a large amount of computing to take place closer to the location where data is collected and analyzed, making it possible to obtain computing results faster. Currently, edge computing can be implemented based on resource management and scheduling platforms such as Openstack and Kubernetes, or using Docker containers. Docker containers occupy less memory than resource management and scheduling platforms such as Openstack and Kubernetes. However, the existing application deployment method based on Docker containers requires data retransmission in the event of a network interruption, which has the problem of poor efficiency.

[0039] In order to solve the above-mentioned efficiency problem, the present application proposes an edge application deployment method. After the edge server sends a program image acquisition request for the target application to the main server, the main server receives the program image acquisition request for the target application sent by the edge server, and performs layered image processing on the program or installation package corresponding to the target application to obtain multiple Docker image layers, and distributes the obtained multiple Docker image layers and sends them to the edge servers for storage respectively, so that each edge server stores at least one Docker image layer, and then each edge server can obtain other Docker image layers from the main server and / or other edge servers to obtain the above-mentioned multiple Docker image layers, and merge the multiple Docker image layers into a mirrored program or mirrored installation package, and run the mirrored program or install the mirrored installation package to complete the deployment of the target application.

[0040] The edge application deployment method provided in the embodiment of the present application is applied to the scenario where the main server deploys the application to the edge server.

[0041] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, in this scenario, a main server 101 and multiple edge servers (102, 103, 104, 105) are included. The multiple edge servers (102, 103, 104, 105) may be separated from the main server 101, or may be virtualized servers in the same physical server as the main server. If the multiple edge servers (102, 103, 104, 105) are separated from the main server 101, then the main server 101 and the multiple edge servers (102, 103, 104, 105) are connected in communication.

[0042] In the specific implementation process, the main server 101 is used to receive a program image acquisition request for a target application sent by an edge server, perform layered image processing on the program or installation package corresponding to the target application to obtain multiple Docker image layers, and distribute the multiple Docker image layers to multiple edge servers (102, 103, 104, 105) and send them separately.

[0043] Multiple edge servers (102, 103, 104, 105) are used to receive the above-mentioned multiple Docker image layers, wherein each edge server, after obtaining at least one of the multiple Docker image layers, also obtains other Docker image layers from the main server 101 and / or other edge servers until the above-mentioned multiple Docker image layers are obtained, and the multiple Docker image layers are merged into an image program or an image installation package, and the image program is run or the image installation package is installed. The above-mentioned edge servers (102, 103, 104, 105) all have edge node accelerators of GPU (graphics processing unit) and FPGA (Field Programmable Gate Array), and the edge servers (102, 103, 104, 105) all have Docker container engines, and the Docker container engine is based on a private Docker registry.

[0044] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the edge application deployment method. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.

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

[0046] Figure 2 Schematic diagram of the process of edge application deployment method provided in the embodiment of the present application Figure 1 The execution subject of the embodiment of the present application may be Figure 1 The main server 101 in Figure 2 As shown, the method includes:

[0047] S201: receiving program image acquisition requests for target applications sent by multiple edge servers.

[0048] In this step, the program image acquisition request for the target application may include a download request.

[0049] Specific examples of target applications include: Ubuntu, latex, Hadoop, Redis, MySQL, and MariDB. This application does not limit the specific content of the application.

[0050] S202: According to the program image acquisition request, the program or installation package corresponding to the target application is subjected to layered image processing to obtain multiple Docker image layers.

[0051] In this step, multiple Docker image layers belong to the same read-only layer list, that is, multiple Docker image layers are read-only. These layers represent different image parts of the program or installation package. Stacking each other can restore the image of the corresponding program or installation package. The construction and modification of the Docker image layer can be completed by Dockerfile. This application does not limit the number of layers of the Docker image layer. If you want to make the program start faster when it is first started, you can choose a smaller number of layers. Layered mirroring can be to first mirror the program or installation package corresponding to the target application and then perform layered processing, or it can be to first layer the program or installation package corresponding to the target application and then perform mirroring.

[0052] Specifically, the layering method may include layering using Dedupe technology.

[0053] S203: After allocating the multiple Docker image layers, they are sent to the multiple edge servers for storage respectively, wherein each edge server stores at least one Docker image layer, so that each of the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, and merges the multiple Docker image layers into an image-based program or an image-based installation package, and runs the image-based program or installs the image-based installation package to complete the deployment of the target application.

[0054] In this step, allocating multiple Docker image layers can be to allocate each Docker image layer to at least one edge server, and sending is performed according to the allocation result to ensure that all Docker image layers are sent to the edge server.

[0055] For example, if there are four Docker image layers, and there are three edge servers, three of the four Docker image layers can be sent to the three edge servers respectively, and the last Docker image layer can be randomly sent to one of the three edge servers. The method for sending the last Docker image layer can also be to detect the network speed of the three edge servers respectively, and send the last Docker image layer to the edge server with the fastest network speed.

[0056] From the description of the above embodiments, it can be seen that the method provided in the embodiments of the present application receives program image acquisition requests for the target application sent by multiple edge servers, and according to the program image acquisition request, performs layered image processing on the program or installation package corresponding to the target application to obtain multiple Docker image layers, and sends the multiple Docker image layers to different edge servers respectively, so that each edge server can obtain other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, and then merge the multiple Docker image layers into a mirrored program or a mirrored installation package, and finally runs the mirrored program or installs the mirrored installation package, so as to achieve the effect that when the network of the main server or some edge servers is interrupted when deploying edge applications, there is no need to retransmit data or only needs to retransmit part of the data, thereby achieving the purpose of improving efficiency.

[0057] In a possible implementation, in the above step S203, after allocating the multiple Docker image layers, they are sent to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer, so that each edge server in the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, specifically including:

[0058] S2031: Distribute the multiple Docker image layers using the BitTorrent protocol and send them to different edge servers among the multiple edge servers, wherein each edge server stores at least one Docker image layer.

[0059] In this step, the BitTorrent protocol is a P2P (peer-to-peer) file transfer protocol based on the TCP / IP (Transmission Control Protocol / Internet Protocol), located in the application layer of the TCP / IP structure, relying on the CDN (Content Delivery Network) mechanism. The BitTorrent protocol itself also contains many specific content protocols and extension protocols.

[0060] S2032: Send the download information to multiple edge servers, so that each of the multiple edge servers sends a download request to the main server and / or other edge servers according to the download information to obtain other Docker image layers, thereby obtaining multiple Docker image layers, wherein the download information is determined according to the program image acquisition request, and the download information includes the address information corresponding to the main server and each edge server.

[0061] In this step, the download information may be updated in real time according to the program image acquisition request for the target application.

[0062] For example, the main server receives a program image acquisition request sent by edge server A. At this time, edge server A belongs to the above-mentioned multiple edge servers, and then the address information of edge server A is added to the download information, and the corresponding download information of the multiple edge servers is sent to the multiple edge servers, so that the above-mentioned multiple edge servers obtain the address information of the multiple edge servers that are currently downloading the program image.

[0063] From the description of the above embodiment, it can be seen that the embodiment of the present application uses the BitTorrent protocol to distribute multiple Docker image layers and send them to multiple edge servers for storage, thereby improving efficiency.

[0064] In a possible implementation, before receiving the program image acquisition request for the target application sent by multiple edge servers in the above step S201, it specifically includes: if it is determined that at least one edge server is in operation, sending the existing Docker image layer to at least one edge server.

[0065] Determining that at least one edge server is in operation may be determining that a Docker container of at least one edge server is running. Sending an existing Docker image layer to at least one edge server may be using a traditional image distribution method or using a BitTorrent protocol to send an existing Docker image layer to at least one edge server.

[0066] From the description of the above embodiments, it can be seen that the embodiments of the present application send the existing Docker image layer to the running edge server before receiving the program image acquisition request, thereby eliminating the process of distributing the Docker image layer after receiving the program image acquisition request, and reducing the time for edge application deployment.

[0067] In a possible implementation, after the above step S202 performs layered image processing on the program or installation package corresponding to the target application according to the program image acquisition request to obtain multiple Docker image layers, it specifically also includes: using the inotify-tools tool to monitor the deployment status to delete the corresponding program or installation package after determining that multiple Docker image layers are obtained.

[0068] Among them, the inotify-tools tool is used to monitor the deployment status, that is, the inotify-tools tool is used to monitor the file changes in the main server. When multiple new Docker image layers are generated, the inotify-tools tool will delete the corresponding program or installation package.

[0069] From the description of the above embodiment, it can be seen that by monitoring the file status of the server and deleting the corresponding program or installation package after adding multiple Docker image layers, the effect of reducing redundant files caused by generating image files is achieved, and the memory usage is reduced.

[0070] In a possible implementation, after performing layered image processing on the program or installation package corresponding to the target application to obtain multiple Docker image layers in the above step S202, the following is further included:

[0071] S301: Obtain a regular image corresponding to a program image acquisition request, and calculate the memory usage of the regular image, wherein the regular image is a non-layered image.

[0072] In this step, the regular image may be an image obtained by using a traditional image generation method, or may be an image downloaded from the Internet.

[0073] Specifically, in a traditional image generation method such as a Docker native image generation method, downloading from the Internet may be extracted from a Docker Hub repository.

[0074] S302: Calculate the memory usage of multiple Docker image layers, and determine the image optimization result according to the memory usage of the multiple Docker image layers and the memory usage of the conventional image.

[0075] In this step, the memory usage of multiple Docker image layers is calculated, which can be to add the memory usage of each Docker image layer to obtain the total memory usage of the multiple Docker image layers, and determine the total memory usage as the memory usage of the multiple Docker image layers. The image optimization result can be one or more of a table, a chart, and a text description. This application does not limit the specific form of the image optimization result.

[0076] Figure 3 A diagram showing a mirror optimization result provided in an embodiment of the present application. Figure 3 As shown, the black column represents the memory usage of the image obtained by the traditional image generation method, and the white column represents the memory usage of multiple Docker image layers obtained by this application.

[0077] S303: Send the image optimization result to the client to display and output the image optimization result.

[0078] Among them, the main server and the client can be connected by communication, and the client should have a display function.

[0079] From the description of the above embodiments, it can be seen that after obtaining multiple Docker image layers, a conventional image is obtained, and the memory usage of the conventional image is compared with the memory usage of multiple Docker image layers obtained in this application to obtain an image optimization result. The image optimization result can intuitively show whether the memory usage of the image obtained in this application is less than the memory usage of the conventional image.

[0080] In a possible implementation, after performing layered image processing on the program or installation package corresponding to the target application to obtain multiple Docker image layers in the above step S202, the following is further included:

[0081] S401: Record the first moment when multiple Docker image layers are distributed and sent to multiple edge servers.

[0082] In this step, the first moment may be the moment when the multiple Docker image layers start to be sent, which may be determined in combination with the current time of the server.

[0083] S402: Receive a second moment of completing obtaining multiple Docker image layers, sent by any edge server among the multiple edge servers.

[0084] In this step, the second moment represents the moment when all layers in the multiple Docker image layers have been transferred.

[0085] S403: Determine a first mirror transmission time according to the first time and the second time.

[0086] In this step, the first mirror transmission time is the difference between the second moment and the first moment.

[0087] S404: Use the traditional image distribution method to distribute and send the multiple Docker image layers to the multiple edge servers again, and record the third time when the sending starts using the traditional image distribution method and the fourth time when the sending is completed.

[0088] In this step, the fourth moment is obtained in a similar manner to the second moment in step S402, and will not be described in detail here. A traditional image distribution method is, for example, a native Docker image distribution method.

[0089] S405: Determine the second mirror transmission time according to the third time and the fourth time.

[0090] In this step, the second mirror transmission time is the time difference between the fourth moment and the third moment.

[0091] S406: Determine transmission capability data according to the first mirror transmission time and the second mirror transmission time.

[0092] In this step, the transmission capacity data may be time or the inverse of time, and may be expressed in the form of one or more of a table, a chart, and a text description.

[0093] S407: Send the transmission capability data to the client for display output.

[0094] The specific process of this step is similar to the specific process of the above step S303, and will not be repeated here.

[0095] In a possible implementation, the above steps S401 to S405 may be performed multiple times with different numbers of nodes to obtain multiple first mirror transmission times and second mirror transmission times, and determine corresponding transmission capacity data. Figure 4 This is a schematic diagram of the transmission capability data provided by the embodiment of the present application. Figure 4 As shown in the figure, the solid line is the node number and time curve obtained by the method provided in the present application, and the dotted line is the node number and time curve obtained by the traditional mirror distribution method.

[0096] From the description of the above embodiments, it can be seen that the embodiments of the present application can determine the transmission capacity data by recording the time from sending the image to completing the image sending by the method of the present application and the traditional image distribution method, and by sending the transmission capacity data to the client, the visual output of the transmission capacity data can be achieved, which is convenient for comparing the efficiency of distributing images by the method provided by the present application and the traditional image distribution method.

[0097] Figure 5 Schematic diagram of the process of edge application deployment method provided in the embodiment of the present application Figure 2 The execution subject of the embodiment of the present application may be Figure 1 Any edge server in Figure 5 As shown, the method of this embodiment can be applied in an edge server, and the edge application deployment method includes:

[0098] S501: Send a program image acquisition request for the target application to the main server, so that the main server can layer the corresponding program or installation package of the target application to obtain multiple Docker image layers according to the program image acquisition request, and distribute the multiple Docker image layers and send them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer.

[0099] S502: Obtain other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers.

[0100] In this step, each edge server can identify which part of the multiple Docker image layers the received Docker image layer is, and thus obtain other Docker image layers from the main server and / or other edge servers. Correspondingly, each edge server can also send its current Docker image layers to other edge servers.

[0101] S503: Merge multiple Docker image layers into an image-based program or an image-based installation package, and run the image-based program or install the image-based installation package to complete the deployment of the target application.

[0102] In this step, merging multiple Docker image layers may be stacking the multiple Docker image layers on top of each other.

[0103] The Docker image in this application can be based on BusyBox software and alpine operating system.

[0104] From the description of the above embodiment, it can be seen that the embodiment of the present application obtains at least one Docker image layer by sending a program image acquisition request to the main server, and then obtains other Docker image layers from other edge servers, and finally merges the obtained multiple Docker image layers into a mirrored program or installation package to run or install the program and realize the deployment of edge applications. Since the Docker image is based on BusyBox software and alpine operating system, it occupies less memory than the traditional system, and since the image can be obtained from other edge servers, multiple Docker image layers can still be obtained in the case of network interruption of the main server and / or some edge servers, thereby improving the efficiency of edge server application deployment.

[0105] In a possible implementation, in the above step S501, a program image acquisition request for the target application is sent to the main server, so that the main server, according to the program image acquisition request, hierarchically images the corresponding program or installation package of the target application to obtain multiple Docker image layers, and distributes the multiple Docker image layers and sends them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer, specifically including: sending a program image acquisition request for the target application to the main server, so that the main server distributes the multiple Docker image layers using the bitstream BitTorrent protocol and sends them to different edge servers among the multiple edge servers, wherein each edge server stores at least one Docker image layer, and sending download information to the multiple edge servers, wherein the download information is determined according to the program image acquisition request, and the download information includes address information corresponding to the main server and each edge server.

[0106] Correspondingly, in the above step S502, other Docker image layers are obtained from the main server and / or other edge servers to obtain multiple Docker image layers, specifically including: sending a download request to the main server and / or other edge servers according to the download information to obtain other Docker image layers, to obtain multiple Docker image layers, wherein the download information includes the address information corresponding to the main server and each edge server.

[0107] In a possible implementation, before sending a program image acquisition request to the main server, the method further includes: if the edge server is in a running state, receiving an existing Docker image layer sent by the main server.

[0108] In a possible implementation, before sending a program image acquisition request for a target application to a main server, the following is specifically included:

[0109] S601: The first edge server receives a preset image sent by the main server, and sends the preset image to the second edge server.

[0110] In this step, the preset image can be extracted by the main server from the Docker hub repository in advance, or can be obtained by mirroring a preset program or a preset installation package.

[0111] S602: The first edge server uses a traffic control tool to limit the transmission speed of the first edge server.

[0112] In this step, the traffic control tool may be a TC (Traffic Control) module provided by the Linux system.

[0113] S603: The third edge server and the fourth edge server obtain the preset image from the first edge server and the second edge server.

[0114] In this step, the method for obtaining the preset image may be to obtain the preset image using the non-traditional image distribution method provided in the above embodiments of the present application.

[0115] S604: If the third edge server and the fourth edge server can obtain the preset image from the first edge server and the second edge server, it is determined that the image transmission can be performed when the single point network is unstable.

[0116] In this step, the single-point network instability is achieved by limiting the first edge server in the above step S602.

[0117] In a possible implementation, the first edge server, the second edge server, the third edge server, and the fourth edge server in the above embodiment all use a Linux operating system, an ARM-64 processor, a 128G memory, a 2T hard disk, and a 1000 Mbps Ethernet. In this embodiment, the Docker version is 18.03 and the kubernetes version is 1.15. The first edge server receives the preset image sent by the main server, and sends the preset image to the second edge server. Then the first edge server uses the TC module to limit its own transmission speed to 1Mbps. Then the third edge server and the fourth edge server obtain the preset image from the first edge server and the second edge server. If the third edge server and the fourth edge server can obtain the preset image from the first edge server and the second edge server, it can be explained that when the single point network is unstable, that is, when the first server network is unstable, image transmission can be performed.

[0118] From the description of the above embodiments, it can be seen that the embodiments of the present application first allow the first edge server and the second edge server to obtain the preset image, then use the traffic control tool to simulate the network instability of the first edge server, and then use the third edge server and the fourth edge server to obtain the preset image from the first edge server and the second edge server. If the preset image can be obtained, it means that the image transmission can be performed when the single-point network is unstable.

[0119] Figure 6 Schematic diagram of the interaction process of the edge application deployment method provided in the embodiment of the present application. This embodiment describes the interaction process between the main server and the edge server, such as Figure 6 As shown, the method includes:

[0120] S701: The edge server sends a program image acquisition request for a target application to the main server.

[0121] S702: The main server images the corresponding program or installation package of the target application in layers according to the program image acquisition request to obtain multiple Docker image layers.

[0122] S703: The main server distributes the multiple Docker image layers and sends them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer.

[0123] S704: The edge server obtains other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers.

[0124] S705: The edge server merges the multiple Docker image layers into an image-based program or an image-based installation package, and runs the image-based program or installs the image-based installation package to complete the deployment of the target application.

[0125] Figure 7 A schematic diagram of an edge application deployment device provided in an embodiment of the present application Figure 1 .like Figure 7 As shown, the edge application deployment device 700 includes: a request receiving module 701, an image layer acquisition module 702 and an image layer sending module 703.

[0126] The request receiving module 701 is used to receive program image acquisition requests for target applications sent by multiple edge servers.

[0127] The image layer acquisition module 702 is used to perform layered image processing on the program or installation package corresponding to the target application according to the program image acquisition request to obtain multiple Docker image layers.

[0128] The image layer sending module 703 is used to distribute multiple Docker image layers and send them to multiple edge servers for storage respectively, wherein each edge server stores at least one Docker image layer, so that each edge server in the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers, and merges the multiple Docker image layers into an image-based program or an image-based installation package, and runs the image-based program or installs the image-based installation package to complete the deployment of the target application.

[0129] In a possible implementation, the image layer sending module 703 is specifically used to distribute multiple Docker image layers using the BitTorrent protocol and send them to different edge servers among multiple edge servers, wherein each edge server stores at least one Docker image layer. Download information is sent to multiple edge servers, so that each edge server among the multiple edge servers sends a download request to the main server and / or other edge servers according to the download information to obtain other Docker image layers, thereby obtaining multiple Docker image layers, wherein the download information is determined according to the program image acquisition request, and the download information includes the address information corresponding to the main server and each edge server.

[0130] Figure 8 A schematic diagram of an edge application deployment device provided in an embodiment of the present application Figure 2 .like Figure 8 As shown, the edge application deployment device 700 also includes a pre-sending module 704.

[0131] The pre-sending module 704 is configured to send the existing Docker image layer to the at least one edge server if it is determined that at least one edge server is in operation.

[0132] Continue to refer Figure 8 .like Figure 8 As shown, the edge application deployment device 700 also includes a file deletion module 705.

[0133] The file deletion module 705 is used to monitor the deployment status using the inotify-tools tool, so as to delete the corresponding program or installation package after determining that multiple Docker image layers are obtained.

[0134] Continue to refer Figure 8 .like Figure 8 As shown, the edge application deployment device 700 also includes an occupancy acquisition module 706, an optimization result determination module 707 and an optimization result output module 708.

[0135] The occupancy acquisition module 706 is used to acquire the regular image corresponding to the program image acquisition request and calculate the memory occupancy of the regular image, wherein the regular image is a non-layered image.

[0136] The optimization result determination module 707 is used to calculate the memory usage of multiple Docker image layers, and determine the image optimization result according to the memory usage of multiple Docker image layers and the memory usage of the conventional image.

[0137] The optimization result output module 708 is used to send the image optimization result to the client to display and output the image optimization result.

[0138] Continue to refer Figure 8 .like Figure 8 As shown, the edge application deployment device 700 also includes: a first moment recording module 709, a second moment recording module 710, a first transmission time determination module 711, a third moment recording module 712, a second transmission time determination module 713, a transmission capability data determination module 714 and a display output module 715.

[0139] A first moment recording module 709, used to record the first moment when multiple Docker image layers are distributed and sent to multiple edge servers;

[0140] A second time recording module 710 is used to receive a second time sent by any edge server among the multiple edge servers for completing the acquisition of the multiple Docker image layers;

[0141] A first transmission time determining module 711, configured to determine a first mirror transmission time according to a first moment and a second moment;

[0142] A third time recording module 712 is used to distribute and send multiple Docker image layers to multiple edge servers again using a traditional image distribution method, and record a third time when the sending starts using the traditional image distribution method and a fourth time when the sending is completed;

[0143] A second transmission time determining module 713, configured to determine a second mirror transmission time according to a third moment and a fourth moment;

[0144] A transmission capability data determination module 714, configured to determine transmission capability data according to the first mirror transmission time and the second mirror transmission time;

[0145] The display output module 715 is used to send the transmission capability data to the client for display output.

[0146] Fig. 9 A schematic diagram of an edge application deployment device provided in an embodiment of the present application Figure 3 .like Fig. 9 As shown, the edge application deployment device 900 includes: a request sending module 901, an image layer obtaining module 902 and a processing module 903.

[0147] The request sending module 901 is used to send a program image acquisition request for the target application to the main server, so that the main server can layer the corresponding program or installation package of the target application to obtain multiple Docker image layers according to the program image acquisition request, and distribute the multiple Docker image layers and send them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer.

[0148] The image layer obtaining module 902 is used to obtain other Docker image layers from the main server and / or other edge servers to obtain multiple Docker image layers.

[0149] The processing module 903 is used to merge multiple Docker image layers into an image-based program or an image-based installation package, and run the image-based program or install the image-based installation package to complete the deployment of the target application.

[0150] In a possible implementation, the request sending module 901 is specifically used to send a program image acquisition request for a target application to the main server, so that the main server distributes multiple Docker image layers using the BitTorrent protocol and sends them to different edge servers among multiple edge servers, wherein each edge server stores at least one Docker image layer, and sends download information to multiple edge servers, wherein the download information is determined according to the program image acquisition request, and the download information includes the address information corresponding to the main server and each edge server. According to the download information, a download request is sent to the main server and / or other edge servers to obtain other Docker image layers, and multiple Docker image layers are obtained, wherein the download information includes the address information corresponding to the main server and each edge server.

[0151] Fig.10 A schematic diagram of an edge application deployment device provided in an embodiment of the present application Figure 4 .like Fig.10 As shown, the edge application deployment device 900 further includes: an image layer receiving module 904.

[0152] The image layer receiving module 904 is used to receive the existing Docker image layer sent by the main server if the edge server is in the running state.

[0153] Continue to refer Fig.10 .like Fig.10 As shown, the edge application deployment device 900 further includes: an image forwarding module 905 , a speed limiting module 906 , a preset image acquisition module 907 and a determination module 908 .

[0154] The image forwarding module 905 is used for the first edge server to receive the preset image sent by the main server, and send the preset image to the second edge server.

[0155] The speed limiting module 906 is used for the first edge server to use a flow control tool to limit the transmission speed of the first edge server.

[0156] The preset image acquisition module 907 is used for the third edge server and the fourth edge server to acquire the preset image from the first edge server and the second edge server.

[0157] The judgment module 908 is used to determine whether the image transmission can be performed when the single point network is unstable if the third edge server and the fourth edge server can obtain the preset image from the first edge server and the second edge server.

[0158] Fig.11 A schematic diagram of an electronic device provided in an embodiment of the present application, such as Fig.11 As shown, the electronic device 1100 includes: a processor 1101, and a memory 1102 connected to the processor. The memory 1102 stores computer-executable instructions. The processor 1101 executes the computer-executable instructions stored in the memory 1102 to implement the edge application deployment method of any of the above embodiments. The processor 1101 and the memory 1102 may be connected by a bus.

[0159] An embodiment of the present application also provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the edge application deployment method as in any of the above embodiments.

[0160] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the above edge application deployment method.

[0161] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0162] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0163] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0164] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0165] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0166] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0167] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0168] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0169] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

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

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

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

Claims

1. A method for deploying edge applications, characterized in that: Applied to the master server, including: Receiving program image acquisition requests for target applications sent by multiple edge servers; According to the program image acquisition request, the program or installation package corresponding to the target application is subjected to layered image processing to obtain multiple Docker image layers; After being distributed, the multiple Docker image layers are sent to the multiple edge servers for storage respectively, wherein each edge server stores at least one Docker image layer, so that each edge server among the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain the multiple Docker image layers, and merges the multiple Docker image layers into an imaged program or an imaged installation package, and runs the imaged program or installs the imaged installation package to complete the deployment of the target application.

2. The method according to claim 1, characterized in that The method of allocating the multiple Docker image layers and sending them to the multiple edge servers for storage respectively, wherein each edge server stores at least one Docker image layer, so that each edge server in the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain the multiple Docker image layers, includes: Distribute the multiple Docker image layers using the BitTorrent protocol and send them to different edge servers among the multiple edge servers, wherein each edge server stores at least one Docker image layer; The download information is sent to the multiple edge servers, so that each of the multiple edge servers sends a download request to the main server and / or other edge servers according to the download information to obtain other Docker image layers, thereby obtaining multiple Docker image layers, wherein the download information is determined according to the program image acquisition request, and the download information includes address information corresponding to the main server and each edge server.

3. The method according to claim 1, characterized in that Before receiving the program image acquisition requests for the target application sent by the plurality of edge servers, the method further includes: If it is determined that at least one edge server is in a running state, the existing Docker image layer is sent to the at least one edge server.

4. The method according to any one of claims 1 to 3, characterized in that: After performing layered image processing on the program or installation package corresponding to the target application according to the program image acquisition request to obtain multiple Docker image layers, the method further includes: The inotify-tools tool is used to monitor the deployment status, so as to delete the corresponding program or installation package after determining that the multiple Docker image layers are obtained.

5. The method according to any one of claims 1 to 3, characterized in that: After the program or installation package corresponding to the target application is processed into a layered image to obtain multiple Docker image layers, the method further includes: Obtaining a regular image corresponding to the program image acquisition request, and calculating a memory usage of the regular image, wherein the regular image is a non-layered image; Calculate the memory usage of the multiple Docker image layers, and determine the image optimization result according to the memory usage of the multiple Docker image layers and the memory usage of the conventional image; The image optimization result is sent to the client to display and output the image optimization result.

6. The method according to any one of claims 1 to 3, characterized in that: After the program or installation package corresponding to the target application is processed into a layered image to obtain multiple Docker image layers, the method further includes: Recording the first moment when the multiple Docker image layers are distributed and sent to the multiple edge servers; Receiving a second time point at which the plurality of Docker image layers are obtained, sent by any edge server among the plurality of edge servers; Determine a first mirror transmission time according to the first moment and the second moment; Using a traditional image distribution method to distribute and send the multiple Docker image layers to the multiple edge servers again, and recording a third time when the sending starts using the traditional image distribution method and a fourth time when the sending is completed; Determine the second mirror transmission time according to the third moment and the fourth moment; Determine transmission capability data according to the first mirror transmission time and the second mirror transmission time; The transmission capability data is sent to the client for display output.

7. An edge application deployment method, characterized in that: Applied to edge servers, including: Sending a program image acquisition request for a target application to a main server, so that the main server images a corresponding program or installation package of the target application in layers according to the program image acquisition request to obtain multiple Docker image layers, and distributing the multiple Docker image layers and sending them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer; Obtaining other Docker image layers from the main server and / or other edge servers to obtain the multiple Docker image layers; The multiple Docker image layers are combined into an image-based program or an image-based installation package, and the image-based program is run or the image-based installation package is installed to complete the deployment of the target application.

8. The method according to claim 7, characterized in that The method includes sending a program image acquisition request for a target application to a main server, so that the main server images a corresponding program or installation package of the target application in layers according to the program image acquisition request to obtain multiple Docker image layers, and distributing the multiple Docker image layers and sending them to the multiple edge servers for storage, wherein each edge server stores at least one Docker image layer, including: Sending a program image acquisition request for a target application to a main server, so that the main server distributes the multiple Docker image layers using a BitTorrent protocol and sends them to different edge servers among the multiple edge servers, each of which stores at least one Docker image layer, and sending download information to the multiple edge servers, wherein the download information is determined according to the program image acquisition request, and the download information includes address information corresponding to the main server and each edge server; Accordingly, other Docker image layers are obtained from the main server and / or other edge servers to obtain the multiple Docker image layers, including: A download request is sent to the main server and / or other edge servers according to the download information to obtain other Docker image layers, thereby obtaining multiple Docker image layers, wherein the download information includes address information corresponding to the main server and each edge server.

9. The method according to claim 7 or 8, characterized in that: Before sending the program image acquisition request to the main server, the method further includes: If the edge server is in a running state, the existing Docker image layer sent by the main server is received.

10. The method according to any one of claims 7 or 8, characterized in that: Before sending the program image acquisition request for the target application to the main server, the method further includes: The first edge server receives the preset image sent by the main server, and sends the preset image to the second edge server; The first edge server uses a traffic control tool to limit the transmission speed of the first edge server; The third edge server and the fourth edge server obtain the preset image from the first edge server and the second edge server; If the third edge server and the fourth edge server can obtain the preset image from the first edge server and the second edge server, it is determined that image transmission can be performed when the single-point network is unstable.

11. An edge application deployment device, characterized in that: Applied to the master server, including: A request receiving module, used to receive program image acquisition requests for target applications sent by multiple edge servers; An image layer acquisition module is used to perform layered image processing on the program or installation package corresponding to the target application according to the program image acquisition request to obtain multiple Docker image layers; An image layer sending module is used to distribute the multiple Docker image layers and send them to the multiple edge servers for storage respectively, wherein each edge server stores at least one Docker image layer, so that each edge server among the multiple edge servers obtains other Docker image layers from the main server and / or other edge servers to obtain the multiple Docker image layers, and merges the multiple Docker image layers into an image-based program or an image-based installation package, and runs the image-based program or installs the image-based installation package to complete the deployment of the target application.

12. An edge application deployment device, characterized in that: Applied to edge servers, including: A request sending module is used to send a program image acquisition request for a target application to a main server, so that the main server images the corresponding program or installation package of the target application in layers according to the program image acquisition request to obtain multiple Docker image layers, and distributes the multiple Docker image layers and sends them to multiple edge servers for storage, wherein each edge server stores at least one Docker image layer; An image layer obtaining module, used to obtain other Docker image layers from the main server and / or other edge servers to obtain the multiple Docker image layers; A processing module is used to merge the multiple Docker image layers into an image-based program or an image-based installation package, and run the image-based program or install the image-based installation package to complete the deployment of the target application.

13. An electronic device, comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the edge application deployment method according to any one of claims 1 to 6.

14. An electronic device comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the edge application deployment method according to any one of claims 7 to 10.

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

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