Virtual operation runtime level state management method for fast search
Patent Information
- Application Number
- KR1020230191026
- Authority / Receiving Office
- KR · KR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2043-12-26
Smart Images

Figure 112023145333312-PAT00003_ABST
Abstract
Description
Technology Field
[0001] The present invention relates to virtual environment state management, and more specifically, to a state management method for supporting state monitoring of virtual environments, such as containers and virtual machines, operating in a Linux operating environment. Background Technology
[0003] Virtual environments running in a Linux environment are recognized as a single regular process and receive scheduling dependent on the operating environment. Representative virtual environments include virtual machines and containers.
[0004] When a virtual machine is managed as a process, it receives the same scheduling as a general process. However, in the case of containers in a Linux environment, they are designed based on Linux Containers (LXC), which are managed by a Cgroup (Control Group), so unit information regarding operating environment resources (CPU, memory, disk, network, etc.) has an inherited form with a tree structure. Figure 1 illustrates a resource relationship structure for Linux containers.
[0005] On the other hand, in a general Linux operating environment, the process management structure is linear (list), so there are no issues with virtual machine scheduling or status monitoring; however, when it comes to container scheduling or status monitoring, the resource relationship structure is different, so approaching it with a linear management structure has limitations.
[0006] In particular, there is a problem where delays occur because it takes a long time to search for the target container before scheduling or taking specific actions depending on the container's state. Prior art literature
[65535] Registered Patent Publication No. 10-2310509 (2021.10.01) Registered Patent Publication No. 10-2001617 (2019.07.12) The problem to be solved
[0008] The present invention has been devised to solve the above-mentioned problems, and the objective of the present invention is to provide a virtual environment state management method that applies a management structure enabling rapid state detection when performing state monitoring on all virtual environments operating in a Linux operating environment. means of solving the problem
[0010] A virtual environment state management method according to an embodiment of the present invention for achieving the above objective includes: a step of creating a management structure of containers constituting a container group as a tree structure; and a step of searching for a container by referring to the created tree structure.
[0011] The creation step may involve creating a tree structure based on the attributes of the containers.
[0012] The attribute can be any one of the resource relationships assigned to the containers, the names of the containers, or their states.
[0013] The tree structure can be in the form of a Red-Black Tree.
[0014] The exploration phase may involve exploring the state of the container.
[0015] The exploration phase may be performed to monitor the status of the containers.
[0016] The virtual environment state management method according to the present invention may further include the step of connecting a virtual machine to the root of a tree structure in a linear structure.
[0017] The connection step may involve connecting virtual machines based on the same criteria as the tree structure creation criteria.
[0018] The virtual environment can be a virtual environment running in a Linux operating environment.
[0019] According to another aspect of the present invention, a virtual environment state management system is provided, characterized by comprising: a processor that generates a management structure of containers constituting a container group as a tree structure and searches for containers by referring to the generated tree structure; and a storage unit that provides storage space required for the processor.
[0020] According to another aspect of the present invention, a method for managing a virtual environment state is provided, characterized by comprising: a step of creating a management structure of containers constituting a container group in a tree structure; and a step of connecting a virtual machine to the root of the tree structure in a linear structure.
[0021] According to another aspect of the present invention, a virtual environment state management system is provided, characterized by comprising: a processor that generates 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 for the processor. Effects of the invention
[0023] As described above, according to the embodiments of the present invention, 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, thereby enabling rapid state detection when performing container state monitoring.
[0024] In addition, according to embodiments of the present invention, by creating and connecting a management structure for virtual machines in a linear structure based on the same criteria as containers, integrated state exploration for integrated monitoring of all virtual environments becomes possible. Brief explanation of the drawing
[0026] Figure 1 is an example of a resource relationship structure for a Linux container, Figure 2 shows a linear management structure for virtual environment monitoring, Figure 3 is an example of creating a tree structure of containers constituting a container group. 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. FIG. 5 is a virtual environment state management system according to another embodiment of the present invention. Specific details for implementing the invention
[0027] The present invention will be described in more detail below with reference to the drawings.
[0028] Figure 2 is a diagram illustrating a linear management structure for monitoring a virtual environment. Figure 2 illustrates a situation where multiple pods are created in a cluster. Here, it is assumed that only one container is created in a single pod.
[0029] The lower part of Figure 2 shows a situation where the management structure of containers is operated as a linear management structure. When searching for the container status for scheduling or monitoring, it may take a long time for containers whose resource relationship structure is a tree structure.
[0030] Accordingly, an embodiment of the present invention presents a virtual environment state management method that supports rapid search. It is a technology that supports rapid integrated search for integrated monitoring of all virtual environments operating in a Linux operating environment.
[0031] To this end, in an embodiment of the present invention, a management structure for containers operated in a Linux operating environment is created as a tree structure such as a Red-Black Tree based on the attributes of the containers during scheduling, and a management structure for virtual machines is created as a linear structure based on the same criteria as the containers and connected to manage the state of virtual environments.
[0032] To manage the state of virtual environments, a tree-like management structure is first created for the containers constituting container groups within the virtual environments. This enables rapid, integrated navigation of the containers.
[0033] Figure 3 shows an example of creating a tree structure for the management structure of containers constituting a container group. As in Figure 2, Figure 3 assumes that only one container is created in a single pod, so the pod represents the container.
[0034] Tree structures can be created based on resource relationships assigned to containers, such as CGroups. Furthermore, it is possible to create them based on the names or states of containers, as well as other attributes.
[0035] In Figure 3, the tree structure of the containers is implemented as a Red-Black Tree. However, since the Red-Black Tree is merely one example of a tree structure, it is obvious that it can be replaced with other types of tree structures.
[0036] The root of the tree structure for managing a created container group can be connected to the root of the tree structure for managing another container group. Additionally, it is possible for virtual machines subject to integrated management to be connected to the root of the tree structure for managing the container group in a linear structure.
[0037] Figure 4 illustrates a state in which virtual machines are connected in a linear structure to the root of a tree structure for managing container groups. In this case, the connection criteria between the tree structure and the virtual machines must be the same criteria applied when creating the tree structure.
[0038] Once a management structure is generated by the above method, container status discovery for monitoring the status of containers and virtual machines constituting a container group within the same cluster can be performed in an integrated manner at a high speed based on the generated management structure.
[0039] 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 an embodiment of the present invention can be implemented as a cloud / server system configured to include a communication unit (110), a processor (120), and a storage unit (130) as illustrated.
[0040] The communication unit (110) is a communication interface for connecting to 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 state of the virtual environments. The storage unit (130) provides storage space necessary for the processor (120) to function and operate.
[0041] So far, a method for managing the state of a virtual environment that supports fast navigation has been described in detail with preferred embodiments.
[0042] 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, thereby enabling rapid state detection when performing container state monitoring.
[0043] In addition, in the above embodiment, by creating and connecting a management structure for virtual machines in a linear structure based on the same criteria as containers, it is possible to perform integrated status discovery for integrated monitoring of all virtual environments.
[0044] Meanwhile, it goes without saying that the technical concept of the present invention may also be applied to a computer-readable recording medium containing a computer program that enables the device and method according to the present embodiment to perform their functions. Furthermore, the technical concept according to various embodiments of the present invention may be implemented in the form of computer-readable code recorded on a computer-readable recording medium. A computer-readable recording medium may be any data storage device that can be read by a computer and store data. For example, a computer-readable recording medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical disk, hard disk drive, etc. Additionally, computer-readable code or a program stored on a computer-readable recording medium may be transmitted through a network connected between computers.
[0045] Furthermore, although preferred embodiments of the present invention have been illustrated and described above, the present invention is not limited to the specific embodiments described above. Various modifications are possible by those skilled in the art without departing from the essence of the invention as claimed in the claims, and such modifications should not be understood individually from the technical spirit or perspective of the present invention. Explanation of the symbols
[0047] virtual environment Container / Virtual Machine Status Discovery / Monitoring Management structure Tree structure / Linear structure
Claims
Claim 1 A virtual environment state management method comprising: a step of creating a management structure of containers constituting a container group as a tree structure; and a step of exploring the state of a container by referring to the created tree structure; wherein the creation step creates a tree structure based on the attributes of the containers, and the attributes are the state of the containers. Claim 2 delete Claim 3 delete Claim 4 A virtual environment state management method according to claim 1, characterized in that the tree structure is in the form of a Red-Black Tree. Claim 5 delete Claim 6 A virtual environment state management method according to claim 1, characterized in that the search step is performed for monitoring the state of containers. Claim 7 A virtual environment state management method according to claim 1, further comprising the step of connecting a virtual machine to the root of a tree structure in a linear structure. Claim 8 A virtual environment state management method according to claim 7, wherein the connection step is characterized by connecting virtual machines based on the same criteria as the tree structure generation criteria. Claim 9 A method for managing the state of a virtual environment according to claim 1, wherein the virtual environment is a virtual environment operated in a Linux operating environment. Claim 10 A virtual environment state management system comprising: a processor that generates a management structure of containers constituting a container group as a tree structure and searches for the state of a container by referencing the generated tree structure; and a storage unit that provides storage space required for the processor; wherein the processor generates a tree structure based on the attributes of the containers, and the attributes are the state of the containers. Claim 11 A virtual environment state management method comprising: a step of creating a management structure of containers constituting a container group as a tree structure; and a step of connecting a virtual machine to the root of the tree structure in a linear structure; wherein the creation step creates a tree structure based on the attributes of the containers, the attributes are the states of the containers, and the tree structure is referenced for searching the states of the containers. Claim 12 A virtual environment state management system comprising: a processor that generates a management structure of containers constituting a container group as 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 for the processor; wherein the processor generates a tree structure based on the attributes of the containers, the attributes are the states of the containers, and the tree structure is referenced for searching the states of the containers.
Citation Information
Patent Citations
Process tree-based process monitoring in endpoints
US20230325228A1
Virtualization apparatus and method for merging memory page thereof
KR1020150007666A
The system and the method for producing the interactive application network and managing
KR1020220082103A
Container management operation method and system in a multi-node environment
KR1020220153815A
Program container monitoring
KR102281827B1