Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for downloading a container image by a newly added host

A new container technology, applied in the field of newly added hosts to download container images, can solve the problem of long time, shorten the time and improve the efficiency of expansion.

Active Publication Date: 2022-06-28
梯度云科技(北京)有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is the time-consuming problem that the newly added host is put into normal use when the container cluster is expanded, and a method and device for downloading the container image by the newly added host when the container cluster is expanded is proposed

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for downloading a container image by a newly added host

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0033] figure 1 A specific embodiment of a method for a newly added host to download a container image of the present invention is shown, including the following steps:

[0034] Step 1: Obtain the storage information of the unpacked files of each layer of the downloaded container image on all hosts in the container cluster. The storage information includes the configuration of the container image, the hash value of each layer, and the unpacked files of each layer in the host. the actual storage path....

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method and device for a newly added host to download a container image. By obtaining the storage information of the unpacked files of each layer of the container image downloaded on each host in the container cluster in advance, and then obtain the unpacked image layer of each container image. The actual storage path of the file in the host; then, according to the container image information to be downloaded in the container image warehouse, compare the storage information of the unpacked files of each layer with the container image information, and obtain the unpacked contents of each layer of the container image to be downloaded The storage path of the file in each host of the container cluster; then the newly joined host downloads the unpacked files of different container image layers in parallel from different hosts. Because each host of the container cluster concurrently obtains the unpacked files of each layer of the container image downloaded by other hosts in the container cluster, the time for downloading the container image containing too large layered files is shortened, and the newly added host can be quickly put into normal use. Improve the efficiency of container cluster expansion.

Description

technical field [0001] The present invention relates to the field of computer software, in particular to a method and device for downloading a container image with a newly added host. Background technique [0002] Currently, container clusters are widely used in company information systems to manage applications, and new hosts will be added when the container clusters are expanded in response to high loads. In order to run the application software packaged in the container image, the newly added host will first request the container image repository to download the image. [0003] In the container image warehouse, the container image is stored by layering technology. Since each layer is a single file after packaging, when the container image layer is too large, it will take a long time to download, and it will take a certain amount of time to download to the host. Only after unpacking can be saved to the image-related directory specified by the container management software...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/172G06F8/61
CPCG06F16/172G06F8/63
Inventor 王伟华刘井山樊宇梅进
Owner 梯度云科技(北京)有限公司