Edge mirror image downloading method and system, electronic equipment and readable storage medium

By redirecting the application image download request of edge nodes to another edge node in the same region in the cloud edge architecture, the problem of slow application image pulling in cloud center warehouses is solved, and the image download acceleration and application deployment efficiency are improved.

CN119603313APending Publication Date: 2025-03-11JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411732582.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the cloud-edge architecture, the speed of pulling application images from the cloud computing center warehouse is slow and occupies a lot of network resources, resulting in low application deployment efficiency and reduced business quality stability.

Method used

The cloud center redirects the edge node's download request for the application image to another edge node in the same region, so that multiple edge nodes in the same region can quickly and efficiently obtain application image at a nearby edge node.

Benefits of technology

It realizes the acceleration of regional-based mirror downloads, reduces dependence on cloud center warehouses, improves application deployment efficiency, and improves overall business quality and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603313A_ABST
    Figure CN119603313A_ABST
Patent Text Reader

Abstract

The invention provides an edge mirror image downloading method and system, electronic equipment and a readable storage medium, and relates to the technical field of computers. In the method, a cloud center can respond to a request of downloading an application mirror image by a first edge node, search a second edge node in a region to which the first edge node belongs, and send a redirection address pointing to the second edge node to the first edge node; therefore, the first edge node can request the second edge node to download the application mirror image based on the redirection address. According to the scheme, the cloud center can redirect the downloading request of the edge node for the application mirror image to another edge node in the same region, so that a plurality of edge nodes in the same region can quickly and efficiently obtain the application mirror image at the nearby edge node, and region-based mirror image downloading acceleration and multi-region edge node management are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the cloud-edge architecture, the cloud center can collect global data and provide services such as scheduling, operation and maintenance, and macro-decision-making. The edge nodes can collect, analyze, and infer local data in the region based on business needs.

[0003] Edge nodes can provide related services by deploying applications, but when pulling application images, they need to go back to the central warehouse of cloud computing, which is highly dependent on the management and distribution of application images by the central warehouse.

[0004] However, the speed of pulling application images from the central warehouse is slow, and the large application images occupy more network resources. On this basis, it further leads to low application deployment efficiency and affects the traffic of other services, thus causing the overall risk of reduced service quality and stability.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the present disclosure is to provide an edge image downloading method, an edge image downloading system, an electronic device and a computer-readable storage medium, wherein a cloud center can redirect an edge node's download request for an application image to another edge node in the same region, so that multiple edge nodes in the same region can quickly and efficiently obtain the application image from a nearby edge node, thereby realizing region-based image download acceleration and multi-region edge node management.

[0007] According to a first aspect of the present disclosure, there is provided an edge image downloading method, which can be applied to a cloud center, comprising: in response to a request from a first edge node to download an application image, searching for a second edge node in the region to which the first edge node belongs; sending a redirection address pointing to the second edge node to the first edge node, so that the first edge node requests the second edge node to download the application image based on the redirection address.

[0008] In an exemplary embodiment, after sending the redirection address pointing to the second edge node to the first edge node, the method further includes: in response to the second edge node's request to obtain the application image when the application image does not exist in the local cache, sending the application image to the second edge node.

[0009] In an exemplary embodiment, in response to a request from a first edge node to download an application image, before searching for a second edge node in a region to which the first edge node belongs, the method includes: pushing at least one application image to the second edge node.

[0010] In an exemplary embodiment, in response to a request from a first edge node to download an application image, before searching for a second edge node in a region to which the first edge node belongs, the method further includes: performing regional division among a plurality of edge nodes; wherein each region includes at least two edge nodes; and selecting any one edge node in each region as a second edge node.

[0011] In an exemplary embodiment, after selecting any one edge node in each region as the second edge node, the method further includes: receiving heartbeat information sent by the second edge node, and determining the online status of the second edge node according to the heartbeat information.

[0012] According to a second aspect of the present disclosure, an edge image downloading method is provided, which can be applied to a second edge node. The method may include: in response to a request from a first edge node based on a redirection address, obtaining an application image from a local cache; the redirection address is sent by a cloud center in response to a request from the first edge node to download the application image, and the second edge node and the first edge node belong to the same region; and sending the application image to the first edge node.

[0013] In an exemplary embodiment, obtaining an application image from a local cache includes: if the application image does not exist in the local cache, requesting the application image from a cloud center and writing the application image sent by the cloud center into the local cache; if the application image exists in the local cache, obtaining the application image from the local cache.

[0014] In an exemplary embodiment, in response to the request of the first edge node based on the redirection address, before obtaining the application image from the local cache, it also includes: receiving at least one application image pushed by the cloud center, and writing at least one application image into the local cache.

[0015] In an exemplary embodiment, it also includes: regularly sending heartbeat information to the cloud center.

[0016] According to a third aspect of the present disclosure, an edge image downloading method is provided, which can be applied to a first edge node, and the method may include: requesting a cloud center to download an application image; receiving a redirection address sent by the cloud center; the redirection address points to a second edge node, and the second edge node and the first edge node belong to the same region; based on the redirection address, requesting the second edge node to download the application image; receiving the application image sent by the second edge node.

[0017] In an exemplary embodiment, after receiving the application image sent by the second edge node, the method further includes: deploying the application on the first edge node based on the application image.

[0018] According to a fourth aspect of the present disclosure, there is provided an edge image downloading system, which may include a cloud center and a plurality of edge nodes; wherein the cloud center includes: a redirection module, for responding to a request from a first edge node to download an application image, to search for a second edge node in a region to which the first edge node belongs; and a first sending module, for sending a redirection address pointing to the second edge node to the first edge node, so that the first edge node requests the second edge node to download the application image based on the redirection address.

[0019] In an exemplary embodiment, when the edge node is a first edge node, it includes: a first request module, used to request the cloud center to download an application image; and a first receiving module, used to receive a redirection address sent by the cloud center; the first request module is also used to request the second edge node to download the application image based on the redirection address; the first receiving module is also used to receive the application image sent by the second edge node.

[0020] In an exemplary embodiment, when the edge node is a second edge node, it includes: a cache acquisition module, which is used to obtain an application image from a local cache in response to a request from the first edge node based on a redirection address; and a second sending module, which is used to send the application image to the first edge node.

[0021] In an exemplary embodiment, the first sending module of the cloud center is further used to send the application image to the second edge node in response to the second edge node's request to obtain the application image when the application image does not exist in the local cache.

[0022] In an exemplary embodiment, the first sending module of the cloud center is also used to push at least one application image to the second edge node.

[0023] In an exemplary embodiment, the cloud center also includes a node management module for performing regional division among multiple edge nodes; wherein each region includes at least two edge nodes; and any one edge node is selected in each region as the second edge node.

[0024] In an exemplary embodiment, the node management module of the cloud center is further used to receive heartbeat information sent by the second edge node; and determine the online status of the second edge node according to the heartbeat information.

[0025] In an exemplary embodiment, when the edge node is a first edge node, it further includes an application deployment module, which is used to deploy the application on the first edge node based on the application image.

[0026] In an exemplary embodiment, when the edge node is a second edge node, it also includes a second request module, which is used to request an application image from the cloud center when the application image does not exist in the local cache; and a second receiving module, which is used to write the application image sent by the cloud center into the local cache.

[0027] In an exemplary embodiment, when the edge node is a second edge node, the second receiving module is further used to receive at least one application image pushed by the cloud center, and write the at least one application image into the local cache.

[0028] In an exemplary embodiment, when the edge node is a second edge node, the second sending module is further used to periodically send heartbeat information to the cloud center.

[0029] According to a fifth aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to implement the above method by executing the executable instructions.

[0030] According to a sixth aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and the computer program implements the above method when executed by a processor.

[0031] In the edge image download method provided by the embodiment of the present disclosure, the cloud center can respond to the request of the first edge node to download the application image, find the second edge node in the region to which the first edge node belongs, and send a redirection address pointing to the second edge node to the first edge node, so that the first edge node can request the second edge node to download the application image based on the redirection address. The cloud center of this solution can redirect the edge node's download request for the application image to another edge node in the same region, so that multiple edge nodes in the same region can quickly and efficiently obtain the application image from a nearby edge node, realizing region-based image download acceleration and multi-region edge node management.

[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0034] Figure 1A flowchart schematically illustrates the steps of applying the edge image downloading method in the cloud center in an exemplary embodiment of the present disclosure.

[0035] Figure 2 The following is a flowchart schematically showing the steps of applying the edge image downloading method to the second edge node in an exemplary embodiment of the present disclosure.

[0036] Figure 3 The following is a flowchart schematically showing the steps of applying the edge image downloading method to the first edge node in an exemplary embodiment of the present disclosure.

[0037] Figure 4 A schematic diagram of the composition of an edge mirror downloading system to which the exemplary embodiments of the present disclosure can be applied is shown.

[0038] Figure 5 The figure shows a schematic diagram of the composition of an electronic device to which the exemplary embodiments of the present disclosure can be applied. DETAILED DESCRIPTION

[0039] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0040] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0041] Figure 1 A flowchart of the steps of applying the edge image downloading method to a cloud center according to an exemplary embodiment of the present disclosure is shown.

[0042] like Figure 1 The edge image downloading method of the embodiment of the present disclosure may include steps 101 to 102:

[0043] In step 101, in response to a request from a first edge node to download an application image, a second edge node in a region to which the first edge node belongs is searched.

[0044] In the disclosed embodiment, the cloud center may be configured with a central warehouse to store global application images, and may also include regional division information of multiple edge nodes, management information and image proxy information of different edge nodes in the region, etc. Among them, the management information of the edge node may include the region to which the edge node belongs, and the image proxy information may include a second edge node specified in the region. The second edge node may write part of the application image to the local cache, so that other edge nodes can obtain the required application image from the second edge node without returning to the central warehouse of the cloud center, so as to realize the image download proxy.

[0045] At this time, the first edge node can request the cloud center to download the corresponding application image when deploying the application. In response to the request, the cloud center can find the region to which the first edge node belongs, and then determine the second edge node specified in the region.

[0046] In the disclosed embodiment, the request redirection process can be implemented by deploying a cloud center proxy service in the cloud center. When the first edge node requests the cloud center to download an application image, the cloud center proxy service determines the second edge node available in the region to which the first edge node belongs based on the node information provided in the request. The request will not go back to the central warehouse to obtain the application image.

[0047] In step 102, a redirection address pointing to a second edge node is sent to a first edge node, so that the first edge node requests the second edge node to download an application image based on the redirection address.

[0048] In the disclosed embodiment, the cloud center can return a redirection address pointing to the second edge node to the first edge node based on the determination of the second edge node, so as to inform the first edge node that the second edge node will act as an image download agent in the region to which it belongs. At this time, only the download request and the redirection address data are transmitted between the cloud center and the edge node, which has a small amount of data, a fast transmission speed, and occupies less network resources.

[0049] In an exemplary embodiment of the present disclosure, after step 102, step A1 may be further included.

[0050] In step A1, in response to a request from the second edge node to obtain the application image when the application image does not exist in the local cache, the application image is sent to the second edge node.

[0051] In the disclosed embodiment, the second edge node may not have the application image required by the first edge node in its local cache due to storage performance limitations or other reasons. At this time, the second edge node can send a request to the cloud center to obtain the application image. The cloud center can perform authentication based on the node information provided in the request, and when it is determined that the request is from the second edge node after the redirect address is issued, the application image corresponding to the request is obtained from the central warehouse and sent to the second edge node. After obtaining the application image, the second edge node can write it to the local cache, and when other edge nodes subsequently request to download the application image, it can be directly obtained from the local cache of the second edge node without returning to the central warehouse of the cloud center.

[0052] In an exemplary embodiment of the present disclosure, before step 101, step A2 may be further included.

[0053] In step A2, at least one application image is pushed to the second edge node.

[0054] In the disclosed embodiment, the cloud center can also actively push application images to the second edge node, so that when the first edge node in the same region requests an application image for the first time, the local cache of the second edge node may have the application image pre-written and no longer needs to request it from the cloud center. Among them, due to the limitations of the storage performance of the second edge node, the business needs of different regions may also vary. The cloud center can selectively push different application images to second edge nodes with different regional affiliations and different performance parameters; it can also consider network traffic fluctuations and push during idle time periods with low business demand. The disclosed embodiment does not specifically limit the number and time period of application images pushed by the cloud center to the second edge node.

[0055] In an exemplary embodiment of the present disclosure, before step 101, steps A3 and A4 may be further included.

[0056] In step A3, regional division is performed among the plurality of edge nodes, wherein each region includes at least two edge nodes.

[0057] In step A4, any edge node is selected in each region as the second edge node.

[0058] In the disclosed embodiment, the cloud center may pre-divide the regions among multiple edge nodes, wherein the inter-connected edge nodes may be divided into the same region based on the network construction. The location and quantity distribution of edge nodes may be managed in each region, such as controlling the distance between edge nodes in the region, and the total number of edge nodes. On the basis of the regional division, the cloud center manages each edge node and writes the relevant information of the divided region to the edge node. Each region may include at least two edge nodes, on this basis, any edge node in the region may be designated as the second edge node to implement the application image download agent on the second edge node.

[0059] When the cloud center specifies the second edge node in a region, it can first determine the region to be operated based on the regional division, and then issue a mirror proxy deployment task to one of the multiple edge nodes in the region. The second edge node is configured as the mirror proxy node corresponding to the region based on the mirror proxy deployment task, so that when the cloud center receives a request to download an application image, it can locate the second edge node corresponding to the region for redirection according to the region to which the first edge node that initiated the request belongs.

[0060] In an optional embodiment of the present disclosure, the cloud center selects a second edge node in a region. It may be to select a unique second edge node in the region to act as a download agent for all application images, or it may be to select multiple second edge nodes to act as download agents for different application images to reduce the agent burden of a single edge node. The present application does not impose any specific restrictions on the method of selecting the second edge node.

[0061] In an exemplary embodiment of the present disclosure, after step A4, steps A5 to A6 may be further included.

[0062] In step A5, the heartbeat information sent by the second edge node is received.

[0063] In step A6, the online status of the second edge node is determined according to the heartbeat information.

[0064] In the disclosed embodiment, the cloud center can use a heartbeat mechanism to monitor and manage the online status of the second edge node. After being designated and deployed, the second edge node can send a heartbeat message to the cloud center. The cloud center determines that the second edge node is online when the received heartbeat message is normal, so that when receiving a request from the first edge node to download the application image, the second edge node that is online in the region can be found for redirection; the cloud center can perform troubleshooting and corresponding processing when the received heartbeat message is abnormal, such as heartbeat message interruption or multiple occurrences, such as restarting or replacing the designated second edge node when the second edge node is not online, to support the normal download agent of the application image.

[0065] It should be noted that the first edge node and the second edge node are only used to distinguish the execution action. In actual deployment, the first edge node and the second edge node can be different physical devices or the same physical device. When the first edge node and the second edge node are different physical devices, the above steps 101 to 102 can be executed; when the first edge node and the second edge node are the same physical device, the above steps 101 to 102 can also be executed to redirect the request to the local by the cloud center, or the application image can be directly obtained from the local cache without sending a request to the cloud center. The embodiments of the present disclosure do not impose specific restrictions on this.

[0066] Figure 2 The following is a flowchart showing the steps of applying the edge image download method according to an exemplary embodiment of the present disclosure to the second edge node. Figure 2 The edge image downloading method of the embodiment of the present disclosure may include steps 201 to 202:

[0067] In step 201, in response to a request from the first edge node based on a redirection address, an application image is obtained from a local cache; the redirection address is sent by the cloud center in response to a request from the first edge node to download the application image, and the second edge node and the first edge node belong to the same region.

[0068] In the embodiment of the present disclosure, the application image download request initiated by the first edge node to the cloud center can be redirected by the cloud center to the second edge node, and the details can be referred to the relevant descriptions of the aforementioned steps 101 to 102. On this basis, the second edge node can obtain the application image required by the first edge node from the local cache in response to the request of the first edge node based on the redirection address. The first edge node and the second edge node are in the same region divided by the cloud center.

[0069] In step 202, the application image is sent to the first edge node.

[0070] In the disclosed embodiment, after obtaining the application image required by the first edge node from the local cache, the application image can be sent to the first edge node to complete the image download agent. Since the second edge node and the first edge node belong to the same region, the application image download speed is faster and does not occupy the network resources of the public network and the dedicated line, which can better improve the application image download speed, and then complete the download of the application image to the first edge node without affecting the overall business stability and low impact on the volatility of network quality.

[0071] In an exemplary embodiment of the present disclosure, in step 201, obtaining an application image from a local cache may include steps B1 and B2.

[0072] In step B1, when the application image does not exist in the local cache, the application image is requested from the cloud center, and the application image sent by the cloud center is written into the local cache.

[0073] In step B2, if the application image exists in the local cache, the application image is obtained from the local cache.

[0074] In the disclosed embodiment, when the application image requested by the first edge node already exists in the local cache, the application image can be directly obtained from the local cache. When the application image requested by the first edge node does not exist in the local cache, the second edge node can request the application image from the cloud center, receive the application image sent by the cloud center in response to the request, and write the application image to the local cache. At this time, the application image requested by the first edge node exists in the local cache and can be returned to the first edge node. On this basis, the same application image in the same region only needs to be returned to the cloud center once, and subsequent download requests for the application image can be directly obtained at the second edge node, thereby improving the download speed of the application image as a whole.

[0075] In an exemplary embodiment of the present disclosure, before step 201 , step B3 may be further included.

[0076] In step B3, at least one application image pushed by the cloud center is received, and at least one application image is written into the local cache.

[0077] In the embodiment of the present disclosure, the cloud center can also actively push the application image, and the specific description of the above step A2 can be referred to. To avoid repetition, it will not be repeated here. On this basis, the second edge node can preheat the cache of the pushed application image, so that the subsequent download request of the corresponding application image can directly return the result on the second edge node.

[0078] In an exemplary embodiment of the present disclosure, the second edge node may also set an invalidation mechanism for the application image written in the local cache, such as performing cache management based on the length of time the application has been written, the number of times the application has been requested to be downloaded, the length of the interval between requests for downloading, etc., and timely clearing caches with long write times, low frequency of download requests, and long interval times, so as to better utilize the space of the local cache of the second edge node.

[0079] In an exemplary embodiment of the present disclosure, step B4 may also be included.

[0080] In step B4, heartbeat information is sent to the cloud center periodically.

[0081] In the embodiment of the present disclosure, the second edge node can also send a heartbeat message to the cloud center based on the heartbeat mechanism, so that the cloud center can determine the online status of the second edge node based on the heartbeat information. For details, please refer to the relevant descriptions of the aforementioned steps A5 to A6. To avoid repetition, they will not be repeated here.

[0082] Figure 3 The following is a flowchart showing the steps of applying the edge image download method according to an exemplary embodiment of the present disclosure to the second edge node. Figure 3 The edge image downloading method of the embodiment of the present disclosure may include steps 301 to 304:

[0083] In step 301, a request is made to the cloud center to download the application image.

[0084] In the disclosed embodiment, when deploying an application, the first edge node may request the cloud center to download the corresponding application image.

[0085] In step 302, a redirection address sent by the cloud center is received; the redirection address points to a second edge node, and the second edge node and the first edge node belong to the same region.

[0086] In the embodiment of the present disclosure, the cloud center can redirect the request of the first edge node to the second edge node in the same region. For details, please refer to the relevant descriptions of the aforementioned steps 101 to 102. To avoid repetition, they are not repeated here. At this time, the redirection address sent by the cloud center can be received to obtain the application image later.

[0087] In step 303, based on the redirection address, a request is made to the second edge node to download the application image.

[0088] In the embodiment of the present disclosure, upon receiving the redirection address, a request can be made to the corresponding second edge node to download the application image based on the redirection address. The second edge node can obtain the application image from the local cache according to the request of the first edge node. For details, please refer to the relevant description of the aforementioned steps 201 to 202. To avoid repetition, it will not be repeated here.

[0089] In step 304, the application image sent by the second edge node is received.

[0090] In the disclosed embodiment, only data such as requests and redirection addresses are transmitted between the first edge node and the cloud center, and the application image is obtained through the second edge node in the same region. The download speed is faster and does not occupy public network and dedicated line network resources. The application image download speed can be better improved, and the download of the application image to the first edge node can be completed without affecting the overall business stability and with low impact on network quality volatility.

[0091] In an exemplary embodiment of the present disclosure, step C1 may be further included after step 304 .

[0092] In step C1, application deployment is performed on the first edge node based on the application image.

[0093] In the disclosed embodiment, based on obtaining the application image, the first edge node can deploy and start the application based on the application image, thereby further improving the application deployment efficiency on the basis of improving the application image download speed.

[0094] In the edge image download method provided by the embodiment of the present disclosure, the cloud center can respond to the request of the first edge node to download the application image, find the second edge node in the region to which the first edge node belongs, and send a redirection address pointing to the second edge node to the first edge node, so that the first edge node can request the second edge node to download the application image based on the redirection address. The cloud center of this solution can redirect the edge node's download request for the application image to another edge node in the same region, so that multiple edge nodes in the same region can quickly and efficiently obtain the application image from a nearby edge node, realizing region-based image download acceleration and multi-region edge node management.

[0095] Furthermore, the cloud center can actively push the application image to the second edge node, so that the application image already exists in the local cache before the first edge node requests download for the first time, further improving the efficiency of image download and application deployment; the cloud center also determines the online status of the second edge node based on the heartbeat information, so as to manage the availability of the second edge node proxy image download.

[0096] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0097] For further reference, Figure 4 As shown, an edge image downloading system 400 is provided in an exemplary embodiment of the present disclosure, including a cloud center and a plurality of edge nodes, wherein the cloud center is configured with a central warehouse to store all application images, wherein:

[0098] The cloud center 410 includes: a redirection module 411, which is used to respond to a request from the first edge node to download an application image and search for a second edge node in the region to which the first edge node belongs; and a first sending module 412, which is used to send a redirection address pointing to the second edge node to the first edge node, so that the first edge node requests the second edge node to download the application image based on the redirection address.

[0099] When the edge node is the first edge node 420, it includes: a first request module 421, used to request the cloud center to download the application image; and a first receiving module 422, used to receive the redirection address sent by the cloud center; the first request module 421 is also used to request the second edge node to download the application image based on the redirection address; the first receiving module 422 is also used to receive the application image sent by the second edge node.

[0100] When the edge node is the second edge node 430, it includes: a cache acquisition module 431, which is used to obtain the application image from the local cache in response to the request of the first edge node based on the redirection address; and a second sending module 432, which is used to send the application image to the first edge node.

[0101] In an exemplary embodiment, the first sending module 412 of the cloud center is further configured to send the application image to the second edge node in response to a request from the second edge node to obtain the application image when the application image does not exist in the local cache.

[0102] The cloud center pulls the corresponding application image from the central warehouse and sends it to the second edge node.

[0103] In an exemplary embodiment, the first sending module 412 of the cloud center is further configured to push at least one application image to the second edge node.

[0104] In an exemplary embodiment, the cloud center also includes a node management module 413 for performing regional division among multiple edge nodes; wherein each region includes at least two edge nodes; and any one edge node is selected in each region as the second edge node.

[0105] In an exemplary embodiment, the node management module 413 of the cloud center is further configured to receive heartbeat information sent by the second edge node; and determine the online status of the second edge node according to the heartbeat information.

[0106] In an exemplary embodiment, when the edge node is the first edge node 420, it further includes an application deployment module 423 for performing application deployment on the first edge node based on the application image.

[0107] In an exemplary embodiment, when the edge node is a second edge node 430, it also includes a second request module 433, which is used to request an application image from the cloud center when the application image does not exist in the local cache; and a second receiving module 434, which is used to write the application image sent by the cloud center into the local cache.

[0108] In an exemplary embodiment, when the edge node is the second edge node 430, the second receiving module 434 is further used to receive at least one application image pushed by the cloud center, and write the at least one application image into the local cache.

[0109] In an exemplary embodiment, when the edge node is the second edge node 430, the second sending module 432 is further configured to periodically send heartbeat information to the cloud center.

[0110] In the edge image download system provided by the embodiment of the present disclosure, the cloud center can respond to the request of the first edge node to download the application image, find the second edge node in the region to which the first edge node belongs, and send a redirection address pointing to the second edge node to the first edge node, so that the first edge node can request the second edge node to download the application image based on the redirection address. The cloud center of this solution can redirect the edge node's download request for the application image to another edge node in the same region, so that multiple edge nodes in the same region can quickly and efficiently obtain the application image from a nearby edge node, realizing region-based image download acceleration and multi-region edge node management.

[0111] Furthermore, the cloud center can actively push the application image to the second edge node, so that the application image already exists in the local cache before the first edge node requests download for the first time, further improving the efficiency of image download and application deployment; the cloud center also determines the online status of the second edge node based on the heartbeat information, so as to manage the availability of the second edge node proxy image download.

[0112] The specific details of each module in the above-mentioned edge image downloading system have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, that is, the explanation and beneficial effects of the edge image downloading method of the above-mentioned embodiment are also applicable to the edge image downloading system 400 of the embodiment of the present disclosure, and will not be elaborated here.

[0113] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0114] Refer to the following Figure 5 hereinafter describes an electronic device 500 according to such an embodiment of the present disclosure. Figure 5 The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0115] like Figure 5 As shown, the electronic device 500 is in the form of a general computing device. The components of the electronic device 500 may include but are not limited to: at least one processing unit 510, at least one storage unit 520, a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510), and a display unit 540.

[0116] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0117] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 521 and / or a cache memory unit 522 , and may further include a read-only memory unit (ROM) 523 .

[0118] The storage unit 520 may also include a program / utility 524 having a set (at least one) of program modules 525, such program modules 525 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0119] Bus 530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0120] The electronic device 500 may also communicate with one or more external devices 600 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 500, and / or may communicate with any device that enables the electronic device 500 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 550. Furthermore, the electronic device 500 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 560. As shown, the network adapter 560 communicates with other modules of the electronic device 500 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0121] In addition, the exemplary embodiments of the present disclosure further provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.

[0122] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0123] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0124] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0125] Other embodiments of the present disclosure will be readily apparent to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be considered merely as exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A method for downloading an edge image, characterized in that: The method is applied to a cloud center, and the method comprises: In response to a request from a first edge node to download an application image, searching for a second edge node in a region to which the first edge node belongs; A redirection address pointing to the second edge node is sent to the first edge node, so that the first edge node requests the second edge node to download the application image based on the redirection address.

2. The method according to claim 1, characterized in that After sending the redirection address pointing to the second edge node to the first edge node, the method further includes: In response to a request from the second edge node to obtain the application image when the application image does not exist in the local cache, the application image is sent to the second edge node.

3. The method according to claim 1, characterized in that Before the step of searching, in response to the request of the first edge node to download the application image, for a second edge node in the region to which the first edge node belongs, the step includes: Push at least one application image to the second edge node.

4. The method according to claim 1, characterized in that Before the step of searching for a second edge node in the region to which the first edge node belongs in response to the request of the first edge node to download the application image, the step further includes: Performing regional division among multiple edge nodes; wherein each region includes at least two edge nodes; In each region, select any edge node as the second edge node.

5. The method according to claim 4, characterized in that After selecting any one edge node in each region as the second edge node, the method further includes: Receiving heartbeat information sent by the second edge node; The online status of the second edge node is determined according to the heartbeat information.

6. A method for downloading an edge image, characterized in that: The method is applied to a second edge node, comprising: In response to a request from the first edge node based on a redirection address, obtaining an application image from a local cache; the redirection address is sent by the cloud center in response to a request from the first edge node to download the application image, and the second edge node and the first edge node belong to the same region; Send the application image to the first edge node.

7. The method according to claim 6, characterized in that The obtaining of the application image from the local cache includes: If the application image does not exist in the local cache, request the application image from the cloud center, and write the application image sent by the cloud center into the local cache; In a case where the application image exists in the local cache, the application image is obtained from the local cache.

8. The method according to claim 6, characterized in that Before obtaining the application image from the local cache in response to the request of the first edge node based on the redirection address, the method further includes: Receive at least one application image pushed by the cloud center, and write at least one application image into the local cache.

9. The method according to claim 6, characterized in that Also includes: Heartbeat information is sent to the cloud center periodically.

10. An edge mirror download method, characterized in that: The method is applied to a first edge node, comprising: Request the cloud center to download the application image; receiving a redirection address sent by the cloud center; the redirection address points to a second edge node, and the second edge node and the first edge node belong to the same region; Based on the redirection address, requesting the second edge node to download the application image; Receive the application image sent by the second edge node.

11. The method according to claim 10, characterized in that After receiving the application image sent by the second edge node, the method further includes: An application is deployed on the first edge node based on the application image.

12. An edge mirror download system, characterized in that: The system includes a cloud center and a plurality of edge nodes, wherein the cloud center includes: a redirection module, configured to search for a second edge node in a region to which the first edge node belongs in response to a request from the first edge node to download an application image; and a first sending module, configured to send a redirection address pointing to the second edge node to the first edge node, so that the first edge node requests the second edge node to download the application image based on the redirection address; When the edge node is a first edge node, the method includes: A first request module, used for requesting the cloud center to download the application image; and a first receiving module, used for receiving the redirection address sent by the cloud center; the first request module is also used for requesting the second edge node to download the application image based on the redirection address; the first receiving module is also used for receiving the application image sent by the second edge node; When the edge node is a second edge node, the method includes: A cache acquisition module is used to obtain the application image from the local cache in response to a request of the first edge node based on the redirection address; and a second sending module is used to send the application image to the first edge node.

13. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the edge mirror downloading method according to any one of claims 1 to 11 by executing the executable instructions.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the edge mirror downloading method according to any one of claims 1 to 11 is implemented.