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

Process monitoring method and system in a virtualized environment

A virtualized environment and process monitoring technology, which is applied to the process monitoring method and system field in a virtualized environment, can solve the problem of complex monitoring process scenarios, failure to guarantee high reliability and self-recovery of products and systems, and inability to timely and accurately issue Alarm information and other issues to achieve the effect of avoiding misjudgment

Active Publication Date: 2016-03-16
BEIJING SOHU NEW MEDIA INFORMATION TECH
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, higher requirements are put forward for the operation and maintenance of the server. When a process in a certain container exits abnormally, the traditional detection method needs to make adaptive modifications to the monitored process, so that the monitored process periodically reports to the The monitoring system actively reports the heartbeat information, or the monitoring system queries whether there is a corresponding process ID directory under the / proc file system by periodically querying the information of the process to be monitored. Both monitoring methods require the process to be monitored and the monitoring system Binding together requires changes to the monitoring process. At the same time, neither of these two methods can monitor the abnormal exit of the process in a timely and accurate manner, so the corresponding alarm information cannot be issued in a timely and accurate manner; corresponding measures cannot be taken to Corresponding exception recovery processing cannot guarantee the high reliability and self-recovery of products and systems
[0003] In addition, the currently commonly used detection methods are only applicable to Linux operating systems that have not introduced namespaces. After introducing namespaces in Linux operating systems, the monitoring process and the monitored process may run in different namespaces. The monitoring process requires The processing scenarios are more complex, and the traditional process monitoring method does not involve the processing in this scenario, and the process monitoring across namespaces cannot be completed

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
  • Process monitoring method and system in a virtualized environment
  • Process monitoring method and system in a virtualized environment
  • Process monitoring method and system in a virtualized environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] see figure 1 , which is a flow chart of a process monitoring method in a virtualized environment disclosed in Embodiment 1 of the present application, and the method specifically includes the following steps:

[0054] Step 101: Obtain the process descriptor of the process to be monitored;

[0055] The Linux operating system supports two levels of PID namespaces. PID is the identity identifier of a process, but due to the existence of the PID namespace, the PID no longer uniquely identifies the process. Different processes can have the same PID in different PID namespaces. For a process running in a container, it will be in the host machine Both the PID namespace of the container and the PID namespace of the container have PIDs.

[0056] Therefore, to obtain the process descriptor corresponding to the process to be monitored, it is necessary to search in the namespace where the process to be monitored is located through the PID of the process to be monitored. For a pr...

Embodiment 2

[0077] Aiming at the process monitoring method in a virtualized environment in Embodiment 1, the present invention also provides a process monitoring system in a virtualized environment, specifically as image 3 As shown in the structural diagram of a process monitoring system in a virtualized environment, the following will further introduce its internal structure and the connection relationship between each unit in combination with the working principle of the system.

[0078] An acquisition unit 301, configured to acquire a process descriptor of a process to be monitored;

[0079] The detection unit 302 is configured to detect whether the signal queue of the process to be monitored in the process descriptor contains a signal that will cause the process to exit abnormally before the operating system processes the signal queue of the process to be monitored;

[0080] The feedback unit 303 is configured to collect the current running information of the monitored process when t...

Embodiment 3

[0091] In order to describe the method provided by the present invention in more detail, in the application scenario of the Linux operating system, for a process, the process has its own PID under the namespace of the host machine, and also has its own PID under the namespace of the container. Each process system will store information about the process in the host namespace and the corresponding information in the container namespace to form a correspondence. When the process to be monitored is in the container, the user only knows the container name of the container where the process to be monitored is located and the PID of the process, and the process cannot be directly monitored on the host side. Therefore, the present invention provides a process monitoring method in a virtualized environment for monitoring, so as to realize monitoring across namespaces. For details, please refer to Figure 4 , the method includes:

[0092] Step 401: Acquiring the name of the container...

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 process monitoring method and system in a virtualization environment. The process monitoring method comprises the steps of (1) obtaining the process descriptor of a process to be monitored, (2) detecting whether the signal queue of the process to be monitored in the process descriptor includes signals which cause the process to withdraw abnormally before an operation system processes the signal queue of the process to be monitored, and (3) collecting the current operating information of the process to be monitored, generating corresponding warning information and feeding the warning information back to a terminal if the signal queue of the process to be monitored in the process descriptor includes the signals which cause the process to withdraw abnormally. With the process monitoring method, the processes in any namespace can be monitored, the process to be monitored does not need to be changed, and the warning information is guaranteed to be fed back timely and accurately.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a process monitoring method and system in a virtualized environment. Background technique [0002] With the development and maturity of virtualization technology, more and more enterprises choose to introduce virtualization technology on the server to maximize the use of server hardware resources, reduce hardware procurement costs, and reduce energy consumption. As a lightweight virtualization technology, container virtualization has the characteristics of simple deployment and low virtualization overhead, so it is increasingly used in server virtualization. By introducing container virtualization technology on the server, we can deploy multiple containers on a physical machine to run multiple instances of an application, and can also run multiple different applications in different containers to ensure that they are not mutually exclusive. influences. Therefore, ...

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 Patents(China)
IPC IPC(8): G06F11/30G06F9/455
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