CONTAINER EXECUTION SYSTEM, TERMINAL DEVICE, SERVER DEVICE, CONTAINER EXECUTION ENVIRONMENT DECISION METHOD, AND PROGRAM

The container execution system addresses the challenge of inappropriate environment selection by using attribute and definition information to determine optimal execution environments, enhancing resource efficiency and reducing costs.

JP7571414B2Active Publication Date: 2024-10-23NEC CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020133544
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-08-06
Publication Date
2024-10-23
Estimated Expiration
2040-08-06

Smart Images

  • Figure 0007571414000001
    Figure 0007571414000001
  • Figure 0007571414000002
    Figure 0007571414000002
  • Figure 0007571414000003
    Figure 0007571414000003
Patent Text Reader

Abstract

To provide a container executive system, a terminal device, a server device, a determination method of a container executive environment, and a program capable of properly determining a container executive environment.SOLUTION: A container executive system comprises: an attribute giving part to give attribute information including information about a computer resource to a container image: a definition information acquisition part to acquire definition information defined by associating in advance a selection method of an executive environment with the attribute information at a running time of a container; and an executive environment determination part to determine the container executive environment based on the attribute information given to the container image and the definition information acquired by the definition information acquisition part.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a container execution system, a terminal device, a server device, a container execution environment determination method, and a program. [Background technology]

[0002] The methods for deploying software and services have changed significantly in recent years, and container-based virtualization technology has recently come into use. With container-based virtualization technology, the kernel of the OS (operating system) that runs on a single physical machine is shared, and the resources of the physical machine can be isolated and executed in multiple user spaces on a container-by-container basis. Containers are built by automatically retrieving multiple images from a registry, and developers select the execution environment to run them based on knowledge of resource consumption and user requirements gained during development evaluation.

[0003] For example, Patent Document 1 discloses a technique for collecting resource data using an evaluation container that includes an evaluation program for evaluating resources of an information processing device, and for distributing containers based on the resource data. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2019-117485 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, because containers are built by automatically retrieving images from a registry, it is difficult for developers to see the contents, and it is also difficult to understand the resource consumption and requirements at runtime. Therefore, developers perform load tests on containers in a development environment, and select an environment with sufficient margin based on the resource consumption results. Therefore, it cannot be said that containers are being run in an appropriate execution environment.

[0006] Therefore, an object of the present invention is to provide a container execution system, a terminal device, a server device, a container execution environment determination method, and a program that can solve the above-mentioned problems. [Means for solving the problem]

[0007] According to a first aspect of the present invention, a container execution system includes an attribute assigning unit that assigns attribute information including information about computer resources to a container image, a definition information acquiring unit that acquires definition information in which a method for selecting an execution environment when executing a container is previously defined in association with the attribute information, and an execution environment determining unit that determines an execution environment for the container based on the attribute information assigned to the container image and the definition information acquired by the definition information acquiring unit. The attribute information includes at least the network consumption as information about computer resources. .

[0008] According to a second aspect of the present invention, a terminal device includes: a setting unit that sets attribute information to be assigned to a container image in response to a user operation, the attribute information including information on computer resources; and a transmission unit that transmits the attribute information set by the setting unit and information indicating the container image in association with each other. The attribute information includes at least the network consumption as information about computer resources. .

[0009] According to a third aspect of the present invention, a server device includes an attribute assigning unit that assigns attribute information including information about computer resources to a container image, a definition information acquiring unit that acquires definition information in which a method for selecting an execution environment when executing a container is defined in advance in association with the attribute information, and an execution environment determining unit that determines an execution environment for the container based on the attribute information assigned to the container image and the definition information acquired by the definition information acquiring unit. The attribute information includes at least the network consumption as information about computer resources. .

[0010] According to a fourth aspect of the present invention, In container execution system The container execution environment determination method is as follows: The attribute assignment unit: adding attribute information to the container image, the attribute information including information about computer resources; The definition information acquisition unit A step of acquiring definition information in which a method for selecting an execution environment when executing a container and the attribute information are previously defined in association with each other, the attribute information being assigned to a container image, The execution environment determination unit: The method includes a step of determining an execution environment of a container based on the obtained definition information, and the attribute information includes at least a network consumption amount as information related to computer resources.

[0011] According to a fifth aspect of the present invention, a program causes a computer to execute the steps of: assigning attribute information including information on computer resources to a container image; acquiring definition information in which a method for selecting an execution environment when executing a container is previously defined in association with the attribute information; and determining an execution environment for the container based on the attribute information assigned to the container image and the definition information. The attribute information includes at least the network consumption as information about computer resources. . Effect of the Invention

[0012] According to the present invention, the execution environment of a container can be appropriately determined. [Brief description of the drawings]

[0013] [Figure 1] 1 is a block diagram showing an example of the configuration of a container execution system according to an embodiment of the present invention. [Diagram 2] 10 is a flowchart illustrating an example of an image attribute information setting process according to an embodiment of the present invention. [Diagram 3] 11 is a flowchart showing an example of an execution environment selection method setting process according to an embodiment of the present invention. [Figure 4] 11A and 11B are diagrams illustrating an example of definitions of image attribute information and a method of selecting an execution environment according to an embodiment of the present invention. [Diagram 5] 11 is a flowchart illustrating an example of a container execution process according to an embodiment of the present invention. [Figure 6] FIG. 2 is a diagram showing an example of a layer configuration of an image according to an embodiment of the present invention. [Figure 7] FIG. 13 is a diagram showing an example of finally determined values ​​of attribute information of a container according to an embodiment of the present invention. [Figure 8] FIG. 2 is a diagram illustrating a minimum configuration of a container execution system and a server according to an embodiment of the present invention. [Figure 9] 10 is a flowchart showing an example of a content execution environment determination process according to an embodiment of the present invention. [Figure 10] FIG. 2 is a diagram illustrating a minimum configuration of a terminal according to an embodiment of the present invention. [Figure 11] 10 is a flowchart showing an example of a process for setting attribute information of a content image according to an embodiment of the present invention. [Figure 12] FIG. 2 is a diagram illustrating an example of a hardware configuration of a computer according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A container execution system according to an embodiment of the present invention will now be described with reference to the drawings. [System Configuration] 1 is a block diagram showing an example of the configuration of a container execution system according to this embodiment. The illustrated container execution system 1 includes a client 100, a server 200, an image registry 301, an image definition file repository 302, and a container execution environment 400. The client 100 and the server 200 communicate with each other via a network. The server 200 communicates with the image registry 301, the image definition file repository 302, and the container execution environment 400 via the network.

[0015] In response to a user's operation input, the terminal 101 of the client 100 transmits operation information based on the input content to the server 200. For example, a client manager is installed in the terminal 101. The client manager accepts the user's operation input and transmits operation information based on the input content to the server 200. For example, the user can set attribute information of a container image on the terminal 101.

[0016] Here, the attribute information refers to the consumption of computer resources such as a CPU (Central Processing Unit), memory, storage, or network when the image is evaluated and verified, and the user requirements (operation rate, region, etc.) for using the image. The attribute information may include at least information related to resources. The attribute information may also include only information related to user requirements. For example, the terminal 101 sets attribute information to be assigned to the container image in response to an operation input by a user who assigns attribute information to the container image, and transmits information (hereinafter referred to as "attribute assignment information") that associates the set attribute information with information indicating the container image to the server 200 as operation information.

[0017] Furthermore, the user can set, in the terminal 101, the attribute information of a container image in association with a method for selecting an execution environment when executing the container. For example, the terminal 101 sets a definition of the association between the execution environment selection method and the attribute information of the container image in response to a user's operation input that defines the method for selecting an execution environment when executing a container. Then, the terminal 101 transmits information indicating the definition of the association between the execution environment selection method and the attribute information that has been set (hereinafter referred to as "definition information") to the server 200 as operation information.

[0018] The server 200 includes an operation receiving unit 201 , an image attribute adding unit 202 , an image attribute acquiring unit 203 , an execution environment selecting method defining unit 204 , an execution environment defining unit 205 , a container execution environment determining unit 206 , and a container execution unit 207 .

[0019] The operation receiving unit 201 receives operation information transmitted from the terminal 101. If the received operation information is an operation input for adding attribute information, the operation receiving unit 201 transmits the operation information (attribute adding information) to the image attribute adding unit 202. If the received operation information is an operation input for defining an execution environment selection method, the operation receiving unit 201 transmits the operation information (definition information) to the execution environment selection method definition unit 204.

[0020] The image attribute assigning unit 202 transmits attribute information to be assigned to an image (hereinafter referred to as "image attribute information") to the image registry 301 or the image definition file repository 302 based on the attribute assignment information transmitted from the operation receiving unit 201. As a result, the image attribute assigning unit 202 assigns the image attribute information to the content image based on the attribute assignment information transmitted from the operation receiving unit 201.

[0021] The image registry 301 and the image definition file repository 302 store the image attribute information received from the image attribute adding unit 202 in association with the corresponding image file. The image registry 301 is a database in which an image repository is stored. An image repository is a repository (e.g., Docker Hub) that configures and manages image binaries. The image definition file repository 302 is a database in which a repository (e.g., GitHub) that configures and manages image sources is stored.

[0022] The image attribute acquisition unit 203 acquires image attribute information from the image registry 301 or the image definition file repository 302 , and stores the acquired image attribute information in the image attribute storage unit 210 .

[0023] The execution environment selection method definition unit 204 acquires definition information of the execution environment selection method received from the operation reception unit 201 , and stores the acquired definition information in the execution environment selection method storage unit 220 .

[0024] The execution environment definition unit 205 acquires information about the execution environment from the container execution environment 400 and stores it in the container execution environment accumulation unit 230. The container execution environment 400 includes a computer that executes a container. The execution environment includes information about the resources of the container execution environment 400 and information about user requirements.

[0025] The container execution environment determination unit 206 acquires image attribute information from the image attribute storage unit 210. Also, the container execution environment determination unit 206 acquires definition information of an execution environment selection method from the execution environment selection method storage unit 220. Furthermore, the container execution environment determination unit 206 acquires information on the execution environment from the container execution environment storage unit 230. Then, the container execution environment determination unit 206 determines the execution environment when executing the container based on the acquired image attribute information, definition information, and information on the execution environment. Also, the container execution environment determination unit 206 transmits information on the determined container execution environment to the container execution unit 207.

[0026] The container execution unit 207 acquires information on the container execution environment from the container execution environment determination unit 206. Then, the container execution unit 207 instructs the container execution environment 400 to execute the container based on the acquired container execution environment.

[0027] [Image attribute information setting process] Next, an operation of an image attribute information setting process for setting image attribute information in response to a user operation will be described with reference to Fig. 2. Fig. 2 is a flowchart showing an example of the image attribute information setting process.

[0028] (Step S101) The terminal 101 sets attribute information to be assigned to the container image in response to a user's operational input to assign attribute information to the container image, and transmits attribute assignment information that associates the set attribute information with information indicating the container image to the server 200.

[0029] (Step S102) Server 200 receives the attribute assignment information transmitted from terminal 101 in step S101, and transmits image attribute information to the repository based on the received attribute assignment information. Specifically, upon receiving the attribute assignment information transmitted from terminal 101, operation reception unit 201 transmits the attribute assignment information to image attribute assignment unit 202. Furthermore, upon receiving the attribute assignment information transmitted from operation reception unit 201, image attribute assignment unit 202 transmits image attribute information based on the received attribute assignment information to image registry 301 or image definition file repository 302.

[0030] [Settings for defining the execution environment selection method] Next, an operation of an execution environment selection method setting process for setting attribute information of an image and a definition of a selection method of an execution environment in response to a user operation will be described with reference to Fig. 3. Fig. 3 is a flowchart showing an example of the execution environment selection method setting process.

[0031] (Step S201) In response to a user's operation input that defines a method for selecting an execution environment when executing a container, the terminal 101 sets a definition of an association between the execution environment selection method and attribute information of a container image. Then, the terminal 101 transmits definition information indicating the definition of the association between the execution environment selection method and attribute information to the server 200.

[0032] (Step S202) Server 200 receives and stores definition information of the execution environment selection method transmitted from terminal 101 in step S201. Specifically, upon receiving the definition information transmitted from terminal 101, operation reception unit 201 transmits the received definition information to execution environment selection method definition unit 204. Furthermore, upon receiving the definition information from operation reception unit 201, execution environment selection method definition unit 204 stores the received definition information in execution environment selection method storage unit 220.

[0033] FIG. 4 is a diagram showing an example of the definition of image attribute information and the method of selecting an execution environment. In this diagram, image attributes (image attributes) are associated with the method of selecting an execution environment. For example, the image attribute "vCPU" is associated with the execution environment selection method "largest value". This indicates that the "largest value" of all attributes "vCPU" of the images that make up the container is used to select the container execution environment. In addition, the image attribute "region" is associated with the execution environment selection method "Asia Pacific>US-West>US-East". This indicates that if "Asia Pacific" exists among all attributes "region" of the images that make up the container, it is used to select the container execution environment. If it does not exist, the next "US-West" is used to select the container execution environment, and if it does not exist, the next "US-East" is used to select the container execution environment.

[0034] [Container execution process] Next, the operation of a container execution process for determining an execution environment for a container and executing the container will be described with reference to Fig. 5. Fig. 5 is a flowchart showing an example of the container execution process.

[0035] (Step S301) A user instructs execution of a container on the terminal 101. In response to an operation input by the user instructing execution of a container, the terminal 101 transmits container execution instruction information instructing execution of the container to the server 200.

[0036] (Step S302) When the server 200 acquires container execution instruction information from the terminal 101, the server 200 acquires image attribute information from the repository. Specifically, the image attribute acquisition unit 203 acquires image attribute information of the container to be executed from the image registry 301 or the image definition file repository 302.

[0037] (Step S303) The image attribute acquisition unit 203 classifies the attribute information acquired in step S302 by attribute type (for example, CPU, Memory, Storage, Network, operating rate, region, etc.), and stores the classified information in the image attribute accumulation unit 210. Then, the process proceeds to step S304.

[0038] (Step S304) The image attribute acquiring unit 203 determines whether or not acquisition of image attribute information of the images that constitute the container has been completed.

[0039] Here, the configuration of a container will be described. A container is composed of one or more layers in which images are stacked on top of each other (the lower layer is generally called a base image). Since the base image is described in the image definition file (e.g., Dockerfile) of the container, the image attribute acquisition unit 203 can acquire the layer configuration by tracing the image definition file stored in the repository. As a result, the image attribute acquisition unit 203 repeats the processes of steps S302 and S303 from the image of the top layer constituting the container to the image of the bottom layer, and acquires image attribute information of each image.

[0040] FIG. 6 is a diagram showing an example of an image layer structure. In this diagram, myapp, ruby, buildpack, and debian described in the image column are image layer structures. myapp indicates the image in the top layer, and debian indicates the image in the bottom layer. The image attribute acquisition unit 203 first acquires image attribute information (vCPU, Memory, Storage, Network, availability, region) of the myapp image from the repository, classifies it by type, and stores it in the image attribute accumulation unit 210. Next, the image attribute acquisition unit 203 acquires attribute information of the ruby ​​image from the repository, classifies it by type, and stores it. The image attribute acquisition unit 203 repeats this process up to the bottom layer.

[0041] When the image attribute acquisition unit 203 determines that the acquisition of the image attribute information is not complete (NO), the process returns to step S302. On the other hand, when the image attribute acquisition unit 203 determines that the acquisition of the image attribute information is complete (YES), the process proceeds to step S305.

[0042] (Step S305) The server 200 acquires image attribute information from the image attribute storage unit 210. Specifically, the container execution environment determination unit 206 acquires one piece of image attribute information stored in step S303 from the image attribute storage unit 210. Then, the process proceeds to step S306.

[0043] (Step S306) The container execution environment determination unit 206 acquires the execution environment selection method stored in step S202 of Fig. 3 from the execution environment selection method storage unit 220. Then, the container execution environment determination unit 206 compares the acquired execution environment selection method with the image attribute information acquired in step S305, and determines a value of the attribute information of the container.

[0044] (Step S307) The container execution environment determination unit 206 determines whether or not acquisition of all the attribute information stored in step S303 from the image attribute storage unit 210 is complete. When the container execution environment determination unit 206 determines that acquisition of all the attribute information is not complete (NO), the process returns to step S305.

[0045] That is, the container execution environment determination unit 206 repeats the processes of steps S305 and S306 for all image attribute information of the images constituting the container. For example, in the example of the definition of the image attribute and the selection method of the execution environment shown in FIG. 4, the selection method of the execution environment of "vCPU" is "largest value". Also, in the example of the layer configuration of the content image shown in FIG. 6, the largest value of "vCPU" is "2". Therefore, the container execution environment determination unit 206 determines the value of "vCPU" of the container to be "2". Also, as another example, in the example shown in FIG. 4, the selection method of the execution environment of "region" is "Asia Pacific>US-West>US-East". In the example shown in FIG. 6, "Asia Pacific" exists in "region". Therefore, the container execution environment determination unit 206 determines the value of "region" of the container to be "Asia Pacific". In this way, the container execution environment determination unit 206 determines the values ​​of all image attribute information of the container.

[0046] 7 shows an example of the finally determined values ​​of the attribute information of a container. In the example of the container shown in the figure, the "vCPU" value is "2," the "Memory" value is "5 (GiB)," the "Storage" value is "27 (GB)," the "Network" value is "25 (Gbps)," the "Availability" value is "99.9," and the "Region" value is "Asia Pacific." If the container execution environment determination unit 206 determines that acquisition of all attribute information has been completed (YES), it proceeds to the process of step S308.

[0047] (Step S308) The container execution environment determination unit 206 acquires values ​​of each execution environment (for example, CPU, Memory, Storage, Network, availability, region, etc.) from the container execution environment accumulation unit 230. Then, the process proceeds to step S309.

[0048] (Step S309) The container execution environment determination unit 206 determines the execution environment of the container based on the values ​​of the container attribute information determined in steps S305 to S307 and the values ​​of each execution environment acquired in step S308. For example, the container execution environment determination unit 206 compares the values ​​of the container attribute information with the values ​​of each execution environment, and selects and determines the closest container execution environment. Then, the container execution unit 207 instructs the container execution environment 400 to execute the container based on the container execution environment determined by the container execution environment determination unit 206.

[0049] As described above, in the container execution system 1 according to this embodiment, the image attribute assigning unit 202 assigns attribute information (image attribute information) including information on computer resources to the container image. The execution environment selection method definition unit 204 acquires definition information in which the execution environment selection method for executing the container and the image attribute information are previously associated and defined. The container execution environment determination unit 206 then determines the execution environment of the container based on the image attribute information assigned to the container image and the definition information acquired by the execution environment selection method definition unit 204.

[0050] This allows the container execution system 1 to determine an appropriate container execution environment that matches the resources required for container execution. Furthermore, the container execution system 1 can reduce the cost of measuring consumed resources by performing load testing, unnecessary resource consumption, and usage fees. For example, by using this embodiment to register the results of resources and requirements tested and measured by users or vendors together with container images in a public repository as attribute information, a wide range of users can be expected to benefit from the execution environment.

[0051] In addition, the container execution environment determination unit 206 determines the execution environment of the container based on the image attribute information assigned to the container image, the definition information acquired by the execution environment selection method definition unit 204, and information regarding the execution environment acquired from the execution environment definition unit 205.

[0052] This allows the container execution system 1 to determine an appropriate container execution environment that matches the resources required for container execution according to the actual container execution environment.

[0053] Further, the container execution unit 207 (an example of an execution unit) instructs the execution of the container based on the container execution environment determined by the container execution environment determination unit 206.

[0054] This allows the container execution system 1 to execute the container in an appropriate execution environment that matches the resources required for executing the container.

[0055] For example, the image attribute information further includes information on user requirements for using the container image. For example, the information on the user requirements includes information on the availability rate or region.

[0056] This allows the container execution system 1 to determine an appropriate container execution environment that matches the resources required for container execution and the user requirements.

[0057] Moreover, the image attribute adding unit 202 adds image attribute information to the container image based on information set in the terminal 101 (an example of a terminal device).

[0058] This allows the container execution system 1 to appropriately determine the execution environment of the container based on the attribute information of the image arbitrarily set by the user.

[0059] Furthermore, the execution environment selection method definition unit 204 acquires the execution environment selection method definition information set in the terminal 101, and stores it in the execution environment selection method storage unit 220 (an example of a storage unit).

[0060] This allows the container execution system 1 to appropriately determine the execution environment of the container based on the execution environment selection method arbitrarily set by the user.

[0061] FIG. 8 is a diagram showing a minimum configuration of the container execution system 1 and the server 200 according to the present embodiment. The container execution system 1 includes the server 200. The container execution system 1 and the server 200 (an example of a server device) include an image attribute assigning unit 202 (an example of an attribute assigning unit), an execution environment selection method definition unit 204 (an example of a definition information acquisition unit), and a container execution environment determination unit 206 (an example of an execution environment determination unit). The image attribute assigning unit 202 assigns attribute information including information on computer resources to the container image. The execution environment selection method definition unit 204 acquires definition information in which the execution environment selection method and the attribute information are previously associated and defined when executing the container. The container execution environment determination unit 206 determines the execution environment of the container based on the attribute information assigned to the container image and the definition information acquired by the execution environment selection method definition unit 204.

[0062] 9 is a flowchart showing an example of a content execution environment determination process executed by the container execution system 1 and the server 200 according to the present embodiment. The image attribute assigning unit 202 assigns attribute information including information on computer resources to the container image (step S401). The execution environment selection method definition unit 204 acquires definition information in which the execution environment selection method for executing the container and the image attribute information are previously associated and defined (step S402). The container execution environment determination unit 206 then determines the execution environment of the container based on the image attribute information assigned to the container image and the definition information acquired by the execution environment selection method definition unit 204 (step S403). This allows the container execution system 1 and the server 200 to determine an appropriate container execution environment that matches the resources required for container execution.

[0063] 10 is a diagram showing a minimum configuration of a terminal 101 included in the container execution system 1 according to this embodiment. The terminal 101 (an example of a terminal device) includes a setting unit 110 and a transmission unit 111. The setting unit 110 sets attribute information to be assigned to a container image in response to a user operation, the attribute information including information related to computer resources. The transmission unit 111 transmits the attribute information set by the setting unit 110 in association with information indicating the container image.

[0064] FIG. 11 is a flowchart showing an example of a process for setting attribute information of a content image executed by the terminal 101 according to this embodiment. The setting unit 110 sets attribute information to be assigned to a container image in response to a user operation, the attribute information including information related to computer resources (step S501). Next, the transmission unit 111 transmits the attribute information set by the setting unit 110 in association with information indicating the container image (step S502). This allows the user to arbitrarily set the attribute information of the container image in the terminal 101 to appropriately determine the execution environment of the container.

[0065] 3 shows the operation of a process in which a user sets image attribute information and a method for selecting an execution environment, but is not limited to this. For example, the server 200 can automatically set the information by utilizing the feature that a container has a layered image structure. For example, the server 200 may automatically adopt the value of the top layer as the value of each image attribute information, and if there is no value in the top layer, automatically adopt the value of the layer one level below.

[0066] In addition, when determining the container execution environment in step S309 in Fig. 4, the server 200 selects and determines a container execution environment that is close to the attribute information of the container, but this is not limited to the above example. For example, the server 200 can set a priority for each image attribute information and select the closest execution environment with an attribute with a high priority. For example, the server 200 may determine the container execution environment in such a manner that the image attribute information "vCPU" has the highest priority and if there is an environment close to the value of the image attribute information "vCPU" in the execution environment, the environment is preferentially determined.

[0067] Moreover, the above-mentioned terminal 101, server 200, and container execution environment 400 each have a computer system therein. The above-mentioned process is stored in a computer-readable recording medium in the form of a program, and the above-mentioned process is performed by the computer reading and executing the program. The term "computer system" as used herein includes hardware such as an OS and peripheral devices. The term "computer system" also includes a WWW system equipped with a homepage providing environment (or display environment). The term "computer-readable recording medium" refers to a portable medium such as a magnetic disk, a magneto-optical disk, a ROM, a CD-ROM, a DVD-ROM, a semiconductor memory, and a storage device such as a hard disk built into a computer system. The term "computer-readable recording medium" also refers to a storage device that holds a program for a certain period of time, such as a volatile memory (RAM) inside a computer system that becomes a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. The term "computer-readable recording medium" also refers to a storage device that holds a program for a certain period of time, such as a volatile memory (RAM) inside a computer system that becomes a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line.

[0068] 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.

[0069] Next, a specific example of a computer will be described with reference to Fig. 12. Fig. 12 is a diagram showing an example of a hardware configuration of a computer, taking the terminal 101, the server 200, and the container execution environment 400 according to the present embodiment as examples. The computer 500 includes a CPU 501, a main memory 502, a storage 503, and an interface 504. For example, the operation of each of the above-mentioned processing units is stored in the storage 503 in the form of a program. The CPU 501 reads the program from the storage 503, expands it in the main memory 502, and executes the above-mentioned processing according to the program. The CPU 501 also secures a storage area corresponding to each of the above-mentioned accumulation units in the main memory 502 according to the program.

[0070] Examples of the storage 503 include a hard disk drive (HDD), a solid state drive (SSD), a magnetic disk, a magneto-optical disk, a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), and a semiconductor memory. The storage 503 may be an internal medium directly connected to the bus of the computer 500, or an external medium connected to the computer 500 via the interface 504 or a communication line. In addition, when the program is distributed to the computer 500 via a communication line, the computer 500 that receives the program may load the program in the main memory 502 and execute the above-mentioned process. In at least one embodiment, the storage 503 is a non-transitory tangible storage medium.

[0071] 1, the container execution environment 400 is provided outside the server 200, but may be included inside the server 200. In addition, one or both of the image registry 301 and the image definition file repository 302 may be included in the server 200.

[0072] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included.

[0073] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes.

[0074] (Appendix 1) An attribute assigning unit that assigns attribute information including information about computer resources to a container image; a definition information acquisition unit that acquires definition information that is defined in advance in association with a method for selecting an execution environment when executing a container and the attribute information; an execution environment determination unit that determines an execution environment of a container based on the attribute information assigned to the container image and the definition information acquired by the definition information acquisition unit; A container execution system comprising:

[0075] (Appendix 2) an execution environment acquisition unit that acquires and stores information about the execution environment from the container execution environment; Further equipped with The execution environment determination unit is determining an execution environment of the container based on the attribute information assigned to the container image, the definition information acquired by the definition information acquisition unit, and information on the execution environment acquired from the execution environment acquisition unit; 2. A container execution system as described in appendix 1.

[0076] (Appendix 3) an execution unit that instructs execution of the container based on the container execution environment determined by the execution environment determination unit; 3. The container execution system of claim 1 or 2, further comprising:

[0077] (Appendix 4) The attribute information further includes information regarding user requirements for using the container image. 4. A container execution system according to any one of claims 1 to 3.

[0078] (Appendix 5) The information about the computer resources includes information about a CPU (Central Processing Unit), memory, storage, or network; 5. A container execution system according to any one of claims 1 to 4.

[0079] (Appendix 6) The information regarding the user requirements includes information regarding an operating rate or a region; 5. A container execution system as described in appendix 4.

[0080] (Appendix 7) The attribute assignment unit is assigning the attribute information to the container image based on information set in the terminal device; 7. A container execution system according to any one of claims 1 to 6.

[0081] (Appendix 8) The definition information acquisition unit acquiring the definition information set in the terminal device and storing it in a storage unit; 8. A container execution system according to any one of claims 1 to 7.

[0082] (Appendix 9) A setting unit that sets attribute information to be assigned to a container image in response to a user operation, the attribute information including information regarding computer resources; a transmission unit that transmits the attribute information set by the setting unit and information indicating the container image in association with each other; A terminal device comprising:

[0083] (Appendix 10) An attribute assigning unit that assigns attribute information including information about computer resources to a container image; a definition information acquisition unit that acquires definition information that is defined in advance in association with a method for selecting an execution environment when executing a container and the attribute information; an execution environment determination unit that determines an execution environment of a container based on the attribute information assigned to the container image and the definition information acquired by the definition information acquisition unit; A server device comprising:

[0084] (Appendix 11) adding attribute information to the container image, the attribute information including information about computer resources; acquiring definition information in which a method for selecting an execution environment when executing a container and the attribute information are previously defined in association with each other; determining an execution environment of a container based on the attribute information assigned to the container image and the acquired definition information; A method for determining a container execution environment, comprising:

[0085] (Appendix 12) On the computer, adding attribute information to the container image, the attribute information including information about computer resources; acquiring definition information in which a method for selecting an execution environment when executing a container and the attribute information are previously defined in association with each other; determining an execution environment of a container based on the attribute information and the definition information assigned to the container image; A program for executing. [Explanation of symbols]

[0086] 1. Container Execution System 100 clients 101 Terminal 110 Setting section 111 Transmitter 200 Servers 201 Operation reception section 202 Image attribute assignment unit 203 Image attribute acquisition unit 204 Execution environment selection method definition section 205 Execution environment definition section 206 Container Execution Environment Determination Unit 207 Container Execution Unit 301 Image Registry 302 Image definition file repository 400 Container Execution Environment 500 Computers 501 CPU 502 Main memory 503 Storage 504 Interface

Claims

1. An attribute assigning unit that assigns attribute information including information about computer resources to a container image; a definition information acquisition unit that acquires definition information that is defined in advance in association with a method for selecting an execution environment when executing a container and the attribute information; an execution environment determination unit that determines an execution environment of a container based on the attribute information assigned to the container image and the definition information acquired by the definition information acquisition unit; Equipped with The attribute information includes at least network consumption as information regarding computer resources. Container execution system.

2. an execution environment acquisition unit that acquires and stores information about the execution environment from the container execution environment; Further equipped with The execution environment determination unit is determining an execution environment of the container based on the attribute information assigned to the container image, the definition information acquired by the definition information acquisition unit, and information on the execution environment acquired from the execution environment acquisition unit; The container execution system according to claim 1 .

3. an execution unit that instructs execution of the container based on the container execution environment determined by the execution environment determination unit; The container execution system according to claim 1 or 2, further comprising:

4. The attribute information further includes at least an uptime as information regarding a user requirement for using the container image. A container execution system according to any one of claims 1 to 3.

5. The attribute assignment unit is assigning the attribute information to the container image based on information set in the terminal device; A container execution system according to any one of claims 1 to 4.

6. The definition information acquisition unit acquiring the definition information set in the terminal device and storing it in a storage unit; A container execution system according to any one of claims 1 to 5.

7. A setting unit that sets attribute information to be assigned to a container image in response to a user operation, the attribute information including information regarding computer resources; a transmission unit that transmits the attribute information set by the setting unit and information indicating the container image in association with each other; Equipped with The attribute information includes at least network consumption as information regarding computer resources. Terminal device.

8. An attribute assigning unit that assigns attribute information including information about computer resources to a container image; a definition information acquisition unit that acquires definition information that is defined in advance in association with a method for selecting an execution environment when executing a container and the attribute information; an execution environment determination unit that determines an execution environment of a container based on the attribute information assigned to the container image and the definition information acquired by the definition information acquisition unit; Equipped with The attribute information includes at least network consumption as information regarding computer resources. Server device.

9. A method for determining a container execution environment in a container execution system, comprising: An attribute assigning unit assigns attribute information including information about computer resources to a container image; a definition information acquisition unit acquiring definition information in which a method for selecting an execution environment when executing a container and the attribute information are previously defined in association with each other; An execution environment determination unit determines an execution environment of a container based on the attribute information assigned to the container image and the acquired definition information; Including, The attribute information includes at least network consumption as information regarding computer resources. How to determine the container execution environment.

10. On the computer, adding attribute information to the container image, the attribute information including information about computer resources; acquiring definition information in which a method for selecting an execution environment when executing a container and the attribute information are previously defined in association with each other; determining an execution environment of a container based on the attribute information and the definition information assigned to the container image; Run the command, The attribute information includes at least network consumption as information regarding computer resources. program.

Citation Information

Patent Citations

  • Method and apparatus for providing traffic-aware slot placement

    JP2015534663A

  • Data processing system and data analysis / processing method

    JP2019106031A

  • Information processing system, container management device and container management method

    JP2019117485A

  • Managing a shared pool of configurable computing resources which has a set of containers

    US20170063722A1

  • Resource configuration system, resource configuration method and resource configuration program

    WO2017029826A1