CN112988321A - Container mirror image data management method and device, electronic equipment and storage medium - Google Patents

Container mirror image data management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112988321A
CN112988321A CN201911286349.5A CN201911286349A CN112988321A CN 112988321 A CN112988321 A CN 112988321A CN 201911286349 A CN201911286349 A CN 201911286349A CN 112988321 A CN112988321 A CN 112988321A
Authority
CN
China
Prior art keywords
storage server
container
image data
address
server cluster
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911286349.5A
Other languages
Chinese (zh)
Inventor
赵琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201911286349.5A priority Critical patent/CN112988321A/en
Publication of CN112988321A publication Critical patent/CN112988321A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a container mirror image data management method, a device, electronic equipment and a storage medium, which are applied to a central management server in a container mirror image data management system, wherein the container mirror image data management method comprises the following steps: the method comprises the steps of obtaining a container mirror image data operation request sent by a first container management server, determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, and sending the address of the first storage server cluster to the first container management server, so that the first container management server operates container mirror image data in the first storage server cluster based on the address of the first storage server cluster. Therefore, management of container mirror image data can be achieved through the central management server, management of the container mirror image data does not need to be carried out on each machine room, and therefore workload of workers can be achieved, and labor cost is reduced.

Description

Container mirror image data management method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for managing container mirror image data, an electronic device, and a storage medium.
Background
Container technology is a lightweight virtualization technology. By using container technology, resources managed by a single operating system can be divided into isolated groups to better balance conflicting resource usage requirements among the groups. Each container can run an application, different containers are isolated from each other, and a communication mechanism can be established between the containers. Before deploying a container, a container image of the container needs to be downloaded to a container management server running the container, where the container image refers to a resource file required when the container is deployed, and includes: operating system, software environment, and applications. In general, the container image may be stored in a server, and in order to facilitate management of different kinds of container image data, a plurality of warehouses may be established in the server, and each warehouse may store one type of container image.
For a cloud computing provider, generally, warehouses are respectively deployed in different machine rooms located at different positions, and then container images are respectively stored in the warehouses of the different machine rooms, so that management services such as uploading, downloading and storing of container image data are provided for container users.
However, the inventor finds that, since different machine rooms are located at different positions, the container mirror image data needs to be deployed in each machine room, which increases the workload of the worker, and also increases the workload of the worker in maintaining the warehouse and the container mirror image data of each machine room. Thereby increasing labor costs.
Disclosure of Invention
The embodiment of the invention aims to provide a container mirror image data management method, a container mirror image data management device, electronic equipment and a storage medium, so that the workload of workers is reduced, and the labor cost is reduced. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a container mirror data management method, which is applied to a central management server in a container mirror data management system, where the container mirror data management system further includes: a plurality of container management servers and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; the container mirror image data management method comprises the following steps:
acquiring a container mirror image data operation request sent by a first container management server, wherein the first container management server is any one of a plurality of container management servers;
determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to a central management server for each storage server cluster in advance;
and sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
Optionally, determining, based on the container mirroring data operation request, an address of a first storage server cluster from among pre-stored addresses of a plurality of storage server clusters, where the determining includes:
determining the address of a first storage server cluster in which container mirror image data is stored from the pre-stored addresses of a plurality of storage server clusters based on identification information of the container mirror image data carried in a container mirror image data downloading request;
sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster, including:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
Optionally, the central management server further stores an address of the container mirror image data in the first storage server cluster;
after determining the address of the first storage server cluster in which the container mirror image data is stored from the addresses of the plurality of storage server clusters stored in advance based on the identification information of the container mirror image data carried in the container mirror image data downloading request, the method for managing the container mirror image data further includes:
determining the address of the container mirror image data in the first storage server cluster based on the identification information of the container mirror image data;
sending the address of the first storage server cluster to the first container management server, so that the first container management server downloads the container image data from the first storage server cluster based on the address of the first storage server cluster, including:
and sending the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster to a first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
Optionally, determining, based on the container mirroring data operation request, an address of a first storage server cluster from among pre-stored addresses of a plurality of storage server clusters, where the determining includes:
determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the first storage server cluster carried in the container mirror image data uploading request;
sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster, including:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server uploads the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
Optionally, after sending the address of the first storage server cluster to the first container management server, so that the first container management server uploads the container mirror image data to the first storage server cluster based on the address of the first storage server cluster, the method for managing container mirror image data further includes:
after receiving the information of successful uploading sent by the first container management server, sending the address of the first storage server cluster to other storage server clusters except the first storage server cluster in the plurality of storage server clusters, so that the other storage server clusters synchronize container mirror image data stored in the first storage server cluster; or
After receiving the information of successful uploading sent by the first container management server, sending addresses of other storage server clusters except the first storage server cluster in the plurality of storage server clusters to the first storage server cluster, so that the first storage server cluster synchronizes container mirror image data to the other storage server clusters.
In a second aspect, an embodiment of the present invention further provides a container mirror data management method, which is applied to a first container management server in a container mirror data management system, where the first container management server is any one of a plurality of container management servers in the container mirror data management system, and the container mirror data management system further includes: the system comprises a central management server and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; the container mirror image data management method comprises the following steps:
sending a container mirror image data operation request to a central management server, so that the central management server determines an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
and acquiring the address of the first storage server cluster sent by the central management server, and operating the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
Optionally, the sending the container mirror data operation request to the central management server, so that the central management server determines, based on the container mirror data operation request, an address of the first storage server cluster from addresses of a plurality of storage server clusters stored in advance, where the method includes:
sending a container mirror image data downloading request to a central management server, so that the central management server determines the address of a first storage server cluster in which container mirror image data is stored from the pre-stored addresses of a plurality of storage server clusters based on identification information of the container mirror image data carried in the container mirror image data downloading request;
acquiring an address of a first storage server cluster sent by a central management server, and operating container mirror image data in the first storage server cluster based on the address of the first storage server cluster, wherein the operation comprises the following steps:
and acquiring the address of the first storage server cluster sent by the central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
Optionally, the central management server further stores an address of the container mirror image data in the first storage server cluster;
the method for downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster comprises the following steps:
the method comprises the steps of obtaining an address of a first storage server cluster and an address of container mirror image data in the first storage server cluster, wherein the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster are sent by a central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
Optionally, the sending the container mirror data operation request to the central management server, so that the central management server determines, based on the container mirror data operation request, an address of the first storage server cluster from addresses of a plurality of storage server clusters stored in advance, where the method includes:
sending a container mirror image data uploading request to a central management server, so that the central management server determines the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the first storage server cluster carried in the container mirror image data uploading request;
acquiring an address of a first storage server cluster sent by a central management server, and operating container mirror image data in the first storage server cluster based on the address of the first storage server cluster, wherein the operation comprises the following steps:
and acquiring the address of the first storage server cluster sent by the central management server, and uploading the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
In a third aspect, an embodiment of the present invention further provides a container mirror data management apparatus, which is applied to a central management server in a container mirror data management system, where the container mirror data management system further includes: a plurality of container management servers and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; the container mirror image data management device includes:
the system comprises an operation request acquisition module, a storage module and a processing module, wherein the operation request acquisition module is used for acquiring a container mirror image data operation request sent by a first container management server, and the first container management server is any one of a plurality of container management servers;
the address determining module is used for determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
the sending module is used for sending the address of the first storage server cluster to the first container management server so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
Optionally, the address determining module is specifically configured to:
determining the address of a first storage server cluster in which container mirror image data is stored from the pre-stored addresses of a plurality of storage server clusters based on identification information of the container mirror image data carried in a container mirror image data downloading request;
a sending module, specifically configured to:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
Optionally, the central management server further stores an address of the container mirror image data in the first storage server cluster; the container mirror image data management apparatus further includes:
the second address determining module is used for determining the address of the container mirror image data in the first storage server cluster based on the identification information of the container mirror image data;
a sending module, specifically configured to:
and sending the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster to a first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
Optionally, the address determining module is specifically configured to:
determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the first storage server cluster carried in the container mirror image data uploading request;
a sending module, specifically configured to:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server uploads the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
Optionally, the container mirror image data management apparatus further includes: a synchronization module to:
after receiving the information of successful uploading sent by the first container management server, sending the address of the first storage server cluster to other storage server clusters except the first storage server cluster in the plurality of storage server clusters, so that the other storage server clusters synchronize container mirror image data stored in the first storage server cluster; or
After receiving the information of successful uploading sent by the first container management server, sending addresses of other storage server clusters except the first storage server cluster in the plurality of storage server clusters to the first storage server cluster, so that the first storage server cluster synchronizes container mirror image data to the other storage server clusters.
In a fourth aspect, an embodiment of the present invention further provides a container mirror data management apparatus, which is applied to a first container management server in a container mirror data management system, where the first container management server is any one of a plurality of container management servers in the container mirror data management system, and the container mirror data management system further includes: the system comprises a central management server and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; the container mirror image data management device includes:
the system comprises a sending module, a central management server and a storage server module, wherein the sending module is used for sending a container mirror image data operation request to the central management server so that the central management server determines an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, and the pre-stored addresses of the plurality of storage server clusters are sent to the central management server in advance by each storage server cluster;
and the acquisition module is used for acquiring the address of the first storage server cluster sent by the central management server and operating the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
Optionally, the sending module is specifically configured to:
sending a container mirror image data downloading request to a central management server, so that the central management server determines the address of a first storage server cluster in which container mirror image data is stored from the pre-stored addresses of a plurality of storage server clusters based on identification information of the container mirror image data carried in the container mirror image data downloading request;
an acquisition module specifically configured to:
and acquiring the address of the first storage server cluster sent by the central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
Optionally, the central management server further stores an address of the container mirror image data in the first storage server cluster; an acquisition module specifically configured to:
the method comprises the steps of obtaining an address of a first storage server cluster and an address of container mirror image data in the first storage server cluster, wherein the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster are sent by a central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
Optionally, the sending module is specifically configured to:
sending a container mirror image data uploading request to a central management server, so that the central management server determines the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the first storage server cluster carried in the container mirror image data uploading request;
an acquisition module specifically configured to:
and acquiring the address of the first storage server cluster sent by the central management server, and uploading the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
In a fifth aspect, an embodiment of the present invention further provides a central management server, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor is caused by the machine-executable instructions to: and implementing the steps of the container mirror image data management method provided by the first aspect.
In a sixth aspect, an embodiment of the present invention further provides a container management server, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor is caused by the machine-executable instructions to: and implementing the steps of the container mirror image data management method provided by the second aspect.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of implementing the container mirror image data management method provided in the first aspect are implemented.
In an eighth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the container mirror image data management method provided in the second aspect are implemented.
In a ninth aspect, embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the container mirror data management method provided in the first aspect.
In a tenth aspect, embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the steps of the container mirror data management method provided in the second aspect.
In an eleventh aspect, an embodiment of the present invention further provides a computer program, which when run on a computer, causes the computer to execute the steps of the container mirror image data management method provided in the first aspect.
In a twelfth aspect, an embodiment of the present invention further provides a computer program, which when running on a computer, causes the computer to execute the steps of the container mirror image data management method provided in the second aspect.
In a thirteenth aspect, an embodiment of the present invention further provides a container mirroring data management system, where the system includes: the system comprises a central management server, a plurality of container management servers and a plurality of storage server clusters, wherein the container management servers are respectively arranged in different machine rooms, the storage server clusters are respectively arranged in different machine rooms, and the same machine room comprises one container management server and one storage server cluster;
the first container management server is used for sending a container mirror image operation request to the central management server, wherein the first container management server is any one of the plurality of container management servers;
the central management server is used for determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
the central management server is also used for sending the address of the first storage server cluster to the first container management server;
and the first container management server is used for operating the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
The embodiment of the invention provides a method and a device for managing container mirror image data, an electronic device and a storage medium, which can be applied to a container mirror image data management system, wherein the container mirror image data management system further comprises: the system comprises a central management server, a plurality of container management servers and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; after the central management server acquires the container mirror image data operation request sent by the first container management server, the address of the first storage server cluster can be determined from the addresses of the plurality of pre-stored storage server clusters based on the container mirror image data operation request, and then the address of the first storage server cluster is sent to the first container management server. And, data management across computer rooms can be realized. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of a container mirror data management system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first implementation of a container mirror data management method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a second implementation of a container mirror data management method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a third implementation of a container mirror data management method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fourth implementation manner of a container mirror data management method according to an embodiment of the present invention;
FIG. 6 is a flowchart of a fifth implementation manner of a container mirror data management method according to an embodiment of the present invention;
fig. 7 is a flowchart of a sixth implementation manner of a container mirror data management method according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a first implementation of a container mirror data management apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a second implementation of a container mirror data management apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a central management server according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a container management server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for managing container mirror image data, an electronic device, and a storage medium, so as to reduce the workload of workers and reduce the labor cost.
First, an application scenario of a container mirror data management method according to an embodiment of the present invention is introduced, as shown in fig. 1, which is a schematic structural diagram of a container mirror data management system to which the container mirror data management method according to the embodiment of the present invention is applied, where the system may include: the system comprises a central management server 110, a plurality of container management servers 121, and a plurality of storage server clusters 122, wherein the plurality of container management servers 121 are respectively disposed in different computer rooms 120, the plurality of storage server clusters 122 may also be respectively disposed in different computer rooms 120, and the same computer room 120 includes one container management server 121 and one storage server cluster 122.
For example, a first container management server 121 of the plurality of container management servers 121, and a first storage server cluster 122 of the plurality of storage server clusters 122 may be disposed at the first machine room 120.
When the first container management server 121 needs to operate the container mirror data, it may send an operation request to the central management server 110, and after acquiring the container mirror data operation request sent by the first container management server 121, the central management server 110 may determine, based on the container mirror data operation request, an address of the first storage server cluster 122 from addresses of a plurality of storage server clusters stored in advance; the address of the first storage server cluster 122 is then sent to the first container management server 121, and finally the first container management server 121 may operate on the first storage server cluster 122 based on the address of the first storage server cluster 122.
Therefore, management of container mirror image data can be achieved through the central management server, management of the container mirror image data does not need to be carried out on each machine room, and therefore workload of workers can be achieved, and labor cost is reduced. And, data management across computer rooms can be realized.
As shown in fig. 2, a flowchart of a first implementation manner of the container mirror data management method according to the embodiment of the present invention may be applied to a central management server in the container mirror data management system shown in fig. 1, where the container mirror data management system further includes: a plurality of container management servers and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms;
the container mirror image data management method may include:
s210, acquiring a container mirror image data operation request sent by a first container management server, wherein the first container management server is any one of a plurality of container management servers;
s220, determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to a central management server by each storage server cluster in advance;
s230, sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
Corresponding to the first implementation manner, an embodiment of the present invention further provides a container mirror data management method, and as shown in fig. 3, the method is a flowchart of a second implementation manner of the container mirror data management method according to the embodiment of the present invention; the method may be applied to a first container management server in the container mirroring data management system shown in fig. 1;
the container mirror image data management method may include:
s310, sending a container mirror image data operation request to a central management server, so that the central management server determines an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
s320, acquiring the address of the first storage server cluster sent by the central management server, and operating container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
In the container mirror image data management method provided by the embodiment of the invention, after the central management server obtains the container mirror image data operation request sent by the first container management server, the central management server can determine the address of the first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, and then send the address of the first storage server cluster to the first container management server, so that the container mirror image data can be managed through the central management server, and container mirror image data does not need to be managed for each machine room, so that the workload of workers can be reduced, and the labor cost can be reduced. And, data management across computer rooms can be realized.
On the basis of the container mirror image data management method shown in fig. 2, an embodiment of the present invention further provides a possible implementation manner, and as shown in fig. 4, the method is a flowchart of a third implementation manner of the container mirror image data management method according to the embodiment of the present invention, and the method may include:
s410, acquiring a container mirror image data operation request sent by the first container management server.
The first container management server is any one of a plurality of container management servers.
In some examples, when the staff member wants to download the container image data, one container management server, that is, the first container management server, may be selected among the plurality of container management servers. Then, a container mirror data operation request may be sent to the central management server through the first container management server.
In some examples, the container image data operation request may be a container image data download request, that is, a worker may send a container image data download request to the central management server through the first container management server. Therefore, the central management server may receive the container mirror data operation request sent by the first container management server.
And S420, determining the address of the first storage server cluster in which the container mirror image data is stored from the pre-stored addresses of the plurality of storage server clusters based on the identification information of the container mirror image data carried in the container mirror image data downloading request.
In some examples, the staff member may add the identification information of the container mirror data to be downloaded to the container mirror data operation request, and then send the container mirror data operation request to the central management server. Therefore, after receiving the container mirror image data downloading request, the central management server may extract the identification information of the container mirror image data carried in the container mirror image data downloading request.
In still other examples, the central management server may store, in advance, addresses of a plurality of storage server clusters and identification information of container mirror data stored in each storage server cluster. The pre-stored addresses of the plurality of storage server clusters are pre-sent to the central management server for each storage server cluster.
In this way, the central management server may determine the address of the first storage server cluster storing the container mirror image data from the pre-stored addresses of the plurality of storage server clusters based on the correspondence between the pre-stored addresses of the respective storage server clusters and the identification information of the corresponding container mirror image data.
S430, the address of the first storage server cluster is sent to the first container management server, so that the first container management server downloads container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
After determining the address of the first storage server cluster storing the container mirror image data, the central management server may send the address of the first storage server cluster to the first container management server, so that the first container management server may send a download request to the first storage server cluster according to the address of the first storage server cluster, so as to download the container mirror image data from the first storage server cluster.
In still other examples, the central management server may further store an address of the container mirror data in the first storage server cluster, and therefore, the central management server may further determine the address of the container mirror data in the first storage server cluster based on the identification information of the container mirror data and a correspondence between the identification information of the container mirror data and the address of the container mirror data in the first storage server, where the correspondence is established in advance.
The central management server may then send the address of the first storage server cluster and the address of the container mirror data in the first storage server cluster to the first container management server. In this way, the first container management server downloads the container image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container image data in the first storage server cluster.
In still other examples, the address of the first storage server cluster and the address of the container image data in the first storage server cluster may be a complete link, and thus, the central management server may send the complete link to the first container management server, and the first container management server may download the container image data from the first storage server cluster based on the complete link.
It is to be understood that the first storage server cluster and the first container management server may be located in the same computer room or may be located in different computer rooms.
When the first storage server cluster and the first container management server are located in the same machine room, the first storage server cluster and the first container management server can communicate through an intranet, and therefore cost caused by bandwidth use can be saved.
In still other examples, the central management server may communicate with the plurality of container management servers using dedicated lines, which may ensure that the container image download request can be transmitted to the central management server in a timely manner.
On the basis of the container mirror image data management method shown in fig. 2, an embodiment of the present invention further provides a possible implementation manner, and as shown in fig. 5, the method is a flowchart of a fourth implementation manner of the container mirror image data management method according to the embodiment of the present invention, and the method may include:
s510, acquiring a container mirror image data operation request sent by the first container management server.
The first container management server is any one of a plurality of container management servers.
In some examples, when the staff member wants to upload the container mirror data, one container management server, that is, the first container management server, may be selected from the plurality of container management servers. Then, a container mirror data operation request may be sent to the central management server through the first container management server.
In some examples, the container mirror data operation request may be a container mirror data upload request, that is, a worker may send a container mirror data upload request to the central management server through the first container management server. Therefore, the central management server may receive the container mirror data operation request sent by the first container management server.
S520, determining the address of the first storage server cluster from the pre-stored addresses of the plurality of storage server clusters based on the identification information of the first storage server cluster carried in the container mirror image data uploading request.
The pre-stored addresses of the storage server clusters are sent to the central management server in advance for each storage server cluster.
In some examples, the worker may add the identification information of the first storage server cluster to the container mirror data operation request and then send the container mirror data operation request to the central management server. Therefore, after receiving the container mirror image data uploading request, the central management server may extract the carried identification information of the first storage server cluster from the container mirror image data downloading request.
Here, the first storage server cluster is a target storage server cluster selected by the staff member to store the container image data to be uploaded.
In still other examples, the central management server may store addresses of a plurality of storage server clusters and identification information of each storage server cluster in advance. The pre-stored addresses of the plurality of storage server clusters are pre-sent to the central management server for each storage server cluster.
In this way, the central management server may determine the address of the first storage server cluster from the pre-stored addresses of the plurality of storage server clusters based on the correspondence between the pre-stored addresses of the respective storage server clusters and the corresponding identification information.
S530, sending the address of the first storage server cluster to the first container management server, so that the first container management server uploads the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
After determining the address of the first storage server cluster, the central management server may send the address of the first storage server cluster to the first container management server, so that the first container management server may upload the container mirror image data to the first storage server cluster according to the address of the first storage server cluster, so that the first storage server cluster may store the container mirror image data.
It is to be understood that the first storage server cluster and the first container management server may be located in the same computer room or may be located in different computer rooms.
When the first storage server cluster and the first container management server are located in the same machine room, the first storage server cluster and the first container management server can communicate through an intranet, and therefore cost caused by bandwidth use can be saved.
In still other examples, the central management server may communicate with the plurality of container management servers using dedicated lines, so that it is ensured that the container image upload request can be transmitted to the central management server in time.
In still other examples, after the address of the first storage server cluster is sent to the first container management server, so that the first container management server uploads the container mirror data to the first storage server cluster based on the address of the first storage server cluster, the container mirror data stored in the first storage server cluster may also be synchronized with other storage server clusters, which are storage server clusters other than the first storage server cluster, in the plurality of storage server clusters.
In this regard, after receiving the information that the first container management server successfully uploads the information, the central management server may send the address of the first storage server cluster to other storage server clusters except the first storage server cluster in the plurality of storage server clusters, so that the other storage server clusters synchronize the container mirror image data stored in the first storage server cluster; or
After receiving the information of successful uploading sent by the first container management server, sending addresses of other storage server clusters except the first storage server cluster in the plurality of storage server clusters to the first storage server cluster, so that the first storage server cluster synchronizes container mirror image data to the other storage server clusters.
In some examples, after uploading the container image data to the first storage server cluster, the first storage server cluster may send a feedback that the uploading is successful to the first container management server. After receiving the feedback information, the first container management server may send a feedback information of successful upload to the central management server, and send the feedback information of successful upload to the central management server after receiving the information of successful upload sent by the first container management server. The address of the first storage server cluster may be stored in correspondence with the container mirror data, so that the address of the first storage server cluster can be determined when a download request sent by another container management server is subsequently received.
In still other examples, after receiving the information that the upload is successful, sent by the first container management server, the central management server may send the address of the first storage server cluster to another storage server cluster, so as to synchronize the container mirror data stored in the first storage server cluster to the other storage server cluster.
In still other examples, after receiving the information that the upload is successful, sent by the first container management server, the central management server may also send addresses of other storage server clusters to the first storage server cluster, so that the first storage server cluster may send the stored container mirror data to other storage server clusters based on the addresses of the other storage server clusters, so that the other storage server clusters store the container mirror data sent by the first storage server cluster, and may also implement synchronization of the container mirror data stored in the first storage server cluster to the other storage server clusters.
On the basis of the container mirror image data management method shown in fig. 3, an embodiment of the present invention further provides a possible implementation manner, as shown in fig. 6, which is a flowchart of a fifth implementation manner of the container mirror image data management method according to the embodiment of the present invention, where the method may include:
s610, sending a container mirror image data downloading request to a central management server, so that the central management server determines an address of a first storage server cluster in which container mirror image data is stored from addresses of a plurality of pre-stored storage server clusters based on identification information of the container mirror image data carried in the container mirror image data downloading request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
s620, the address of the first storage server cluster sent by the central management server is obtained, and the container mirror image data is downloaded from the first storage server cluster based on the address of the first storage server cluster.
In some examples, when a worker wants to download container image data to a container management server, a container image data download request may be sent from the container management server to the above-mentioned central management server.
In some examples, the container mirror image data download request may carry identification information of the container mirror image data to be downloaded, so that, after receiving the container mirror image data download request, the central management server may determine, based on the identification information of the container mirror image data carried in the container mirror image data download request, an address of a first storage server cluster in which the container mirror image data is stored, from among a plurality of pre-stored addresses of storage server clusters. Then, the address of the first storage server cluster is sent to the container management server, that is, the first container management server.
The first container management server may download the container image data from the first storage server cluster based on the address of the first storage server cluster after receiving the address of the first storage server cluster. Therefore, the downloading of the container mirror image data can be realized.
In still other examples, the central management server further stores an address of the container mirror data in the first storage server cluster, so that the central management server may determine an address of the first storage server cluster storing the container mirror data and an address of the container mirror data in the first storage server cluster, and then send the address of the first storage server cluster and the address of the container mirror data in the first storage server cluster to the first container management server.
Therefore, the first container management server may receive the address of the first storage server cluster and the address of the container image data in the first storage server cluster, which are sent by the central management server, and may then download the container image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container image data in the first storage server cluster.
In still other examples, the central management server sends the address of the first storage server cluster and the address of the container image data in the first storage server cluster to the first container management server as a complete link, and the first container management server may download the container image data from the first storage server cluster based on the complete link.
On the basis of the container mirror image data management method shown in fig. 3, an embodiment of the present invention further provides a possible implementation manner, and as shown in fig. 7, the method is a flowchart of a sixth implementation manner of the container mirror image data management method according to the embodiment of the present invention, and the method may include:
s710, sending a container mirror image data uploading request to a central management server, so that the central management server determines the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the first storage server cluster carried in the container mirror image data uploading request;
s720, the address of the first storage server cluster sent by the central management server is obtained, and the container mirror image data is uploaded to the first storage server cluster based on the address of the first storage server cluster.
In some examples, when a worker wants to upload container image data to a storage server cluster, a container image data upload request may be sent from the container management server to the central management server.
In some examples, the container mirror image data upload request may carry identification information of a storage server cluster, that is, identification information of a first storage server cluster, where the first storage server cluster is a server cluster in which a worker needs to store the container mirror image data.
In this way, after receiving the container mirror image data uploading request, the central management server may determine the address of the first storage server cluster from the pre-stored addresses of the plurality of storage server clusters according to the identification information of the first storage server cluster carried in the container mirror image data uploading request. Then, the address of the first storage server cluster is sent to the container management server, that is, the first container management server.
After receiving the address of the first storage server cluster, the first container management server may upload the container mirror image data to the first storage server cluster based on the address of the first storage server cluster. Therefore, the container mirror image data can be uploaded to the storage server cluster.
In still other examples, the storage server clusters may further have a data synchronization function that may perform data synchronization without passing through a central server, and thus, the first storage server cluster may synchronize the stored container mirror data to other storage server clusters after storing the container mirror data.
In still other examples, the first storage server cluster may send feedback information of successful upload to the first container management server after storing the container mirror image data, and the first container management server may send the feedback information of successful upload to the central management server after receiving the feedback information of successful upload, so that the central management server may send the address of the first storage server cluster to other storage server clusters except the first storage server cluster among the plurality of storage server clusters after receiving the information of successful upload sent by the first container management server, so that the other storage server clusters synchronize the container mirror image data stored in the first storage server cluster; or
After receiving the information of successful uploading sent by the first container management server, sending addresses of other storage server clusters except the first storage server cluster in the plurality of storage server clusters to the first storage server cluster, so that the first storage server cluster synchronizes container mirror image data to the other storage server clusters. Thereby enabling synchronization of the stored container mirror data.
Corresponding to the embodiment of the container mirror image data management method shown in fig. 2, an embodiment of the present invention further provides a container mirror image data management apparatus, as shown in fig. 8, which is a schematic structural diagram of a first implementation of the container mirror image data management apparatus according to the embodiment of the present invention, and the apparatus is applied to a central management server in the container mirror image data management system shown in fig. 1, and the container mirror image data management system further includes: a plurality of container management servers and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms;
the container mirroring data management apparatus may include:
an operation request obtaining module 810, configured to obtain an operation request for container mirror image data sent by a first container management server, where the first container management server is any one of multiple container management servers;
an address determining module 820, configured to determine, based on the container mirror data operation request, an address of a first storage server cluster from pre-stored addresses of multiple storage server clusters, where the pre-stored addresses of the multiple storage server clusters are pre-sent to the central management server by each storage server cluster;
a sending module 830, configured to send the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror data in the first storage server cluster based on the address of the first storage server cluster.
In some examples, the address determination module 820 is specifically configured to:
determining the address of a first storage server cluster in which container mirror image data is stored from the pre-stored addresses of a plurality of storage server clusters based on identification information of the container mirror image data carried in a container mirror image data downloading request;
in some examples, the sending module 830 is specifically configured to:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
In some examples, the central management server further stores therein an address of the container image data in the first storage server cluster;
in some examples, the container mirrored data management apparatus may further include:
the second address determining module is used for determining the address of the container mirror image data in the first storage server cluster based on the identification information of the container mirror image data;
the sending module 830 is specifically configured to:
and sending the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster to a first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
In some examples, the address determination module 820 is specifically configured to:
determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the first storage server cluster carried in the container mirror image data uploading request;
in some examples, the sending module 830 is specifically configured to:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server uploads the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
In some examples, the container mirrored data management apparatus may further include: a synchronization module to:
after receiving the information of successful uploading sent by the first container management server, sending the address of the first storage server cluster to other storage server clusters except the first storage server cluster in the plurality of storage server clusters, so that the other storage server clusters synchronize container mirror image data stored in the first storage server cluster; or
After receiving the information of successful uploading sent by the first container management server, sending addresses of other storage server clusters except the first storage server cluster in the plurality of storage server clusters to the first storage server cluster, so that the first storage server cluster synchronizes container mirror image data to the other storage server clusters.
Corresponding to the embodiment of the container mirror image data management method shown in fig. 3, an embodiment of the present invention further provides a container mirror image data management apparatus, as shown in fig. 9, which is a schematic structural diagram of a second implementation of the container mirror image data management apparatus according to the embodiment of the present invention, and the apparatus may be applied to the first container management server in the container mirror image data management system shown in fig. 1; the container mirroring data management apparatus may include:
a sending module 910, configured to send a container mirror data operation request to a central management server, so that the central management server determines, based on the container mirror data operation request, an address of a first storage server cluster from addresses of a plurality of pre-stored storage server clusters, where the pre-stored addresses of the plurality of storage server clusters are sent to the central management server in advance for each storage server cluster;
the obtaining module 920 is configured to obtain an address of the first storage server cluster sent by the central management server, and operate the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
In some examples, the sending module 910 is specifically configured to:
sending a container mirror image data downloading request to a central management server, so that the central management server determines the address of a first storage server cluster in which container mirror image data is stored from the pre-stored addresses of a plurality of storage server clusters based on identification information of the container mirror image data carried in the container mirror image data downloading request;
in some examples, the obtaining module 920 is specifically configured to:
and acquiring the address of the first storage server cluster sent by the central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
In some examples, the central management server further stores therein an address of the container image data in the first storage server cluster; the obtaining module 920 is specifically configured to:
the method comprises the steps of obtaining an address of a first storage server cluster and an address of container mirror image data in the first storage server cluster, wherein the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster are sent by a central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
In some examples, the sending module 910 is specifically configured to:
sending a container mirror image data uploading request to a central management server, so that the central management server determines the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the first storage server cluster carried in the container mirror image data uploading request;
in some examples, the obtaining module 920 is specifically configured to:
and acquiring the address of the first storage server cluster sent by the central management server, and uploading the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
The container mirror image data management device provided by the embodiment of the invention can be applied to a container mirror image data management system, and the container mirror image data management system further comprises: the system comprises a central management server, a plurality of container management servers and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; after the central management server acquires the container mirror image data operation request sent by the first container management server, the address of the first storage server cluster can be determined from the addresses of the plurality of pre-stored storage server clusters based on the container mirror image data operation request, and then the address of the first storage server cluster is sent to the first container management server. And, data management across computer rooms can be realized.
As shown in fig. 10, which is a schematic structural diagram of a central management server according to an embodiment of the present invention, the central management server may include a processor 1001 and a machine-readable storage medium 1002, where the machine-readable storage medium 1002 stores machine-executable instructions that can be executed by the processor 1001, and the processor 1001 is caused by the machine-executable instructions to: the steps of implementing the container mirror image data management method applied to the central management server may be, for example, as follows:
acquiring a container mirror image data operation request sent by a first container management server, wherein the first container management server is any one of a plurality of container management servers;
determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to a central management server for each storage server cluster in advance;
and sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
An embodiment of the present invention further provides a container management server, as shown in fig. 11, which is a schematic structural diagram of a container management server according to an embodiment of the present invention, where the container management server may include a processor 1101 and a machine-readable storage medium 1102, where the machine-readable storage medium 1102 stores machine-executable instructions that can be executed by the processor 1101, and the processor 1101 is caused by the machine-executable instructions to: the steps of implementing the container mirror image data management method applied to the container management server may be, for example, as follows:
sending a container mirror image data operation request to a central management server, so that the central management server determines an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
and acquiring the address of the first storage server cluster sent by the central management server, and operating the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
In some examples, the machine-readable storage medium may include a Random Access Memory (RAM) and a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
In still other examples, the Processor may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for managing container mirror image data applied to a central management server is implemented, for example, the following steps may be implemented:
acquiring a container mirror image data operation request sent by a first container management server, wherein the first container management server is any one of a plurality of container management servers;
determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to a central management server for each storage server cluster in advance;
and sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for managing container mirror image data applied to a container management server is implemented, for example, the following steps may be implemented:
sending a container mirror image data operation request to a central management server, so that the central management server determines an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
and acquiring the address of the first storage server cluster sent by the central management server, and operating the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
Embodiments of the present invention further provide a computer program product including instructions, which when run on a computer, causes the computer to perform the steps of the container mirror image data management method applied to the central management server, for example, the following steps may be implemented:
acquiring a container mirror image data operation request sent by a first container management server, wherein the first container management server is any one of a plurality of container management servers;
determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to a central management server for each storage server cluster in advance;
and sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
Embodiments of the present invention further provide a computer program product including instructions, which when run on a computer, cause the computer to perform the steps of the container mirror image data management method applied to a container management server, for example, the following steps may be implemented:
sending a container mirror image data operation request to a central management server, so that the central management server determines an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
and acquiring the address of the first storage server cluster sent by the central management server, and operating the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
An embodiment of the present invention further provides a computer program, which when running on a computer, causes the computer to execute the steps of the container mirror image data management method applied to the central management server, for example, the following steps may be implemented:
acquiring a container mirror image data operation request sent by a first container management server, wherein the first container management server is any one of a plurality of container management servers;
determining the address of a first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to a central management server for each storage server cluster in advance;
and sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
An embodiment of the present invention further provides a computer program, which when running on a computer, causes the computer to execute the steps of the container mirror image data management method applied to the container management server, for example, the following steps may be implemented:
sending a container mirror image data operation request to a central management server, so that the central management server determines an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
and acquiring the address of the first storage server cluster sent by the central management server, and operating the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
An embodiment of the present invention further provides a container mirror image data management system, as shown in fig. 1, the system includes: the system comprises a central management server 110, a plurality of container management servers 121 and a plurality of storage server clusters 122, wherein the container management servers 121 are respectively arranged in different machine rooms 120, the storage server clusters 122 are respectively arranged in different machine rooms 120, and the same machine room 120 comprises one container management server 121 and one storage server cluster 122;
a first container management server 121, configured to send a container mirroring operation request to the central management server 110, where the first container management server 121 is any server in the plurality of container management servers 121;
the central management server 110 is configured to determine, based on the container mirror data operation request, an address of a first storage server cluster 122 from pre-stored addresses of a plurality of storage server clusters 122, where the pre-stored addresses of the plurality of storage server clusters 122 are pre-sent to the central management server 110 by each storage server cluster 122;
the central management server 110 is further configured to send the address of the first storage server cluster 122 to the first container management server 121;
the first container management server 121 is configured to operate on the container mirror data in the first storage server cluster 122 based on the address of the first storage server cluster 122.
Through the container mirror image data management system provided by the embodiment of the invention, after the central management server obtains the container mirror image data operation request sent by the first container management server, the central management server can determine the address of the first storage server cluster from the pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, and then send the address of the first storage server cluster to the first container management server, so that the container mirror image data can be managed through the central management server, and container mirror image data does not need to be managed for each machine room, so that the workload of workers can be reduced, and the labor cost can be reduced. And, data management across computer rooms can be realized.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (22)

1. A container mirror image data management method is applied to a central management server in a container mirror image data management system, and the container mirror image data management system further comprises: a plurality of container management servers and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; the method comprises the following steps:
acquiring a container mirror image data operation request sent by a first container management server, wherein the first container management server is any one of the plurality of container management servers;
determining an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are pre-sent to the central management server by each storage server cluster;
and sending the address of the first storage server cluster to the first container management server, so that the first container management server operates the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
2. The method of claim 1, wherein determining the address of the first storage server cluster from the pre-stored addresses of the plurality of storage server clusters based on the container mirroring data operation request comprises:
determining the address of a first storage server cluster in which the container mirror image data is stored from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the container mirror image data carried in the container mirror image data downloading request;
the sending the address of the first storage server cluster to the first container management server, so that the first container management server operates container mirror data in the first storage server cluster based on the address of the first storage server cluster, includes:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
3. The method of claim 2, wherein the central management server further stores therein an address of the container image data in the first storage server cluster;
after determining the address of the first storage server cluster storing the container mirror image data from the pre-stored addresses of the plurality of storage server clusters based on the identification information of the container mirror image data carried in the container mirror image data downloading request, the method further includes:
determining the address of the container mirror image data in the first storage server cluster based on the identification information of the container mirror image data;
the sending the address of the first storage server cluster to the first container management server to enable the first container management server to download the container image data from the first storage server cluster based on the address of the first storage server cluster includes:
and sending the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster to the first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
4. The method of claim 1, wherein determining the address of the first storage server cluster from the pre-stored addresses of the plurality of storage server clusters based on the container mirroring data operation request comprises:
determining the address of a first storage server cluster from a plurality of pre-stored addresses of the storage server clusters based on identification information of the first storage server cluster carried in the container mirror image data uploading request;
the sending the address of the first storage server cluster to the first container management server, so that the first container management server operates container mirror data in the first storage server cluster based on the address of the first storage server cluster, includes:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server uploads the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
5. The method of claim 4, wherein after sending the address of the first storage server cluster to the first container management server to cause the first container management server to upload container mirror data to the first storage server cluster based on the address of the first storage server cluster, the method further comprises:
after receiving the information of successful uploading sent by the first container management server, sending the address of the first storage server cluster to other storage server clusters except the first storage server cluster in the plurality of storage server clusters, so that the other storage server clusters synchronize the container mirror image data stored in the first storage server cluster; or
After receiving the information of successful uploading sent by the first container management server, sending addresses of other storage server clusters except the first storage server cluster in the plurality of storage server clusters to the first storage server cluster, so that the first storage server cluster synchronizes the container mirror image data to the other storage server clusters.
6. A container mirror image data management method is applied to a first container management server in a container mirror image data management system, wherein the first container management server is any one of a plurality of container management servers in the container mirror image data management system, and the container mirror image data management system further comprises: the system comprises a central management server and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; the method comprises the following steps:
sending a container mirror image data operation request to the central management server, so that the central management server determines an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters based on the container mirror image data operation request, wherein the pre-stored addresses of the plurality of storage server clusters are sent to the central management server by each storage server cluster in advance;
and acquiring the address of the first storage server cluster sent by the central management server, and operating container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
7. The method of claim 6, wherein the sending the container mirror data operation request to the central management server, so that the central management server determines an address of a first storage server cluster from a plurality of pre-stored addresses of the storage server clusters based on the container mirror data operation request, comprises:
sending a container mirror image data downloading request to the central management server, so that the central management server determines an address of a first storage server cluster in which the container mirror image data is stored from pre-stored addresses of a plurality of storage server clusters based on identification information of the container mirror image data carried in the container mirror image data downloading request;
the acquiring the address of the first storage server cluster sent by the central management server, and performing an operation on container mirror image data in the first storage server cluster based on the address of the first storage server cluster includes:
and acquiring the address of the first storage server cluster sent by the central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
8. The method according to claim 7, wherein the central management server further stores an address of the container image data in the first storage server cluster, and the obtaining the address of the first storage server cluster sent by the central management server and downloading the container image data from the first storage server cluster based on the address of the first storage server cluster comprises:
and acquiring the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster, which are sent by the central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
9. The method of claim 6, wherein the sending the container mirror data operation request to the central management server, so that the central management server determines an address of a first storage server cluster from a plurality of pre-stored addresses of the storage server clusters based on the container mirror data operation request, comprises:
sending a container mirror image data uploading request to the central management server, so that the central management server determines an address of a first storage server cluster from a plurality of pre-stored addresses of the storage server clusters based on identification information of the first storage server cluster carried in the container mirror image data uploading request;
the acquiring the address of the first storage server cluster sent by the central management server, and performing an operation on container mirror image data in the first storage server cluster based on the address of the first storage server cluster includes:
and acquiring the address of the first storage server cluster sent by the central management server, and uploading container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
10. A container mirror image data management device is applied to a central management server in a container mirror image data management system, and the container mirror image data management system further comprises: a plurality of container management servers and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; the device comprises:
an operation request obtaining module, configured to obtain a container mirror image data operation request sent by a first container management server, where the first container management server is any one of the multiple container management servers;
a first address determining module, configured to determine, based on the container mirror data operation request, an address of a first storage server cluster from pre-stored addresses of multiple storage server clusters, where the pre-stored addresses of the multiple storage server clusters are pre-sent to the central management server by each storage server cluster;
a sending module, configured to send the address of the first storage server cluster to the first container management server, so that the first container management server operates container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
11. The apparatus of claim 10, wherein the first address determination module is specifically configured to:
determining the address of a first storage server cluster in which the container mirror image data is stored from the pre-stored addresses of a plurality of storage server clusters based on the identification information of the container mirror image data carried in the container mirror image data downloading request;
the sending module is specifically configured to:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
12. The apparatus according to claim 11, wherein the central management server further stores therein an address of the container image data in the first storage server cluster;
the device further comprises:
the second address determining module is used for determining the address of the container mirror image data in the first storage server cluster based on the identification information of the container mirror image data;
the sending module is specifically configured to:
and sending the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster to the first container management server, so that the first container management server downloads the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
13. The apparatus of claim 10, wherein the address determination module is specifically configured to:
determining the address of a first storage server cluster from a plurality of pre-stored addresses of the storage server clusters based on identification information of the first storage server cluster carried in the container mirror image data uploading request;
the sending module is specifically configured to:
and sending the address of the first storage server cluster to the first container management server, so that the first container management server uploads the container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
14. The apparatus of claim 13, further comprising: a synchronization module to:
after receiving the information of successful uploading sent by the first container management server, sending the address of the first storage server cluster to other storage server clusters except the first storage server cluster in the plurality of storage server clusters, so that the other storage server clusters synchronize the container mirror image data stored in the first storage server cluster; or
After receiving the information of successful uploading sent by the first container management server, sending addresses of other storage server clusters except the first storage server cluster in the plurality of storage server clusters to the first storage server cluster, so that the first storage server cluster synchronizes the container mirror image data to the other storage server clusters.
15. A container mirror image data management apparatus, applied to a first container management server in a container mirror image data management system, where the first container management server is any one of a plurality of container management servers in the container mirror image data management system, and the container mirror image data management system further includes: the system comprises a central management server and a plurality of storage server clusters; the container management servers are respectively arranged in different machine rooms, and the storage server clusters are respectively arranged in different machine rooms; the device comprises:
a sending module, configured to send a container mirror data operation request to the central management server, so that the central management server determines, based on the container mirror data operation request, an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters, where the pre-stored addresses of the plurality of storage server clusters are sent to the central management server in advance by each storage server cluster;
and the acquisition module is used for acquiring the address of the first storage server cluster sent by the central management server and operating the container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
16. The apparatus of claim 15, wherein the sending module is specifically configured to:
sending a container mirror image data downloading request to the central management server, so that the central management server determines an address of a first storage server cluster in which the container mirror image data is stored from pre-stored addresses of a plurality of storage server clusters based on identification information of the container mirror image data carried in the container mirror image data downloading request;
the acquisition module is specifically configured to:
and acquiring the address of the first storage server cluster sent by the central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster.
17. The apparatus according to claim 16, wherein the central management server further stores therein an address of the container image data in the first storage server cluster, and the obtaining module is specifically configured to:
and acquiring the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster, which are sent by the central management server, and downloading the container mirror image data from the first storage server cluster based on the address of the first storage server cluster and the address of the container mirror image data in the first storage server cluster.
18. The apparatus of claim 15, wherein the sending module is specifically configured to:
sending a container mirror image data uploading request to the central management server, so that the central management server determines an address of a first storage server cluster from a plurality of pre-stored addresses of the storage server clusters based on identification information of the first storage server cluster carried in the container mirror image data uploading request;
the acquisition module is specifically configured to:
and acquiring the address of the first storage server cluster sent by the central management server, and uploading container mirror image data to the first storage server cluster based on the address of the first storage server cluster.
19. A central management server comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the process steps of any one of claims 1 to 5.
20. A container management server comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: -carrying out the process steps of any one of claims 6 to 9.
21. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 5 or 6 to 9.
22. A container mirroring data management system, the system comprising: the system comprises a central management server, a plurality of container management servers and a plurality of storage server clusters, wherein the container management servers are respectively arranged in different machine rooms, the storage server clusters are respectively arranged in different machine rooms, and the same machine room comprises one container management server and one storage server cluster;
the first container management server is used for sending a container mirror image operation request to the central management server, wherein the first container management server is any one of the plurality of container management servers;
the central management server is configured to determine, based on the container mirror data operation request, an address of a first storage server cluster from pre-stored addresses of a plurality of storage server clusters, where the pre-stored addresses of the plurality of storage server clusters are pre-sent to the central management server by each storage server cluster;
the central management server is further configured to send the address of the first storage server cluster to the first container management server;
the first container management server is configured to operate container mirror image data in the first storage server cluster based on the address of the first storage server cluster.
CN201911286349.5A 2019-12-13 2019-12-13 Container mirror image data management method and device, electronic equipment and storage medium Pending CN112988321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911286349.5A CN112988321A (en) 2019-12-13 2019-12-13 Container mirror image data management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911286349.5A CN112988321A (en) 2019-12-13 2019-12-13 Container mirror image data management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112988321A true CN112988321A (en) 2021-06-18

Family

ID=76342546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911286349.5A Pending CN112988321A (en) 2019-12-13 2019-12-13 Container mirror image data management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112988321A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581276A (en) * 2012-08-09 2014-02-12 北京亿赞普网络技术有限公司 Cluster management device and system, service client side and corresponding method
CN107707654A (en) * 2017-09-30 2018-02-16 中国联合网络通信集团有限公司 The management method of container mirror image data, apparatus and system
WO2019100605A1 (en) * 2017-11-21 2019-05-31 平安科技(深圳)有限公司 Platform-as-a-service paas container platform construction method, server, system, and storage medium
WO2019157955A1 (en) * 2018-02-13 2019-08-22 华为技术有限公司 Device access method, related platform and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581276A (en) * 2012-08-09 2014-02-12 北京亿赞普网络技术有限公司 Cluster management device and system, service client side and corresponding method
CN107707654A (en) * 2017-09-30 2018-02-16 中国联合网络通信集团有限公司 The management method of container mirror image data, apparatus and system
WO2019100605A1 (en) * 2017-11-21 2019-05-31 平安科技(深圳)有限公司 Platform-as-a-service paas container platform construction method, server, system, and storage medium
WO2019157955A1 (en) * 2018-02-13 2019-08-22 华为技术有限公司 Device access method, related platform and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗匀岭;陈海波;陆荟;亓敏;唐福林;: "基于分布式容器环境的智慧运维开发平台研究", 广西通信技术, no. 03 *

Similar Documents

Publication Publication Date Title
CN109729143B (en) Deploying a network-based cloud platform on a terminal device
US9699250B2 (en) Method and system for building an elastic cloud web server farm
CN112214330A (en) Method and device for deploying master nodes in cluster and computer-readable storage medium
CN111091429A (en) Electronic bill identification distribution method and device and electronic bill generation system
CN111290828A (en) Dynamic routing using container orchestration services
CN111327647B (en) Method and device for providing service to outside by container and electronic equipment
US20190363924A1 (en) Bulk creation of managed functions in a network that includes virtualized network function
US8856365B2 (en) Computer-implemented method, computer system and computer readable medium
CN111225064A (en) Ceph cluster deployment method, system, device and computer-readable storage medium
CN114244717A (en) Configuration method and device of virtual network card resources, computer equipment and medium
US20230086377A1 (en) Dynamic automation of prerequisite component deployment in disconnected environments
US11900089B2 (en) Automatically configuring and deploying a software operator in a distributed computing environment from a package
CN113079098B (en) Method, device, equipment and computer readable medium for updating route
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN108881504A (en) A kind of hardware information automatic acquiring method and device
CN110597513B (en) WEB interface generation method and related device
CN107045452B (en) Virtual machine scheduling method and device
CN109375946B (en) Method and system for managing component package of node package manager
CN112988321A (en) Container mirror image data management method and device, electronic equipment and storage medium
EP3333698A1 (en) System and method for managing machine images on a plurality of distributed servers
US10776134B2 (en) Management of application properties
CN107203915B (en) Data storage method and device
CN110071949B (en) System, method and device for managing computing application across geographic areas
CN106685738B (en) A kind of maintaining method and maintenance system of the configuration item of NET project
CN117033325B (en) Mirror image file preheating and pulling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination