JP5450549B2 - Information processing system, information processing system control method, and program - Google Patents

Information processing system, information processing system control method, and program Download PDF

Info

Publication number
JP5450549B2
JP5450549B2 JP2011208502A JP2011208502A JP5450549B2 JP 5450549 B2 JP5450549 B2 JP 5450549B2 JP 2011208502 A JP2011208502 A JP 2011208502A JP 2011208502 A JP2011208502 A JP 2011208502A JP 5450549 B2 JP5450549 B2 JP 5450549B2
Authority
JP
Japan
Prior art keywords
virtual machine
resource
request
setting
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011208502A
Other languages
Japanese (ja)
Other versions
JP2013069194A (en
Inventor
誠 稲垣
佐藤  賢一
則宏 三浦
洋徳 大谷
基貴 湯原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2011208502A priority Critical patent/JP5450549B2/en
Publication of JP2013069194A publication Critical patent/JP2013069194A/en
Application granted granted Critical
Publication of JP5450549B2 publication Critical patent/JP5450549B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

本発明は、仮想マシンを構築する情報処理システム、情報処理システムの制御方法、および、プログラムに関する。   The present invention relates to an information processing system for constructing a virtual machine, a control method for the information processing system, and a program.

ユーザからの要求に応じた処理を行い、処理結果を返す仮想マシンをネットワーク上のリソースを用いて構築するクラウド技術を適用した情報処理システムの利用が拡大している。このような情報処理システムにおけるリソースは、CPU(Central Processing Unit)、メモリ、ストレージ、IPアドレス、VLANID(Virtual Local Area Network ID)などの下位レイヤリソースから、OS(Operating System)、ミドルウェア、アプリケーションなどの上位レイヤリソースにまで至る。   The use of an information processing system to which cloud technology for constructing a virtual machine that performs processing according to a request from a user and returns a processing result by using resources on a network is expanding. Resources in such an information processing system include a lower layer resource such as CPU (Central Processing Unit), memory, storage, IP address, VLANID (Virtual Local Area Network ID), OS (Operating System), middleware, application, etc. Up to upper layer resources.

上述した情報処理システムにおいては、仮想マシン上で上位レイヤリソースであるOS、ミドルウェア、アプリケーションなどを動作させ、要求に応じた処理を行うために、その仮想マシン、あるいは、他の仮想マシンのIPアドレスなどの下位レイヤリソースの情報を上位レイヤリソースに設定する必要があることがある。   In the information processing system described above, an upper layer resource OS, middleware, application, or the like is operated on the virtual machine, and the IP address of the virtual machine or another virtual machine is used to perform processing according to the request. It may be necessary to set information of lower layer resources such as upper layer resources.

上位レイヤリソースに設定を行う方法としては、システム管理者が上位レイヤリソースにアクセスし、手動で設定を行う方法がある。しかし、この方法では、設定に時間がかかり、迅速なサービスの提供ができないという問題がある。そのため、自動的に上位レイヤリソースに設定を行う方法が求められている。   As a method for setting the upper layer resource, there is a method in which the system administrator accesses the upper layer resource and manually sets it. However, this method has a problem that it takes time to set up and cannot provide a quick service. Therefore, there is a demand for a method for automatically setting upper layer resources.

特許文献1(特開2005−44201号公報)には、ネットワーク装置とホームゲートウェイサーバとを備えるシステムにおいて、ホームゲートウェイサーバが、ネットワーク装置に関する情報を予め把握した上で、ネットワーク装置がネットワーク接続するためのリソースの設定を自動的に行う方法が開示されている。   Patent Document 1 (Japanese Patent Application Laid-Open No. 2005-44201) discloses that in a system including a network device and a home gateway server, the network device connects to the network after the home gateway server grasps information about the network device in advance. A method for automatically setting the resource is disclosed.

また、非特許文献1には、リソースの設定に関する情報を有するサーバとリソースに設定を行うクライアントとがネットワークを介して接続され、クライアントがサーバからリソースの設定に関する情報を取得して、設定を行う方法が開示されている。   Further, in Non-Patent Document 1, a server having information on resource settings and a client for setting resources are connected via a network, and the client acquires information on resource settings from the server and performs settings. A method is disclosed.

特開2005−44201号公報Japanese Patent Laid-Open No. 2005-44201

“連載 オープンソースな自動管理ツール Puppet” [平成23年8月22日検索] インターネット<http://gihyo.jp/admin/serial/01/puppet>“Serial Series Open Source Automatic Management Tool Puppet” [Search August 22, 2011] Internet <http://gihyo.jp/admin/serial/01/puppet>

近年、クラウド技術を適用した情報処理システムにおいて、サービスの多様化を図るために、下位レイヤリソースおよび上位レイヤリソースを異なる事業者が提供する水平分業が進展している。このような水平分業の下では、簡易に仮想マシンを構築し、動作させるには、下位レイヤリソースを提供する下位レイヤ事業者と上位レイヤリソースを提供する上位レイヤ事業者との関係が、互いにそれぞれが管理するリソースの詳細を知らない、いわゆる疎結合であることが望ましい。   In recent years, in an information processing system to which cloud technology is applied, horizontal division of labor in which different operators provide lower layer resources and upper layer resources has progressed in order to diversify services. Under such horizontal division of labor, in order to easily construct and operate a virtual machine, the relationship between a lower layer provider that provides lower layer resources and an upper layer provider that provides upper layer resources is mutually different. It is desirable to be so-called loosely coupled, which does not know the details of the resources managed by.

特許文献1に開示の方法を上述した情報処理システムに適用し、下位レイヤ事業者側で上位レイヤリソースの設定を行おうとする場合、下位レイヤ事業者側において上位レイヤリソースに関する情報の詳細を把握した上で設定を行うことになるため、下位レイヤ事業者と上位レイヤ事業者との関係が密結合となり、簡易に仮想マシンを構築し、動作させることができない。   When the method disclosed in Patent Document 1 is applied to the information processing system described above, and the upper layer resource is to be set on the lower layer carrier side, the lower layer carrier side has grasped details of information on the upper layer resource. Since the above settings are made, the relationship between the lower layer operator and the upper layer operator is tightly coupled, and a virtual machine cannot be easily constructed and operated.

また、非特許文献1に開示の方法は、クライアントとサーバとがネットワーク接続された上でリソースの設定を行うものであり、ネットワーク接続のためのIPアドレスなどは自動で設定することができない。   In addition, the method disclosed in Non-Patent Document 1 sets resources after the client and server are connected to the network, and the IP address for network connection cannot be set automatically.

本発明の目的は、簡易に仮想マシンを構築し、動作させることができる情報処理システム、情報処理システムの制御方法、および、プログラムを提供することにある。   An object of the present invention is to provide an information processing system, a control method for the information processing system, and a program capable of easily constructing and operating a virtual machine.

上記目的を達成するために本発明の情報処理システムは、
要求に応じた処理を行う仮想マシンをネットワーク上のリソースを用いて構築する管理装置を備えた情報処理システムであって、
前記管理装置は、
前記要求に応じて前記リソースを割り当てて、前記仮想マシンを構築する実行部と、
前記実行部により構築された前記仮想マシンに割り当てられた前記リソースを示すリソース情報を生成して出力するリソース情報管理部と、を有し、
前記仮想マシンは、
前記リソース情報管理部から出力された前記リソース情報に基づき、前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容を示す設定ファイルを生成し、該生成した設定ファイルに応じた設定を前記仮想マシンに行って前記要求に応じた処理を行う。
In order to achieve the above object, the information processing system of the present invention provides:
An information processing system including a management device that constructs a virtual machine that performs processing according to a request using resources on a network,
The management device
An execution unit that allocates the resource in response to the request and constructs the virtual machine;
A resource information management unit that generates and outputs resource information indicating the resource allocated to the virtual machine constructed by the execution unit;
The virtual machine is
Based on the resource information output from the resource information management unit, a setting file indicating the setting contents for the virtual machine, which is necessary for performing the processing according to the request, is generated, and according to the generated setting file The setting is performed on the virtual machine, and processing corresponding to the request is performed.

上記目的を達成するために本発明の情報処理システムの制御方法は、
要求に応じた処理を行う仮想マシンをネットワーク上のリソースを用いて構築する情報処理システムの制御方法であって、
前記要求に応じて前記リソースを割り当てて、前記仮想マシンを構築し、
前記構築した仮想マシンに割り当てた前記リソースを示すリソース情報を生成し、
前記リソース情報に基づき、前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容を示す設定ファイルを生成し、該生成した設定ファイルに応じた設定を前記仮想マシンに行って前記要求に応じた処理を行う。
In order to achieve the above object, a method for controlling an information processing system of the present invention includes:
An information processing system control method for constructing a virtual machine that performs processing according to a request using resources on a network,
Allocating the resources in response to the request, constructing the virtual machine,
Generate resource information indicating the resource allocated to the constructed virtual machine,
Based on the resource information, a setting file indicating the setting contents for the virtual machine necessary for performing the processing according to the request is generated, and setting according to the generated setting file is performed on the virtual machine. Processing according to the request is performed.

上記目的を達成するために本発明のプログラムは、
要求に応じた処理を行う仮想マシンをネットワーク上のリソースを用いて構築するコンピュータに、
前記要求に応じて前記リソースを割り当てて、前記仮想マシンを構築する処理と、
前記構築した仮想マシンに割り当てた前記リソースを示すリソース情報を生成する処理と、
前記リソース情報に基づき、前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容を示す設定ファイルを生成し、該生成した設定ファイルに応じた設定を前記仮想マシンに行って前記要求に応じた処理を行う処理と、を実行させる。
In order to achieve the above object, the program of the present invention
To a computer that builds a virtual machine that performs processing according to the request using resources on the network,
A process of allocating the resource in response to the request and constructing the virtual machine;
Processing to generate resource information indicating the resource allocated to the constructed virtual machine;
Based on the resource information, a setting file indicating the setting contents for the virtual machine necessary for performing the processing according to the request is generated, and setting according to the generated setting file is performed on the virtual machine. And a process for performing a process in response to the request.

本発明によれば、簡易に仮想マシンを構築し、動作させることができる。また、下位レイヤ事業者と上位レイヤ事業者との関係が疎結合となることが望ましいクラウド技術を適用した情報処理システムなどにおいても、仮想マシンにおいて自動的に上位レイヤリソースに設定が行われるため、下位レイヤ事業者と上位レイヤ事業者との関係を疎結合とすることができる。   According to the present invention, a virtual machine can be easily constructed and operated. In addition, even in information processing systems that apply cloud technology, where the relationship between lower layer operators and upper layer operators is preferably loosely coupled, virtual machine is automatically set as upper layer resources. The relationship between the lower layer operator and the upper layer operator can be loosely coupled.

本発明の一実施形態の情報処理システムの構成を示す図である。It is a figure which shows the structure of the information processing system of one Embodiment of this invention. 図1に示す情報処理システムにおける設定ファイル生成時の動作を示すシーケンス図である。It is a sequence diagram which shows the operation | movement at the time of the setting file generation in the information processing system shown in FIG. 図1に示す設定ファイル生成部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the setting file production | generation part shown in FIG. 下位レイヤ情報の一例を示す図である。It is a figure which shows an example of lower layer information. 上位レイヤリソース識別情報の一例を示す図である。It is a figure which shows an example of upper layer resource identification information. 上位レイヤ設定ターゲット情報の一例を示す図である。It is a figure which shows an example of upper layer setting target information. 上位レイヤリソース設定テンプレートの一例を示す図である。It is a figure which shows an example of an upper layer resource setting template. 本発明の一実施形態における設定ファイルの一例を示す図である。It is a figure which shows an example of the setting file in one Embodiment of this invention.

以下に、本発明を実施するための形態について図面を参照して説明する。   EMBODIMENT OF THE INVENTION Below, the form for implementing this invention is demonstrated with reference to drawings.

図1は、本発明の一実施形態の情報処理システム1の構成を示す図である。   FIG. 1 is a diagram showing a configuration of an information processing system 1 according to an embodiment of the present invention.

図1に示す情報処理システム1は、下位レイヤ管理装置10と仮想マシン20とを有する。   An information processing system 1 illustrated in FIG. 1 includes a lower layer management apparatus 10 and a virtual machine 20.

下位レイヤ管理装置10は、ユーザからの要求に応じて、ネットワーク上の物理マシンのCPU、メモリ、ストレージ、また、IPアドレス、VLANIDなどの下位レイヤリソースを割り当てて仮想マシン20を構築する。なお、図1においては、仮想マシン20を1つだけ記載しているが、通常は、複数の仮想マシン20が構築される。   The lower layer management apparatus 10 constructs the virtual machine 20 by allocating lower layer resources such as CPU, memory, storage, IP address, VLANID, etc. of the physical machine on the network in response to a request from the user. In FIG. 1, only one virtual machine 20 is illustrated, but normally a plurality of virtual machines 20 are constructed.

仮想マシン20は、下位レイヤ管理装置10により割り当てられた下位レイヤリソースを用いて、OS、ミドルウェア、アプリケーションなどの上位レイヤリソースを動作させ、要求に応じた処理を行う。   The virtual machine 20 operates upper layer resources such as OS, middleware, and application using the lower layer resources allocated by the lower layer management apparatus 10 and performs processing according to the request.

次に、下位レイヤ管理装置10の構成について説明する。   Next, the configuration of the lower layer management apparatus 10 will be described.

下位レイヤ管理装置10は、仮想マシン実行部11と、下位レイヤ情報管理部12と、下位レイヤ情報送信部13と、を有する。   The lower layer management apparatus 10 includes a virtual machine execution unit 11, a lower layer information management unit 12, and a lower layer information transmission unit 13.

仮想マシン実行部11は、いわゆる仮想マシンモニタ、ハイパーバイザなどであり、ユーザからの要求に応じて、下位レイヤリソースを割り当てて仮想マシン20を構築する。   The virtual machine execution unit 11 is a so-called virtual machine monitor, hypervisor, or the like, and constructs the virtual machine 20 by allocating lower layer resources according to a request from the user.

下位レイヤ情報管理部12は、仮想マシン実行部11により各仮想マシン20に割り当てられた下位レイヤリソースを示す下位レイヤ情報、仮想マシンを識別する仮想マシン識別情報、および、その仮想マシンがユーザからの要求に応じた処理を行うのに必要な上位レイヤリソースを識別する上位レイヤリソース識別情報を生成し、下位レイヤ情報送信部13に出力する。   The lower layer information management unit 12 includes lower layer information indicating lower layer resources allocated to each virtual machine 20 by the virtual machine execution unit 11, virtual machine identification information for identifying the virtual machine, and the virtual machine from the user. Upper layer resource identification information for identifying upper layer resources necessary for performing processing according to the request is generated and output to the lower layer information transmission unit 13.

下位レイヤ情報送信部13は、下位レイヤ情報管理部12から出力された仮想マシン識別情報に示される仮想マシン20に、下位レイヤ情報、および、その仮想マシン20に対応する上位レイヤリソース識別情報を送信する。   The lower layer information transmission unit 13 transmits the lower layer information and the upper layer resource identification information corresponding to the virtual machine 20 to the virtual machine 20 indicated by the virtual machine identification information output from the lower layer information management unit 12. To do.

次に、仮想マシン20の構成について説明する。   Next, the configuration of the virtual machine 20 will be described.

仮想マシン20は、下位レイヤ情報受信部21と、記憶部22と、設定ファイル生成部23と、スクリプト実行部24と、を有する。なお、説明の便宜上、仮想マシン20が上述した各部を有するものとして説明するが、各部の動作は、CPU、メモリ、ストレージなどを用いて、仮想マシン20のOSのスタートアッププログラムとして、「init.d」などのディレクトリに格納されるプログラムの処理が行われることで実現される。   The virtual machine 20 includes a lower layer information receiving unit 21, a storage unit 22, a setting file generation unit 23, and a script execution unit 24. For convenience of explanation, the virtual machine 20 will be described as having the above-described units. However, the operation of each unit may be performed using “init.d” as a startup program for the OS of the virtual machine 20 using a CPU, memory, storage, and the like. It is realized by performing processing of a program stored in a directory such as “”.

下位レイヤ情報受信部21は、下位レイヤ管理装置10から送信されてきた下位レイヤ情報および上位レイヤリソース識別情報を受信し、設定ファイル生成部23に出力する。   The lower layer information reception unit 21 receives the lower layer information and the upper layer resource identification information transmitted from the lower layer management apparatus 10 and outputs them to the setting file generation unit 23.

記憶部22は、各上位レイヤリソースを動作させ、要求に応じた処理を行うために必要となる設定内容のうち、各仮想マシン20への下位レイヤリソースの割り当てなどに応じて変化する部分が所定の文字列で記述された上位レイヤリソース設定テンプレートを格納する。以下では、所定の文字列を置換文字列と称する。なお、上位レイヤリソース設定テンプレートは、予め上位レイヤ事業者により作成され、記憶部22に格納される。   The storage unit 22 has predetermined portions that change according to the allocation of lower layer resources to each virtual machine 20 among the setting contents necessary to operate each upper layer resource and perform processing according to the request. The upper layer resource setting template described in the character string is stored. Hereinafter, the predetermined character string is referred to as a replacement character string. The upper layer resource setting template is created in advance by the upper layer operator and stored in the storage unit 22.

また、記憶部22は、上位レイヤリソース毎の上位レイヤリソース設定テンプレートの格納位置、その上位レイヤリソースを動作させ、要求に応じた処理を行うために必要となる、仮想マシン20の上位レイヤリソースに対する設定内容を示す設定ファイルの配置先、および、その設定ファイルへのアクセスの可否を示すパーミッション設定を示す上位レイヤ設定ターゲット情報を格納する。   In addition, the storage unit 22 stores the upper layer resource setting template for each upper layer resource, operates the upper layer resource, and performs processing corresponding to the request for the upper layer resource of the virtual machine 20. The storage location of the setting file indicating the setting contents and the upper layer setting target information indicating the permission setting indicating whether or not the setting file can be accessed are stored.

設定ファイル生成部23は、上位レイヤ設定ターゲット情報および上位レイヤリソース設定テンプレートと、下位レイヤ情報受信部21から出力された下位レイヤ情報および上位レイヤリソース識別情報と、を用いて設定ファイルを生成する。   The setting file generation unit 23 generates a setting file using the upper layer setting target information and the upper layer resource setting template and the lower layer information and the upper layer resource identification information output from the lower layer information receiving unit 21.

スクリプト実行部24は、仮想マシン20上で動作するOSのスタートアッププログラムにより参照可能な位置に格納された起動用スクリプトを取得し、その起動用スクリプトに従い、設定ファイル生成部23により生成された設定ファイルに応じた設定を仮想マシン20(の上位レイヤリソース)に対して行って、上位レイヤリソースを動作させ、要求に応じた処理を行わせる。なお、起動用スクリプトは、予め上位レイヤ事業者により作成され、所定の位置に格納される。   The script execution unit 24 acquires a startup script stored at a location that can be referred to by the startup program of the OS running on the virtual machine 20, and the configuration file generated by the configuration file generation unit 23 according to the startup script Is set for the virtual machine 20 (upper layer resource thereof), the upper layer resource is operated, and processing according to the request is performed. Note that the startup script is created in advance by an upper layer operator and stored in a predetermined position.

次に、本実施形態の情報処理システム1の動作について説明する。   Next, the operation of the information processing system 1 of this embodiment will be described.

図2は、本実施形態の情報処理システム1における設定ファイル生成時の動作を示すシーケンス図である。   FIG. 2 is a sequence diagram showing an operation at the time of setting file generation in the information processing system 1 of the present embodiment.

下位レイヤ情報管理部12は、各仮想マシン20に割り当てられたIPアドレスなどの下位レイヤリソースを示す下位レイヤ情報を生成する(ステップS101)。また、下位レイヤ情報管理部12は、仮想マシンを識別する仮想マシン識別情報と、その仮想マシンがユーザからの要求に応じた処理を行うのに必要な上位レイヤリソースを識別する上位レイヤリソース識別情報とを生成する。下位レイヤ情報管理部12は、生成した下位レイヤ情報、仮想マシン識別情報および上位レイヤリソース識別情報を下位レイヤ情報送信部13に出力する(ステップS102)。   The lower layer information management unit 12 generates lower layer information indicating lower layer resources such as an IP address assigned to each virtual machine 20 (step S101). The lower layer information management unit 12 also includes virtual machine identification information for identifying a virtual machine, and upper layer resource identification information for identifying an upper layer resource necessary for the virtual machine to perform processing according to a request from the user. And generate The lower layer information management unit 12 outputs the generated lower layer information, virtual machine identification information, and upper layer resource identification information to the lower layer information transmission unit 13 (step S102).

下位レイヤ情報送信部13は、下位レイヤ情報と、仮想マシン識別情報に示される仮想マシン20に対応する上位レイヤリソース識別情報と、を埋め込んだISOイメージを作成し(ステップS103)、その仮想マシン20に送信する(ステップS104)。なお、ISOイメージとは、例えば、CD−ROMなどの記録媒体にデータを記録する際に用いられる形式のデータである。   The lower layer information transmission unit 13 creates an ISO image in which the lower layer information and the upper layer resource identification information corresponding to the virtual machine 20 indicated by the virtual machine identification information are embedded (step S103). (Step S104). Note that the ISO image is data in a format used when recording data on a recording medium such as a CD-ROM.

ISOイメージを送信された仮想マシン20においては、下位レイヤ情報受信部21が、ISOイメージを受信し (ステップS105)、ISOイメージに埋め込まれた下位レイヤ情報および上位レイヤリソース識別情報を読み込み、設定ファイル生成部23に出力する(ステップS106)。なお、ISOイメージの作成およびISOイメージに埋め込まれた情報の読み込みは、当業者にとってよく知られており、また、本発明とは直接関係しないので、詳細な説明を省略する。   In the virtual machine 20 to which the ISO image has been transmitted, the lower layer information receiving unit 21 receives the ISO image (step S105), reads the lower layer information and the upper layer resource identification information embedded in the ISO image, and sets the configuration file. It outputs to the production | generation part 23 (step S106). Note that the creation of an ISO image and the reading of information embedded in the ISO image are well known to those skilled in the art and are not directly related to the present invention, and thus detailed description thereof is omitted.

設定ファイル生成部23は、下位レイヤ情報受信部21から下位レイヤ情報および上位レイヤリソース識別情報が出力されると、記憶部22に格納されている上位レイヤ設定ターゲット情報および上位レイヤリソース設定テンプレートを読み出し(ステップS107)、設定ファイルを生成する(ステップS108)。   When the lower layer information and the upper layer resource identification information are output from the lower layer information receiving unit 21, the setting file generation unit 23 reads the upper layer setting target information and the upper layer resource setting template stored in the storage unit 22. (Step S107), a setting file is generated (Step S108).

設定ファイル生成時の設定ファイル生成部23の動作について、図3に示すフローチャートを参照して説明する。   The operation of the setting file generation unit 23 when generating the setting file will be described with reference to the flowchart shown in FIG.

図3においては、ある仮想マシンで動作するミドルウェアであるApacheに、ミドルウェアであるTomcatを動作させる仮想マシンに割り当てられたIPアドレスを設定する場合を例として説明する。   In FIG. 3, a case where an IP address assigned to a virtual machine that operates Tomcat, which is middleware, is set as an example in Apache, which is middleware that operates in a certain virtual machine, will be described.

上述したように、下位レイヤ情報および上位レイヤリソース識別情報が埋め込まれたISOイメージが下位レイヤ管理装置10から送信される。   As described above, the ISO image in which the lower layer information and the upper layer resource identification information are embedded is transmitted from the lower layer management apparatus 10.

図4は、下位レイヤ情報の一例を示す図である。また、図5は、上位レイヤリソース識別情報の一例を示す図である。   FIG. 4 is a diagram illustrating an example of lower layer information. FIG. 5 is a diagram illustrating an example of higher layer resource identification information.

図4においては、Tomcatを動作させる仮想マシンに割り当てられたIPアドレスが、「192.168.10.3」であることを示している。また、図5においては、処理を行うのに必要な上位レイヤリソースが、ApacheおよびTomcatであることを示している。   FIG. 4 shows that the IP address assigned to the virtual machine that operates Tomcat is “192.168.10.3”. Further, FIG. 5 shows that upper layer resources necessary for processing are Apache and Tomcat.

設定ファイル生成部23は、ISOイメージを受信した下位レイヤ情報受信部21から、そのISOファイルに埋め込まれた下位レイヤ情報および上位レイヤリソース識別情報を取得する(ステップS201)。   The setting file generation unit 23 acquires lower layer information and upper layer resource identification information embedded in the ISO file from the lower layer information reception unit 21 that has received the ISO image (step S201).

次に、設定ファイル生成部23は、記憶部22に格納されている上位レイヤ設定ターゲット情報を読み出す。   Next, the setting file generation unit 23 reads the upper layer setting target information stored in the storage unit 22.

図6は、上位レイヤ設定ターゲット情報の一例を示す図である。   FIG. 6 is a diagram illustrating an example of higher layer setting target information.

図6に示すように、上位レイヤ設定ターゲット情報は、上位レイヤリソースの識別情報(Apache,Tomcat)に対応して、上位レイヤリソース設定テンプレートの格納位置、設定ファイルの配置先、および、設定ファイルのパーミッション設定を示す。   As shown in FIG. 6, the upper layer setting target information corresponds to the upper layer resource identification information (Apache, Tomcat), the storage location of the upper layer resource setting template, the location of the setting file, and the setting file Indicates permission settings.

設定ファイル生成部23は、上位レイヤ設定ターゲット情報から、上位レイヤリソース設定テンプレートの格納位置、設定ファイルの配置先、および、設定ファイルのパーミッション設定を取得する(ステップS202)。   The setting file generation unit 23 acquires the storage location of the upper layer resource setting template, the location of the setting file, and the permission setting of the setting file from the upper layer setting target information (step S202).

次に、設定ファイル生成部23は、上位レイヤリソース識別情報に示される上位レイヤリソースに対応する上位レイヤリソース設定テンプレートを、上位レイヤ設定ターゲット情報から読み出した格納位置にアクセスして取得する(ステップS203)。   Next, the configuration file generation unit 23 acquires the upper layer resource configuration template corresponding to the upper layer resource indicated by the upper layer resource identification information by accessing the storage location read from the upper layer configuration target information (Step S203). ).

図7は、上位レイヤリソース設定テンプレートの一例を示す図である。   FIG. 7 is a diagram illustrating an example of a higher layer resource setting template.

図7に示すように、上位レイヤリソース設定テンプレートにおいては、Apacheを動作させるための設定として、データの入出力を行うポートのポート番号、処理結果などの提供を受けるホスト(Tomcatを動作させる仮想マシン)のIPアドレスなどが記述されている。ここで、Tomcatを動作させる仮想マシンのIPアドレスは、下位レイヤリソースの割り当て環境などに応じて変わる。そのため、Tomcatを動作させる仮想マシンのIPアドレスには、置換文字列[$tomcat_ip_address]が記述されている。このように、上位レイヤリソース設定テンプレートにおいては、上位レイヤリソースの設定のうち、環境に応じて変わる部分が置換文字列で記述されている。   As shown in FIG. 7, in the upper layer resource setting template, as a setting for operating Apache, a host that receives provision of a port number of a data input / output port, a processing result, and the like (virtual machine that operates Tomcat) ) IP address and the like are described. Here, the IP address of the virtual machine that operates Tomcat varies depending on the environment for allocating lower layer resources. Therefore, the replacement character string [$ tomcat_ip_address] is described in the IP address of the virtual machine that operates Tomcat. As described above, in the upper layer resource setting template, the portion that changes depending on the environment in the setting of the upper layer resource is described by the replacement character string.

次に、設定ファイル生成部23は、上位レイヤリソース設定テンプレートに記述されている置換文字列[$tomcat_ip_address]に対応する下位レイヤ情報を抽出する。下位レイヤ情報においては、「tomcat_ip_address=192.168.10.3」と記述されているため、設定ファイル生成部23は、IPアドレス「192.168.10.3」を抽出する(ステップS204)。   Next, the setting file generation unit 23 extracts lower layer information corresponding to the replacement character string [$ tomcat_ip_address] described in the upper layer resource setting template. Since the lower layer information describes “tomcat_ip_address = 192.168.10.3”, the setting file generation unit 23 extracts the IP address “192.168.10.3” (step S204).

次に、設定ファイル生成部23は、上位レイヤリソース設定テンプレートの置換文字列[$tomcat_ip_address]を、ステップS204で抽出したIPアドレス「192.168.10.3」に置換して、設定ファイルを生成する(ステップS205)。   Next, the configuration file generation unit 23 generates a configuration file by replacing the replacement character string [$ tomcat_ip_address] of the upper layer resource configuration template with the IP address “192.168.10.3” extracted in step S204. (Step S205).

図8は、設定ファイルの一例を示す図である。   FIG. 8 is a diagram illustrating an example of a setting file.

図8に示すように、上位レイヤリソース設定テンプレートにおいては置換文字列が記述されていた箇所に、IPアドレス「192.168.10.3」が記述される。なお、置換文字列の置換は、例えば、プログラミング言語であるPerlの「Text::Template」を利用したテンプレートエンジンを用いて行われる。   As shown in FIG. 8, in the upper layer resource setting template, the IP address “192.168.10.3” is described where the replacement character string is described. The replacement of the replacement character string is performed using, for example, a template engine using Perl's “Text :: Template” which is a programming language.

次に、設定ファイル生成部23は、生成した設定ファイルをステップS202で取得した配置先に配置するとともに、パーミッション設定を行う(ステップS206)。   Next, the setting file generation unit 23 arranges the generated setting file in the arrangement destination acquired in step S202 and sets the permission (step S206).

次に、設定ファイル生成部23は、設定ファイルの生成が必要な全ての上位レイヤリソースに対して設定ファイルの作成が完了したか否かを判定する(ステップS207)。   Next, the setting file generation unit 23 determines whether or not the setting file has been generated for all upper layer resources that need to be generated (step S207).

全ての上位レイヤリソースに対して設定ファイルの作成が完了していない場合には(ステップS207:No)、設定ファイル生成部23は、ステップS202の処理に戻る。   If the creation of the configuration file has not been completed for all upper layer resources (step S207: No), the configuration file generation unit 23 returns to the process of step S202.

全ての上位レイヤリソースに対して設定ファイルの作成が完了した場合には(ステップS207:Yes)、設定ファイル生成部23は、処理を終了する。   When the creation of the configuration file is completed for all upper layer resources (step S207: Yes), the configuration file generation unit 23 ends the process.

このように本実施形態によれば、下位レイヤ管理装置10は、仮想マシンに割り当てた下位レイヤリソースを示す下位レイヤ情報を生成して出力し、仮想マシン20は、その下位レイヤ情報に基づき、仮想マシン20の上位レイヤリソースに対する設定内容のうち、一部が置換文字列で記述された上位レイヤリソース設定テンプレートにおける置換文字列を置換して設定ファイルを生成し、その設定ファイルに応じた設定を上位レイヤリソースに行って、要求に応じた処理を行う。   As described above, according to the present embodiment, the lower layer management apparatus 10 generates and outputs lower layer information indicating the lower layer resource allocated to the virtual machine, and the virtual machine 20 performs virtual processing based on the lower layer information. Of the setting contents for the upper layer resource of the machine 20, a setting file is generated by replacing the replacement character string in the upper layer resource setting template partially described with the replacement character string, and the setting corresponding to the setting file is Go to the layer resource and perform processing according to the request.

上述したように、下位レイヤ管理装置10から下位レイヤ情報を出力するのみで、仮想マシン20において自動的に上位レイヤリソースに設定が行われる。そのため、下位レイヤリソースおよび上位レイヤリソースを異なる事業者が提供する水平分業が行われた場合にも、上位レイヤ事業者と下位レイヤ事業者との関係は疎結合のまま、上位レイヤリソースを設定することができ、簡易に仮想マシンを構築し、動作させることができる。   As described above, the virtual machine 20 automatically sets the upper layer resource only by outputting the lower layer information from the lower layer management apparatus 10. Therefore, even when horizontal division of labor provided by different operators for lower layer resources and upper layer resources is performed, upper layer resources are set with the relationship between upper layer operators and lower layer operators remaining loosely coupled. It is possible to construct and operate a virtual machine easily.

なお、本発明の情報処理システムにおいて行われる方法は、コンピュータに実行させるためのプログラムに適用してもよい。また、そのプログラムを記憶媒体に格納することも可能であり、ネットワークを介して外部に提供することも可能である。   The method performed in the information processing system of the present invention may be applied to a program for causing a computer to execute. In addition, the program can be stored in a storage medium and can be provided to the outside via a network.

1 情報処理システム
10 下位レイヤ管理装置
11 仮想マシン実行部
12 下位レイヤ情報管理部
13 下位レイヤ情報送信部
20 仮想マシン
21 下位レイヤ情報受信部
22 記憶部
23 設定ファイル生成部
24 スクリプト実行部
DESCRIPTION OF SYMBOLS 1 Information processing system 10 Lower layer management apparatus 11 Virtual machine execution part 12 Lower layer information management part 13 Lower layer information transmission part 20 Virtual machine 21 Lower layer information reception part 22 Storage part 23 Setting file generation part 24 Script execution part

Claims (3)

要求に応じた処理を行う仮想マシンをネットワーク上のリソースを用いて構築する管理装置を備えた情報処理システムであって、
前記管理装置は、
前記要求に応じて前記リソースを割り当てて、前記仮想マシンを構築する実行部と、
前記実行部により構築された前記仮想マシンに割り当てられた前記リソースを示すリソース情報を生成して出力するリソース情報管理部と、を有し、
前記仮想マシンは、
前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容のうち、前記仮想マシンへの前記リソースの割り当てに応じて変化する部分が所定の文字列で記述されたテンプレートを記憶する記憶部と、
前記テンプレートにおける前記所定の文字列を前記リソース情報管理部から出力されたリソース情報に基づき置換して、前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容を示す設定ファイルを生成する設定ファイル生成部と
前記仮想マシン上で動作するOSのスタートアッププログラムにより参照可能な位置に格納された起動用スクリプトに従い、前記設定ファイル生成部により生成された設定ファイルに応じた設定を前記仮想マシンに行って前記要求に応じた処理を行うスクリプト実行部と、を有することを特徴とする情報処理システム。
An information processing system including a management device that constructs a virtual machine that performs processing according to a request using resources on a network,
The management device
An execution unit that allocates the resource in response to the request and constructs the virtual machine;
A resource information management unit that generates and outputs resource information indicating the resource allocated to the virtual machine constructed by the execution unit;
The virtual machine is
Stores a template in which a part that changes in accordance with the allocation of the resource to the virtual machine is described in a predetermined character string among the setting contents for the virtual machine that are necessary for performing the processing according to the request A storage unit to
A setting file indicating the setting contents for the virtual machine, which is necessary for replacing the predetermined character string in the template based on the resource information output from the resource information management unit and performing processing according to the request A configuration file generator for generating
According startup script that is stored in a position visible by OS startup program that runs on the virtual machine, the request to the setting corresponding to the setting file generated by the setting file generating unit to go to the virtual machine An information processing system comprising: a script execution unit that performs a corresponding process.
要求に応じた処理を行う仮想マシンをネットワーク上のリソースを用いて構築する情報処理システムの制御方法であって、
管理装置が、前記要求に応じて前記リソースを割り当てて、前記仮想マシンを構築し、
前記管理装置が、前記構築した仮想マシンに割り当てた前記リソースを示すリソース情報を生成し、
前記仮想マシンが、前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容のうち、前記仮想マシンへの前記リソースの割り当てに応じて変化する部分が所定の文字列で記述されたテンプレートを読み出し、
前記仮想マシンが、前記テンプレートにおける前記所定の文字列を前記リソース情報に基づき置換して、前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容を示す設定ファイルを生成し、
前記仮想マシンが、前記仮想マシン上で動作するOSのスタートアッププログラムにより参照可能な位置に格納された起動用スクリプトに従い、前記設定ファイルに応じた設定を前記仮想マシンに行って前記要求に応じた処理を行うことを特徴とする情報処理システムの制御方法。
An information processing system control method for constructing a virtual machine that performs processing according to a request using resources on a network,
The management device allocates the resource in response to the request, constructs the virtual machine,
The management device generates resource information indicating the resource allocated to the constructed virtual machine,
Of the setting contents for the virtual machine that are necessary for the virtual machine to perform processing according to the request, a portion that changes according to the allocation of the resource to the virtual machine is described with a predetermined character string. Loaded template,
The virtual machine replaces the predetermined character string in the template based on the resource information, and generates a setting file indicating setting contents for the virtual machine, which is necessary for performing processing according to the request. ,
The virtual machine performs settings according to the setting file in the virtual machine according to the startup script stored in a location that can be referred to by the startup program of the OS running on the virtual machine, and performs processing according to the request A method for controlling an information processing system, characterized in that:
要求に応じた処理を行う仮想マシンをネットワーク上のリソースを用いて構築する情報処理システムを
前記要求に応じて前記リソースを割り当てて、前記仮想マシンを構築する仮想マシン実行手段と、
前記構築した仮想マシンに割り当てた前記リソースを示すリソース情報を生成するレイヤ情報管理手段と、
前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容のうち、前記仮想マシンへの前記リソースの割り当てに応じて変化する部分が所定の文字列で記述されたテンプレートを記憶する記憶手段と、
前記テンプレートにおける前記所定の文字列を前記リソース情報に基づき置換して、前記要求に応じた処理を行うために必要となる、前記仮想マシンに対する設定内容を示す設定ファイルを生成する設定ファイル生成手段と
前記仮想マシン上で動作するOSのスタートアッププログラムにより参照可能な位置に格納された起動用スクリプトに従い、前記設定ファイルに応じた設定を前記仮想マシンに行って前記要求に応じた処理を行うスクリプト実行手段と、として機能させるためのプログラム。
An information processing system that builds a virtual machine that performs processing according to demand using resources on the network,
Virtual machine execution means for allocating the resource in response to the request and constructing the virtual machine ;
Layer information management means for generating resource information indicating the resource allocated to the constructed virtual machine;
Stores a template in which a part that changes in accordance with the allocation of the resource to the virtual machine is described in a predetermined character string among the setting contents for the virtual machine that are necessary for performing the processing according to the request Storage means for
Setting file generation means for generating a setting file indicating setting contents for the virtual machine, which is necessary for performing the processing according to the request by replacing the predetermined character string in the template based on the resource information ; ,
Script execution means for performing setting according to the setting file in the virtual machine according to the startup script stored in a location that can be referred to by a startup program of the OS operating on the virtual machine and performing processing according to the request And a program to make it function as .
JP2011208502A 2011-09-26 2011-09-26 Information processing system, information processing system control method, and program Active JP5450549B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011208502A JP5450549B2 (en) 2011-09-26 2011-09-26 Information processing system, information processing system control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011208502A JP5450549B2 (en) 2011-09-26 2011-09-26 Information processing system, information processing system control method, and program

Publications (2)

Publication Number Publication Date
JP2013069194A JP2013069194A (en) 2013-04-18
JP5450549B2 true JP5450549B2 (en) 2014-03-26

Family

ID=48474812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011208502A Active JP5450549B2 (en) 2011-09-26 2011-09-26 Information processing system, information processing system control method, and program

Country Status (1)

Country Link
JP (1) JP5450549B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6781126B2 (en) * 2017-09-22 2020-11-04 日本電信電話株式会社 Virtual machine setting input system, virtual machine setting input method, and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050060704A1 (en) * 2003-09-17 2005-03-17 International Business Machines Corporation Managing processing within computing environments including initiation of virtual machines
JP5288334B2 (en) * 2008-02-04 2013-09-11 日本電気株式会社 Virtual appliance deployment system
JP2011060035A (en) * 2009-09-10 2011-03-24 Hitachi Solutions Ltd System, method and program for deploying application

Also Published As

Publication number Publication date
JP2013069194A (en) 2013-04-18

Similar Documents

Publication Publication Date Title
CN107580083B (en) Method and system for allocating IP addresses of containers
US10909221B2 (en) Container license management method, and apparatus
JP6058628B2 (en) Multi-node application deployment system
US7823023B2 (en) Test framework for testing an application
CN103795759B (en) The dispatching method and system of a kind of virtual machine image file
US9021005B2 (en) System and method to provide remote device management for mobile virtualized platforms
US9854034B2 (en) Workload deployment density management for a multi-stage computing architecture implemented within a multi-tenant computing environment
CN113391796B (en) Construction method, device, equipment and medium of integrated development environment
JP2011060035A (en) System, method and program for deploying application
US9001364B2 (en) Management system, image forming apparatus, management system control method, and image forming apparatus control method for migration of setting values of an application that operates in the image forimng apparatus
CN106886429B (en) Method for loading driver and server
KR102100323B1 (en) Method and server for the service of machine learning platform
WO2019056882A1 (en) Method and system for cross-platform deployment
JP7231518B2 (en) Packaging support system and packaging support method
CN106873970B (en) Installation method and device of operating system
KR20150108230A (en) Cluster construction method and apparatus thereof
KR20160061306A (en) Method and apparatus for firmware virtualization
JP5880315B2 (en) System management apparatus, system management method, and system management program
JP5450549B2 (en) Information processing system, information processing system control method, and program
US20180060060A1 (en) Network authentication system extensions
KR20190116512A (en) Network construction apparatus, network construction method, and program stored in computer readable recording medium
JP2018018415A (en) Information processing device, information processing system, program and information processing method
JP5471198B2 (en) Integrated management apparatus, integrated management system, integrated management method, integrated management program, and recording medium recording the program
JP2011090596A (en) Program installing method, portable recording medium for implementing the method, information processing apparatus, image formation system, and server apparatus
CN107608768B (en) Resource access method based on command line mode, electronic device and storage medium

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7426

Effective date: 20130305

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130821

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130827

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131009

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131217

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131225

R150 Certificate of patent or registration of utility model

Ref document number: 5450549

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350