Container management device, method, and computer program for container management
The container management device isolates faulty containers to an isolated network, preserving process information for analysis and maintaining system functionality by discarding stop signals and creating a replacement container, addressing the issue of deleted process information upon failure.
Patent Information
- Application Number
- JP2023032469
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-13
AI Technical Summary
When a container fails, the process information such as memory dumps and process dumps are deleted and discarded, making it difficult to analyze failure information.
A container management device and method that discards stop signals for faulty containers, logically isolates them to an isolated network, and maintains process information by blocking communication, allowing for failure analysis without stopping the container.
Prevents faulty containers from transitioning to a stopped state, enabling the storage of process information without deletion, facilitating failure analysis and maintaining system functionality by creating a replacement container with the same image.
Smart Images

Figure 2024124646000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a container management device, a method, and a computer program for container management. [Background technology]
[0002] A technology has been developed and is being used that allows a development environment to be built on a server in units called "containers," and each container to be used as an independent server. The technology for efficiently operating and developing these containers is a tool called "container orchestration." A "container" also refers to a logical partition created on a server's operating system (OS). Libraries and other items required to run an application are bundled together inside this container, and the container can be used like an individual server.
[0003] Failures may occur in such containers. Patent Document 1 discloses a method for preventing failures to containers by stopping the container in which the failure occurs and starting another container instead when an abnormality occurs during the operation of the container.
[0004] Furthermore, Patent Document 2 discloses a technology for when a failure occurs, in which if software included in an updated or added configuration unit malfunctions during system operation, the malfunction is detected and the system continues to operate while switching over to the operation of software that was guaranteed to work before the malfunctioning software was updated or added. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent Publication No. 2021-165908 [Patent Document 2] International Publication No. 2018 / 190015 Summary of the Invention [Problem to be solved by the invention]
[0006] As disclosed in Patent Document 1, when a container is stopped, process information such as memory dumps and process dumps in the container are deleted and discarded. This makes it difficult to analyze process information to check fault information for a failed container. Patent Document 2 is not a technology for when an abnormality occurs in a container.
[0007] SUMMARY OF THE PRESENT DISCLOSURE The present invention has been made to solve the above-mentioned problems, and has an object to provide a container management device, a method, and a computer program for container management. [Means for solving the problem]
[0008] According to a first aspect of the present invention, a container management device is provided with an application container that discards a stop signal for a container that has experienced a failure in an operating environment of a virtually constructed application, and evacuates the failed container to an isolated network where communication is logically cut off.
[0009] Furthermore, according to a second aspect of the present invention, a container management method discards a stop signal for a failed container within an application container for virtually constructing an operating environment for an application, and evacuates the failed container to an isolated network where communication is logically cut off.
[0010] Furthermore, according to a third aspect of the present invention, a computer program for container management causes a processor to discard a stop signal for a failed container within an application container for virtually constructing an operating environment for an application, and to evacuate the failed container to an isolated network where communication is logically cut off. Effect of the Invention
[0011] According to the present invention, it is possible to prevent a container in which a failure has occurred from transitioning to a stopped state, and to store the state of the process information within the target container without modifying it (stopping / changing / deleting it). [Brief description of the drawings]
[0012] [Figure 1] 1 is a block diagram showing a configuration of an embodiment of the present invention; [Diagram 2] FIG. 2 is a diagram illustrating a configuration of a management function sidecar in one embodiment of the present invention. [Diagram 3] FIG. 11 is a diagram showing a signal flow in container evacuation and regeneration in one embodiment of the present invention. [Figure 4] FIG. 13 is a diagram showing a state when a failed container is evacuated in one embodiment of the present invention. [Diagram 5] FIG. 13 is a diagram showing a state when a container is regenerated in one embodiment of the present invention. [Figure 6] FIG. 2 is a diagram illustrating an example of a configuration during operation of a container management device according to an embodiment of the present invention. [Figure 7] FIG. 2 is a diagram illustrating an example of a hardware configuration for implementing a container management device according to an embodiment of the present invention. [Figure 8] FIG. 2 is a diagram showing a minimum configuration of a container management device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an apparatus according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the apparatus according to the embodiment. In this figure, reference numerals 11, 12, and 13 denote hardware (HW) that becomes a physical server. In addition to an operation system (OS) being installed in each of the servers 11, 12, and 13, a container orchestration tool 21 for operating and developing containers is also installed. The container orchestration tool 21 cross-manages containers generated on one or more servers, and is responsible for general management such as monitoring, generation, deletion, and deployment. The container orchestration tool 21 is also a tool for managing and operating the management control container 1 and the application container 2 described later. An example of the container orchestration tool 21 is open source software called Kubernetes (registered trademark). Reference numerals other than the reference numerals 11, 12, and 13 indicating the servers indicate functional blocks constructed in these servers 11, 12, and 13.
[0014] Reference numeral 1 denotes a management control container provided in the server 11, which serves as a master node. The management control container 1 is provided with a function as a custom controller that automatically manages applications in a container orchestration tool 21. The management control container 1 also has a function of generating containers and generating a management function sidecar 5 (described later) associated with the generated containers. The management control container 1 is called a Kubernetes Operator in Kubernetes (registered trademark).
[0015] Reference numeral 2 denotes an application container provided in a worker node such as the server 12. The application container 2 is a container for managing and operating containers, and functions as a "container management device" according to an embodiment of the present invention. The application container 2 includes a container ("container A" in FIG. 1) 4, a management function sidecar 5 associated with the container 4 and started up, a container runtime 22, a network re-editing function unit 23, and an Open vSwitch (Open Virtual Switch: OVS) 24. The application container 2 also includes a business network 25 that is logically communicable within the application container 2, and an isolated network 26 in which communication is logically blocked within the application container 2. Reference numeral 3 denotes one or more application containers provided in one or more servers 13.
[0016] The management function sidecar 5 is generated and arranged by the management control container 1, and receives and discards a stop signal for a failed container, and performs processing for evacuating the failed container from the business network 25 to the isolated network 26 within the application container 2. As shown in FIG. 2, the management function sidecar 5 includes a signal processing function unit 51 and a notification function unit 52. The signal processing function unit 51 functions as a root process of the container 4, and receives and discards a stop signal for a failed container. The signal processing function unit 51 also discards the stop signal and calls the notification function unit 52. In response to the call of the signal processing function unit 51, the notification function unit 52 notifies the network re-editing function unit 23 to evacuate the failed container from the business network 25 to the isolated network 26. The "sidecar" is an independent container that works in conjunction with an application container and serves the function of helping the application. The "sidecar" also means a container that has a role of expanding or improving the main application.
[0017] The container runtime 22 is responsible for running containers and managing containers and container images, and provides a switching stack in a hardware virtualization environment and supports multiple protocols and standards used in computer networks.
[0018] The network re-editing function unit 23 is called by the notification function unit 52 in the management function sidecar 5, and executes network switching of the target container in the application container 2 using the Open vSwitch·24.
[0019] The Open vSwitch 24 manages and operates the virtual network of the container deployed in the application container 2. In the application container 2, switching is performed between a business network 25 and an isolated network 26, which are networks associated with the container.
[0020] Fig. 3 is a diagram showing a signal flow in container evacuation and regeneration in one embodiment of the present invention. In the following, it is assumed that a container A·4 and a management function sidecar 5 associated with the container A·4 have been generated in advance in an application container 2 constructed in a server 12 by a management control container 1 as shown in Fig. 1. It is also assumed that some kind of failure occurs while the container A·4 is running on a business network 25, and that the failure is detected. In Fig. 3, steps S11 to S18 show a signal flow related to container evacuation, and steps S21 to S23 show a signal flow related to container regeneration.
[0021] The container A·4 and the management function sidecar 5 associated with the container A·4 are generated as follows.
[0022] A command to generate container A is sent to the container orchestration tool 21 serving as a master node constructed in the server 11. The container orchestration tool 21 commands the management control container 1 to generate container A. The management control container 1 commands the container orchestration tool 21 serving as a worker node of the server 12, which is the generation destination, to generate container A.
[0023] When generating the container A 4, the management control container 1 also generates a management function sidecar 5 in association with the container A at the same time. The management control container 1 also starts up a signal processing function unit 51 in the management function sidecar 5 as a root process of the container A 4. The container and the management function sidecar may be generated by a user's operation on the management control container 1.
[0024] FIG. 1 shows a state in which container A·4 and container A·4 have been created and are running within a business network 25.
[0025] Next, the signal flow regarding container evacuation will be described with reference to steps S11 to S18 in FIG.
[0026] When a failure occurs in container A·4, the failure is detected by the function of the container orchestration tool 21. After detecting the failure, the container orchestration tool 21 transmits a stop signal to container A·4 (step S11).
[0027] The signal processing function unit 51 as the root process of the container A·4 receives a stop signal transmitted from the container orchestration tool 21 to the container A·4 (step S12). The signal processing function unit 51 discards the received stop signal (step S13). By discarding the stop signal, the container A·4 is prevented from being stopped. This makes it possible to store the state of the process information (memory dump, thread dump, process dump) in the container A·4 without changing / terminating / discarding it. Note that "changing the process information" refers to a state in which a signal or request is not assigned to a running process and the process remains running. "Ending the process information" refers to a state in which a stop signal is sent to a running process and the process is terminated, and the process information can be output before the termination. "Discarding the process information" refers to a state in which the process information cannot be output, in comparison with the end of the process information. Next, the signal processing function unit 51 calls the notification function unit 52 in the management function sidecar 5 (step S14).
[0028] The notification function unit 52 notifies the network reconfiguration function unit 23, which is outside the business network 25, to migrate the container A·4 from the business network 25 in the application container 2 to the isolated network 26 (step S15). Note that this notification is only a notification to switch the networks from outside the business and isolated networks 25, 26.
[0029] After receiving the notification from the notification unit 52, the network reconfiguration function unit 23 uses the network switching function of the Open vSwitch 24 to migrate the container A·4 from the business network 25 to the isolated network 26 in the application container 2 (steps S16 to S18). As a result, by migrating the failed container A together with the management function sidecar 5 to the isolated network 26, the process information of the container A·4 is not changed and the state can be maintained.
[0030] 4 is an example of a configuration diagram after a failed container A·4 and a management function sidecar 5 related to the container A·4 are evacuated to an isolated network 26. In FIG. 4, the same devices and functions as those in FIG. 1 are denoted by the same reference numerals.
[0031] The signal flow for container regeneration will now be described with reference to steps S21 to S23 of FIG.
[0032] The network reconfiguration function unit 23 transmits a container generation command to the container orchestration tool 21 to generate a container using an image that will be the same as container A·4 after the migration is completed (step S21).
[0033] The container orchestration tool 21 receives the container generation command and transmits the container generation command to the management container 1 to generate container B using the same image as containers A and 4 (step S22).
[0034] Furthermore, when generating container B, the management control container 1 also generates a management function sidecar for container B at the same time. In addition, the management control container 1 starts the signal processing function unit in the management function sidecar as the root process of container B. As a result, container B generated using the same image as container A·4 and the management function sidecar related to container B operate within the business network 25. Furthermore, requests sent to container A·4 are sent to container B and processed. As a result, the functions built in container A·4 continue in container B, and the functions built in container A·4 are not stopped, and the process information of container A·4 where the failure occurred is not changed, and the state can be maintained.
[0035] Fig. 5 is an example of a configuration diagram after a container B·6 using the same image as container A·4 and a management function sidecar 7 related to container B·6 are generated in a business network 25 in addition to the configuration shown in Fig. 4. In Fig. 5, the same devices and functions as those in Fig. 1 are denoted by the same reference numerals.
[0036] As described above, the signal processing function unit in the management function sidecar, which is the root process of the container to be stopped, receives a signal to stop the container without modifying the application itself. The signal processing function unit can also avoid the container transitioning to a stopped state by discarding (ignoring) the signal. In addition, by using the network re-editing function to change the network of the target container from a business network to an isolated network, communication destined for the business network that had been carried out up until that point will no longer reach the target container. This makes it possible to perform failure analysis and analysis using process information that has not been changed / terminated / destroyed in the target container where a failure has occurred. Note that the collection of process information for failure analysis and analysis of a failed container can be performed by accessing the container using a container management tool command and confirming and obtaining the process information.
[0037] In addition, by generating a replacement container using an image identical to that of the failed container, and a management function sidecar associated with the replacement container on the business network 25, it is possible to enable a system with the same functions as the failed container to continue to operate normally.
[0038] Furthermore, the functions of the container management device described above can be realized by adding some functions to an existing container orchestration tool.
[0039] The transmission of the stop signal to the failed container is not limited to the automatic detection of the failure, but may be generated and transmitted by the user's operation to stop the container in the management container 1, for example.
[0040] Fig. 6 is a diagram showing an example of the configuration of an apparatus during operation in one embodiment of the present invention. In the example of the configuration of the apparatus during operation shown in Fig. 6, a master node 11 configured with a management control container 1 and worker nodes 12 and 13 configured with an application container 2 are shown. In Fig. 6, reference numeral 20 denotes an operating system (OS). In Fig. 6, the same reference numerals are used for the same or corresponding devices and functions as in Fig. 1. In the example of Fig. 1, the server 11 configuring the master node has only the management control container 1 and does not have an application container, but as shown in Fig. 6, the master node may also be configured with an application container 2.
[0041] Although the application container 2 has been described as an example of the container management device of the present disclosure, the present disclosure is not limited to this. For example, the container management device of the present disclosure may be a container management device including the management control container 1 shown in Fig. 1, and further including a master node as the management control container shown in Fig. 6, and one or more worker nodes 12 and 13.
[0042] 7 is a diagram showing an example of a hardware configuration when the hardware 11 for the application container 2 as the container management device of the present disclosure is realized in a system including a processor. As shown in FIG. 7, the hardware 11 includes a CPU (Central Processing Unit) 11a, and memories such as a ROM (Read Only Memory) 11b and a RAM (Random Access Memory) 11c. Furthermore, the hardware 11 includes an interface 11d for communication with other systems and / or for an input / output device. In addition to the hardware 11, other hardware 12 and 13 are also configured similarly to the example of the hardware configuration shown in FIG. 7.
[0043] 8 is a diagram showing a minimum configuration of the container management device 12 according to an embodiment of the present invention. The container management device 12 includes an application container 2 that discards a stop signal for a failed container in a virtually constructed operating environment of an application, and evacuates the failed container to an isolated network 26 where communication is logically cut off.
[0044] In addition, a program for implementing the functions of the container management device in Fig. 1 may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read into a computer system and executed to manage containers in the container management device. Note that the term "computer system" as used herein includes hardware such as an OS and peripheral devices. In addition, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into a computer system. Furthermore, the term "computer-readable recording medium" refers to storage devices that hold a program for a certain period of time, such as volatile memory (RAM) inside a computer system that serves as a server or client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line.
[0045] The above program may also be transmitted from a computer system in which the program is stored in a storage device or the like to another computer system via a transmission medium, or by transmission waves in the transmission medium. Here, the "transmission medium" that transmits the program refers to a medium that has the function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line. The above program may also be for realizing part of the above-mentioned functions. Furthermore, it may be a so-called difference file (difference program) that can realize the above-mentioned functions in combination with a program already recorded in the computer system. [Explanation of symbols]
[0046] 1 Management Control Container 2 Application Containers 3 Application Containers 4 Container (Container A) 5 Management Sidecar 6 Container (Container B) 7 Management Sidecar 11 Server (hardware, master node) 12,13 Servers (hardware, worker nodes) 21 Container Orchestration Tools 22 Container Runtime 23 Network Re-editing Function Division 24 Open vSwitch(Open Virtual Switch:OVS) 25 Business Network 26 Isolated Network 51 Signal processing function unit 52 Notification function section
Claims
1. An application container that discards a stop signal for a failed container in a virtually constructed operating environment of an application and evacuates the failed container to an isolated network where communication is logically cut off; A container management device comprising:
2. The application container comprises: A management function sidecar is provided which is generated in association with a container, discards a stop signal for the failed container, and performs processing to evacuate the failed container from a business network that can logically communicate with the failed container to the isolated network. The container management device according to claim 1 .
3. The management function sidecar includes a signal processing function unit that is started as a root process of the container, The signal processing function unit performs a process of receiving and discarding the stop signal for the failed container. The container management device according to claim 2 .
4. The management function sidecar further comprises a notification function unit, The signal processing function unit discards the stop signal and calls the notification function unit, The notification function unit issues a notification to evacuate the failed container from the business network to the isolated network in response to a call from the signal processing function unit. The container management device according to claim 3 .
5. The application container further comprises a network reorganization function unit, the network reconfiguration function unit performs a switching process for evacuating the failed container from the business network to the isolated network in response to the notification from the notification function unit. The container management device according to claim 4.
6. The network re-editing function unit transmits a container generation command to a management container that performs container generation management, for providing a substitute container using an image identical to that of the failed container on the business network. The container management device according to claim 5 .
7. When the management control container receives the container generation command, the management control container issues a command to generate the substitute container in the business network within the application container, and also issues a command to generate the management function sidecar in association with the substitute container. The container management device according to claim 6.
8. 8. The container management device according to claim 6, wherein the stop signal is generated by a user's operation to stop the container for the management control container.
9. Aborting a stop signal for a failed container in an application container for virtually constructing an application operating environment; The failed container is evacuated to an isolated network in which communication is logically cut off; Container management methods.
10. Aborting a stop signal for a failed container in an application container for virtually constructing an application operating environment; The failed container is evacuated to an isolated network in which communication is logically cut off; A computer program for container management that causes a processor to execute the following:
Citation Information
Patent Citations
Abnormal task processing method based on container technology, server and cloud platform
CN112148420A
Automatic isolation of misbehaving process on computer system
JP2007293848A
Information processing apparatus, control method, and program
JP2021165908A
Control method, control program, and information processing device
JP7181467B2
Information processing device, information processing method, and computer program
WO2018190015A1
