Implementation method and data processing system of lightweight containers under edge-cloud architecture
By layering and jointly mounting container images under the device-edge cloud architecture, the problem of limited disk space in IoT terminal devices is solved, and the normal operation of containers and distributed storage of images are realized.
Patent Information
- Application Number
- CN202111649189.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Existing container solutions cannot run on IoT end devices because these devices have limited disk space and cannot host most container images.
Under the device-edge cloud architecture, container creation instructions are sent to the edge server through the cloud management platform. The edge server sends control instructions to each node according to the image pull strategy. The nodes jointly mount and generate the container layer according to the image hierarchical relationship, thereby realizing the container image. Hierarchical pull and distributed storage.
It solves the problem of container operation under limited terminal resources and realizes distributed storage of container images on edge servers and local terminals, ensuring the normal operation of containers.
Smart Images

Figure CN114296933B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method for implementing a lightweight container under an edge-cloud architecture, a data processing system, and a storage medium. Background Art
[0002] The edge-cloud architecture refers to an integrated architecture that is coordinated by terminal devices, edge servers, and cloud servers. At present, mainstream container solutions, such as docker containers, require pulling the container image before creating the container. Creating a container based on the container image is equivalent to instantiating the image. For a container image, taking an ordinary nginx image as an example, the size is 127MB. For many IoT (Internet of Things) terminal devices with limited disk space, such as cameras, the flash size is usually only 64MB or even lower, which cannot carry most images. The current container solution is not feasible.
[0003] 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
[0004] The purpose of the present disclosure is to provide a method for implementing a lightweight container under an edge-cloud architecture, a data processing system, and a storage medium, thereby overcoming the defects caused by the limitations and defects of related technologies at least to a certain extent.
[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0006] According to a first aspect of the present disclosure, a method for implementing a lightweight container in an edge-cloud architecture is provided, the method comprising:
[0007] The cloud management platform sends a container creation instruction to the edge server;
[0008] The edge server determines the image pulling strategy according to the create container instruction, and sends a control instruction to each node according to the image pulling strategy; wherein the control instruction includes an image pulling instruction and a create container instruction;
[0009] Each node pulls the image layer according to the control instruction, and mounts the image layer together to generate a container layer according to the hierarchical relationship between the image layers to start the container.
[0010] In an exemplary embodiment of the present disclosure, the edge server includes a master node and a container deployment policy module;
[0011] The edge server determines the image pulling strategy according to the container creation instruction, including:
[0012] The master node receives the container creation instruction, parses the container creation instruction to obtain container creation parameters, and sends the container creation parameters to the container deployment strategy module;
[0013] The container deployment strategy module formulates an image pulling strategy according to the preset rules based on the container creation parameters, and returns the image pulling strategy to the master node; wherein the image pulling strategy includes the master node image pulling strategy and the node node image pulling strategy.
[0014] In an exemplary embodiment of the present disclosure, the container creation parameters include: container image configuration information, node resource status, the number of containers to be created, and the image name of the created container.
[0015] In an exemplary embodiment of the present disclosure, the container deployment strategy module formulates an image pulling strategy according to the container creation parameters according to preset rules, including:
[0016] Prioritize nodes based on their resource status;
[0017] According to the number of containers to be created, the corresponding nodes are divided in order of priority to obtain the container division results;
[0018] Evaluate each node based on the container partitioning results and node resource status, and determine the container image pull information corresponding to each node if the evaluation passes;
[0019] Generate an image pulling strategy based on the container division results and container image pulling information, and send the image pulling strategy to the master node.
[0020] In an exemplary embodiment of the present disclosure, sending a control instruction to each node according to the image pulling strategy includes:
[0021] The master node sends control instructions to each node according to the image pulling strategy.
[0022] In an exemplary embodiment of the present disclosure, each node pulls the image layer according to the control instruction, and jointly mounts and generates a container layer according to the hierarchical relationship between the image layers, including:
[0023] The node node remotely mounts the image layer of the master node, and jointly mounts it with the local image layer according to the inheritance relationship between the image layers to generate a container layer.
[0024] In an exemplary embodiment of the present disclosure, the method further includes:
[0025] The cloud management platform creates a container creation task in response to the container service request, and sends a container creation instruction to the edge server to execute the container creation task.
[0026] According to a second aspect of the present disclosure, there is provided a data processing system, the system comprising:
[0027] The cloud management platform is used to send container creation instructions to the edge server;
[0028] The edge server is used to determine the image pulling strategy according to the create container instruction, and send a control instruction to each node according to the image pulling strategy; wherein the control instruction includes an image pulling instruction and a create container instruction;
[0029] The node is used to pull the image layer according to the control instruction, and jointly mount and generate the container layer according to the hierarchical relationship between the image layers to start the container.
[0030] In an exemplary embodiment of the present disclosure, the edge server includes a master node and a container deployment policy module;
[0031] The master node is used to receive the container creation instruction, parse the container creation instruction to obtain container creation parameters, and send the container creation parameters to the container deployment strategy module;
[0032] The container deployment strategy module is used to formulate an image pulling strategy according to the preset rules based on the container creation parameters, and return the image pulling strategy to the master node; wherein the image pulling strategy includes the master node image pulling strategy and the node node image pulling strategy.
[0033] According to a third aspect of the present disclosure, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method for implementing a lightweight container under the above-mentioned edge-cloud architecture is implemented.
[0034] In a method for implementing a lightweight container under an edge-cloud architecture provided by an embodiment of the present disclosure, a cloud management platform sends a container creation instruction to an edge server; the edge server determines an image pulling strategy according to the container creation instruction, and sends a control instruction to each node according to the image pulling strategy; each node pulls the image layer according to the control instruction, and jointly mounts the generated container layer according to the hierarchical relationship between the image layers; thereby realizing layered pulling of container images, and distributing and storing the container images pulled locally in the traditional container solution on the edge server and the local terminal, thereby solving the problem of container operation under the condition of limited terminal resources.
[0035] 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
[0036] 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.
[0037] Figure 1 A schematic diagram schematically illustrates a method for implementing a lightweight container under an edge-cloud architecture in an exemplary embodiment of the present disclosure;
[0038] Figure 2 A schematic diagram schematically illustrates an edge-to-edge cloud system architecture in an exemplary embodiment of the present disclosure;
[0039] Figure 3 A schematic diagram schematically illustrates a method for determining an image pulling strategy in an exemplary embodiment of the present disclosure;
[0040] Figure 4 A schematic diagram schematically illustrates an image pulling strategy process in an exemplary embodiment of the present disclosure;
[0041] Figure 5 A schematic diagram schematically illustrates a data processing system in an exemplary embodiment of the present disclosure;
[0042] Figure 6 A schematic diagram schematically illustrates a storage medium in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0043] 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.
[0044] 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.
[0045] In the related art, the mainstream container solution (taking Docker as an example) needs to pull the container image before creating the container, and create the container based on the container image, which is equivalent to instantiating the image. The container image is a collection of binary files and dependent packages required for the container to run. It is stored in layers on the system, and the files and configuration information of each layer are superimposed together to form an image. The bottom layer of the image is a base image, usually a filesystem of a Linux operating system. Since the base image usually provides dependent packages and common instruction sets for executable files in other layers, it is generally large in size; the other layers of the image are usually based on the modification of the previous layer, and the size is usually relatively small. Take an ordinary nginx image as an example, the size is 127MB. For many IoT terminal devices with limited disk space, such as cameras, the flash size is usually only 64MB or even lower, which cannot carry most images. The current container solution is not feasible. Container virtualization transformation of terminals is an important method to incorporate terminals into the end-edge-cloud collaborative integrated architecture. With the development of 5G networks, it supports the connection of more IoT devices besides mobile phones, such as cameras, home routers, etc. The hardware resources of these terminal devices are relatively limited and cannot meet the operating conditions of general container solutions.
[0046] In view of the above-mentioned shortcomings and deficiencies of the prior art, this example implementation provides a method for implementing a lightweight container in an edge-cloud architecture. Figure 1 As shown in , the implementation method of the lightweight container under the above-mentioned edge-cloud architecture may include the following steps:
[0047] Step S11, the cloud management platform sends a container creation instruction to the edge server;
[0048] Step S12, the edge server determines the image pulling strategy according to the create container instruction, and sends a control instruction to each node according to the image pulling strategy; wherein the control instruction includes an image pulling instruction and a create container instruction;
[0049] In step S13, each node pulls the image layer according to the control instruction, and mounts the image layer together to generate a container layer according to the hierarchical relationship between the image layers to start the container.
[0050] In the implementation method of lightweight containers under the edge-cloud architecture provided in this example implementation, based on the characteristics of layered storage, layered pulling, and read-only image layers of container images, the container images pulled locally in the traditional container solution are distributed and stored in the edge server and local terminal; effectively solving the problem of container operation under the condition of limited terminal resources.
[0051] Below, each step of the method for implementing a lightweight container under the edge-cloud architecture in this example implementation will be described in more detail with reference to the accompanying drawings and embodiments.
[0052] In step S11, the cloud management platform sends a container creation instruction to the edge server.
[0053] In this example implementation, reference Figure 2 In the end-edge-cloud system architecture shown, a management platform 211 and an image repository 212 may be deployed in the cloud 21. The cloud management platform may interact with the edge 22 device and the terminal 23. Among them, the above-mentioned cloud 21 may be a cloud server. The above-mentioned edge 22 may be a deployed edge server; the edge server may include a master node (master node) 221 and a container deployment policy module 222. The above-mentioned terminal 23 may include multiple terminal devices, and each terminal device may serve as a node node 231 (slave node). For example, the terminal may be an intelligent terminal device on the user side, such as a mobile phone, a tablet computer, etc.
[0054] In this example implementation, specifically, the cloud management platform creates a container creation task in response to the container service request, and sends a container creation instruction to the edge server to execute the container creation task.
[0055] For example, when an application in a user terminal needs to create a container, it can generate a container service request and send the request to the cloud management platform. The container service request may include the number of containers that the application needs to create, the application name and configuration information, etc. After receiving the request, the cloud management platform can create the corresponding container task on the cloud server and send the task data to the edge server. The container creation instruction may include information such as the image name of the container to be created and the number of containers to be created. Specifically, the container creation instruction can be sent to the master node in the edge server.
[0056] In step S12, the edge server determines an image pulling strategy according to the create container instruction, and sends a control instruction to each node according to the image pulling strategy; wherein the control instruction includes an image pulling instruction and a create container instruction.
[0057] In this example implementation, the edge server includes a master node and a container deployment strategy module. Figure 3 As shown, the edge server determining the image pulling strategy according to the create container instruction may include:
[0058] Step S121, the master node receives the container creation instruction, parses the container creation instruction to obtain container creation parameters, and sends the container creation parameters to the container deployment strategy module; and
[0059] Step S122, the container deployment strategy module formulates an image pulling strategy according to the preset rules based on the container creation parameters, and returns the image pulling strategy to the master node; wherein the image pulling strategy includes the master node image pulling strategy and the node node image pulling strategy.
[0060] Specifically, the container deployment strategy module can interact with the master node in the form of an HTTP RESTful API, and record the interaction information in the form of JSON, etc. The recorded information can mainly include: 1) the required container image configuration information and the number of containers that need to be started; the resource status information of each node. The container deployment strategy module can return the image layer and other configuration information required to pull the master node and the node node to the master node. For example, the data sent by the master node to the container deployment strategy module may include the node's IP address, the node's memory usage, disk usage and other node resource status information. The information that the container deployment strategy module can return to the master node may include the node or master node's IP address and the encoding of the image layer.
[0061] In this example implementation, the container creation parameters may include: container image configuration information, node resource status, the number of containers to be created, the image name of the created container, etc. Among them, the node resource status may be the resource status of the node, such as: CPU usage, memory usage, memory configuration, disk usage, disk configuration, etc.
[0062] In this example implementation, reference Figure 4 As shown, the above container deployment strategy module formulates the image pulling strategy according to the preset rules based on the container creation parameters, which may specifically include:
[0063] Step S21, sorting the nodes by priority according to the resource status of each node;
[0064] Step S22, dividing the corresponding nodes in order of priority according to the number of containers to be created, to obtain a container division result;
[0065] Step S23, evaluating each node based on the container partitioning result and the node resource status, and determining the container image pull information corresponding to each node when the evaluation passes;
[0066] Step S24: Generate an image pulling strategy according to the container division result and the container image pulling information, and send the image pulling strategy to the master node.
[0067] Specifically, the methods for specifying the image pull strategy may include:
[0068] 3.1. Prioritize the nodes according to their resource status. The nodes with more abundant resources have higher priority.
[0069] 3.2. Assign containers to nodes according to the priority according to the number of containers to be created. For example, if the number of containers to be created is 5 and there are 8 nodes in total, assign 1 container to each node with priority 1-5.
[0070] 3.3, if the number of containers is greater than the number of nodes, allocate [number of containers / number of nodes] ([] indicates rounding) containers to each node, and repeat the steps described in 3.2; for example, if the number of containers created is 9 and there are 4 nodes in total, then allocate 3 containers to each node with a priority of 1, and 2 containers to the remaining nodes;
[0071] 3.4, evaluate each node according to the results of the division and the node resource status. If it passes, it can be deployed, and the container image pulling information of the node is generated; the information includes which image layers the node needs to pull, and which image layers the master node needs to pull). If it fails, it cannot be deployed. If there is a node that fails the evaluation result, the number of container divisions of the node is reduced by 1, and re-evaluated until it passes the evaluation or the number of container divisions is reduced to 0;
[0072] 3.5, redistribute the number of containers that were reduced due to evaluation failure in step 3.4 to the nodes that did not fail the evaluation process according to steps 3.2 and 3.3;
[0073] 3.6, the node repeats steps 3.4 and 3.5 until the evaluation results of all nodes are passed. If it still cannot be satisfied after 10 repetitions, the container deployment policy module will not be able to formulate a policy result and return it to the master node;
[0074] 3.7. Organize the container division results and container image pulling information of each node to generate an image pulling strategy and return it to the master node.
[0075] In this example implementation, the above-mentioned sending a control instruction to each node according to the image pulling strategy includes: the master node sends a control instruction to each node according to the image pulling strategy.
[0076] In step S13, each node pulls the image layer according to the control instruction, and mounts the image layer together to generate a container layer according to the hierarchical relationship between the image layers to start the container.
[0077] In this example implementation, specifically, the control instructions may include the image layers and configuration parameters that the node needs to pull; each node can pull a specified number of image layers from the cloud image repository. The node remotely mounts the image layer of the master node through RPC, and mounts it together with the local image layer according to the inheritance relationship between the image layers to generate a container layer.
[0078] For example, you can deploy the base image on the master node; you can also select the node according to the node resource status. For example, if there are 3 nodes, if Node2 has too high memory usage, you can create containers from Node1 and 3; or, when Node1 has a high disk usage, you can download a three-layer image locally and mount the two-layer image on the Master node; or, when Node3 has a relatively low disk usage, you can download a four-layer image locally and mount the one-layer image (i.e., base image) on the Master node; or, if Node1 mounts one more layer of image than Node3, the memory consumption will be higher.
[0079] The implementation method of lightweight containers under the edge cloud architecture provided by the present disclosure is based on the characteristics of layered storage, layered pulling, and read-only image layers of container images, and the container images pulled to the local in the traditional container solution are distributed and stored in the edge server and the local terminal. Through the container deployment policy module deployed on the edge server node, when the edge receives the instruction to start the terminal container from the cloud management platform, the container deployment policy module will determine the image pulling and storage strategy according to the terminal node resource status and the configuration information of the target container image, for example, the base layer with a relatively large volume is pulled to the edge server, and the image layer with a relatively small volume is pulled to the terminal. When the terminal starts the container, the base layer in the edge server is designated as the rootfs of the container through the RPC remote mounting method, and a writable container layer is generated after joint mounting with the remaining image layers in the terminal to complete the startup of the container. If there are multiple nodes in the cluster, the container deployment policy module will decide on which node / nodes to start the container, and the number of image layers pulled by these nodes may be different. The container deployment strategy module is used to realize the intelligent and flexible deployment of cluster containers; moreover, multiple nodes in the cluster can reuse the image layer on the master to save space; in addition, the container deployment strategy module can be modified and configured according to the actual situation and needs of the cluster. Compared with the mainstream container solutions in the industry, which mainly focus on running in the cloud and edge, there are many limitations in the support for some resource-constrained devices such as mobile terminals and pan-intelligent terminals; the technical solution disclosed in this disclosure can effectively avoid the problem that some resource-constrained terminals cannot run containers smoothly, make reasonable use of limited resources, and provide a practical basis for realizing end-edge cloud container collaboration.
[0080] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, 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.
[0081] For further reference, Figure 5 As shown, in the implementation of this example, a data processing system 50 is also provided, which may include: a cloud server 501, an edge server 502, and a terminal 503; wherein,
[0082] The cloud server 501 is used to carry the cloud management platform 5011 and send a create container instruction to the edge server 502;
[0083] The edge server 502 is used to determine the image pulling strategy according to the create container instruction, and send a control instruction to each node 5031 according to the image pulling strategy; wherein the control instruction includes an image pulling instruction and a create container instruction;
[0084] The terminal 503 is used to provide the node 5031, pull the image layer according to the control instruction, and jointly mount and generate the container layer according to the hierarchical relationship between the image layers to start the container.
[0085] In some exemplary embodiments, the edge server 502 may include a master node 5022 and a container deployment strategy module 5021 .
[0086] The master node 5022 may be configured to receive the container creation instruction, parse the container creation instruction to obtain container creation parameters, and send the container creation parameters to the container deployment strategy module.
[0087] The container deployment strategy module 5021 can be used to formulate an image pulling strategy according to the preset rules based on the container creation parameters, and return the image pulling strategy to the master node; wherein the image pulling strategy includes the master node image pulling strategy and the node node image pulling strategy.
[0088] In some exemplary embodiments, the cloud server 501 includes an image repository 5012 , which is used for the node 5031 to pull the image from the image repository 5012 .
[0089] The above-mentioned method for implementing lightweight containers under the end-edge cloud architecture is applied to the data processing system 50; the specific details of each module in the data processing system 50 have been described in detail in the corresponding method for implementing lightweight containers under the end-edge cloud architecture, so they will not be repeated here.
[0090] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0091] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can 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 invention described in the above "Exemplary Method" section of the present specification.
[0092] refer to Figure 6As shown, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0093] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The 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 (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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.
[0094] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. 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. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0095] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0096] Program code for performing the operations of the present invention 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).
[0097] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned 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.
[0098] Those skilled in the art will readily appreciate other embodiments of the present disclosure 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 examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0099] It should be understood that the present disclosure is not limited to the exact 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 disclosure is limited only by the appended claims.
Claims
1. A method for implementing a lightweight container in an edge-cloud architecture, characterized in that: The method comprises: The cloud management platform sends a container creation instruction to the edge server, where the edge server includes a master node and a container deployment strategy module; The master node receives the container creation instruction, parses the container creation instruction to obtain container creation parameters, and sends the container creation parameters to the container deployment strategy module; The container deployment strategy module formulates an image pulling strategy according to the preset rules based on the container creation parameters, and returns the image pulling strategy to the master node; wherein the image pulling strategy includes the master node image pulling strategy and the node node image pulling strategy; The master node sends control instructions to each node according to the image pulling strategy; wherein the control instructions include image pulling instructions and container creation instructions; The node node remotely mounts the image layer of the master node, and jointly mounts it with the local image layer according to the inheritance relationship between the image layers to generate a container layer to start the container.
2. The method for implementing lightweight containers under the edge-cloud architecture according to claim 1 is characterized in that: The container creation parameters include: container image configuration information, node resource status, the number of containers to be created, and the image name of the created container.
3. The method for implementing lightweight containers under the edge-cloud architecture according to claim 2 is characterized in that: The container deployment strategy module formulates an image pulling strategy according to the container creation parameters and preset rules, including: Prioritize nodes based on their resource status; According to the number of containers to be created, the corresponding nodes are divided in order of priority to obtain the container division results; Evaluate each node based on the container partitioning results and node resource status, and determine the container image pull information corresponding to each node if the evaluation passes; Generate an image pulling strategy based on the container division results and container image pulling information, and send the image pulling strategy to the master node.
4. The method for implementing lightweight containers under the edge-cloud architecture according to claim 1 is characterized in that: The sending of control instructions to each node according to the image pulling strategy includes: The master node sends control instructions to each node according to the image pulling strategy.
5. The method for implementing lightweight containers under the edge-cloud architecture according to claim 1 is characterized in that: The method further comprises: The cloud management platform creates a container creation task in response to the container service request, and sends a container creation instruction to the edge server to execute the container creation task.
6. A data processing system, characterized in that: The system comprises: A cloud server, used to host a cloud management platform, and send a container creation instruction to an edge server, wherein the edge server includes a master node and a container deployment strategy module; The edge server includes a master node and a container deployment strategy module. The master node is used to receive the container creation instruction, parse the container creation instruction to obtain container creation parameters, and send the container creation parameters to the container deployment strategy module; the container deployment strategy module is used to formulate an image pulling strategy according to the container creation parameters according to preset rules, and return the image pulling strategy to the master node; wherein the image pulling strategy includes the master node image pulling strategy and the node node image pulling strategy; the master node is used to send control instructions to each node according to the image pulling strategy; wherein the control instructions include image pulling instructions and container creation instructions; The terminal is used to provide a node node, remotely mount the image layer of the master node, and jointly mount it with the local image layer according to the inheritance relationship between the image layers to generate a container layer to start the container.
7. A storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for implementing a lightweight container under an edge-cloud architecture according to any one of claims 1 to 5.
