Application arrangement method and system
AssigneeHitachi, Ltd.
InventorsWataru Ono, Keisuke Matsumoto
Life of this patent
Estimating the term…
Abstract
A volume driver is provided in each server that executes a container engine. A first volume driver embeds, in a container image of a container in a first server, a volume ID (which is the ID of a volume, and is according to information acquired from a storage system with respect to the volume) of the volume associated with the container. A second volume driver searches, in the storage system, for a volume to be associated with the container based on the container image, by using the volume ID embedded in the container image outputted from the first server and inputted to the second server.
Claims12
An application arrangement system comprising:
- one or more volume drivers that are executed in one or more servers that execute one or more container engines, wherein
- a first volume that is provided from a storage system including one or more storage devices and that is used in execution of an application, is associated with a first container that executes the application on a first container engine which is a container engine in a first server,
- a first volume driver embeds a volume ID of the first volume in a container image created by imaging of the first container, and the volume ID is the ID of a volume and an ID according to information acquired from the storage system with respect to the volume,
- a second volume driver searches, in the storage system, for a volume to be associated with a target second container among one or more second containers, by using the volume ID embedded in the container image outputted from the first server and inputted into the second server,
- the second server is the first server or another server among the one or more servers separated from the first server,
- the first volume driver is a volume driver in the first server, among the one or more volume drivers,
- the second volume driver is a volume driver in the second server, and is the first volume driver or another volume driver separated from the first volume driver, among the one or more volume drivers,
- each of the one or more second containers is a container that executes the application on a second container engine,
- the second container engine is the first container engine or another container engine separated from the first container engine, among the one or more container engines, and
- an arrangement manager that is executed in a management server coupled to the one or more servers, wherein
- the arrangement manger
- detects a failure in the application by monitoring the first container,
- transmits, in response to detection of the failure, an image creation command for imaging the first container for the application in which the failure has occurred, to the first container engine such that the container image is created by the first container engine in response to the image creation command,
- receives a notification from a container registry having registered therein the container image outputted from the first server, and
- transmits, in response to the notification, a command for inputting the container image, to the second container engine such that the container image is inputted from the container registry to the second server by the second container engine, in response to the input command.
An application arrangement method comprising:
- embedding, by a first volume driver, a volume ID of a first volume in a container image created by imaging of a first container, when the first volume is associated with a first container executing an application on a first container engine, the first container engine being a container engine in a first server, the first volume being provided from a storage system including one or more storage devices and being used in execution of the application, and the volume ID being an ID of the volume and being according to information acquired from the storage system with respect to the volume;
- and
- searching, by a second volume driver, in the storage system, for a volume associated with a target second container with use of the volume ID embedded in the container image outputted from the first server and inputted to the second server, wherein
- the second server is the first server or another server separated from the first server, among one or more servers,
- the first volume driver is a volume driver in the first server among one or more volume drivers,
- the second volume driver is a volume driver in the second server among the one or more volume drivers, and is the first volume driver or another volume driver separated from the first volume driver,
- each of the one or more second containers executes the application on the second container engine, and
- the second container engine is the first container engine or another container engine separated from the first container engine, among one or more container engines,
- wherein an arrangement manager that is executed in a management server coupled to the one or more servers,
- detects a failure in the application by monitoring the first container,
- transmits, in response to detection of the failure, an image creation command for imaging the first container for the application in which the failure has occurred, to the first container engine such that the container image is created by the first container engine in response to the image creation command,
- receives a notification from a container registry having registered therein the container image outputted from the first server, and
- transmits, in response to the notification, a command for inputting the container image, to the second container engine such that the container image is inputted from the container registry to the second server by the second container engine, in response to the input command.
A non-transitory computer readable storage medium with an executable program stored thereon, wherein the program instructs a computer that executes a container engine:
- to embed a volume ID of a volume in a container image created by imaging of a container, when the volume is associated with a container executing an application on the container engine, the container engine being in the computer, the volume being provided from a storage system including one or more storage devices and being used in execution of the application, and the volume ID being an ID of the volume and being according to information acquired from the storage system with respect to the volume;
- and
- to, when the container image is inputted to the computer, search, in the storage system, for a volume to be associated with the container of the computer with use of the volume ID embedded in the inputted container image, and
- wherein the program further instructs the computer to execute an arrangement manager that is executed in a management server coupled to one or more servers,
- detects a failure in the application by monitoring a first container,
- transmits, in response to detection of the failure, an image creation command for imaging the first container for the application in which the failure has occurred, to a first container engine such that the container image is created by the first container engine in response to the image creation command,
- receives a notification from a container registry having registered therein the container image outputted from a first server, and
- transmits, in response to the notification, a command for inputting the container image, to second container engine such that the container image is inputted from the container registry to a second server by the second container engine, in response to the input command.
Dependencies are inferred from the claim text.