Method for managing state of runtime environment supporting virtual operation
By creating a tree structure for containers and linking virtual machines in a linear structure, the method addresses the inefficiencies in virtual environment management, facilitating rapid and integrated monitoring of Linux-based virtual environments.
Patent Information
- Application Number
- PCT/KR2023/021598
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-26
- Filing Date
- 2023-12-26
- Publication Date
- 2025-07-03
AI Technical Summary
Existing virtual environment management systems in a Linux operating system face delays in scheduling and status monitoring due to the complex resource relationship structure of containers, which complicates the search for target containers.
A virtual environment state management method that creates a tree structure, such as a Red-Black Tree, for containers and connects virtual machines in a linear structure, enabling rapid status search and integrated monitoring of all virtual environments.
Enables fast and integrated status exploration for containers and virtual machines, reducing search times and improving monitoring efficiency.
Smart Images

Figure KR2023021598_03072025_PF_FP_ABST
Abstract
Description
How to manage the state of a virtual operation support runtime environment
[0001] The present invention relates to virtual environment state management, and more particularly, to a state management method for supporting state monitoring of virtual environments such as containers and virtual machines operating in a Linux operating environment.
[0002] Virtual environments running in a Linux environment are recognized as a single, general process and are scheduled according to the operating environment. Representative virtual environments include virtual machines and containers.
[0003] When virtual machines are managed as processes, they receive the same scheduling as regular processes. However, in the Linux environment, containers are designed based on Linux Containers (LXC), which are managed by Cgroups (Control Groups). Therefore, the resource information (CPU, memory, disk, network, etc.) of the operating environment is inherited in a tree structure. Figure 1 illustrates the resource relationship structure for Linux containers.
[0004] Meanwhile, in a typical Linux operating environment, the process management structure is linear (List), so there is no problem with scheduling or status monitoring of virtual machines. However, when it comes to scheduling or status monitoring of containers, the resource relationship structure is different, so there are limitations to approaching the linear management structure.
[0005] In particular, there is a problem that delays occur due to the long time it takes to search for the target container before scheduling or taking a specific action depending on the state of the container.
[0006] The present invention has been devised to solve the above problems, and the purpose of the present invention is to provide a virtual environment state management method that applies a management structure that enables rapid state search when performing state monitoring for all virtual environments operating in a Linux operating environment.
[0007] A virtual environment state management method according to one embodiment of the present invention for achieving the above purpose includes a step of creating a management structure of containers constituting a container group in a tree structure; and a step of searching for a container by referring to the created tree structure.
[0008] The creation step may be to create a tree structure based on the properties of the containers.
[0009] The properties can be any of the resource relationships assigned to containers, the names of the containers, or their states.
[0010] The tree structure can be in the form of a Red-Black Tree.
[0011] The exploration phase may involve exploring the state of the container.
[0012] The discovery phase may be performed to monitor the status of containers.
[0013] The virtual environment state management method according to the present invention may further include a step of connecting virtual machines to the root of a tree structure in a linear structure.
[0014] The linking step may be to link virtual machines based on the same criteria as the tree structure creation criteria.
[0015] The virtual environment can be a virtual environment running on a Linux operating environment.
[0016] According to another aspect of the present invention, a virtual environment state management system is provided, characterized in that it includes a processor for creating a management structure of containers constituting a container group in a tree structure and searching for a container by referring to the created tree structure; and a storage unit for providing storage space required by the processor.
[0017] According to another aspect of the present invention, a virtual environment state management method is provided, characterized by including the steps of: creating a management structure of containers constituting a container group in a tree structure; and connecting a virtual machine to the root of the tree structure in a linear structure.
[0018] According to another aspect of the present invention, a virtual environment state management system is provided, characterized in that it includes a processor that creates a management structure of containers constituting a container group in a tree structure and connects a virtual machine to the root of the tree structure in a linear structure; and a storage unit that provides storage space required by the processor.
[0019] As described above, according to embodiments of the present invention, a management structure of containers operated in a Linux operating environment is created in a tree structure such as a Red-Black Tree based on attributes, thereby enabling rapid status search when performing status monitoring of containers.
[0020] In addition, according to embodiments of the present invention, by creating and connecting a management structure in a linear structure for virtual machines using the same criteria as containers, integrated status exploration for integrated monitoring of all virtual environments becomes possible.
[0021] Figure 1 is an example of a resource relationship structure for a Linux container.
[0022] Figure 2 is a linear management structure for virtual environment monitoring.
[0023] Figure 3 is an example of creating a tree structure of containers that constitute a container group.
[0024] Figure 4 is an example of a state in which virtual machines are connected in a linear structure to the root of a tree structure.
[0025] FIG. 5 is a virtual environment state management system according to another embodiment of the present invention.
[0026] Hereinafter, the present invention will be described in more detail with reference to the drawings.
[0027] Figure 2 is a diagram illustrating a linear management structure for virtual environment monitoring. Figure 2 depicts a situation where multiple pods are created in a cluster. It is assumed that only one container is created per pod.
[0028] The lower part of Figure 2 illustrates a situation where the management structure of containers is operated in a linear manner. When searching container status for scheduling or monitoring, containers with a tree-structured resource relationship structure can take a long time.
[0029] Accordingly, an embodiment of the present invention proposes a virtual environment state management method that supports rapid exploration. This technology supports rapid, integrated exploration for integrated monitoring of all virtual environments operating in a Linux operating environment.
[0030] To this end, in an embodiment of the present invention, a management structure for containers operated at each scheduling time in a Linux operating environment is created in a tree structure such as a Red-Black Tree based on the properties of the containers, and a management structure for virtual machines is created in a linear structure based on the same criteria as containers and connected to manage the status of virtual environments.
[0031] To manage virtual environment status, a tree-structured management structure is first created for the containers that make up the container groups within the virtual environment. This enables rapid, integrated exploration of containers.
[0032] Figure 3 illustrates an example of creating a tree-structured management structure for containers that constitute a container group. In Figure 3, as in Figure 2, it is assumed that only one container is created per pod, and thus a pod represents a container.
[0033] The tree structure can be created based on resource relationships assigned to containers, such as CGroups. Furthermore, it can be created based on the container's name, status, or other attributes.
[0034] In Figure 3, the tree structure of containers is implemented as a Red-Black Tree. However, the Red-Black Tree is only one example of a tree structure, and can of course be replaced with other types of tree structures.
[0035] The root of the tree structure for managing a created container group can be linked to the root of another tree structure for managing other container groups. Furthermore, virtual machines targeted for integrated management can be linearly linked to the root of the tree structure for managing container groups.
[0036] Figure 4 illustrates a state where virtual machines are linearly connected to the root of a tree structure for managing container groups. The criteria for connecting the tree structure to the virtual machines must be identical to those applied when creating the tree structure.
[0037] Once the management structure is created by the above method, it becomes possible to perform integrated and high-speed container status exploration for monitoring the status of containers and virtual machines that constitute a container group within the same cluster based on the created management structure.
[0038] FIG. 5 is a diagram illustrating the hardware configuration of a virtual environment state management system according to another embodiment of the present invention. The virtual environment state management system according to the embodiment of the present invention can be implemented as a cloud / server system comprising a communication unit (110), a processor (120), and a storage unit (130), as illustrated.
[0039] The communication unit (110) is a communication interface for connection with an external network or external device. The processor (120) creates a management structure for virtual environments according to the aforementioned virtual environment state management method and monitors / searches the status of the virtual environments. The storage unit (130) provides the storage space necessary for the processor (120) to function and operate.
[0040] So far, a preferred embodiment of a virtual environment state management method that supports fast navigation has been described in detail.
[0041] In the above embodiment, the management structure of containers operating in a Linux operating environment is created as a tree structure such as a Red-Black Tree based on attributes, enabling quick status search when performing status monitoring of containers.
[0042] In addition, in the above embodiment, a management structure for virtual machines is created and connected in a linear structure based on the same criteria as containers, thereby enabling integrated status exploration for integrated monitoring of all virtual environments.
[0043] Meanwhile, it goes without saying that the technical idea of the present invention can also be applied to a computer-readable recording medium containing a computer program that performs the functions of the device and method according to the present embodiment. In addition, the technical idea according to various embodiments of the present invention can be implemented in the form of computer-readable code recorded on a computer-readable recording medium. The computer-readable recording medium can be any data storage device that can be read by a computer and store data. For example, the computer-readable recording medium can be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical disk, a hard disk drive, etc. In addition, the computer-readable code or program stored on the computer-readable recording medium can be transmitted through a network connected between computers.
[0044] In addition, although the preferred embodiments of the present invention have been illustrated and described above, the present invention is not limited to the specific embodiments described above, and various modifications can be made by a person having ordinary skill in the art to which the present invention pertains without departing from the gist of the present invention as claimed in the claims, and such modifications should not be understood individually from the technical idea or prospect of the present invention.
Claims
1. A step for creating a management structure of containers that constitute a container group in a tree structure; A method for managing a virtual environment state, characterized by comprising a step of searching a container by referring to a generated tree structure.
2. In claim 1, The creation phase is, A virtual environment state management method characterized by generating a tree structure based on the properties of containers.
3. In claim 2, The properties are, A method for managing a virtual environment state characterized by one of the resource relationships allocated to containers, names of containers, and states.
4. In claim 2, The tree structure is, A virtual environment state management method characterized by having a Red-Black Tree form.
5. In claim 2, The exploration phase is: A method for managing a virtual environment state, characterized by exploring the state of a container.
6. In claim 5, The exploration phase is: A virtual environment state management method characterized by being performed for monitoring the state of containers.
7. In claim 2, A method for managing a virtual environment state, further comprising: a step of connecting virtual machines to the root of a tree structure in a linear structure.
8. In claim 8, The connection steps are: A method for managing a virtual environment state, characterized by connecting virtual machines based on the same criteria as the criteria for creating a tree structure.
9. In claim 2, The virtual environment is, A virtual environment state management method characterized by being a virtual environment operated in a Linux operating environment.
10. A processor that creates a management structure of containers that constitute a container group in a tree structure and searches for containers by referring to the created tree structure; and A virtual environment state management system, characterized by including a storage unit that provides storage space required by a processor.
11. A step for creating a management structure of containers that constitute a container group in a tree structure; A method for managing a virtual environment state, characterized by comprising: a step of connecting virtual machines to the root of a tree structure in a linear structure; 12. A processor that creates a management structure of containers that constitute a container group in a tree structure and connects virtual machines to the root of the tree structure in a linear structure; and A virtual environment state management system, characterized by including a storage unit that provides storage space required by a processor.
Citation Information
Patent Citations
Virtualization apparatus and method for merging memory page thereof
KR1020150007666A
Electronic device including driving motor
KR1020230133738A
Solar cell and solar cell module including the same
KR1020240071839A
Program container monitoring
KR102281827B1
Virtual machine redeployment
US20160357594A1