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

A method for quickly detecting the running state of a container

A technology for operating status and detection of containers, which is applied in the fields of instruments, program control design, electrical digital data processing, etc., can solve the problem of insufficient efficiency, and achieve the effect of satisfying the collection speed and low resource consumption.

Pending Publication Date: 2018-12-25
南京卓盛云信息科技有限公司
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the efficiency of this method has been improved, a daemon process needs to be developed, and the daemon process still needs to use the docker command to obtain the container status, which is still not efficient enough

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 for quickly detecting the running state of a container
  • A method for quickly detecting the running state of a container

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0020] Such as Figure 1-2 As shown, a method for quickly detecting the running state of a container includes a collector, a shared configuration library, a host machine, and a container on the host machine. The collector, the shared configuration library, and the host machine form a physical network through a switch, and the collector is used to quickly obtain the running status of the container; the host machine is a physical machine used to carry the running of the container Or a virtual machine; the shared configuration library is a database that can be accessed by the host machine and the collector, and the specific detection method is as follows:

[0021] (1) When making the container image of the container, a specific monitoring process is included, and the monitoring process is specified as the foreground process in the startup script...

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 method for quickly detecting the running state of a container, comprising a collector, a shared configuration library, a host machine and a container on the host machine. A method for quickly detecting the running state of a container determines whether a container is running by judging whether a specific port of a host machine accepts a request and whether a specific string of small lengths is returned when an answer is received. Because of the small burden of port response, the collector can quickly obtain the status information of a large number of containers, and the system can also collect all the container status of a large number of hosts at short intervals to meet the needs of the monitoring system. A method for quickly detecting the running state of containers can quickly obtain the running state of containers on different hosts, which can meet the requirements of fast collection speed and low resource consumption, and is especially suitable for obtaining the states of containers on a large number of hosts in a distributed system.

Description

technical field [0001] The invention relates to the field of computer applications, in particular to a method for quickly detecting the running state of a container under a Linux system. Background technique [0002] In Linux systems, containers can provide lightweight virtualization to isolate processes and resources. By encapsulating services or applications into containers, the Linux operating system can make applications run as if they were running on a separate machine. The current container technology has been widely used. But in a distributed system, many containers run on different host machines (physical machines or virtual machines), how to judge the running status of each container becomes a basic requirement. The typical solution of current container technology is to use Docker service. Docker provides a method to view the running status of the container, such as the docker ps command to display whether the container on the current host is running or exiting. ...

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/455
CPCG06F9/45533G06F2009/45595
Inventor 金友兵
Owner 南京卓盛云信息科技有限公司
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