Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Processing method and device and reading method and device for Docker image cache information

An information processing method and information reading technology, applied in the direction of electrical digital data processing, special data processing applications, generation of response errors, etc., can solve the problem of reducing the processing speed of requests, achieve fast processing of requests, and avoid redundant searches Effect

Active Publication Date: 2017-08-01
BEIJING SOHU NEW MEDIA INFORMATION TECH
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For a mirror warehouse that uses an object storage system such as swift or amazon s3 as the back-end storage file system, whenever an http get api request is received, limited by the characteristics of object storage, it is necessary to traverse the entire storage file system to find the corresponding mirror image Cache content, which can greatly slow down request processing

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
  • Processing method and device and reading method and device for Docker image cache information
  • Processing method and device and reading method and device for Docker image cache information
  • Processing method and device and reading method and device for Docker image cache information

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] Embodiment 1 of the present invention discloses a Docker image cache information processing method, the method flow chart of the method is as follows figure 1 shown, including the following steps:

[0056] S101, traversing all the mirrors in the backend storage file system of the mirror warehouse, and grouping each mirror according to the mirror name to obtain at least one mirror group, where the mirror names of the mirror images in the mirror group are the same and the mirror tags are different;

[0057] In the process of executing step S101, the image in the storage file system corresponds to the image name that uniquely identifies the image. The image name is composed of the image name and the image label. All mirrors, get the mirror name of each mirror, and group all the traversed mirrors according to the mirror name. Therefore, the mirror names of each mirror in each mirror group are the same, but the mirror labels are different;

[0058] In this embodiment, the s...

Embodiment 2

[0067] In combination with the Docker image cache information processing method disclosed in the first embodiment above, the second embodiment of the present invention also provides a Docker image cache information processing method, the method flow chart is as follows figure 2 shown, including the following steps:

[0068] S101, traversing all the mirrors in the backend storage file system of the mirror warehouse, and grouping each mirror according to the mirror name to obtain at least one mirror group, where the mirror names of the mirror images in the mirror group are the same and the mirror tags are different;

[0069] S102. For each mirror group, read the cache information of each mirror in the mirror group, and generate mirror cache information identified by the mirror name, and the mirror cache information includes the mirror tags of each mirror in the mirror group and its Cache information;

[0070] S103, for each mirror group, according to the cache information of e...

Embodiment 3

[0102] Based on the Docker image cache information processing method disclosed in the first and second embodiments above, the third embodiment of the present invention provides a device for performing the above method. The schematic structural diagram of the Docker image cache information processing device is as follows Figure 6 As shown, including: traverse grouping module 101, read generation module 102 and generation module 103;

[0103] The traversal grouping module 101 is used for traversing all images in the backend storage file system of the image warehouse, and grouping each image according to the image name to obtain at least one image group, each image in the image group has the same image name and image label different;

[0104] Read generating module 102, for each mirror group, read the cache information of each mirror in the mirror group, and generate the mirror cache information identified by the mirror name, the mirror cache information includes the image cache...

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 invention provides a processing method and device and a reading method and device for Docker image cache information. The processing method for the Docker image cache information comprises the steps that images in an image warehouse are grouped, and image labels with image names being identifiers and containing all the images, image cache information of cache information of the image labels and image group cache information with the image names being the identifiers and containing image group cache information are generated. Based on the method, by processing the cache information of the images in advance, a basis is provided for directly reading image cache content corresponding to an image cache request from the image cache information and the image group cache information subsequently, in this way, redundant research, traversing and calculation processes are avoided, and the purpose of quickly processing the request is achieved.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to a processing method, device, and reading method and device for Docker image cache information. Background technique [0002] At present, Docker is the most mainstream open source application container engine, allowing developers to package their applications and dependencies into a portable container, and then publish it to any popular Linux machine, so as to realize one-time creation and arbitrary operation The purpose of which is that Linux is an operating system based on POSIX (Portable Operating System Interface). [0003] The core of Docker is the image, and the mirror warehouse as the backend of image storage plays a pivotal role in the development of Docker. For a mirror warehouse that uses an object storage system such as swift or amazon s3 as the back-end storage file system, whenever an http get api request is received, limited by the characteristics...

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 Applications(China)
IPC IPC(8): G06F17/30G06F11/14
CPCG06F11/1448G06F16/172
Inventor 任凯
Owner BEIJING SOHU NEW MEDIA INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products