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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com