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

Real-time synchronization method for state of Docker container

A docker container, real-time synchronization technology, applied in instrumentation, program control design, electrical digital data processing, etc., can solve problems such as inability to handle abnormal conditions, container shutdown, etc.

Active Publication Date: 2017-12-01
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The container may be shut down or restarted due to the abnormal process running inside it. At this time, the container management platform needs to be able to monitor the state changes of the container in real time and give corresponding alarm information. Docker (open source container engine) provides processing The interface of Docker events, but it cannot handle all abnormal situations, such as Docker host shutdown, Docker process stop, etc.

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
  • Real-time synchronization method for state of Docker container

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments are explanations of the present invention, but the present invention is not limited to the following embodiments.

[0019] Such as figure 1 As shown, the Docker container state real-time synchronization method provided by this embodiment stores container information in the Etcd database, and sets a TTL timeout (Time To Live, survival time) for the information. When the container management platform receives the monitoring data of the container , the TTL timeout time of the information will be refreshed to ensure that the container information will not be deleted due to the expiration of the TTL; when the container is shut down, the host is shut down, or the Docker process stops, the container management platform cannot receive the monitoring information of the container, and the Etcd database The saved container informat...

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 discloses a real-time synchronization method for the state of a Docker container. The method comprises the following steps of building a container management platform; building a container, storing container information in an Etcd database, and setting a TTL expiration time of the container; deploying a container monitoring component in a host where the container is located, wherein the container monitoring component periodically reports monitoring data to the container management platform; when the container management platform receives the monitoring data, updating the corresponding TTL expiration time of the container in the Etcd database; monitoring the Etcd database by using the container management platform, when the condition that the container information is deleted is monitored, judging whether the state of the container in the platform database is a stop state by using the container management platform, and if no, updating the state to be the stop state. According to the method, the state of the container under abnormal scenes such as the Docker host is shut down and the Docker progress is stopped can be updated.

Description

technical field [0001] The invention relates to the field of cloud computing container management, in particular to a method for real-time synchronization of Docker container states. Background technique [0002] The management and use of containers is the next stage of cloud computing. Due to its light weight, easy migration, and easy startup, containers are gradually adopted by major cloud computing platforms and provided to developers as services. The container may be shut down or restarted due to the abnormal process running inside it. At this time, the container management platform needs to be able to monitor the state changes of the container in real time and give corresponding alarm information. Docker (open source container engine) provides processing The interface of Docker events, but it cannot handle all abnormal situations, such as the shutdown of the Docker host, the stop of the Docker process, etc. Contents of the invention [0003] To solve the above proble...

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): G06F9/455G06F11/30H04L29/08
CPCG06F9/45558G06F11/301G06F11/3051H04L67/10
Inventor 王德奎
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
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