Method and apparatus for saving and restoring container state

A container and state technology, applied in the computer field, can solve problems such as inconsistency in the execution environment, loss of process resource limits, etc.

Active Publication Date: 2012-10-03
HUAWEI TECH CO LTD
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, there is a problem with the checkpoint / restart operation in the prior art: in the restart phase, the resource limit of the process in the recovered container is lost, and the execution environment of the process in the container is inconsistent before and after the checkpoint / restart operation

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
  • Method and apparatus for saving and restoring container state
  • Method and apparatus for saving and restoring container state
  • Method and apparatus for saving and restoring container state

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The embodiment of the present invention provides a method and device for saving and restoring the container state, which is used to perform checkpoint / restart operations on the container state in the Linux system, so that the execution environment of the process in the container before and after the checkpoint / restart operation can be maintained. unanimous.

[0021] For a better understanding of the technical solution of the present invention, please refer to figure 1 , is an embodiment of a container state preservation and recovery method in the embodiment of the present invention, including:

[0022] 101. In the checkpoint phase, acquire and save the configuration information of the first container, the control group state parameters of the first container, and the state parameters of the application program of the first container;

[0023] In the embodiment of the present invention, when the application program is running in the first container, if the application p...

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

An embodiment of the invention discloses a method and an apparatus for saving and restoring a container state, comprising obtaining and saving the configuration information of a first container, and the state parameters of a control group of the first container and an application program of the first container in a stage of saving the checkpoint; reading the configuration information of the first container, and the state parameters of the control group of the first container and the application program of the first container in a stage of restoring the restart, and configuring a second container according to the configuration information of the first container, and the state parameters of the control group of the first container and the application program of the first container, so that the execution environment of the progress in the container before and after the checkpoint / restart operation can be maintained consistent.

Description

technical field [0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a method and device for saving and restoring container states. Background technique [0002] Linux containers can provide lightweight virtualization to isolate a group of processes and control the resource usage of this group of processes. The principle is to provide different system views for different processes, and to achieve isolation between processes through the Linux namespace mechanism. Processes in the same namespace can see each other, access each other, and communicate with each other. Among them, the namespace is a collection of resource localization, which is composed of namespaces of multiple subsystems. The objects of each subsystem are unique from the original global An instance of is localized into multiple instances, and the instances do not interfere with each other, and one instance cannot access elements inside another instance. ...

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): G06F11/00G06F9/46
CPCG06F9/461G06F11/1438G06F2209/504Y02D10/00G06F11/1458
Inventor 杨振章赵琪
Owner HUAWEI TECH CO LTD
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