CONTAINER RESOURCE DESIGN SYSTEM AND CONTAINER RESOURCE DESIGN METHOD

The container resource design system automatically allocates resources based on replica sets and affinity rules to maintain service continuity and optimize resource usage in container systems, addressing the challenges of manual resource design and failure management.

JP7533576B2Active Publication Date: 2024-08-14NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2022524782
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-05-21
Publication Date
2024-08-14
Estimated Expiration
2040-05-21

AI Technical Summary

Technical Problem

In container systems, manual resource design is required to manage the relationship between replica sets and affinity rules for worker nodes, leading to potential service disruptions when failures occur, as the declarative state cannot be maintained due to conflicts between the number of replica sets and affinity rules.

Method used

A container resource design system that automatically calculates the minimum required number of worker nodes and allocates resources based on replica sets, affinity rules, and failure tolerance, using a VNFM and VIM to manage virtualized network functions and infrastructure, ensuring service continuity and self-repairability.

Benefits of technology

Eliminates the need for manual resource design, improves service continuity by maintaining a declarative state even in the event of failures, and optimizes resource usage by calculating the minimum required worker nodes efficiently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007533576000005
    Figure 0007533576000005
  • Figure 0007533576000003
    Figure 0007533576000003
  • Figure 0007533576000004
    Figure 0007533576000004
Patent Text Reader

Abstract

A master node (10), which is a container resource design device, is provided with: a container setting reception unit (11) which acquires definition information including a replica set count that indicates the number of redundant Pods (2), an affinity rule that indicates conditions for activating a container, and an allowable number of failures; a resource calculation unit (12) which calculates the required number of worker nodes (20) when the replica set count and the conditions specified by the affinity rule are satisfied even if a number of failures equal to or less than the allowable number of failures occur at worker nodes (20), and transmits resource provision instruction information to a resource management mechanism; and a container setting unit (13) which determines the allocation of Pods (2) to provided worker nodes (20) and transmits container setting information.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention performs resource design for a container system in virtualization technology. Container resource design system and Container resource design method By law Regarding. [Background technology]

[0002] In a container system that applies virtualization technology, a container orchestration engine (container control mechanism) has a function for executing container orchestration across multiple hosts, and a cluster is formed with multiple worker nodes that provide container execution hosts and a master node that manages the worker nodes. In this container control mechanism, the number of replica sets can be specified to maintain a declarative state that enables self-healing. Here, a "replica set" is a function in which the container control mechanism creates replicas of multiple pods. A pod is a collection of one or more containers. For example, if the number of pods decreases due to a node failure, the container control mechanism automatically starts the pod on another node to maintain the number of replicas. In addition, in the container control mechanism, the conditions of worker nodes that can be placed can be specified by affinity rules as placement conditions required for containers (for example, see Non-Patent Document 1). [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Nao Nishijima, "Executing Kubernetes manifests with Magnum", [online], impress, February 12, 2016, [Retrieved May 12, 2020], Internet<URL:https: / / thinkit.co.jp / article / 9378> Summary of the Invention [Problem to be solved by the invention]

[0004] However, in the past, the relationship between the number of replica sets and the affinity rules for the worker nodes to be placed had to be manually considered by the system administrator (designer) when designing resources, and the resources to become worker nodes had to be prepared or configured in advance.

[0005] For example, as shown in FIG. 6, when a Pod (here, one Pod is one container) with a replica set number of "3" is placed on three worker nodes 20 (worker nodes are referred to as "Worker" in each figure) by the master node 10A (master node is referred to as "Master" in each figure), a failure occurs in one of the three worker nodes (symbol a in FIG. 6). In this case, when the replica set number "3" and the affinity rule "Do not place replicas of the same container (Pod) on the same worker node" (same worker node placement: not possible) are set (symbol b in FIG. 6), the affinity rule does not allow the same container (Pod) to be placed on worker nodes "1" and "2" other than the worker node "3" where the failure occurred (symbol c in FIG. 6). Therefore, the replica set number "3" cannot be maintained, and the declarative state cannot be maintained. In this way, if there is a conflict between the number of replica sets for a container and an affinity rule that indicates the conditions for starting the container, the container may not be able to be started, resulting in a service outage.

[0006] The present invention has been made in consideration of these points, and an object of the present invention is to eliminate the need for manual resource design in a container system and to improve service continuity when a failure occurs. [Means for solving the problem]

[0007] The present invention Container resource design system performs resource design for virtualized container systems. Container resource design system And, The container resource design systemThe service provides services by arranging containers on multiple worker nodes, and generates and operates the worker nodes. Uko Antenna resource design equipment and A resource management mechanism including a VNFM (Virtual Network Function Manager) that manages virtualized network functions installed in the container to provide the service and a VIM (Virtualized Infrastructure Manager) that manages resources installed in the container; the container resource design device includes a container setting reception unit that acquires definition information including a replica set number indicating the number of redundancies of a Pod, which is a set of one or more containers, an affinity rule indicating a condition for starting the container, and a failure tolerance number indicating the number of worker nodes in which failures are permitted to occur in order to maintain a self-repairable state; and a resource assignment instruction information that is an instruction information for assigning resources including the calculated required worker node number, and The above Send to resource manager and executes the VNFM and the VIM. and a container setting unit that determines placement of the Pods in the number indicated by the number of replica sets on the assigned worker nodes and transmits container setting information instructing the worker nodes that have determined the placement of the Pods to set containers that constitute the Pods. The container setting reception unit acquires a plurality of pieces of definition information related to each Pod, and the resource calculation unit calculates the minimum number of required worker nodes required as a whole while satisfying the number of replica sets and the conditions specified by the affinity rules, even if failures of the worker nodes equal to or less than the failure tolerance number indicated by each of the plurality of pieces of definition information occur in the worker nodes. It is characterized by: Effect of the Invention

[0008] According to the present invention, in a container system, manual resource design is not required, and service continuity can be improved when a failure occurs. [Brief description of the drawings]

[0009] [Figure 1]1 is a diagram showing an overall configuration of a container resource design system including a container resource design device (master node) according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating a first example of a container resource design process of the container resource design system including the container resource design device (master node) according to the present embodiment. [Diagram 3] FIG. 11 is a diagram illustrating a second example of a container resource design process of the container resource design system including the container resource design device (master node) according to the present embodiment. [Figure 4] 11 is a flowchart showing a flow of processing executed by the container resource design device (master node) according to the present embodiment. [Diagram 5] FIG. 2 is a hardware configuration diagram showing an example of a computer that realizes the functions of the container resource design device (master node) according to the present embodiment. [Figure 6] 1A and 1B are diagrams for explaining problems with a conventional container control mechanism. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Next, an embodiment of the present invention (hereinafter, referred to as "the present embodiment") will be described.

[0011] FIG. 1 is a diagram showing the overall configuration of a container resource design system 1000 including a container resource design device (master node 10) according to this embodiment. The container resource design system 1000 is configured to include a master node 10 (Master) and multiple worker nodes 20 (Workers) configured by a container orchestration engine (container control mechanism), a VNFM (VNF Manager) 300 that manages VNFs (Virtual Network Functions), which are virtualized network functions, and a VIM (Virtualized Infrastructure Manager) 400 that manages physical resources and virtual resources configured on the physical resources. The container orchestration engine is, for example, "Kubernetes" (registered trademark) described in Non-Patent Document 1, but is not limited to this. The master node 10 corresponds to a container resource design device described in the claims. The VNFM 300 and the VIM 400 constitute a resource management mechanism described in the claims.

[0012] Here, the master node 10 manages each worker node 20 and the Pod 2 placed on each worker node 20. The master node 10 (container resource design device) according to this embodiment acquires definition information (manifest file) regarding the configuration (deployment) of the container from a management device of the container system or the like. In addition to the number of replica sets and affinity rules indicating the conditions for starting the container, this definition information (manifest file) describes the "failure tolerance number" (details will be described later), which is information specific to this embodiment. Then, based on the acquired definition information, the master node 10 calculates the number of worker nodes 20 on which the pods, which are the units of container creation, are placed based on a predetermined logic using the number of replica sets, affinity rules, and failure tolerance number. The master node 10 sets (distributes as resources) the calculated number of worker nodes 20 via the VNFM 300 and the VIM 400 (resource management mechanism). Next, when the master node 10 assigns the pods to the worker nodes 20, the containers are set in the worker nodes 20. Then, the containers actually perform task processing for providing the service.

[0013] Here, the VNFM300 is based on the ETSI (European Telecommunications Standards Institute) NFV (Network Functions Virtualization) standard ("ETSI GS NFV-SOL 002 V2.6.1," ETSI, 2019-04, Internet<URL:https: / / www.etsi.org / deliver / etsi_gs / NFV-SOL / 001_099 / 002 / 02.06.01_60 / gs_NFV-SOL002v020601p.pdf>) has the ability to manage the VNF lifecycle (creation, deletion, scaling). The VIM 400 also has a function for performing operation management of physical resources and virtual resources in accordance with the ETSI VNF standard, and assigns worker nodes 20 configured as VMs (Virtual Machines). The master node 10 (container resource management device) assigns the worker nodes 20 using virtual resources via the VNFM 300 and the VIM 400.

[0014] <Master node (container resource management device)> The master node 10 (container resource management device) according to this embodiment will be described in detail below with reference to FIG. The master node 10 performs a conventional function of managing each worker node 20 and Pod2 placed on each worker node 20. Furthermore, as a process specific to this embodiment, the master node 10 calculates the number of worker nodes 20 on which Pod2, which is a unit of container creation, is placed, using a predetermined logic based on the number of replica sets, affinity rules indicating conditions for starting a container, and the number of allowable failures. The master node 10 is characterized by controlling the allocation of worker nodes 20 and container placement.

[0015] The master node 10 and the worker node 20 that constitute a cluster set by a container orchestration engine (container control mechanism) may be physical devices or VMs, but will be described as VMs unless otherwise specified below. If the master node 10 and the worker node 20 are physical devices, the node (physical device) is assigned (set) by transmitting request information regarding the setting (assignment) of the worker node 20 to a management device of the container system or the like. The master node 10 includes a control unit, an input / output unit, and a storage unit (all of which are not shown).

[0016] The input / output unit inputs and outputs information between each worker node 20, the VNFM 300, other external devices, etc. This input / output unit includes a communication interface that transmits and receives information via a communication line. The storage unit stores information about the cluster, such as each worker node 20, Pods, and configuration information between nodes.

[0017] As shown in FIG. 1, the control unit includes a container setting reception unit 11, a resource calculation unit 12, and a container setting unit 13.

[0018] The container setting reception unit 11 acquires definition information (manifest file) related to the container from a management device of the container system or the like. The definition information acquired by the container setting reception unit 11 is characterized in that it includes the number of allowable failures in addition to the affinity rules indicating the conditions for starting a container and the number of replica sets, which have been conventionally described. As will be described later, the container setting reception unit 11 may receive definition information regarding a plurality of replica sets to be set at the same time.

[0019] This failure tolerance number is set to the number of M (backup) worker nodes 20 in an N+M redundant configuration, relative to the number of N (active) worker nodes 20 corresponding to the number of replica sets. The failure tolerance number indicates the number of worker nodes 20 permitted to maintain a declarative state (a state capable of self-repair) after satisfying the number of replica sets and affinity rules, that is, the number of worker nodes 20 that are allocated in advance to maintain the declarative state even if a failure occurs in a worker node 20. The "failures" assumed in this failure tolerance number include not only failures occurring in the worker nodes 20, but also cases where the traffic volume, CPU usage rate, etc. of each worker node 20 exceed a predetermined threshold. The master node 10 assigns (backup) worker nodes 20 in advance, taking into consideration the failure tolerance number. The master node 10 then satisfies the affinity rules by placing Pods on the (backup) worker nodes 20 that have been assigned in advance, so that the traffic volume, CPU usage rate, etc. of the worker nodes 20 do not exceed the predetermined thresholds.

[0020] The resource calculation unit 12 extracts information on the number of replica sets, affinity rules indicating conditions for starting containers, and the number of tolerable failures from the acquired definition information (manifest file).Then, the resource calculation unit 12 calculates the number of required worker nodes based on a logic (predetermined logic) that calculates the minimum number of worker nodes 20 (VM resources) required to maintain a declarative state (hereinafter referred to as the "number of required worker nodes") using the number of replica sets, the affinity rules, and the number of tolerable failures.

[0021] In addition, when the resource calculation unit 12 simultaneously receives definition information (manifest files) of multiple replica sets (each of which is a different number of Pods) requesting container startup, it calculates the minimum number of worker nodes 20 (required number of worker nodes) required overall to satisfy all of the multiple definition information and maintain a declarative state. In this way, when definition information of multiple replica sets that request the startup of containers is received, the master node 10 can calculate the minimum number of worker nodes required as a whole to maintain a declarative state. This makes it possible to eliminate the need for manual resource design. In addition, resources can be operated more efficiently.

[0022] Furthermore, when the resource calculation unit 12 acquires definition information in which an affinity rule with a label that identifies the type of resource is described, the resource calculation unit 12 determines the label type and calculates the "required number of label nodes." If the label type is, for example, "GPU (Graphics Processing Unit)," the resource calculation unit 12 calculates the "required number of GPU label nodes." The label type may be determined by specifying, as a label, for example, storage or a network device in addition to "GPU." In this way, the master node 10 can specify the resource type and calculate the required number of label nodes (for example, the "required number of GPU label nodes") in consideration of the label type. Therefore, even when definition information in which labeled affinity rules are described is acquired, manual resource design is not required.

[0023] When the resource calculation unit 12 has calculated the required number of worker nodes and the required number of label nodes, it transmits the required number of label nodes as worker nodes 20 as instruction information to the VNFM 300 to assign them as resources (hereinafter referred to as "resource assignment instruction information"). As a result, the VIM 400 acquires the instruction information from the VNFM 300, and assigns the worker nodes 20 composed of VMs. The worker nodes 20 assigned by the VIM 400 are registered in the master node 10.

[0024] The container setting unit 13 determines the placement of Pod2 in the assigned worker nodes 20, the number of which is indicated by the number of replica sets, and transmits information (container setting information) instructing the worker nodes 20 that have determined the placement of Pod2 to set up Pod2. The worker nodes 20 receive this container setting information and create Pods. In addition, the container setting unit 13 monitors the worker node 20, and when a failure occurs in the worker node 20, the container setting unit 13 determines a new placement destination of Pod2, including the worker node 20 that has been allocated in advance as a resource, so as to maintain the number of replica sets. Then, the container setting unit 13 transmits container setting information to the worker node 20 determined as the placement destination of the new Pod2. In this manner, the master node 10 can maintain a declarative state capable of self-repair in the worker node 20.

[0025] Next, an embodiment of the container resource design process by the container resource design system 1000 including the master node 10 will be described. Fig. 2 shows the container resource design process when the master node 10 acquires one definition information (manifest file) related to the container settings. Fig. 3 shows the container resource design process when the master node 10 acquires multiple (three) definition information (manifest files) related to the container settings.

[0026] <First Example> FIG. 2 is a diagram showing a first example of a container resource design process of a container resource design system 1000 including a container resource design device (master node 10) according to this embodiment.

[0027] The master node 10 (container setting reception unit 11) acquires definition information (manifest file) relating to the setting of a container (for one replica set) from a management device or the like of the container system. This definition information includes the number of replica sets "3", an affinity rule indicating the conditions for starting a container, "Do not place replicas of the same container (Pod) on the same worker node" (same worker node placement: not allowed), and the number of tolerated failures "1" (denoted as α1 in Figure 2).

[0028] The resource calculation unit 12 of the master node 10 extracts information on the number of replica sets, affinity rules, and the number of tolerable failures from the acquired definition information (manifest file). Then, the resource calculation unit 12 calculates the minimum number of worker nodes 20 (VM resources) required to maintain a declarative state (required number of worker nodes). Here, because the affinity rules prevent replicas of the same container (Pod) from being placed on the same worker node 20, and because the number of tolerable failures is "1", the resource calculation unit 12 calculates the required number of worker nodes to be "4", which is the number of replica sets "3" plus the worker node 20 "1".

[0029] The resource calculation unit 12 of the master node 10 transmits resource assignment instruction information with information on the required number of worker nodes "4" to the VNFM 300 (symbol α2 in FIG. 2). Then, the VNFM 300 transmits the resource assignment instruction information to the VIM 400, whereby four worker nodes 20 (Workers "1", "2", "3", and "4") are assigned.

[0030] Next, the container configuration unit 13 of the master node 10 determines the placement of Pod2, the number "3" indicated by the replica set number, from among the assigned worker nodes 20 (here, Workers "1", "2", and "3"), and transmits container configuration information instructing the configuration of Pod2 to the worker nodes 20 that have determined the placement of Pod2. The worker nodes 20 (Workers "1", "2", and "3") that receive the container configuration information set up Pod2. In addition, worker node “4” has been assigned as a resource in advance, but Pod 2 has not been configured.

[0031] For example, suppose that a failure occurs in worker node "3" (symbol d in FIG. 2). In this case, the number of replica sets "3" cannot be maintained if things continue as they are, so the master node 10 (container setting unit 13) sends container setting information to worker node "4" that has been assigned in advance. As a result, worker node "4" sets Pod2 (2n) (symbol e in FIG. 2). At this time, since the resources have been assigned after taking into account the affinity rules, it is possible to respond to the failure without interrupting the service. In other words, it is possible to improve service continuity.

[0032] <Second Example> FIG. 3 is a diagram showing a second example of the container resource design process of the container resource design system 1000 including the container resource design device (master node 10) according to this embodiment.

[0033] The master node 10 (container setting reception unit 11) acquires multiple pieces of definition information (manifest files) (three replica sets) regarding container settings from a management device or the like of the container system. Here, we assume that three pieces of definition information have been obtained, which request configuration of containers (Pods) in replica set A, replica set B, and replica set C.

[0034] The definition information for replica set A includes the number of replica sets "4", an affinity rule indicating the conditions for starting a container, "Do not place replicas of the same container (Pod) on the same worker node" (placement on the same worker node: not possible), and the number of tolerated failures "2" (denoted as β1-A in Figure 2).

[0035] The definition information for replica set B includes the number of replica sets "3", an affinity rule indicating the conditions for starting a container, "Do not place replicas of the same container (Pod) on the same worker node" (same worker node placement: not allowed), and the number of tolerated failures "1" (denoted as β1-B in Figure 2).

[0036] The definition information of the C replica set includes the number of replica sets “1”, the label “GPU” as an affinity rule indicating the conditions for starting a container, and the number of tolerated failures “1” (represented by β1-C in Figure 2).

[0037] The resource calculation unit 12 of the master node 10 extracts information on the number of replica sets, affinity rules, and number of tolerable failures from the three pieces of definition information (manifest files) acquired. The resource calculation unit 12 then calculates the minimum number of worker nodes 20 (VM resources) required to maintain a declarative state (required number of worker nodes). In addition, since "GPU" is set as the label type in the C replica set, the resource calculation unit 12 calculates the minimum number of nodes required to set the worker nodes 20 to GPU as a resource (required number of GPU label nodes).

[0038] The resource calculation unit 12 first compares the definition information of the A replica set and the B replica set. Because the affinity rule of the A replica set means that replicas of the same container (Pod) cannot be placed on the same worker node 20 and the failure tolerance number is "2", the required number of worker nodes of the A replica set is calculated as "6", which is the number of replica sets "4" plus the number of worker nodes 20 "2". On the other hand, because the affinity rule of the B replica set means that replicas of the same container (Pod) cannot be placed on the same worker node 20 and the failure tolerance number is "1", the required number of worker nodes of the B replica set is calculated as "4", which is the number of replica sets "3" plus the number of worker nodes 20 "1". Therefore, the minimum number of nodes required (required number of worker nodes) between the A replica set and the B replica set is "6".

[0039] On the other hand, according to the definition information of the C replica set, the number of tolerable failures in the placement of worker nodes on the GPU is “1”, so the number of worker nodes to be placed on the GPU (required number of GPU label nodes) is “2”.

[0040] Based on the above, the resource calculation unit 12 calculates the required number of worker nodes "4" and the required number of GPU label nodes "2" as the minimum number of nodes required overall when setting three replica sets A, B, and C at the same time. Note that the required number of worker nodes between replica set A and replica set B was "6", but among them, the worker nodes 20 that use GPUs as resources are set by duplicating them with the worker nodes 20 allocated to the required number of GPU label nodes "2". Therefore, the total number of worker nodes 20 to be assigned as resources remains "6".

[0041] The resource calculation unit 12 of the master node 10 transmits resource assignment instruction information with information on the required number of worker nodes "4" and the required number of GPU label nodes "2" to the VNFM 300 (symbol β2 in FIG. 3). Then, the VNFM 300 transmits the resource assignment instruction information to the VIM 400, whereby assignment is performed to four worker nodes 20 (Workers "1", "2", "3", and "4") and two worker nodes 20 (Workers "5" and "6") that provide GPUs as resources.

[0042] Next, the container configuration unit 13 of the master node 10 determines the placement of Pod2 from among the assigned worker nodes 20 according to the number indicated by the replica set count in the definition information of each replica set, and transmits container configuration information to the worker node 20 for which the placement of Pod2 has been determined, instructing the configuration of that Pod2. Then, each worker node 20 that has received the container configuration information sets Pod2.

[0043] Here, four Pods in replica set A are configured on worker nodes "1", "2", "4", and "5". Three Pods in replica set B are configured on worker nodes "1", "3", and "4". Additionally, one Pod in replica set C is configured on worker node "5", which provides GPU as a resource. In addition, worker node “6” has been assigned as a resource in advance, but no Pod has been configured.

[0044] Now, for example, suppose that failures occur in worker nodes "4" and "5" (symbols f and g in Figure 3). In this case, if things continue as they are, it will be impossible to maintain the number of replica sets in each of the three replica sets A, B, and C. Therefore, the master node 10 (container setting unit 13) places the Pods of replica set A on worker nodes "3" and "6", for example, and sends the container setting information. It also places the Pods of replica set B on worker node "2", for example, and sends the container setting information. It also places the Pods of replica set C on worker node "6", and sends the container setting information. As a result, worker node "2" configures a Pod in the B replica set (symbol h in Figure 3). Worker node "3" configures a Pod in the A replica set (symbol i in Figure 3). Additionally, worker node "6" configures Pods in the A replica set and the C replica set (symbols j and k in Figure 3).

[0045] In this way, manual resource design is unnecessary, and service continuity can be improved when a failure occurs. In addition, it is possible to limit the number of worker nodes 20 to the minimum required, and resources can be operated efficiently.

[0046] <Processing flow> Next, the flow of the process executed by the master node 10 will be described. FIG. 4 is a flowchart showing the flow of processing executed by the container resource design device (master node 10) according to this embodiment.

[0047] First, the container setting reception unit 11 of the master node 10 acquires definition information (manifest file) related to the container from a management device of the container system or the like (step S1). This definition information describes the number of replica sets, affinity rules indicating the conditions for starting a container, and the number of allowable failures. Furthermore, the container setting reception unit 11 may receive definition information about a plurality of replica sets.

[0048] Next, the resource calculation unit 12 of the master node 10 extracts information on the number of replica sets, affinity rules indicating conditions for starting a container, and the number of allowable failures from the acquired definition information (manifest file) (step S2).

[0049] Next, the resource calculation unit 12 calculates the minimum number of worker nodes 20 required to maintain a declarative state (required number of worker nodes) based on the number of replica sets, the affinity rule, and the number of tolerable failures (step S3). In this case, when the resource calculation unit 12 receives definition information for multiple replica sets, it calculates the required number of worker nodes so that the conditions of the number of replica sets, affinity rules, and number of allowable failures indicated by each definition information are satisfied and the number of worker nodes is the minimum overall. Also, when the affinity rule includes label information identifying the type of resource, it calculates the required number of label nodes (for example, if the label is "GPU", it calculates the "required number of GPU label nodes") taking into account the label type so as to satisfy the number of resources of the type indicated by the label.

[0050] Next, if the resource calculation unit 12 has calculated the required number of worker nodes and the required number of label nodes (required number of GPU label nodes), it transmits resource assignment instruction information including the worker nodes 20 of the required number of label nodes to the VNFM 300 (step S4). As a result, the VIM 400 acquires the instruction information from the VNFM 300, and assigns the worker nodes 20. As a result, the worker nodes 20 assigned by the VIM 400 are registered in the master node 10.

[0051] The container configuration unit 13 of the master node 10 then determines the placement of Pod2 in the assigned worker nodes 20, the number of which is indicated by the number of replica sets, and transmits container configuration information instructing the worker nodes 20 that have determined the placement of Pod2 to configure Pod2 (step S5). The worker nodes 20 receive this container configuration information and create Pods.

[0052] This allows the master node 10 (container resource design device) to maintain a declarative state while satisfying the conditions of the number of replica sets and affinity rules. This eliminates the need for manual resource design and improves service continuity when a failure occurs.

[0053] <Hardware configuration> The container resource design device (master node 10) according to this embodiment is realized by a computer 900, which is a physical device having a configuration as shown in FIG. 5 is a hardware configuration diagram showing an example of a computer 900 that realizes the functions of the container resource design device (master node 10) according to this embodiment. The computer 900 includes a CPU 901, a ROM (Read Only Memory) 902, a RAM 903, a HDD (Hard Disk Drive) 904, an input / output I / F (Interface) 905, a communication I / F 906, and a media I / F 907.

[0054] The CPU 901 operates based on a program stored in the ROM 902 or the HDD 904, and performs control by the control unit (container setting reception unit 11, resource calculation unit 12, container setting unit 13) of the container resource design device (master node 10) shown in Fig. 1. The ROM 902 stores a boot program executed by the CPU 901 when the computer 900 is started, programs related to the hardware of the computer 900, and the like.

[0055] The CPU 901 controls an input device 910 such as a mouse or a keyboard, and an output device 911 such as a display, via an input / output I / F 905. The CPU 901 acquires data from the input device 910 via the input / output I / F 905, and outputs generated data to the output device 911. Note that a GPU or the like may be used as a processor together with the CPU 901.

[0056] The HDD 904 stores programs executed by the CPU 901 and data used by the programs, etc. The communication I / F 906 receives data from other devices via a communication network (e.g., NW (Network) 920) and outputs the data to the CPU 901, and also transmits data generated by the CPU 901 to other devices via the communication network.

[0057] The media I / F 907 reads a program or data stored in the recording medium 912 and outputs it to the CPU 901 via the RAM 903. The CPU 901 loads a program related to a target process from the recording medium 912 onto the RAM 903 via the media I / F 907, and executes the loaded program. The recording medium 912 is an optical recording medium such as a DVD (Digital Versatile Disc) or a PD (Phase change rewritable Disc), a magneto-optical recording medium such as an MO (Magneto Optical disk), a magnetic recording medium, a conductive memory tape medium, a semiconductor memory, or the like.

[0058] For example, when the computer 900 functions as the container resource design device (master node 10) according to this embodiment, the CPU 901 of the computer 900 executes a program loaded onto the RAM 903 to realize the function of the container resource design device (master node 10). In addition, the HDD 904 stores data in the RAM 903. The CPU 901 reads and executes a program related to a target process from the recording medium 912. In addition, the CPU 901 may read a program related to a target process from another device via a communication network (NW 920).

[0059] <Effects> The effects of the container resource design device (master node 10) and the like according to the present invention will be described below. The container resource design device according to the present invention is a container resource design device (master node 10) that performs resource design for a virtualized container system, and the container system is composed of a plurality of worker nodes 20 that provide services by arranging containers, and a container resource design device (master node 10) that generates and operates the worker nodes 20. The container resource design device (master node 10) includes a container setting reception unit 11 that acquires definition information including a replica set number indicating the number of redundancies of a Pod2, which is a set of one or more containers, an affinity rule indicating a condition for starting a container, and a fault tolerance number indicating the number of worker nodes 20 in which a fault is permitted to occur in order to maintain a state in which self-repair is possible, and a container setting reception unit 12 that receives definition information including a replica set number indicating the number of redundancies of a Pod2, which is a set of one or more containers, an affinity rule indicating a condition for starting a container, and a fault tolerance number indicating the number of worker nodes 20 in which a fault is permitted to occur in order to maintain a state in which self-repair is possible, and The system is characterized by comprising a resource calculation unit 12 that extracts a rule and a tolerance number of failures from the definition information, calculates a required number of worker nodes indicating the minimum number of worker nodes 20 required while satisfying the number of replica sets and the conditions specified in the affinity rule even if a failure equal to or less than the tolerance number of failures occurs in a worker node 20, and sends resource issuance instruction information, which is instruction information for the issuance of resources including the calculated required number of worker nodes, to a resource management mechanism, thereby causing the required number of worker nodes to be issued as resources; and a container setting unit 13 that determines the placement of Pod2 in the number indicated by the replica set number on the issued worker nodes 20, and transmits container setting information to the worker nodes 20 that have determined the placement of Pod2, instructing them to set the containers that constitute Pod2.

[0060] In this way, the container resource design device (master node 10) according to the present invention can maintain a declarative state while satisfying the conditions of the number of replica sets and the affinity rules. In addition, it can automatically perform redundancy design that takes into account the number of tolerable failures. This eliminates the need for manual resource design and improves service continuity when a failure occurs.

[0061] In addition, in the container resource design device (master node 10), the container setting reception unit 11 acquires multiple definition information related to different Pod 2, and the resource calculation unit 12 calculates the minimum number of worker nodes required overall while satisfying the number of replica sets and the conditions specified in the affinity rules, even if a failure occurs in the worker node 20 that is less than the failure tolerance number indicated by each of the multiple definition information for each Pod 2.

[0062] By doing this, even if multiple containers are configured (deployed) at the same time based on different Pod definition information, it is possible to calculate the overall minimum number of worker nodes required, allowing for more efficient resource management.

[0063] In addition, in the container resource design device (master node 10), when an affinity rule is assigned a label indicating the type of resource that will start the container, the resource calculation unit 12 determines the type of resource indicated by the label, calculates the required label node number indicating the minimum number of worker nodes 20 required for the resource of the determined type, and transmits the calculated number of label nodes to the resource management mechanism by including it in resource issuance instruction information.

[0064] In this way, the minimum number of worker nodes required can be calculated taking into account the type of resource, allowing resources to be operated more efficiently.

[0065] The present invention is not limited to the above-described embodiment, and many modifications can be made by those having ordinary skill in the art within the technical scope of the present invention. For example, all or part of the functions (container setting reception unit 11, resource calculation unit 12, container setting unit 13) that are characteristic components of the container resource design device (master node 10) according to this embodiment may be provided in the VNFM 300. Even in this case, the master node 10 and the VNFM 300 can cooperate with each other to realize the processing of this embodiment. [Explanation of symbols]

[0066] 2. Pod 10 Container resource design device (master node) 11 Container Settings Reception 12 Resource Calculation Section 13 Container Settings 20 worker nodes 300 VNFM (Resource Management Mechanism) 400 VIM (Resource Management Facility) 1000 Container Resource Design System

Claims

1. A container resource design system for designing resources of a virtualized container system, comprising: The container resource design system is composed of a plurality of worker nodes that provide services by arranging containers, a container resource design device that generates and operates the worker nodes, and a resource management mechanism that includes a VNFM (Virtual Network Function Manager) that manages virtualized network functions installed in the containers to provide the services, and a VIM (Virtualized Infrastructure Manager) that manages resources that install the containers, The container resource design device includes: a container setting reception unit that acquires definition information including a replica set number indicating the number of redundancies of a Pod, which is a set of one or more of the containers, an affinity rule indicating a condition for starting the container, and a failure tolerance number indicating the number of the worker nodes in which a failure is permitted to occur in order to maintain a self-repairable state; The number of replica sets, the affinity rule, and the number of tolerable failures are extracted from the definition information, and a required number of worker nodes indicating the minimum number of the worker nodes required while satisfying the number of replica sets and the conditions specified by the affinity rule even when failures equal to or less than the number of tolerable failures occur in the worker nodes are calculated; a resource calculation unit that transmits resource allocation instruction information, which is instruction information for allocating resources, including the calculated number of required worker nodes, to the resource management mechanism to execute the VNFM and the VIM, thereby causing the worker nodes of the required number of worker nodes to be allocated as resources; a container setting unit that determines the placement of the Pods in the number indicated by the number of replica sets on the assigned worker nodes, and transmits container setting information instructing the worker nodes that have determined the placement of the Pods to set containers that constitute the Pods; Equipped with the container setting reception unit acquires a plurality of pieces of definition information relating to each of the Pods; The resource calculation unit calculates the minimum number of required worker nodes required as a whole while satisfying the number of replica sets and the conditions specified by the affinity rules even when failures occur in the worker nodes equal to or less than the failure tolerance number, which are indicated by each of the multiple definition information for each Pod. A container resource design system that features:

2. When the affinity rule is provided with a label indicating the type of resource that starts the container, The resource calculation unit determines the type of resource indicated by the label, calculates a required label node number indicating the minimum number of worker nodes required for the resource of the determined type, and transmits the required label node number to the resource management mechanism by including the resource assignment instruction information. The container resource design system according to claim 1 .

3. A container resource design method for a container resource design system that performs resource design for a virtualized container system, comprising: The container resource design system is composed of a plurality of worker nodes on which containers are placed to provide services, a container resource design device that generates and operates the worker nodes, and a resource management mechanism that includes a VNFM that manages a virtualized network function installed in the container to provide the services and a VIM that manages resources that install the containers, The container resource design device includes: A step of acquiring definition information including a replica set number indicating the number of redundancies of a Pod, which is a collection of one or more of the containers, an affinity rule indicating a condition for starting the container, and a failure tolerance number indicating the number of the worker nodes in which a failure is permitted to occur in order to maintain a self-repairable state; extracting the number of replica sets, the affinity rule, and the number of tolerable failures from the definition information, and calculating a required number of worker nodes indicating the minimum number of worker nodes required while satisfying the number of replica sets and the conditions specified by the affinity rule even when failures equal to or less than the number of tolerable failures occur in the worker nodes; sending resource allocation instruction information, which is instruction information for allocating resources, including the calculated number of required worker nodes, to the resource management mechanism to execute the VNFM and the VIM, thereby allocating the worker nodes of the required number of worker nodes as resources; determining an arrangement of the Pods in the number indicated by the number of replica sets on the assigned worker nodes, and transmitting container configuration information instructing the worker nodes on which the Pods are arranged to configure the containers that constitute the Pods; Run In the step of acquiring the definition information, a plurality of pieces of definition information relating to each Pod are acquired; In the step of calculating the required number of worker nodes, the minimum required number of worker nodes required as a whole is calculated while satisfying the number of replica sets and the conditions specified by the affinity rules even when failures occur in the worker nodes equal to or less than the failure tolerance number, which are indicated by each of the multiple definition information for each Pod. A container resource design method characterized by the above.

Citation Information

Patent Citations

  • Computer system management method, management server, computer system, and program

    JP2007207219A