Information processing device, arrangement method, and program
The information processing device estimates microservice repair periods based on development information to optimize Pod relocation, addressing the noisy neighbor problem and enhancing resource management efficiency.
Patent Information
- Application Number
- JP2020191784
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-18
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2040-11-18
AI Technical Summary
Existing technologies fail to estimate the repair period of microservices causing the noisy neighbor problem in container-based virtualization, leading to inefficient and costly relocation of Pods.
An information processing device that estimates the repair period of microservices causing noisy neighbor issues by analyzing development information, such as development team productivity, difficulty, technical debt, and service update frequency, to inform relocation policies that consider cost and resource optimization.
Enables accurate estimation of microservice repair periods, allowing for cost-effective and efficient relocation of Pods by either adding nodes or temporarily reallocating resources, thereby reducing operational costs and improving system performance.
Smart Images

Figure 0007552280000003 
Figure 0007552280000008 
Figure 0007552280000009
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an information processing device and the like. [Background technology]
[0002] In recent years, microservices architecture, which consists of multiple services, has been attracting attention as an approach to systems that are built in a single monolithic configuration. In addition, the individual microservices that make up a microservices architecture generally have the following characteristics: (1) each microservice is developed by a different team, (2) each team uses different technologies, languages, and development structures, and (3) the development cycle is short due to agile development.
[0003] Container-based virtualization is one method for achieving highly available services. In an environment where microservices are running on a container platform using a container orchestration tool, there is a problem where the resource consumption of a Pod affects the operation of other Pods (noisy neighbor problem). When a noisy neighbor problem occurs, Pods are relocated based on performance information such as the Pod's central processing unit (CPU) usage rate and memory usage. It is possible to relocate Pods by adding nodes, but adding nodes incurs time and financial costs. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2018-530033 A [Patent Document 2] International Publication No. 2019 / 181860 [Patent Document 3] JP 2020-144669 A Summary of the Invention [Problem to be solved by the invention]
[0005] There are various causes of the noisy neighbor problem, including bugs or microservice-related causes such as improper configuration of resources used. If the cause of the noisy neighbor problem is a malfunction of a microservice, it would be possible to reallocate pods while taking costs into consideration if it were possible to estimate the time required to repair the microservice. However, the techniques disclosed in Patent Documents 1 to 3 do not allow for the estimation of the time required to repair a microservice.
[0006] One objective of the present disclosure is to provide an information processing device that can estimate the time required to repair a microservice that causes a noisy neighbor problem. [Means for solving the problem]
[0007] One aspect of the information processing device disclosed herein includes a period estimation means for estimating a modification period for a microservice that causes a noisy neighbor problem based on development information of the microservice, and a decision means for determining a policy for relocating pods that run the microservice in a container cluster using the modification period.
[0008] In one aspect of the deployment method of the present disclosure, a computer estimates the time required to modify a microservice that causes a noisy neighbor problem based on development information of the microservice, and uses the time required to modify the microservice to determine a relocation policy for the pods that run the microservice in a container cluster.
[0009] The program disclosed herein causes a computer to function as a period estimation means that estimates the modification period of a microservice based on development information of a microservice that causes a noisy neighbor problem, and a decision-making means that uses the modification period to determine a policy for relocation of pods that run the microservice in a container cluster. Effect of the Invention
[0010] According to the information processing device and the like disclosed herein, it is possible to estimate the time required to repair a microservice that causes a noisy neighbor problem. [Brief description of the drawings]
[0011] [Figure 1] 1 is a diagram illustrating an overview of a container-based virtualization system according to a first embodiment. [Diagram 2] FIG. 11 is an explanatory diagram showing an example of Pod relocation. [Diagram 3] FIG. 13 is a diagram illustrating an example of development information of each microservice in an application development environment. [Figure 4] 4 is a flowchart showing the operation of the development device 100 according to the first embodiment. [Diagram 5] 4 is a flowchart showing the operation of the execution device 200 according to the first embodiment. [Figure 6] 13 is a flowchart showing an operation of a cost calculation unit. [Figure 7] 1 is a data sheet showing an example of cost calculation for each development information. [Figure 8] This datasheet shows example costs per policy for the noisy neighbor problem. [Figure 9] FIG. 11 is a block diagram showing the configuration of an execution device 200 according to a second embodiment. [Figure 10] 10 is a flowchart showing the operation of the execution device according to the second embodiment. [Figure 11] FIG. 2 is a block diagram illustrating an example of a hardware configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] (First embodiment) A container-based virtualization system according to the first embodiment will be described with reference to the drawings. Fig. 1 is a diagram showing an overview of the container virtualization system according to the first embodiment. The container virtualization system includes an application development environment 10 and an application execution environment 20.
[0013] The application development environment 10 is an environment for developing applications that run on the application execution environment. The application execution environment 20 is an environment that serves as a base for providing services to users by executing applications. The application development environment 10 and the application execution environment 20 are connected via a network 30. The application development environment 10 and the application execution environment 20 may each be constructed on a physical machine or a virtual machine.
[0014] The following embodiment is an example of determining a policy for relocating a Pod when a noisy neighbor problem occurs in a Pod running on a container cluster in an application execution environment 20, using development information stored in the application development environment 10.
[0015] Figure 2 is an explanatory diagram showing an example of Pod relocation. In Figure 2, microservices are referred to as services. Figure 2(a) is an example of adding a node and performing Pod relocation on the infrastructure including its virtual machines. In Figure 2(a), node B is added to the Pods that run microservices 1, 2, and 3 on node A, and the Pods are relocated. Figure 2(b) is an example of using resources of other Pods in the same node without adding a node. In Figure 2(b), microservices 4, 5, and 6, which have lower priority than microservices 1, 2, and 3 on node A, are stopped to temporarily free up resources and perform Pod relocation.
[0016] 1 includes a source repository 101, a development information holding unit 102, and a development information calculation unit 103. The source repository 101 stores source code information related to microservices 1, 2, and 3. The development information holding unit 102 holds development information related to microservices 1, 2, and 3. The development information calculation unit 103 calculates development information from the information stored in the source repository 101 and the development information holding unit 102.
[0017] FIG. 3 is a diagram showing an example of development information for each microservice in an application development environment. In FIG. 3, a microservice is referred to as a service. In the application development environment 10 shown in FIG. 3, microservices 1, 2, and 3 that run on Pod 207 in FIG. 1 are developed by development teams A, B, and C, respectively. Application development information (indicated as AP development information in the figure) related to the microservices of each development team is held in the development information holding unit 102. The application development information is, for example, the development period and release information of the microservice. Note that the application development information is not limited to this.
[0018] 1, the application execution environment 20 includes an execution device 200 and a container cluster 205. The execution device 200 includes a collection unit 201, a cause estimation unit 202, a cost calculation unit 203, and a determination unit 204.
[0019] The collection unit 201 collects performance information of a container cluster. The performance information is, for example, the CPU usage rate and memory usage of a Pod 207, or information about a microservice. The information about the microservice is obtained by a monitoring function that runs on a container orchestration tool.
[0020] The cause estimation unit 202 estimates the cause of the occurrence of the noisy neighbor problem. The cause estimation unit 202 estimates whether the occurrence of the noisy neighbor problem is caused by a microservice or by some other cause. The cause of the microservice is, for example, a bug or a setting error related to the microservice. An example of the estimation of the cause by the cause estimation unit 202 will be described later.
[0021] The cost calculation unit 203 performs cost calculation related to dealing with the noisy neighbor problem. For example, the cost calculation unit 203 calculates the cost when the noisy neighbor problem occurs or the cost when relocating Pods. A specific example of the cost calculation will be described later.
[0022] The decision unit 204 decides a policy for relocation of Pods, taking into consideration costs and the like.
[0023] The container cluster 205 includes a cluster manager 206 and a Pod 207. The cluster manager 206 manages the container cluster 205. Specifically, the cluster manager 206 periodically collects and stores performance information of the Pod 207 in the container cluster 205. Furthermore, the cluster manager 206 performs relocation of the Pod 207 based on an instruction from the determination unit 204.
[0024] Pod207 contains one or more containerized applications related to microservices, each of which runs on Pod207.
[0025] Next, the operation of the development device 100 according to the first embodiment will be described with reference to the drawings. Fig. 4 is a flowchart showing the operation of the development device 100 according to the first embodiment. The development information calculation unit 103 acquires source code information from the source repository 101 (S11).
[0026] Next, the development information calculation unit 103 acquires information required for calculating the repair period of the service from the development information holding unit 102 (step S12).
[0027] The development information calculation unit 103 calculates the development information. Using the source code information acquired in steps S11 and S12 and information required for calculating the repair period, the development information calculation unit 103 calculates indicators related to the development information. The development information calculation unit 103 stores the calculation results in the development information holding unit 102 (step S13).
[0028] Next, the operation of the execution device 200 according to the first embodiment will be described with reference to the drawings. FIG. 5 is a flowchart showing the operation of the execution device 200 according to the first embodiment. The execution device is also called an information processing device. It is assumed that the cluster management unit 206 periodically collects and stores performance information on the Pod 207 operating on the container cluster 205.
[0029] The collection unit 201 acquires performance information of the container cluster stored by the cluster management unit 206, and determines whether or not there is a noisy neighbor problem in the Pod 207 (step S21). The determination of whether or not there is a noisy neighbor problem is based on, for example, whether or not there is performance degradation in the operation of the Pod 207. If a noisy neighbor problem is detected by this determination (Yes in step S22), the execution device 200 proceeds to the process of step S23.
[0030] The cause estimation unit 202 estimates whether the noisy neighbor problem is caused by a microservice (a bug or a configuration error) or by other causes (step S23). For example, when the cause estimation in step S23 is that an increase in the load of a certain Pod is causing the noisy neighbor problem, the cause estimation unit 202 checks the number of requests to the microservice running in that Pod.
[0031] If the number of requests has increased above a predetermined value, it is presumed that the increase in the load on the Pod is the cause of the noisy neighbor problem. The predetermined value is, for example, the average number of requests to the microservice. Conversely, if the number of requests to the service is below the predetermined value, it is presumed that there may be a bug or misconfiguration in the service. If this cause presumption indicates that the cause is in the microservice (Yes in step S24), the process proceeds to step S25.
[0032] Next, the cost calculation unit 203 performs cost calculation regarding measures against the noisy neighbor problem (step S25).
[0033] The operation of the cost calculation unit 203 will be described with reference to the drawings. Fig. 6 is a flowchart showing the operation of the cost calculation unit 203. The cost calculation unit 203 acquires development information related to a microservice that may be the cause of the noisy neighbor problem from the development information holding unit 102 (step S251).
[0034] Next, the cost calculation unit 203 estimates a repair period required for repairing the microservice from the acquired development information (step S252). The repair period is estimated by applying the development information to the following model, for example.
[0035] Service modification period = a1 * [development team productivity] + a2 * [development difficulty] + a3 * [technical debt] + a4 * [service update frequency] (a1, a2, a3, and a4 are each arbitrary constants) Figure 7 is a data sheet showing an example of the calculation of indicators for each development information. In Figure 7, the productivity of a development team is calculated by [lines of code] / [development time]. The number of lines of code is the number of lines of source code. The number of lines of code is also called the number of steps. The development time is the time from implementing the software functions to releasing it. The development time may include the time spent on testing, quality assurance, and post-release verification.
[0036] The development difficulty is calculated by detecting the programming language from the source code, determining the technology from the libraries used, and based on the difficulty index preset for each programming language and technology.
[0037] Technical debt is calculated by applying a predefined technical debt model to the source code. Technical debt is an indicator of the maintainability of the source code. Technical debt is, for example, the effort required to maintain and extend software that has been damaged or whose infrastructure has become unstable. A technical debt model is, for example, an estimation model used by development teams for fault recovery, refactoring, defect fixing, etc.
[0038] The service update frequency is, for example, the release frequency. The release frequency is also called a release cycle. The release frequency is calculated from release date information included in the release information.
[0039] The cost calculation unit 203 calculates the cost for each policy for dealing with the noisy neighbor problem (step S253). Fig. 8 is a data sheet showing an example of the cost for each policy for dealing with the noisy neighbor problem.
[0040] The "monetary and time costs required to add a node" in policy [1] refers to, for example, the procurement costs and time required to install a node if the node is a physical server, or to the additional costs of adding a new virtual server if the node is a virtual server on a public cloud.
[0041] The "hourly loss due to taking temporary measures" in policy [2] refers to the hourly loss caused by stopping a low-priority service when relocating pods as a temporary measure without adding nodes, for example, to free up resources by stopping the low-priority service.
[0042] Based on the cost calculation result by the cost calculation unit 203, the determination unit 204 determines a Pod relocation policy (step S254). Specifically, the determination unit 204 determines the Pod relocation policy that will reduce the cost from among the above policies [1] and [2]. The determination unit 204 instructs the cluster management unit 206 to relocate the Pods based on the determined policy.
[0043] The cluster manager 206 receives the instruction from the determiner 204 and rearranges the pods (step S255).
[0044] (effect) The execution device 200 according to the first embodiment can estimate the time required to repair a microservice that causes a noisy neighbor problem because the cost calculation unit 203 estimates the time required to repair a microservice based on development information about the microservice that causes the noisy neighbor problem.
[0045] Furthermore, the execution device 200 according to the first embodiment can make a decision that takes the cost into consideration more accurately when relocating a pod. This is because the determination unit 204 determines a policy for relocating the pod 207 that runs a microservice in the container cluster 205 by using the estimated modification period. For example, depending on the period required for modifying the microservice, the execution device 200 can compare the costs and determine whether to perform pod relocation by adding a node without waiting for the modification, or to wait for the microservice to be modified and perform provisional pod relocation by temporarily freeing up resources without adding a node.
[0046] Second Embodiment An execution device according to the second embodiment will be described with reference to the drawings. FIG. 9 is a block diagram showing the configuration of the execution device according to the second embodiment. The execution device 300 is also called an information processing device. The execution device 300 includes a period estimation unit 301 and a determination unit 302. The period estimation unit 301 estimates a period for repairing a microservice based on development information of the microservice that causes the noisy neighbor problem. The determination unit 302 uses the repair period to determine a policy for rearranging pods that run the microservice in a container cluster.
[0047] Fig. 10 is a flowchart showing the operation of the execution device 300 according to the second embodiment. In Fig. 10, a period estimation unit 301 estimates a period for modifying a microservice based on development information of the microservice that causes the noisy neighbor problem. A determination unit 302 uses the period for modifying the microservice to determine a policy for rearranging the pods that run the microservice in the container cluster.
[0048] (effect) According to the execution device 300 of the second embodiment, it is possible to estimate the time required to repair a microservice that causes a noisy neighbor problem. This is because the time estimation unit 301 estimates the time required to repair a microservice based on development information about the microservice that causes the problem.
[0049] (Hardware configuration) Fig. 11 is a block diagram showing an example of the hardware configuration of a computer. At least a part of the configuration of the development device 100 and execution device 200 of the first embodiment and the execution device 300 of the second embodiment may be realized by executing a program on the CPU of the computer shown in Fig. 11. For example, it can be realized by executing functional programs of components such as the period estimation unit 301 and the determination unit 302 of the execution device 300.
[0050] These components may be realized by a CPU reading a program 94 from a ROM (Read Only Memory) 92 or a hard disk drive 95, and executing the read program 94 using a CPU 91 and a RAM (Random Access Memory) 93, for example, according to the procedure of the flowchart shown in Fig. 10. In such a case, it can be considered that the components are configured by a computer-readable storage medium storing code representing the computer program described using the above-mentioned embodiment as an example. The computer-readable storage medium is, for example, a hard disk drive 95 or a memory card (not shown). Note that the components such as the execution device 200 may be dedicated hardware using an integrated circuit.
[0051] The present disclosure is not limited to the above-described embodiments, and various modifications are possible. The technical scope of the present disclosure also includes embodiments obtained by appropriately combining the configurations, operations, and processes disclosed in different embodiments.
[0052] The present disclosure has been described above using the above-described embodiment as an exemplary example. However, the present disclosure is not limited to the above-described embodiment. That is, the present disclosure can be applied in various aspects that a person skilled in the art can understand within the scope of the present disclosure. [Explanation of symbols]
[0053] 100 Development Equipment 101 Source Repository 102 Development Information Storage Unit 103 Development Information Calculation Department 200 Execution device 201 Collection Department 202 Cause Estimation Department 203 Cost Calculation Department 204 Decision Section 205 Container Cluster 206 Cluster Management Department 207 Pod 300 Execution device 301 Period Estimation Department 302 Decision Section
Claims
1. A time estimation means for estimating a time required for repairing a microservice based on development information of the microservice that causes a noisy neighbor problem; A decision means for deciding a policy for relocation of pods that run the microservice in a container cluster using the repair period; An information processing device comprising:
2. The period estimation means includes A cost calculation means is provided for calculating a cost of relocation of the Pod during the repair period for each of the relocation policies that address the noisy neighbor problem. The information processing device according to claim 1 .
3. The determining means determines a policy for relocation of the Pods based on the calculated cost. The information processing device according to claim 2 .
4. The development information includes at least one of the productivity of a development team, development difficulty, technical debt, and service update frequency regarding the microservice; 4. The information processing apparatus according to claim 1.
5. A performance information collection means for collecting performance information of the container cluster and determining whether or not the noisy neighbor problem exists; Further comprising a cause estimation means for estimating whether the cause of the noisy neighbor problem is in the microservice based on the performance information.
5. An information processing apparatus according to claim 1.
6. The cause estimation means estimates that the cause of the noisy neighbor problem is in the microservice when the performance of the Pod is degraded without an increase in the number of requests to the microservice running on the Pod. The information processing device according to claim 5 .
7. The computer Based on development information of a microservice that causes a noisy neighbor problem, estimate a period for repairing the microservice; Using the repair period, a policy for relocation of pods that run the microservice in a container cluster is determined; Placement method.
8. Computer, A time estimation means for estimating a time required for repairing a microservice based on development information of the microservice that causes a noisy neighbor problem; A decision means for deciding a policy for relocation of pods that run the microservice in a container cluster using the repair period; A program that functions as a
Citation Information
Patent Citations
Server control system and server control method
JP2018190333A
Container deployment based on dependencies
JP2018530033A
Information processing apparatus, container arrangement method, and container arrangement program
JP2020144669A
Application execution device, application execution method, and recording medium
WO2019181860A1
