Docker container-oriented online migration system implementation and optimization method

A docker container and migration system technology, applied in the field of virtualization, can solve problems such as isolation, and achieve the effect of ensuring reliability, reducing migration time, and reducing data transmission

Active Publication Date: 2019-08-13
HUAZHONG UNIV OF SCI & TECH
View PDF10 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Different from other containers, the Docker container is characterized in that it does not depend on the platform. It introduces the container mirroring mechanism and provides a delivery standard. It is the introduction of the mirror hierarchy that brings the first problem of container migration: how to The parent-child relationship between image layers isolates the image data of the operating environment on which the container depends from different file system drivers
The second question is how to realize the online migration of the process
The third question is how to dynamically identify the migration container after the migration and continue to maintain the management authority of the container.

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
  • Docker container-oriented online migration system implementation and optimization method
  • Docker container-oriented online migration system implementation and optimization method
  • Docker container-oriented online migration system implementation and optimization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] Such as figure 2 As shown, the present invention provides an online migration system for Docker containers, which at least includes a base layer 1 , a migration data layer 2 , a function layer 3 and an application layer 4 . Migration data layer 2 includes at least container configuration data, image layer data, image layer metadata, image metadata and data volume data, so as to provide data support for function layer 3 and application layer 4. The function layer 3 is used to perform, for example, integration, redundancy processing, and memory iterative processing on the data in the migration data layer 2 to provide a preparation basis for data migration. Application layer 4 is used to complete online or offline migration of containers.

[0057] Preferably, the base layer 1 includes at least an initialization module 101 , a CRIU module 102 , an RPC communication module 103 and a migration control module 104 . The initialization module 101 is used to detect and build o...

Embodiment 2

[0067] This embodiment is a further improvement on Embodiment 1, and repeated content will not be repeated here.

[0068] Such as figure 1 As shown, the source machine container 5 and the destination machine container 6 are connected through the transmission terminal 7, so as to realize the mutual transmission of data between the two. The source machine container 5 and the destination machine container 6 can be connected to the online migration system of the present invention through the transmission terminal 7, so that the online migration of the container process can be realized through the CRIU module. Both the source machine container 5 and the destination machine container 6 are configured to have a daemon process 8 , a mirror layer 9 , a container 10 and a memory unit 14 . The daemon process 8 is used to receive the request initiated by the client and process the request accordingly. The mirroring layer 9 is configured to at least support the working modes of the AUFS ...

Embodiment 3

[0097] This embodiment is a further improvement on the foregoing embodiments, and repeated content will not be repeated here.

[0098] Preferably, the dynamic loading module 16 is configured to dynamically load the relevant configuration information and underlying image information of the container to be restored into the corresponding image storage driver according to the following steps:

[0099] D1: Determine whether the container to be restored belongs to a local container. If the container to be restored belongs to a local container, directly start the container to be restored.

[0100] D2: If the container to be restored belongs to a remote migration container, load the image layer metadata of the container to be restored to the image layer storage driver according to the parent-child relationship between the image layers, and load the readable and writable layer to the image layer storage driver .

[0101] D3: Load container information. For example, read th...

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 an online migration system implementation and optimization method for a Docker container. The online migration system realization and optimization method at least comprises thefollowing steps: determining an integrated collection mechanism of mirror image layer data based on different container file systems and parent-child relationships between mirror image layers thereofso as to complete integrated collection of the mirror image layer data; determining the latest version of the mirror image layer data based on a Diff command between the parent mirror image layer andthe child mirror image layer, and realizing transmission of the latest version of the mirror image layer data between the source machine container and the target machine container to complete iteration synchronization of the mirror image layer data; realizing iterative synchronization of memory in accordance with the implementation of the Pre-Copy mechanism; and executing container recovery operation of the target machine container under the condition that the iteration synchronization of the mirror image layer data and the memory is completed.

Description

technical field [0001] The invention belongs to the technical field of virtualization, and in particular relates to a method for realizing and optimizing an online migration system oriented to Docker containers. Background technique [0002] Cloud computing, as an emerging computing model, has received more and more attention and applications in recent years. With the expansion of cloud service scale, the data center continues to expand. In order to effectively realize the load under the large-scale cloud service platform Balanced, effective allocation of computing resources, online migration technology has gradually attracted people's attention. In the traditional mode, the core content of cloud computing is virtualization technology, which improves the utilization of computing resources through virtual machines. Currently, the virtual machine live migration technology is relatively mature. With the continuous deepening of people's understanding of the concept of containe...

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): G06F16/11G06F9/455
CPCG06F9/45558G06F2009/4557G06F16/119G06F9/455G06F16/178
Inventor 吴松金海徐波
Owner HUAZHONG UNIV OF SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products