Mirror image management device, computing device, network device and mirror image management system

The system enhances image file management and synchronization by enabling direct communication across network domains, addressing the limitations of repository-dependent systems in managing container images, thereby improving efficiency and flexibility.

CN119629166APending Publication Date: 2025-03-14HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing container image management systems rely heavily on image repositories, which limits their management capabilities and efficiency, especially in scenarios without a central repository, leading to suboptimal performance in image file management, synchronization, deletion, and querying.

Method used

A system comprising an image management device, network device, and computing device that enables image file management, synchronization, deletion, and querying without relying on a central repository, by allowing direct communication and data transfer across different network domains, using image management functionality to handle these operations within and across different network environments.

Benefits of technology

Enhances image file management, synchronization, deletion, and querying efficiency by eliminating the need for a central repository, improving performance and flexibility in distributed environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629166A_ABST
    Figure CN119629166A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of container mirroring, and provides a mirroring management device, a computing device, a network device and a mirroring management system. The mirror image management equipment is configured with a mirror image management function; the mirror image management function comprises: managing a mirror image file of the first computing device, and managing a mirror image file of the second computing device based on the first network device and the second network device; wherein the first computing device, the first network device and the mirror image management device are located in the same network domain, the second computing device and the mirror image management device are located in different network domains, and the second computing device and the second network device are located in the same network domain. According to the invention, the management capability and efficiency of the mirror image file can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of container image technology, and in particular, relates to an image management device, a computing device, a network device, and an image management system. Background Art

[0002] In the related technology, it is usually necessary to rely on an image repository to manage image files. For example, the image file is first uploaded to the distributed file system corresponding to the image repository, and then when the computing device wants to obtain the image file, the image file is obtained from the distributed system using the description information returned by the image repository. This solution needs to rely on the image repository to manage image files. In the scenario where there is no image repository, image files cannot be managed, and the management capability and efficiency are low. Summary of the invention

[0003] The embodiments of the present application provide an image management device, a computing device, a network device, and an image management system, which can improve the management capability and efficiency of image files.

[0004] In a first aspect, an embodiment of the present application provides an image management device configured with an image management function;

[0005] The image management function includes: managing the image file of the first computing device, and managing the image file of the second computing device based on the first network device and the second network device;

[0006] The first computing device, the first network device and the mirror management device are in the same network domain, the second computing device and the mirror management device are in different network domains, and the second computing device and the second network device are in the same network domain.

[0007] In the embodiment of the present application, the image management device is configured with an image management function. For a first computing device in the same network domain as the image management device, the image management device can manage the image file of the first computing device through the image management function. For a second computing device in a different network domain from the image management device, the image management device can manage the image file of the second computing device based on the first network device in the same network domain as the image management device and the second network device in the same network domain as the second computing device through the image management function. In the above management process, there is no need to rely on the image warehouse, and the management of image files can be achieved in the scenario without the image warehouse, which improves the management ability and efficiency of image files.

[0008] In a second aspect, an embodiment of the present application provides a computing device configured with a mirror synchronization function;

[0009] The image synchronization function includes: upon receiving an image addition request, downloading a target image file from a specified location, and loading the downloaded target image file into a local warehouse, wherein the image addition request is generated based on an instruction of an image management device;

[0010] Alternatively, the image deletion function is configured;

[0011] The image deletion function includes: upon receiving an image deletion request, deleting the corresponding image file in the local warehouse; the image deletion request is generated based on the instruction of the image management device;

[0012] Alternatively, the mirror query function is configured;

[0013] The image query function includes: when receiving an image query request, querying the relevant information of the corresponding image file from the local warehouse and returning the relevant information; the image query request is generated based on the instruction of the image management device.

[0014] In an embodiment of the present application, the computing device is configured with a mirror synchronization function, through which the computing device can download the target mirror file from the specified location when receiving a mirror addition request, and load the downloaded target mirror file into the local warehouse, thereby completing the synchronization of the mirror file without relying on the mirror warehouse, and can also achieve the synchronization of the mirror file in the scenario without the mirror warehouse, thereby improving the synchronization efficiency of the mirror file. Or the computing device is configured with a mirror deletion function, through which the computing device can delete the corresponding mirror file in the local warehouse when receiving a mirror deletion request, thereby completing the deletion of the mirror file, without relying on the mirror warehouse, and can also achieve the deletion of the mirror file in the scenario without the mirror warehouse, thereby improving the deletion efficiency of the mirror file. Or the computing device is configured with a mirror query function, through which the computing device can query the relevant information of the corresponding mirror file from the local warehouse when receiving a mirror query request, and return the relevant information, thereby completing the query of the mirror file, without relying on the mirror warehouse, and can also achieve the query of the mirror file in the scenario without the mirror warehouse, thereby improving the query efficiency of the mirror file.

[0015] In a third aspect, an embodiment of the present application provides a network device configured with a mirroring transparent transmission function;

[0016] The image transparent transmission function includes: when receiving an image addition request from an image management device, downloading a target image file from the image management device based on the image addition request, transparently transmitting the target image file to a target network device, triggering a target computing device to download the target image file from the target network device based on the target network device, and loading the downloaded target image file into a local warehouse;

[0017] The image adding request carries the identifier of the target network device, the target network device and the image management device are in different network domains, and the target network device and the target computing device are in the same network domain;

[0018] Alternatively, the mirroring transparent transmission function also includes:

[0019] In case of receiving an image deletion request from the image management device, triggering the target computing device to delete the corresponding image file from the local warehouse based on the image deletion request and the target network device;

[0020] Alternatively, the mirroring transparent transmission function also includes:

[0021] In case of receiving an image query request from the image management device, triggering the target computing device to query relevant information of the corresponding image file from the local warehouse based on the image query request and the target network device and returning the relevant information based on the target network device;

[0022] The relevant information is received from the target network device, and the relevant information is sent to the mirror management device.

[0023] In an embodiment of the present application, the network device is configured with an image transparent transmission function. Through the image transparent transmission function, the network device can download the target image file from the image management device based on the image addition request when receiving the image addition request from the image management device, transparently transmit the target image file to the target network device, and trigger the target computing device to download the target image file from the target network device based on the target network device and load the downloaded target image file to the local warehouse, thereby completing the synchronization of the image file without relying on the image warehouse, and can also achieve the synchronization of the image file in the scenario without the image warehouse, thereby improving the synchronization efficiency of the image file. Or the network device can also receive the image deletion request from the image management device through the image transparent transmission function, and trigger the target computing device to delete the corresponding image file from the local warehouse based on the image deletion request and the target network device, thereby completing the deletion of the image file, without relying on the image warehouse, and can also achieve the deletion of the image file in the scenario without the image warehouse, thereby improving the deletion efficiency of the image file. Alternatively, the network device can also use the image transmission function to trigger the target computing device to query the relevant information of the corresponding image file from the local warehouse based on the image query request and the target network device when receiving the image query request from the image management device, and return the relevant information based on the target network device, thereby completing the query of the image file without relying on the image warehouse. Image file query can also be realized in the scenario where there is no image warehouse, thereby improving the efficiency of image file query.

[0024] In a fourth aspect, an embodiment of the present application provides an image management system, including:

[0025] Image management equipment;

[0026] A first computing device and a first network device in the same network domain as the image management device;

[0027] and, a second computing device and a second network device in different network domains from the image management device, the second computing device and the second network device being in the same network domain;

[0028] The image management device is configured with an image management function, which includes: managing the image file of the first computing device, and managing the image file of the second computing device based on the first network device and the second network device.

[0029] In the embodiment of the present application, the image management system can manage the image files of the first computing device in the same network domain as the image management system and the image management device by configuring the image management device with the image management function, and manage the image files of the second computing device based on the first network device in the image management system that is in the same network domain as the image management device and the second network device that is in the same network domain as the second computing device. In the above management process, there is no need to rely on the image warehouse, and the management of image files can be achieved in the scenario without the image warehouse, which improves the management ability and efficiency of image files. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0031] Figure 1 It is a schematic diagram of the architecture of the image management system provided in the embodiment of the present application;

[0032] Figure 2 is an example diagram of the image management process of the image management system provided in the embodiment of the present application;

[0033] Figure 3 This is an example diagram of the download process of the image file provided in the embodiment of the present application;

[0034] Figure 4 is an example diagram of the sorting of various computing devices;

[0035] Figure 5 is another example diagram of the ordering of the computing devices;

[0036] Figure 6 is another example diagram of the sorting of the computing devices;

[0037] Figure 7 This is another example diagram of the download process of the image file provided in the embodiment of the present application. DETAILED DESCRIPTION

[0038] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0039] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0040] It should also be understood that the term "and / or" used in the present specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0041] It should also be understood that in the embodiments of the present application, "plurality" refers to two or more than two.

[0042] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0043] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0044] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0045] See also Figure 1 , Figure 1 The schematic diagram of the architecture of the image management system provided by the embodiment of the present application is shown. For the convenience of explanation, only the parts related to the embodiment of the present application are shown. Figure 1As shown, the image management system includes an image management device 101 , a first computing device 102 , a first network device 103 , a second computing device 104 and a second network device 105 .

[0046] It should be understood that the number of computing devices (ie, the first computing device 102 or the second computing device 104) in the image management system may be one or more than two, and this application does not limit this.

[0047] It should be understood that the present application does not limit the specific types of the image management device 101, the computing device (i.e., the first computing device 102 and the second computing device 104), and the network device (i.e., the first network device 103 and the second network device 104). For example, the image management device 101 and the computing device can be a server or a computer. The network device can be a network switch, a router, a switch, and other devices that can achieve network connection.

[0048] The first computing device 102 and the second computing device 104 can be computing nodes in different clusters, or can be separate devices (i.e., not located in a cluster), which is not limited in this application. It should be understood that this application does not make any restrictions on the specific type of cluster. As an example and not a limitation, the first computing device 102 and the second computing device 104 can be computing nodes in two different Kubernetes (abbreviated as K8S) clusters.

[0049] Among them, K8S cluster is Google's Docker cluster management system, which carries the relevant functions of Docker lifecycle management. It also has advanced functions such as Pod, Service, RC, DaemonSet, label selection, etc. Its goal is to make containerized application management simpler and more efficient. It provides a mechanism for application deployment, planning, updating and maintenance.

[0050] Docker is an open source application container engine written in Go. It allows developers to package applications and dependent packages into a portable container and then publish them to any popular Linux machine to achieve virtualization-like operation. Most of Docker's operations revolve around its three core concepts: image files (i.e., Docker images), containers, and image repositories.

[0051] An image file is a read-only template, an independent file system that contains the data required to run a container and can be used to create a new container. It consists of layers of file systems, and this layered file system is called UnionFS. When the container is running, the layered images constitute the container's operating environment.

[0052] Containers are a lightweight, portable, self-contained software packaging technology that allows applications to run in the same way almost anywhere. Containers are created through image files. It is a new layer added on top of the image file, called the container layer, which is readable and writable (image files are read-only). Containers are completed using a sandbox mechanism. There is no coupling between containers, and it does not depend on any language or framework.

[0053] The image repository is a service used to store image files. The image repository can contain multiple image files with different tags. The operations supported by the image repository are similar to Git. After the user creates an image file, he can use the push command to upload it to a public or private repository. In this way, the next time the image file is used on another machine, only the image needs to be downloaded from the image repository. Currently common image repositories include Harbor, Docker hub, Google GCR, Huawei Swr, Azure ACR, Aliyun ACR, Private Registry, etc.

[0054] The image management device 101 is in the same network domain as the first computing device 102 and the first network device 103. The image management device 101 is in different network domains as the second computing device 104 and the second network device 105, and the second computing device 104 and the second network device 105 are in the same network domain.

[0055] It should be understood that devices in the same network domain can communicate directly with each other, but devices in different network domains cannot communicate directly with each other.

[0056] The embodiment of the present application can realize communication between the image management device 101 and the second computing device 104 in different network domains through the first network device 103 and the second network device 105.

[0057] An image monitoring function is deployed on each computing device, which is used to monitor the relevant information of the image file of the computing device, the disk usage of the computing device, etc., and regularly send keep-alive information to the image management device 101, regularly feedback the status of the local image file to the image management device 101, and can also complete the addition, deletion, query and other operations of the image file according to the corresponding request when receiving the request of the image management device, so as to realize the management of the image file of the computing device by the image management device 101. Among them, the above-mentioned addition of the image file can also be understood as the synchronization of the image file, that is, synchronizing the image file in the image management device to the corresponding computing device.

[0058] The above-mentioned image monitoring functions include but are not limited to image synchronization function, image deletion function, image query function, etc.

[0059] The relevant information of the above image files includes but is not limited to the usage of the image files, the version information of the image files, the disk usage of the image files, the number of containers started by each image file, etc.

[0060] Based on the locally managed computing devices, the image management device 101 can issue a startup instruction to all or part of the computing devices, and the startup instruction is used to start the image monitoring function of the corresponding computing device, and regularly obtain the relevant information of the existing image files on the computing device, the disk usage of the computing device, etc. through the image monitoring function of the corresponding computing device. The image management device 101 can temporarily store the image files uploaded by the user, and issue the specified image files to the specified cluster or single computing device based on business needs, synchronize the image files to all computing devices in the specified cluster or the specified single computing device, and can also arrange the hierarchical relationship of the specified cluster or single computing device, and synchronize the image files based on the hierarchical relationship.

[0061] like Figure 2 The figure shows an example diagram of the image management process of the image management system provided by the embodiment of the present application. Figure 2 In the figure, node A1 and node A2 are both located in K8S cluster A, and an image repository is deployed in K8S cluster A. Bare metal B is node B1, which is a single computing device. K8S cluster A and node B1 are both in the same network domain as the image management device. Node D1 and node D2 are located in K8S cluster D, and K8S cluster D and the image management device are in different network domains. K8S cluster D and the image management device communicate based on the first network device and the second network device, and the first network device and the image management device are in the same network domain, and the second network device and K8S cluster D are in the same network domain. The above nodes are all configured with image monitoring functions, which include but are not limited to image synchronization, image deletion and image query functions. Based on Figure 2 The process interaction in can realize the mirror management device pair Figure 2 Image file management of mid-node.

[0062] The above-mentioned image management system does not need to rely on the image warehouse during the management of image files, and can also manage image files in the scenario where there is no image warehouse, thereby improving the management capability and efficiency of image files.

[0063] In some embodiments, the image management device is configured with image management functionality.

[0064] The image management function includes: managing the image file of the first computing device, and managing the image file of the second computing device based on the first network device and the second network device;

[0065] The first computing device, the first network device and the mirror management device are in the same network domain, the second computing device and the mirror management device are in different network domains, and the second computing device and the second network device are in the same network domain.

[0066] The above-mentioned image management function can control the image management device and the computing device to communicate directly or indirectly, and send image addition requests, image deletion requests, image query requests, etc. to the computing device, thereby managing the image files of the computing device.

[0067] Optionally, the image management device may select or designate one or more computing devices to manage its image files.

[0068] In this embodiment, the image management device manages the computing device based on the image management function without relying on the image warehouse, and can realize image management across image warehouses for a single cluster or a single device, and can also realize cross-cluster image management for multiple clusters.

[0069] Image management across image repositories can shield the differences between image repositories, and image files can still be managed in scenarios where there is no image repository.

[0070] The mode of managing image files through image warehouses has been abandoned. There is no need to worry about the version of the image warehouse connected to the image management device, nor does it need to worry about whether the image warehouse exists. The management and scheduling of image files can be completed.

[0071] Cross-cluster image management can shield the differences between clusters, and treat the computing devices in the cluster and individual computing devices as a whole. Any computing device adopts a unified image management mode. Abandoning the mode that one cluster relies on one image warehouse, multiple clusters must have multiple image warehouses. If you want to push an image file to different clusters, you must push the image file to the image warehouse of each cluster. This solution does not need to care whether the image management device is connected to one cluster or multiple clusters, nor does it need to care whether it is connected to a cluster or a single computing device. It realizes point-to-point docking from the center to the edge, thereby realizing the management and scheduling of image files of computing devices.

[0072] For a first computing device in the same network domain as the image management device, the image management device can directly communicate with the first computing device, and thus can directly manage the image file of the first computing device.

[0073] Based on the image management function, the image management device can implement synchronous management of the image file of the first computing device in the following two ways.

[0074] In method 1, the image management device sends a first image adding request to the first computing device, where the first image adding request is used to instruct the first computing device to download a target image file from the image management device and load the downloaded target image file into a local warehouse.

[0075] The first image adding request carries the download address of the target image file in the image management device. On this basis, after receiving the first image adding request, the first computing device can download the target image file more accurately from the image management device.

[0076] The image management device sends a first image addition request to the first computing device; after receiving the first image addition request, the first computing device can first download the target image file from the image management device to a locally specified directory, and then load the target image file from the locally specified directory to a local warehouse; the first computing device can tag the target image file based on the label instruction and the image address in the first image addition request, and update the image address of the target image file to the address required by the image management device, thereby completing the download process of the target image file. The above-mentioned label instruction is used to instruct the first computing device to tag the target image file based on the image address.

[0077] like Figure 3 The figure shows an example diagram of the download process of the image file provided in the embodiment of the present application. Figure 3 The K8S cluster connected to the image management device does not need to rely on the image warehouse, nor does it need other open source tools to assist in the management of image files. The download process is as follows:

[0078] The image management device sends an increase request for image file A to the designated or selected node 1 and node N. After receiving the increase request, node 1 can download image file A from the image management device to the local designated directory based on the download address in the increase request, and download image file A from the designated directory to the local warehouse. Node 1 tags image file A based on the label instruction and image address in the increase request, and modifies the image address to the address required by the image management device, completing the download process of image file A. After receiving the increase request, node N can download image file A from the image management device to the local designated directory based on the download address in the increase request, and download image file A from the designated directory to the local warehouse. Node N tags image file A based on the label instruction and image address in the increase request, and modifies the image address to the address required by the image management device, completing the download process of image file A.

[0079] The image management device can select one or more computing devices (i.e., the first computing device or the second computing device) to synchronize the image files, thereby making the synchronization of the image files more flexible and convenient. The image management device supports the scheduling of the image files, and can number and sort each computing device that needs to synchronize the image files, thereby determining the hierarchical relationship between the image management device and each computing device, and the hierarchical relationship can represent the synchronization order of the image files. The download address of the image file can be adjusted based on the hierarchical relationship, and the use of distributed network transmission can reduce the network IO and disk loss of the image management device, greatly improving the transmission efficiency of the image files. Optionally, the above hierarchical relationship can be customized according to business needs.

[0080] In a large cluster or complex scenario with multiple clusters, if each computing device downloads one or more large image files, it will greatly affect the network and disk performance of the system. For example, if dozens of computing devices download image files from the image repository at the same time, the network and disk loads may be fully loaded, affecting the stability of the system. By arranging the image file download addresses through the above hierarchical relationship, the image file download operation load can be distributed to multiple computing devices, greatly improving the transmission efficiency of the image file and reducing the network load of the entire system.

[0081] Optionally, the numbered computing devices may be sorted based on a tree structure (such as a binary tree) to obtain the hierarchical relationship between the image management device and each computing device. Of course, it is understandable that the numbered computing devices may also be sorted based on other structures, which is not limited in this application.

[0082] Table 1 is an example of the numbering of the mirror management device and each computing device. Table 1 also shows a first network device and a second network device.

[0083]

[0084] like Figure 4 The following is an example of the sorting of various computing devices. For newly added image files, you only need to synchronize to Figure 4 On the four computing devices in , the image files come from the image management device.

[0085] like Figure 5 Another example of the sorting of computing devices is shown in Figure 1. Figure 5 On each computing device in Figure 5 The hierarchical relationship shown defines the download address of the image file.

[0086] Mode 2: There are more than two first computing devices, and there is a hierarchical relationship between the image management device and each of the first computing devices, with the image management device being the highest in hierarchy.

[0087] A second image addition request is sent to the first designated device in the Mth level; the Mth level is any level except the level where the image management device is located; the second image addition request is used to instruct the first designated device to download the target image file from the corresponding first computing device in the M-1th level. If the target image file is downloaded from the corresponding first computing device in the M-1th level, the downloaded target image file is loaded into the local warehouse and a first download success message is returned. If the target image file is not downloaded from the corresponding first computing device in the M-1th level, a first download failure message is returned.

[0088] Among them, the first designated device can be the first computing device in the Mth layer that needs to synchronize the target image file. Optionally, the Mth layer and the first designated device can be specified according to actual needs, so as to achieve synchronization of the target image file by the designated device in the specified layer. The second image addition request carries the identifier of the M-1th layer and the download address of the target image file in the M-1th layer. On this basis, after the first designated device in the Mth layer receives the second image addition request, it can download the target image file more accurately from the M-1th layer.

[0089] In a possible implementation, the managing the image file of the first computing device further includes:

[0090] When the first download failure message is received, the corresponding first computing device in the M-1th layer is updated to the first designated device, the M-1th layer is updated to the Mth layer, and the step of sending a second image addition request to the first designated device in the Mth layer is returned to execute until the first designated device downloads the target image file from the corresponding first computing device in the M-1th layer.

[0091] It should be understood that there may be multiple first computing devices in the M-1th level, and the first computing device corresponding to the first designated device may refer to the first computing device in the M-1th level that provides the target image file for the first designated device. As an example and not a limitation, when the hierarchical relationship is represented by a tree structure, the first computing device in the M-1th level corresponding to the first designated device may be the first computing device in the M-1th level that is in the same branch as the first designated device.

[0092] It should be understood that when the image management device synchronizes the target image file with the first computing device, it can synchronize the target image file with each first computing device in sequence from the next level of the image management device in descending order until all first computing devices in the specified level have synchronized the target image file, and the specified level can be any level except the level where the image management device is located (for example, there are five levels in total, and the specified level is the third level or the fifth level); the target image file can also be synchronized with at least one first computing device in any level (that is, the synchronization order of the target image files of each level is not limited), and this application does not limit this.

[0093] like Figure 6 The figure shows another example of the arrangement of the computing devices. Figure 6 The hierarchical relationship of each computing device in is determined based on a binary tree. Figure 6 In the embodiment, the image management device and each computing device are arranged according to a binary tree. The image management device can have multiple child nodes, and computing devices in different network domains need to be arranged separately to avoid interfering with the synchronization of image files in the same network domain.

[0094] against Figure 6 The image management device synchronizes the image files of the first computing devices in the same network domain as the image management device in order from high to low levels. The synchronization process is as follows:

[0095] Step 1, net_a_controller_1.1.1.253 calls the interface of net_a_cluster1_1.1.1.1 to send an image addition request to net_a_cluster1_1.1.1.1. The image file download address comes from net_a_controller_1.1.1.253;

[0096] Step 2: net_a_cluster1_1.1.1.1 downloads the image file from net_a_controller_1.1.1.253 to the local computer, completes the image file loading and labeling operations, and calls the net_a_controller_1.1.1.253 interface to provide feedback indicating the successful addition of the image.

[0097] Step 3, net_a_controller_1.1.1.253 calls the interfaces of net_a_cluster1_1.1.1.2 and net_a_cluster1_1.1.1.3 to send image addition requests to them. The download address of the image file comes from net_a_cluster1_1.1.1.1.

[0098] Step 4: net_a_cluster1_1.1.1.2 downloads the image file from net_a_cluster1_1.1.1.1 to the local computer, completes the image file loading and labeling operations, and calls the net_a_controller_1.1.1.253 interface to provide feedback indicating the successful addition of the image.

[0099] Step 5: net_a_cluster1_1.1.1.3 downloads the image file from net_a_cluster1_1.1.1.1 to the local computer, completes the image file loading and labeling operations, and calls the net_a_controller_1.1.1.253 interface to provide feedback indicating the successful addition of the image.

[0100] Step 6, net_a_controller_1.1.1.253 calls the interfaces of net_a_cluster2_1.1.2.1 and net_a_cluster2_1.1.2.2 to send image addition requests to them. The download address of the image file comes from net_a_cluster1_1.1.1.2.

[0101] Step 7, net_a_controller_1.1.1.253 calls the interfaces of net_a_cluster2_1.1.2.3 and net_a_cluster2_1.1.2.4 to send an image addition request to them. The download address of the image file comes from net_a_cluster1_1.1.1.3;

[0102] The synchronization process in the same network domain is completed until net_a_cluster3_1.1.3.3 and net_a_1.1.4.1 download the image file from net_a_cluster2_1.1.2.3 to the local computer, complete the image file loading and labeling operations, and call the net_a_controller_1.1.1.253 interface to feedback the result indicating the successful addition of the image.

[0103] In one possible implementation, the image management device may also send a first image deletion request to the first computing device based on the image management function. The first image deletion request is used to instruct the first computing device to delete the corresponding image file in the local warehouse, thereby implementing deletion management of the image file of the first computing device.

[0104] Among them, the above-mentioned first image deletion request carries the identifier of the image file to be deleted. On this basis, after the first computing device receives the first image deletion request, it can accurately find the corresponding image file from the local warehouse based on the identifier of the image file in the first image deletion request, and delete the image file. In a possible implementation, the above-mentioned image management device can also send a first image query request to the first computing device based on the image management function, and the first image query request is used to instruct the first computing device to query the first relevant information of the corresponding image file from the local warehouse and return the first relevant information; receive the first relevant information from the first computing device, thereby realizing the query management of the image file of the first computing device.

[0105] The first image query request carries the identifier of the image file to be queried. On this basis, after receiving the first image query request, the first computing device can accurately find the first relevant information of the corresponding image file from the local warehouse based on the identifier of the image file in the first image query request.

[0106] For a second computing device that is in a different network domain from the image management device, since the image management device cannot communicate directly with the second computing device, the image management device can communicate with the second computing device based on a first network device that is in the same network domain as the image management device and a second network device that is in the same network domain as the second computing device, thereby managing the image file of the second computing device.

[0107] In this embodiment, the image management function of the image management device can shield the differences in the network, and can implement cross-domain image management based on the first network device and the second network device. The image management device can complete the interaction of instructions without worrying about whether it can communicate with the computing device, thereby realizing the management and scheduling of the image file.

[0108] The above-mentioned image management device can realize synchronous management of the image file of the second computing device in the following two ways.

[0109] Method 1: Send a third image addition request to the first network device, where the third image addition request is used to instruct the first network device to trigger the second computing device to download the target image file from the second network device based on the second network device, and load the downloaded target image file into the local warehouse.

[0110] The third image adding request carries the identifier of the second network device. On this basis, the second computing device can download the target image file from the image management device based on the first network device and the second network device, thereby achieving image file synchronization.

[0111] If the image management device senses that the second computing device is in a different network domain from the second computing device, it can find the corresponding first network device and send a third image addition request to the first network device; after the first network device receives the third image addition request, it can download the target image file from the image management device. After the download is complete, the download address of the image management device in the third image addition request can be updated to the download address of the second network device, thereby generating a fifth image addition request; the first network device transfers the fifth image addition request and the target image file to the specified directory of the second network device.

[0112] The second network device sends the fifth image addition request to the second computing device; after receiving the fifth image addition request, the second computing device can download the target image file from the second network device to the locally specified directory, and load the target image file from the locally specified directory to the local warehouse; the second computing device labels the target image file based on the label instruction and image address in the fifth image addition request, and updates the image address to the address required by the image management device, thereby completing the download of the target image file.

[0113] like Figure 7 The figure shows another example diagram of the download process of the image file provided in the embodiment of the present application. Figure 7 The image management device and the K8S cluster are in different network domains. The cross-domain download process is as follows: the image management device sends an increase request for the image file A of node E1 to the first network device, and the first network device sends an increase request for the image file A to node E1 through the second network device. After receiving the increase request, node E1 downloads the image file A from the second network device and loads the image file A into the local warehouse. The image management device sends an increase request for the image file A of node E3 to the first network device, and the first network device sends an increase request for the image file A to node E3 through the second network device. After receiving the increase request, node E3 downloads the image file A from the second network device and loads the image file A into the local warehouse.

[0114] Mode 2: There are more than two second computing devices, and there is a hierarchical relationship between the image management device and each second computing device, with the image management device being the highest level.

[0115] A fourth image adding request is sent to the first network device; the fourth image adding request is used to instruct the first network device to trigger the second designated device in the Sth level to download the target image file from the designated location based on the second network device; if the target image file is downloaded, the downloaded target image file is loaded into the local warehouse and a second download success message is returned to the image management device based on the first network device and the second network device; if the target image file is not downloaded, a second download failure message is returned to the image management device based on the first network device and the second network device; the Sth level is any level except the level where the image management device is located.

[0116] Among them, the second designated device can be a second computing device in the Sth layer that needs to synchronize the target image file. Optionally, the Sth layer and the second designated device can be specified according to actual needs, so as to achieve synchronization of the target image file by the designated device in the specified layer. The fourth image addition request carries the identifier of the second network device and the download address of the target image file at the S-1 layer. On this basis, the second computing device can download the target image file more accurately from the second network device or the S-1 layer.

[0117] The image management device may number and sort each second computing device that needs to synchronize the image file, thereby determining a hierarchical relationship between the image management device and each second computing device, and the hierarchical relationship may represent the synchronization order of the image file. As an example and not a limitation, the numbered second computing devices may be sorted based on a tree structure (e.g., a binary tree) to obtain a hierarchical relationship between the image management device and each second computing device.

[0118] In a possible implementation, the managing the image file of the second computing device based on the first network device and the second network device further includes:

[0119] When the second download failure message is received, the corresponding second computing device in the S-1 level is updated to the second designated device, the S-1 level is updated to the S level, and the step of sending a fourth image addition request to the first network device is returned to execute until the second designated device downloads the target image file from the specified location.

[0120] It should be understood that there may be multiple second computing devices in the S-1th level, and the second computing device corresponding to the second designated device may refer to the second computing device in the S-1th level that provides the target image file for the second designated device. As an example and not a limitation, when the hierarchical relationship is represented by a tree structure, the second computing device corresponding to the second designated device in the S-1th level may be a second computing device in the S-1th level that is in the same branch as the second designated device.

[0121] It should be understood that when the image management device synchronizes the target image file with the second computing device, it can synchronize the target image file with each second computing device in sequence from the next level of the image management device in descending order until all second computing devices in the specified level have synchronized the target image file; it can also synchronize the target image file with at least one second computing device in any level (that is, the synchronization order of the target image files of each level is not limited), and this application does not limit this.

[0122] exist Figure 6 In the embodiment, the image management device and each second computing device are arranged according to a binary tree. The image management device can have multiple child nodes, and computing devices in different network domains need to be arranged separately to avoid interfering with the synchronization of image files in the same network domain.

[0123] against Figure 6 The image management device synchronizes the image files of the second computing devices in different network domains from the image management device in order from high to low levels. The synchronization process is as follows:

[0124] Step 1, net_a_controller_1.1.1.253 senses that net_b_cluster4_2.1.1.1 is not in the same network domain as itself, and needs to use the first network device and the second network device to complete the communication between the image management device and the second computing device. The communication process between the first network device and the second network device refers to the cross-domain download process of the image file, and the downloaded image file is transferred to the second network device. In order to simplify the description, it will not be repeated here;

[0125] Step 2, net_b_cluster4_2.1.1.1 downloads the image from the second network device to the local device, completes the image file loading and labeling operations, and calls the second network device interface to feedback the result indicating the successful addition of the image, and finally notifies net_a_controller_1.1.1.253;

[0126] Step 3, net_a_controller_1.1.1.253 calls the interfaces of net_b_cluster4_2.1.1.2 and net_b_cluster4_2.1.1.3 based on the first network device and the second network device to send an image adding request thereto, and the download address of the image file comes from net_b_cluster4_2.1.1.1;

[0127] Step 4, net_b_cluster4_2.1.1.2 downloads the image file from net_b_cluster4_2.1.1.1 to the local device, completes the image file loading and labeling operations, and based on the first network device and the second network device, calls the net_a_controller_1.1.1.253 interface to feed back the result indicating the successful addition of the image.

[0128] Step 5, net_b_cluster4_2.1.1.3 downloads the image file from net_b_cluster4_2.1.1.1 to the local device, completes the image file loading and labeling operations, and based on the first network device and the second network device, calls the net_a_controller_1.1.1.253 interface to feed back the result indicating the successful addition of the image.

[0129] Step 6, net_a_controller_1.1.1.253 calls the interfaces of net_b_cluster5_2.1.2.1 and net_b_cluster5_2.1.2.2 based on the first network device and the second network device to send an image adding request thereto, and the download address of the image file comes from net_b_cluster4_2.1.1.2;

[0130] Step 7, net_a_controller_1.1.1.253 calls the interfaces of net_b_cluster5_2.1.2.3 and net_b_cluster5_2.1.2.4 based on the first network device and the second network device to send an image adding request thereto, and the download address of the image file comes from net_b_cluster4_2.1.1.3;

[0131] Finally, net_b_cluster5_2.1.2.5 downloads the image file from net_b_cluster5_2.1.2.1 to the local computer, completes the image file loading and labeling operations, and calls the net_a_controller_1.1.1.253 interface to feedback the result indicating the successful addition of the image, thus completing the synchronization process of different network domains.

[0132] In one possible implementation, the image management device may also send a second image deletion request to the first network device based on the image management function. The second image deletion request is used to instruct the first network device to trigger the second computing device to delete the corresponding image file in the local warehouse based on the second network device, thereby realizing deletion management of the image file of the second computing device.

[0133] The second image deletion request carries the identifier of the image file to be deleted and the identifier of the second network device. On this basis, the image management device can trigger the second computing device to accurately find the corresponding image file from the local warehouse and delete the image file based on the first network device and the second network device.

[0134] In one possible implementation, the image management device may further send a second image query request to the first network device based on the image management function, where the second image query request is used to instruct the first network device to trigger the second computing device to query the second related information of the corresponding image file from the local warehouse based on the second network device, and return the second related information to the image management device based on the first network device and the second network device; receive the second related information, thereby realizing the query management of the image file of the second computing device.

[0135] The second image query request carries the identifier of the image file to be queried and the identifier of the second network device. On this basis, the image management device can trigger the second computing device to accurately find the second relevant information of the corresponding image file from the local warehouse based on the first network device and the second network device.

[0136] In some embodiments, the image management device may delete any image file in a specified computing device according to business requirements, thereby freeing up disk space of the computing device.

[0137] The image management device can obtain the disk space occupied by the image files in the computing device. If the disk space is too much, it can connect with the business to issue an early warning.

[0138] The image management device can delete useless or long-unused image files, and can also label image files to indicate image files that cannot be deleted.

[0139] The image management device in this embodiment manages image files in an active mode. Abandoning the traditional mode of passive image processing, image files are actively managed through a central scheduling mode based on business needs. Solving the defect that the image files of each computing device can only be added but not deleted, it can clean up useless image files in time and release the disk space of the computing device. Solving the network and disk problems caused by concurrent downloading of large image files, by arranging the download of image files, network and disk load sharing is achieved. Solving the problem that image files cannot be scheduled in a targeted manner, image files can be scheduled to designated computing devices according to business needs to achieve precise management and control.

[0140] In the embodiment of the present application, the image management device is configured with an image management function. For a first computing device in the same network domain as the image management device, the image management device can manage the image file of the first computing device through the image management function. For a second computing device in a different network domain from the image management device, the image management device can manage the image file of the second computing device based on the first network device in the same network domain as the image management device and the second network device in the same network domain as the second computing device through the image management function. In the above management process, there is no need to rely on the image warehouse, and the management of image files can be achieved in the scenario without the image warehouse, which improves the management ability and efficiency of image files.

[0141] In some embodiments, the computing device is configured with a mirror synchronization function.

[0142] The image synchronization function includes: when receiving an image adding request, downloading the target image file from a specified location and loading the downloaded target image file into a local warehouse, and the image adding request is generated based on the instruction of the image management device.

[0143] The above-mentioned designated location may include a designated device, which is related to the network domain where the computing device is located and the level where the computing device is located.

[0144] In the scenario where the computing device and the image management device are in the same network domain, the computing device can communicate directly with the image management device. On this basis, the computing device can synchronize the image files in the following two ways based on the above-mentioned image synchronization function.

[0145] Mode 1: when receiving the first image adding request from the image management device, download the target image file from the image management device. That is, the above-specified location may refer to the image management device.

[0146] The first image adding request carries the identifier of the target image file and the download address of the target image file in the image management device. On this basis, after receiving the first image adding request, the computing device can download the target image file more accurately from the image management device.

[0147] Method 2: There are more than two computing devices, and there is a hierarchical relationship between the image management device and each computing device, with the image management device being the highest level.

[0148] When a second image adding request is received from the image management device, an upper level of the computing device is determined, and a target image file is downloaded from the upper level of the computing device.

[0149] The second image adding request carries the identifier of the previous level and the download address of the target image file at the previous level. On this basis, after receiving the second image adding request, the computing device can download the target image file more accurately from the previous level.

[0150] Taking the computing device at the Mth level as an example, the second image adding request carries the identifier of the M-1th level and the download address of the target image file at the M-1th level. On this basis, after receiving the second image adding request, the computing device at the Mth level can download the target image file more accurately from the M-1th level.

[0151] In the scenario where the computing device and the image management device are in different network domains, the computing device cannot communicate directly with the image management device. On this basis, the computing device can synchronize the image files in the following two ways based on the above-mentioned image synchronization function.

[0152] Method 1: When receiving the fifth image adding request from the second network device, the target image file is downloaded from the second network device, the second network device and the computing device are in the same network domain, the fifth image adding request is triggered by the first network device to the second network device based on the third image adding request, the first network device and the image management device are in the same network domain, and the third image adding request is sent by the image management device to the first network device.

[0153] The fifth image adding request carries the download address of the target image file in the second network device. On this basis, the computing device can download the target image file from the second network device, thereby realizing image file synchronization.

[0154] Method 2: There are more than two computing devices, and there is a hierarchical relationship between the image management device and each computing device, with the image management device being the highest level.

[0155] Upon receiving a sixth mirror addition request from the second network device, determining an upper level of the computing device;

[0156] If the upper level of the computing device is an image management device, downloading the target image file from a second network device, the second network device and the computing device are in the same network domain;

[0157] If the upper level of the computing device is another device, then the target image file is downloaded from the other device, and the other device is another computing device;

[0158] The second network device and the computing device are in the same network domain, the sixth mirror adding request is triggered by the first network device to the second network device based on the fourth mirror adding request, the first network device and the mirror management device are in the same network domain, and the fourth mirror adding request is sent by the mirror management device to the first network device.

[0159] The sixth image adding request carries the download address of the target image file at the upper level of the computing device. On this basis, the computing device can download the target image file from the second network device or the upper level, thereby realizing image file synchronization.

[0160] Taking the computing device at level S as an example, the fourth image adding request carries the download address of the target image file at level S-1. On this basis, the second computing device can download the target image file more accurately from level S-1.

[0161] In a possible implementation, the computing device is further configured with an image deletion function;

[0162] The image deletion function includes: upon receiving an image deletion request, deleting the corresponding image file in the local repository;

[0163] The image deletion request is generated based on the instruction of the image management device.

[0164] In the scenario where the computing device and the image management device are in the same network domain, the computing device can delete the corresponding image file in the local warehouse through the image deletion function when receiving the first image deletion request from the image management device.

[0165] The first image deletion request carries the identifier of the image file to be deleted. On this basis, the computing device can accurately find the corresponding image file from the local warehouse and delete the image file.

[0166] In the scenario where the computing device and the image management device are in different network domains, the computing device can delete the corresponding image file in the local warehouse through the image deletion function when receiving the third image deletion request from the second network device. The third image deletion request is triggered by the first network device to the second network device based on the second image deletion request.

[0167] The third image deletion request carries the identifier of the image file to be deleted. On this basis, the computing device can accurately find the corresponding image file from the local warehouse and delete the image file.

[0168] In a possible implementation, the computing device is further configured with a mirror query function;

[0169] The image query function includes: when receiving an image query request, querying the relevant information of the corresponding image file from the local warehouse and returning the relevant information;

[0170] The image query request is generated based on an instruction from the image management device.

[0171] In the scenario where the computing device and the image management device are in the same network domain, the computing device can query the first relevant information of the corresponding image file from the local warehouse through the image query function upon receiving the first image query request from the image management device, and return the first relevant information.

[0172] The first image query request carries the identifier of the image file to be queried. On this basis, the computing device can accurately find the first relevant information of the corresponding image file from the local warehouse.

[0173] In the scenario where the computing device and the image management device are in different network domains, the computing device can query the second relevant information of the corresponding image file from the local warehouse and return the second relevant information when receiving the third image query request from the second network device through the image query function. The third image query request is triggered by the first network device to the second network device based on the second image query request.

[0174] The third image query request carries the identifier of the image file to be queried. On this basis, the computing device can accurately find the second relevant information of the corresponding image file from the local warehouse.

[0175] In an embodiment of the present application, the computing device is configured with a mirror synchronization function, through which the computing device can complete the synchronization of the mirror file upon receiving a mirror addition request without relying on the mirror warehouse, and can also achieve the synchronization of the mirror file in the scenario without the mirror warehouse, thereby improving the synchronization efficiency of the mirror file. Or the computing device is configured with a mirror deletion function, through which the computing device can complete the deletion of the mirror file upon receiving a mirror deletion request without relying on the mirror warehouse, and can also achieve the deletion of the mirror file in the scenario without the mirror warehouse, thereby improving the deletion efficiency of the mirror file. Or the computing device is configured with a mirror query function, through which the computing device can complete the query of the mirror file upon receiving a mirror query request without relying on the mirror warehouse, and can also achieve the query of the mirror file in the scenario without the mirror warehouse, thereby improving the query efficiency of the mirror file.

[0176] In some embodiments, the network device is configured with a mirroring transparent transmission function.

[0177] The above-mentioned image transparent transmission function includes: when receiving an image addition request from the image management device, downloading the target image file from the image management device based on the image addition request, transparently transmitting the target image file to the target network device, and triggering the target computing device to download the target image file from the target network device based on the target network device, and loading the downloaded target image file into the local warehouse;

[0178] The image adding request carries the identifiers of the target image file and the target network device, the target network device and the image management device are in different network domains, and the target network device and the target computing device are in the same network domain.

[0179] In a possible implementation, the mirroring transparent transmission function further includes:

[0180] In case of receiving an image deletion request from the image management device, the target computing device is triggered to delete the corresponding image file from the local warehouse based on the image deletion request and the target network device.

[0181] In a possible implementation, the mirroring transparent transmission function further includes:

[0182] In case of receiving an image query request from the image management device, triggering the target computing device to query relevant information of the corresponding image file from the local warehouse based on the image query request and the target network device and returning relevant information based on the target network device;

[0183] Receive relevant information from the target network device and send relevant information to the image management device.

[0184] In an embodiment of the present application, the network device is configured with an image transparent transmission function, through which the network device can complete the synchronization of the image file when receiving an image addition request from the image management device without relying on the image warehouse, and can also achieve the synchronization of the image file in the scenario without the image warehouse, thereby improving the synchronization efficiency of the image file. Or the network device can also complete the deletion of the image file when receiving an image deletion request from the image management device through the image transparent transmission function, without relying on the image warehouse, and can also achieve the deletion of the image file in the scenario without the image warehouse, thereby improving the deletion efficiency of the image file. Or the network device can also complete the query of the image file when receiving an image query request from the image management device through the image transparent transmission function, without relying on the image warehouse, and can also achieve the query of the image file in the scenario without the image warehouse, thereby improving the query efficiency of the image file.

[0185] In some embodiments, in order to improve resource utilization and reduce network IO (Input / Output), the image management device will sink some parsing tasks to the computing device for local analysis, improve the real-time nature of data, save bandwidth resources, and reduce link transmission, thereby improving the stability and performance of the system as a whole. In the parsing sinking scenario, the computing device may provide services to the outside in the form of containers, or in the form of virtual machines, bare metal, etc. The network between the image management device and the computing device may be interoperable, or it may be separated by network security devices and cannot communicate directly. In the container form, there are analytical services provided directly to the outside in containers, and there are also container services provided to the outside through K8S services. Various scenarios may exist. The algorithm container is created by image files provided by one or more manufacturers. There may be multiple versions of image files for the same algorithm, and there are many versions of image files for different algorithms from different manufacturers. In order to better manage these image files, it is necessary to solve the monitoring and management of these image files in different network domains, different K8S clusters, and different image repositories.

[0186] The embodiment of the present application provides a solution for managing image files based on scenarios across multiple network domains, across multiple K8S clusters, and across multiple types of image repositories. This solution can synchronize image files in an image management device to a computing device under different network environments, and can also synchronize relevant information of image files from a computing device to an image management device, without relying on an image repository to manage image files. By shielding the differences between networks, clusters, and image repositories, the management capability and efficiency of image files can be improved.

[0187] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0188] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An image management device, characterized in that: Equipped with image management function; The image management function includes: managing the image file of the first computing device, and managing the image file of the second computing device based on the first network device and the second network device; The first computing device, the first network device and the mirror management device are in the same network domain, the second computing device and the mirror management device are in different network domains, and the second computing device and the second network device are in the same network domain.

2. The image management device according to claim 1, characterized in that: The managing the image file of the first computing device includes: Sending a first image adding request to the first computing device, where the first image adding request is used to instruct the first computing device to download a target image file from the image management device and load the downloaded target image file into a local warehouse; Alternatively, a first image deletion request is sent to the first computing device, where the first image deletion request is used to instruct the first computing device to delete the corresponding image file in the local warehouse; Alternatively, a first image query request is sent to the first computing device, where the first image query request is used to instruct the first computing device to query first related information of the corresponding image file from a local warehouse and return the first related information; The first relevant information is received from the first computing device.

3. The image management device according to claim 1, characterized in that: The number of the first computing devices is more than two, and there is a hierarchical relationship between the image management device and each of the first computing devices, and the image management device has the highest hierarchy; The managing the image file of the first computing device includes: Sending a second image adding request to the first designated device in the Mth level; The Mth level is any level except the level where the image management device is located; the second image addition request is used to instruct the first designated device to download the target image file from the first computing device corresponding to the M-1th level; if the target image file is downloaded from the first computing device corresponding to the M-1th level, the downloaded target image file is loaded into the local warehouse and a first download success message is returned; if the target image file is not downloaded from the first computing device corresponding to the M-1th level, a first download failure message is returned.

4. The image management device according to claim 3, characterized in that: The managing the image file of the first computing device also includes: In the case of receiving the first download failure message, the first computing device corresponding to the M-1th layer is updated to the first designated device, the M-1th layer is updated to the Mth layer, and the step of sending the second image addition request to the first designated device in the Mth layer is returned to execute until the first designated device downloads the target image file from the first computing device corresponding to the M-1th layer.

5. The image management device according to claim 1, characterized in that: The managing the image file of the second computing device based on the first network device and the second network device includes: Sending a third image adding request to the first network device, wherein the third image adding request is used to instruct the first network device to trigger the second computing device to download a target image file from the second network device based on the second network device, and load the downloaded target image file into a local warehouse; Alternatively, a second image deletion request is sent to the first network device, where the second image deletion request is used to instruct the first network device to trigger the second computing device to delete the corresponding image file in the local warehouse based on the second network device; Alternatively, a second image query request is sent to the first network device, where the second image query request is used to instruct the first network device to trigger the second computing device to query the second relevant information of the corresponding image file from the local warehouse based on the second network device, and return the second relevant information to the image management device based on the first network device and the second network device; The second relevant information is received.

6. The image management device according to claim 1, characterized in that: The number of the second computing devices is more than two, and there is a hierarchical relationship between the image management device and each of the second computing devices, and the image management device has the highest hierarchy; The managing the image file of the second computing device based on the first network device and the second network device includes: The fourth image adding request is sent to the first network device; the fourth image adding request is used to instruct the first network device to trigger the second designated device in the Sth level to download the target image file from the designated location based on the second network device; if the target image file is downloaded, the downloaded target image file is loaded into the local warehouse and a second download success message is returned to the image management device based on the first network device and the second network device; if the target image file is not downloaded, a second download failure message is returned to the image management device based on the first network device and the second network device; the Sth level is any level except the level where the image management device is located.

7. The image management device according to claim 6, characterized in that: The managing the image file of the second computing device based on the first network device and the second network device also includes: When the second download failure message is received, the corresponding second computing device in the S-1 layer is updated to the second designated device, the S-1 layer is updated to the S layer, and the step of sending the fourth image addition request to the first network device is returned to execute until the second designated device downloads the target image file from the specified location.

8. A computing device, characterized in that Equipped with mirror synchronization function; The image synchronization function includes: upon receiving an image addition request, downloading a target image file from a specified location, and loading the downloaded target image file into a local warehouse, wherein the image addition request is generated based on an instruction of an image management device; Alternatively, the image deletion function is configured; The image deletion function includes: upon receiving an image deletion request, deleting the corresponding image file in the local warehouse; the image deletion request is generated based on the instruction of the image management device; Alternatively, the mirror query function is configured; The image query function includes: when receiving an image query request, querying the relevant information of the corresponding image file from the local warehouse and returning the relevant information; the image query request is generated based on the instruction of the image management device.

9. The computing device according to claim 8, characterized in that The computing device and the image management device are in the same network domain, and when receiving an image adding request, downloading the target image file from a specified location includes: downloading the target image file from the image management device upon receiving a first image adding request from the image management device; Alternatively, the computing device and the image management device are in the same network domain, and the number of the computing devices is more than two, and there is a hierarchical relationship between the image management device and each of the computing devices, and the image management device has the highest hierarchy; when receiving an image addition request, downloading the target image file from a specified location includes: In case of receiving a second image adding request from the image management device, determining an upper level of the computing device, and downloading the target image file from the upper level of the computing device.

10. The computing device according to claim 8, characterized in that The computing device and the image management device are in different network domains, and when receiving an image adding request, downloading the target image file from a specified location includes: In the case of receiving a fifth image adding request from a second network device, downloading the target image file from the second network device, the second network device and the computing device are in the same network domain, the fifth image adding request is triggered by the first network device to the second network device based on the third image adding request, the first network device and the image management device are in the same network domain, and the third image adding request is sent by the image management device to the first network device; Alternatively, the computing device and the image management device are in different network domains, and the number of the computing devices is more than two, and there is a hierarchical relationship between the image management device and each of the computing devices, and the image management device has the highest hierarchy; when receiving an image addition request, downloading the target image file from a specified location includes: Upon receiving a sixth mirror addition request from the second network device, determining an upper level of the computing device; If the upper level of the computing device is the image management device, downloading the target image file from the second network device, the second network device and the computing device are in the same network domain; If the upper level of the computing device is another device, downloading the target image file from the other device, the other device being another computing device; The second network device and the computing device are in the same network domain, the sixth mirror adding request is triggered by the first network device to the second network device based on the fourth mirror adding request, the first network device and the mirror management device are in the same network domain, and the fourth mirror adding request is sent by the mirror management device to the first network device.

11. A network device, characterized in that: Equipped with mirror transmission function; The image transparent transmission function includes: when receiving an image addition request from an image management device, downloading a target image file from the image management device based on the image addition request, transparently transmitting the target image file to a target network device, triggering a target computing device to download the target image file from the target network device based on the target network device, and loading the downloaded target image file into a local warehouse; The image adding request carries the identifier of the target network device, the target network device and the image management device are in different network domains, and the target network device and the target computing device are in the same network domain; Alternatively, the mirroring transparent transmission function also includes: In case of receiving an image deletion request from the image management device, triggering the target computing device to delete the corresponding image file from the local warehouse based on the image deletion request and the target network device; Alternatively, the mirroring transparent transmission function also includes: In case of receiving an image query request from the image management device, triggering the target computing device to query relevant information of the corresponding image file from the local warehouse based on the image query request and the target network device and returning the relevant information based on the target network device; The relevant information is received from the target network device, and the relevant information is sent to the mirror management device.

12. An image management system, characterized in that: include: Image management equipment; A first computing device and a first network device in the same network domain as the image management device; and, a second computing device and a second network device in different network domains from the image management device, the second computing device and the second network device being in the same network domain; The image management device is configured with an image management function, which includes: managing the image file of the first computing device, and managing the image file of the second computing device based on the first network device and the second network device.