JP7218233B2 - Program operation system, program operation method - Google Patents
Program operation system, program operation method Download PDFInfo
- Publication number
- JP7218233B2 JP7218233B2 JP2019075646A JP2019075646A JP7218233B2 JP 7218233 B2 JP7218233 B2 JP 7218233B2 JP 2019075646 A JP2019075646 A JP 2019075646A JP 2019075646 A JP2019075646 A JP 2019075646A JP 7218233 B2 JP7218233 B2 JP 7218233B2
- Authority
- JP
- Japan
- Prior art keywords
- service
- update
- service flow
- microservice
- flow
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Description
本発明は、プログラム運用システム、プログラム運用方法に関する。 The present invention relates to a program operating system and a program operating method.
近年、SaaS(Software as a Service)技術の発達により、機械/深層学習による新サービス/ソフトウェアがWebサービスとして提供されつつある。特に、Webサービスを、第三者の提供するマイクロサービス(プログラム)のマッシュアップにより構築している場合、個別のマイクロサービスが新たな機能追加や修正によりバージョンアップする際には、マイクロサービスの追加、修正される機能のテストと、その機能のWebサービスに与える影響の評価を行う必要がある。 In recent years, with the development of SaaS (Software as a Service) technology, new services/software based on machine/deep learning are being provided as Web services. In particular, if a web service is built by mashing up microservices (programs) provided by a third party, when individual microservices are upgraded due to the addition of new functions or modifications, the addition of microservices , the modified functionality should be tested and the impact of that functionality on the Web service should be evaluated.
プログラムのバージョンアップの際のテストに関する従来技術として、特許文献1が存在する。特許文献1では、複数のモジュールから構成される業務システムのバージョンアップの効率的な手法を提供することを目的としている。この目的を達成するために、特許文献1には、更新される機能毎に関連する各モジュールの変更有無を管理し、更新機能と変更モジュールを対応付けて記憶することで、変更があった有効なモジュールを特定している。 Patent document 1 exists as a conventional technique related to testing when upgrading a program. Patent Document 1 aims to provide an efficient technique for upgrading a business system configured from a plurality of modules. In order to achieve this purpose, JP-A-2003-200000 describes managing whether or not each module related to each function to be updated has been changed, and storing the updated function and the changed module in association with each other. specific modules.
マイクロサービスのマッシュアップで構築されたWebサービスにおいては、マイクロサービスがバージョンアップされ、機能が追加ないし変更される場合がある。このような場合、バージョンアップされたマイクロサービスが、Webサービス全体に与える不具合や影響をテスト検証する必要がある。また、Webサービスは複数種類提供され、それぞれ異なる評価軸(KPI:Key Performance Indicator)を有するため、マイクロサービスのバージョンアップの是非が、Webサービスによって異なる可能性がある。 In a Web service constructed by mashing up microservices, the microservices may be upgraded to add or change functions. In such a case, it is necessary to test and verify the problems and effects of the upgraded microservice on the entire Web service. In addition, since a plurality of types of Web services are provided and each has a different evaluation axis (KPI: Key Performance Indicator), there is a possibility that whether or not to upgrade the version of the microservice differs depending on the Web service.
特許文献1においては、更新される機能に関連するモジュールを特定し、モジュールの変更を管理するが、変更されたモジュールの影響を評価することは考慮されておらず、これを如何に行うかは開示されていない。また、モジュールが複数の機能に関連する場合についても考慮されていない。 In Patent Literature 1, modules related to updated functions are identified and module changes are managed, but evaluation of the impact of the changed modules is not considered. Not disclosed. It also does not consider the case where a module is associated with multiple functions.
本発明は、1または複数のプログラムを実行して提供されるサービスにおいて、変更されたプログラムの影響を評価することが可能なプログラム運用システム、プログラム運用方法を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide a program operating system and a program operating method capable of evaluating the effect of a changed program on a service provided by executing one or more programs.
本発明の一態様にかかるプログラム運用システムは、1または複数のマイクロサービスを実行して提供されるサービスにおいて、更新前のマイクロサービスを含む更新前サービスフローと、更新後のマイクロサービスを含む更新後サービスフローとを実行し、前記更新前サービスフローの実行結果と前記更新後サービスフローの実行結果とを出力するマイクロサービス管理部と、前記更新前サービスフローの実行結果と前記更新後サービスフローの実行結果とを評価し、当該評価の結果が所定の関係を満たすサービスフローとして、前記更新前サービスフローまたは前記更新後サービスフローのいずれかを選択するサービス更新分析処理部と、を備えることを特徴とするプログラム運用システムとして構成される。 A program operation system according to an aspect of the present invention includes a pre-update service flow including pre-update microservices and a post-update service flow including post-update microservices in services provided by executing one or more microservices. a microservice management unit for executing a service flow and outputting an execution result of the pre-update service flow and an execution result of the post-update service flow; and an execution result of the pre-update service flow and execution of the post-update service flow. a service update analysis processing unit that evaluates the results and selects either the pre-update service flow or the post-update service flow as a service flow in which the evaluation result satisfies a predetermined relationship. It is configured as a program operation system that
本発明の一態様によれば、1または複数のプログラムを実行して提供されるサービスにおいて、変更されたプログラムの影響を評価することができる。 According to one aspect of the present invention, the impact of a modified program on a service provided by executing one or more programs can be evaluated.
以下、図面を参照して本発明の実施形態を説明する。以下の記載および図面は、本発明を説明するための例示であって、説明の明確化のため、適宜、省略および簡略化がなされている。本発明は、他の種々の形態でも実施する事が可能である。特に限定しない限り、各構成要素は単数でも複数でも構わない。 Embodiments of the present invention will be described below with reference to the drawings. The following description and drawings are examples for explaining the present invention, and are appropriately omitted and simplified for clarity of explanation. The present invention can also be implemented in various other forms. Unless otherwise specified, each component may be singular or plural.
図面において示す各構成要素の位置、大きさ、形状、範囲などは、発明の理解を容易にするため、実際の位置、大きさ、形状、範囲などを表していない場合がある。このため、本発明は、必ずしも、図面に開示された位置、大きさ、形状、範囲などに限定されない。 The position, size, shape, range, etc. of each component shown in the drawings may not represent the actual position, size, shape, range, etc., in order to facilitate understanding of the invention. As such, the present invention is not necessarily limited to the locations, sizes, shapes, extents, etc., disclosed in the drawings.
以下の説明では、「テーブル」、「リスト」等の表現にて各種情報を説明することがあるが、各種情報は、これら以外のデータ構造で表現されていてもよい。データ構造に依存しないことを示すために「XXテーブル」、「XXリスト」等を「XX情報」と呼ぶことがある。識別情報について説明する際に、「識別情報」、「識別子」、「名」、「ID」、「番号」等の表現を用いるが、これらについてはお互いに置換が可能である。 In the following description, various types of information may be described using expressions such as “table” and “list”, but various types of information may be expressed in data structures other than these. "XX table", "XX list", etc. are sometimes referred to as "XX information" to indicate that they do not depend on the data structure. When describing identification information, expressions such as “identification information”, “identifier”, “name”, “ID”, and “number” are used, but these can be replaced with each other.
同一あるいは同様な機能を有する構成要素が複数ある場合には、同一の符号に異なる添字を付して説明する場合がある。ただし、これらの複数の構成要素を区別する必要がない場合には、添字を省略して説明する場合がある。 When there are a plurality of components having the same or similar functions, they may be described with the same reference numerals and different suffixes. However, if there is no need to distinguish between these multiple constituent elements, the subscripts may be omitted in the description.
また、以下の説明では、プログラムを実行して行う処理を説明する場合があるが、プログラムは、プロセッサ(例えばCPU、GPU)によって実行されることで、定められた処理を、適宜に記憶資源(例えばメモリ)および/またはインターフェースデバイス(例えば通信ポート)等を用いながら行うため、処理の主体がプロセッサとされてもよい。同様に、プログラムを実行して行う処理の主体が、プロセッサを有するコントローラ、装置、システム、計算機、ノードであってもよい。プログラムを実行して行う処理の主体は、演算部であれば良く、特定の処理を行う専用回路(例えばFPGAやASIC)を含んでいてもよい。 Also, in the following description, there are cases where processing performed by executing a program is described, but the program is executed by a processor (for example, CPU, GPU) to appropriately perform the specified processing using storage resources ( For example, a memory) and/or an interface device (for example, a communication port) or the like is used, so processing may be performed by a processor. Similarly, a main body of processing executed by executing a program may be a controller having a processor, a device, a system, a computer, or a node. The subject of the processing performed by executing the program may be an arithmetic unit, and may include a dedicated circuit (for example, FPGA or ASIC) that performs specific processing.
プログラムは、プログラムソースから計算機のような装置にインストールされてもよい。プログラムソースは、例えば、プログラム配布サーバまたは計算機が読み取り可能な記憶メディアであってもよい。プログラムソースがプログラム配布サーバの場合、プログラム配布サーバはプロセッサと配布対象のプログラムを記憶する記憶資源を含み、プログラム配布サーバのプロセッサが配布対象のプログラムを他の計算機に配布してもよい。また、以下の説明において、2以上のプログラムが1つのプログラムとして実現されてもよいし、1つのプログラムが2以上のプログラムとして実現されてもよい。 A program may be installed on a device, such as a computer, from a program source. The program source may be, for example, a program distribution server or a computer-readable storage medium. When the program source is a program distribution server, the program distribution server may include a processor and storage resources for storing the distribution target program, and the processor of the program distribution server may distribute the distribution target program to other computers. Also, in the following description, two or more programs may be implemented as one program, and one program may be implemented as two or more programs.
図1は、本実施形態のプログラム運用システムの構成を示す図である。図1に示すように、プログラム運用システム1000は、マイクロサービス管理サーバ10と、サービスフロー管理サーバ11と、Webサービス稼働サーバ12と、マイクロサービス稼働サーバ13とを備え、それぞれがネットワークNを介して接続される。アプリA141、アプリB142、アプリC143は、Webサービス実行部120で実行されるWebサービスを利用するユーザのコンピュータにインストールされたアプリケーションである。
FIG. 1 is a diagram showing the configuration of the program operating system of this embodiment. As shown in FIG. 1, the
本システムが有するサーバやコンピュータは、ハードウェアとしては、HDD(Hard Disk Drive)やSSD(Solid State Drive)等の記憶装置や、CPU(Central Processing Unit)やRAM(Random Access Memory)、ROM(Read Only Memory)を有した演算装置を有した、一般的な情報処理装置が有する構成を備えている。また、各サーバが有する機能部の機能は、プログラムの実行により実現される。例えば、CPUが、ROMからプログラムを読み出して実行することにより、各部の機能が実現される。上記プログラムは、USB(Universal Serial Bus)メモリ等の記憶媒体から読み出されたり、ネットワークを介した他のコンピュータからダウンロードする等して、各サーバに提供されてもよい。 The servers and computers that this system has include, as hardware, storage devices such as HDD (Hard Disk Drive) and SSD (Solid State Drive), CPU (Central Processing Unit), RAM (Random Access Memory), ROM (Read It has a configuration of a general information processing device having an arithmetic device with a memory only. Also, the functions of the functional units of each server are implemented by executing a program. For example, the functions of each section are realized by the CPU reading out and executing a program from the ROM. The program may be provided to each server by being read from a storage medium such as a USB (Universal Serial Bus) memory or downloaded from another computer via a network.
前記Webサービスは、サービスフロー管理部110で管理されるサービスフローに従って動作するサービスである。例えば、Node-REDなどに代表されるビジュアルプログラミングツールによって、いわゆるプログラム処理を表すノードの接続によって定義されるプログラムの処理フローに相当する。処理フローは、Node-REDであれば、Flow.jsonといった所定のフォーマットで記述されたファイル形式で定義されており、このファイルを参照し、解析、加工することで、下記に示す処理が実現可能である。また、Node-REDで定義したプログラムの処理フローは、Node-RED上でデプロイされることにより、実際に動作するWebサービスとして利用可能となる。また、マイクロサービスは、例えば仮想化環境であるDocker(登録商標)のコンテナとして実現される。
The Web service is a service that operates according to a service flow managed by the service
したがって、例えば前記マイクロサービス管理サーバ10は、前記Dockerコンテナを管理する機能を提供するサーバである。前記サービスフロー管理サーバ11は、前記処理フローを管理する機能を提供するサーバである。前記Webサービス稼働サーバ12は、Node-REDが稼働するサーバである。前記マイクロサービス稼働サーバ14は、Dockerが稼働するサーバとして実装することが可能である。
Therefore, for example, the
本実施形態におけるサービスフローは、一つ以上のマイクロサービスの処理を含み、前記マイクロサービスは、たとえばマイクロサービス実行部150で稼働するサービスをフロー中で呼び出すものである。
A service flow in this embodiment includes processing of one or more microservices, and the microservices call, for example, a service running in the
前記マイクロサービスは、マイクロサービス管理サーバ10のマイクロサービス管理部100で管理されている。そして、マイクロサービス管理部100は、マイクロサービスのバージョンアップなど更新が発生した場合に、更新を反映したサービスフロー(更新サービスフロー)を一時的に生成し、更新前のサービスフローと同じ入力で並列動作させるフローを生成する。さらに、マイクロサービス管理部100は、更新サービスフローの出力と、更新前のサービスフローの出力を比較評価するフローを追加したWebサービスをデプロイする。
The microservices are managed by the
そして、アプリから前記Webサービスが利用されるたびに、更新サービスフローと更新前のサービスフローが評価可能となる。評価の結果、更新サービスフローか、更新前フローのいずれか良いサービスフローが選択される。選択されたサービフローが新たにWebサービスとしてデプロイされ、サービスフロー管理テーブル400、マイクロサービス管理テーブル200が更新される。マクロサービス管理テーブル200の更新の結果、旧バージョンのマイクロサービスであって、関連サービスが一つも無いマイクロサービスは削除される。 Then, every time the Web service is used from the application, the updated service flow and the service flow before update can be evaluated. As a result of the evaluation, either the update service flow or the pre-update flow is selected. The selected service flow is newly deployed as a web service, and the service flow management table 400 and microservice management table 200 are updated. As a result of updating the macroservice management table 200, microservices that are old version microservices that do not have any related services are deleted.
以下、この処理の詳細を、図面を用いて説明する。図2は、対象の処理の概要を示す図である。マイクロサービス実行部150で動作するサービスは、マイクロサービス管理部100のマクロサービス管理テーブル200で管理される。具体的には後述するが、本システムでは、マイクロサービス管理部100が、1または複数のマイクロサービス(プログラム)を実行して提供されるサービスにおいて、更新前のマイクロサービスを含む更新前サービスフローと、更新後のマイクロサービスを含む更新後サービスフローとを実行し、更新前サービスフローの実行結果と更新後サービスフローの実行結果とを出力し、サービス評価更新処理部130のサービス更新分析処理部131が、更新前サービスフローの実行結果と更新後サービスフローの実行結果とを評価し、当該評価の結果が所定の関係を満たすサービスフローとして、更新前サービスフローまたは更新後サービスフローのいずれかを選択し、新たなサービスフローとして登録している。これにより、1または複数のプログラムを実行して提供されるサービスにおいて、変更されたプログラムの影響を評価することができ、例えば、プログラムに変更が生じた場合であっても、プログラムの変更前後のどちらのサービスが提供するサービスとして適しているのかを自動的に評価することができる。
The details of this process will be described below with reference to the drawings. FIG. 2 is a diagram showing an overview of target processing. Services operating in the
また、サービス更新分析処理部131は、評価の結果が高いサービスフローを、上記評価の結果が所定の関係を満たすサービスフローとして選択するので、評価(例えば、KPIの値)が高いサービスフローを実行することにより、更新前のサービスよりも満足度が高いサービスを提供することができる。以下では、KPIの値が高いサービスフローを所定の関係を満たすサービスフローの例として記載しているが、KPIの値が低い場合や、KGI(Key Goal Indicator)等の他の指標の値の高さにより、更新前後のサービスフローが所定の関係を満たすか否かを判定してもよい。
Further, since the service update
図3に、マイクロサービス管理テーブル200の構成図を示す。図3に示すように、マクロサービス管理テーブル200は、マイクロサービス名201、プログラムのバージョンを示すプログラムバージョン202、プログラムの学習データやパラメータセットなどを示すモデルバージョン203、当該マイクロサービスを利用しているサービスフローを示す関連サービス204から構成される。例えば、図中のマイクロサービスMC_Aは、プログラムバージョン1.0、モデルバージョン無し、関連サービスがサービスA、サービスB、サービスA1であることを示す。
FIG. 3 shows a configuration diagram of the microservice management table 200. As shown in FIG. As shown in FIG. 3, the macro service management table 200 includes a
サービスフロー管理部110では、前記マイクロサービスを組み合わせて構築されたサービスフローをサービスフロー管理テーブル400で管理する。
The service
図5に、サービスフロー管理テーブル400の構成図を示す。図に示すように、サービスフロー名401、サービスフローバージョン402、フロー情報403から構成される。例えば、サービスSV_A(サービスA)は、バージョン1.0であり、フローはマイクロサービスMC_A、MC_B、MC_Cの順番に動作する構成になっている。
FIG. 5 shows a configuration diagram of the service flow management table 400. As shown in FIG. As shown in the figure, it consists of a
サービスフロー管理部110で管理されたサービスフローは、Webサービス実行部120にデプロイされることで、アプリから利用可能なWebサービスとして動作可能となる。
A service flow managed by the service
各サービスフローは、その処理結果の評価をする処理が定義されており、その処理がサービス評価更新処理部130のサービスフロー評価処理管理テーブル300に管理されている。
Each service flow defines a process for evaluating the result of the process, and the process is managed in the service flow evaluation process management table 300 of the service
図4に、サービスフロー評価処理管理テーブル300の構成図を示す。図に示すように、サービスフロー名301、評価処理指標であるKPI302、評価処理名303から構成される。例えば、サービスSV_Aは、検知率で評価する処理であり、評価処理EV_A1で評価することを示している。サービスフローには複数の評価処理を用意することも可能であり、Webサービスとしてデプロイされる際に評価処理を選択する。
デプロイされたWebサービスは、Webサービス管理テーブル500によって管理される。
FIG. 4 shows a configuration diagram of the service flow evaluation processing management table 300. As shown in FIG. As shown in the figure, it consists of a
A deployed web service is managed by the web service management table 500 .
図6に、Webサービス管理テーブル500の構成図を示す。図に示すように、Webサービス管理テーブル500は、Webサービス名501と、サービスフロー名401と、サービスフローバージョン402と、評価処理303から構成される。たとえば、WebサービスのサービスAは、バージョン1.0のサービスフローSV_Aをデプロイしたものであり、評価処理はEV_A1が実行される。
FIG. 6 shows a configuration diagram of the Web service management table 500. As shown in FIG. As shown in the figure, the web service management table 500 includes a
図2の、マイクロサービス実行部150では、MC_A、MC_B、MC_C、MC_Dが稼働中であり、新たにMC_Bのマイクロサービスの更新版MC_B1が提供された状況を示している。
In the
以下、さらに図7のフローチャートを用いて、本実施例形態の処理の詳細を説明する。
図7では、更新されたマイクロサービスを含む全てのサービスについて実行するものとする。
Details of the processing of this embodiment will be described below with reference to the flowchart of FIG. 7 .
In FIG. 7, it is assumed that all services including updated microservices are executed.
マイクロサービス管理部100は、マイクロサービスMC_Bの更新バージョンであるマイクロサービスMC_B1の実行を検知する。検知手法としては、例えば、マイクロサービス開発者が更新した更新マイクロサービスを、マイクロサービス管理部100が、マイクロサービス管理テーブル200に登録する方法や、Gitなどのバージョン管理システムと連携して更新を検知する方法などがある(Step1)。
The
つぎに、マイクロサービス管理部100は、マイクロサービス管理テーブル200に更新検知されたマイクロサービスを登録する。図3の例では、マイクロサービス管理部100がMC_Bの更新を検知し、更新版のMC_B1を登録した状態であり、更新版のプログラムバージョン、モデルバージョンがセットされる(Step2)。
Next, the
次に、マイクロサービス管理部100は、マイクロサービス管理テーブル200より、更新検知されたマイクロサービスMC_Bの関連Webサービスの有無や構成をチェックする。図3の例では、マイクロサービス管理部100は、MC_Bの関連Webサービスとして、サービスA、サービスB、サービスCが存在することを確認する(Step3)。
Next, the
マイクロサービス管理部100は、それぞれのWebサービスのサービスフローとバージョンに相当するサービスフロー情報について、処理を行う。未処理の関連Webサービスがある場合(Step4;Yes)は、Step5に進み、未処理の関連Webサービスが無い場合(Step4;No)は、処理を終了する(Step4)。
The
以下、未処理の関連WebサービスがサービスAのケースを例に説明する。マイクロサービス管理部100は、図6に示したWebサービス管理テーブル500を参照し、サービスAのサービスフローとしてSV_A、Ver.として1.0を読み出す。マイクロサービス管理部100は、サービスフロー管理テーブル400を参照し、MC_BをMC_B1に変更した更新版サービスフローを生成し、当該更新版サービスフローをサービスフロー管理テーブル400に登録する。図5では、マイクロサービス管理部100は、サービスフローSV_A1をSV_Aが更新されたフローとして登録する。更新されたフロー情報は、MC_A→MC_B1→MC_Cとなる(Step5)。
In the following, a case where service A is an unprocessed related web service will be described as an example. The
つぎに、マイクロサービス管理部100は、Step5で生成したサービスフローのWebサービスを生成し、当該WebサービスをWebサービス管理テーブル500に登録する。SV_A1のケースでは、マイクロサービス管理部100は、図6のWebサービス管理テーブル500のサービスA1を、更新されたWebサービスとして登録する。マイクロサービス管理部100は、評価処理としては、更新前のサービスAと同じEV_A1を登録し、サービスフローとしてSV_A1を登録する。また、マイクロサービス管理部100は、Webサービスが生成された場合は、マイクロサービス管理テーブル200の関連Webサービスリストも更新する。図3では、マイクロサービス管理部100は、マイクロサービスMC_A、MC_B1、MC_Cに、上記更新されたWebサービスであるサービスA1を追記する(Step6)。
Next, the
つぎに、マイクロサービス管理部100は、Step6で生成した更新Webサービスと、もとのWebサービスを比較評価する処理を追加する。比較評価の対象となるサービスがサービスA1とサービスAの場合、マイクロサービス管理部100は、それぞれのサービスの結果を評価処理EV_A1に入力する。評価処理は、サービス結果を所定のKPIで評価する処理と、それぞれのサービスの評価結果を比較分析する処理と、分析結果をログに記録する処理を有する(Step7)。
Next, the
Step6で更新WebサービスともとのWebサービスの比較評価処理がデプロイされた状況でもアプリはもとのWebサービスを引き続き利用可能であるが、Webサービス実行部120は、更新前のWebサービス(例えば、サービスA)と更新後のWebサービス(例えば、サービスA1)を並列して処理を実行し、両者の実行結果および両者の比較結果をログに蓄積する。サービス更新分析処理部131は、所定の利用回数や、所定期間経過後にログを分析していずれのサービスが優れているかを評価し、その結果、Webサービスを更新してよいか否かを判定する(Step8)。
The application can continue to use the original Web service even in a situation where the comparison evaluation process of the updated Web service and the original Web service is deployed in Step 6. Service A) and the updated Web service (for example, service A1) are processed in parallel, and the execution results of both and the comparison results of both are stored in a log. The service update
上記ログの分析においては、マイクロサービス管理部100が更新前サービスフローと更新後サービスフローとを所定の回数実行し、以下の処理において、サービス更新分析処理部131が、所定の回数の実行により得られた更新前サービスフローの実行結果の評価の統計値と更新後サービスフローの実行結果の評価の統計値とを用いて、評価の結果が高いサービスフローを選択し、新たなサービスフローとして登録することとしてもよい。上記統計値としては、平均値や中央値をはじめ様々な統計値を用いることができる。
In the log analysis, the
サービス更新分析処理部131は、評価の結果、もとのWebサービスが優れており、Webサービスを更新してよいと判定しなかった場合は(Step9;No)、更新キャンセル処理(Step10)を実行する。一方、サービス更新分析処理部131は、もとのWebサービスが優れておらず、Webサービスを更新してよいと判定した場合は(Step9;Yes)、更新処理(Step11)に進む(Step9)。
If the service update
更新キャンセル処理では、サービス更新分析処理部131は、更新版Webサービスと比較評価処理を削除する。あわせてWebサービス管理テーブル500の該当Webサービス、サービスフロー管理テーブル400の該当サービスフローの項目を削除する。また、サービス更新分析処理部131は、マイクロサービス管理テーブル200の関連Webサービスリストから該当Webサービスを削除する。図3では、サービス更新分析処理部131は、MC_A、MC_B1、MC_Cの関連WebサービスリストからサービスA1を削除する(Step10)。
In the update cancellation process, the service update
更新処理では、サービス更新分析処理部131は、もとのWebサービスと比較評価処理を削除する。また、サービス更新分析処理部131は、更新版WebサービスのサービスA1も一旦削除し、Webサービス管理テーブル500のサービスAを削除し、サービスA1をサービスAに変更する。さらに、サービス更新分析処理部131は、サービスフロー管理テーブル400のSV_A1をSV_Aに変更、バージョンをもとのサービスフローのバージョンをインクリメントしたバージョンで登録後、サービスフローSV_Aのバージョン1.1をWebサービスAとしてデプロイする。
In the update process, the service update
図8に更新処理後のサービスフロー管理テーブルを示す。図9に更新処理後のWebサービス管理テーブルを示す。図8では、サービス更新分析処理部131は、更新後のサービスフローSV_A1がSV_Aのバージョン1.1として登録していることがわかる。また、図9では、サービス更新分析処理部131は、更新後のWebサービスA1が削除され、WebサービスAがバージョン1.1として登録していることがわかる。さらに、サービス更新分析処理部131は、マイクロサービス管理テーブル200の関連WebサービスリストのサービスAを削除し、サービスA1をサービスAに変更する。図10に更新処理後のマイクロサービス管理テーブルを示す。図10では、サービスAが削除されてサービスA1がサービスAに変更された結果、例えば、マイクロサービスMC_Cの関連WebサービスリストにはサービスA、サービスCのみが登録されることとなったことがわかる(Step11)。
FIG. 8 shows the service flow management table after update processing. FIG. 9 shows the Web service management table after update processing. In FIG. 8, it can be seen that the service update
Step10もしくはStep11終了後、マイクロサービス管理部100は、マイクロサービス管理テーブル200を更新する。マイクロサービス管理部100は、マクロサービス管理テーブル200において、旧バージョンのマイクロサービスで、関連Webサービスリストが空欄である、すなわち利用しているWebサービスが存在しない場合は、前記マイクロサービスのレコードを削除する(Step12)。
After completing
このように、サービス更新分析処理部131は、選択されたサービスフロー(例えば、SV_A)に含まれるマイクロサービス(例えば、MC_B)を含む複数のサービスのうち、評価を行ったサービス(例えば、SV_A)以外の他のサービス(例えば、SV_B)についての評価を行って、変更されたマイクロサービス(例えば、MC_B)が他のサービス(例えば、SV_B等のMC_Bを含むサービスフロー)からすべて選択されなくなった(すなわち、変更前のMC_Bが高い評価を得られなくなった)場合に、更新前サービスフローまたは更新後サービスフローのうちの選択がされなかったサービスフロー(例えば、KPIの値が低いと評価されたサービスフロー)を、プログラム運用システム1000から削除する。したがって、あるサービスに含まれるマイクロサービスを変更する場合に、他のサービスにおいて使用されている上記変更されたマイクロサービスや当該マイクロサービスを含むサービスを誤って削除することを排除することができる。
In this way, the service update
以上述べたように、Step5からStep12の処理によって一つのWebサービスについての処理が完了した。次に、再度Step4の処理に移行して未処理のWebサービスがなくなるまで処理を繰り返す。 As described above, the processing of one Web service is completed by the processing from Step 5 to Step 12 . Next, the process moves to Step 4 again and repeats the process until there are no more unprocessed Web services.
このように、本実施例では、マイクロサービス管理部100が、マイクロサービスのバージョン毎に、関連するWebサービスの有無を、Webサービスの構成情報を分析して判断し、その結果をテーブルとして記録することで管理し、サービスフロー管理部110が、Webサービスを構成するマイクロサービスの処理の流れを示すサービスフローの情報を表すサービスフロー構成情報を管理し、Webサービス実行部120が、サービスフロー構成情報に基づいてサービスデプロイして実行可能とするシステムにおいて、マイクロサービスのバージョン更新が生じた場合、そのマイクロサービスのすべての別バージョンに関連する実行中のWebサービスに対して、バージョン更新したマイクロサービスに入れ替えた更新サービスフローを構成し、デプロイする。本システムでは、さらに当該Webサービスを評価するKPIを算出し、もとのWebサービスと更新Webサービスを比較する処理をデプロイする。そして、ユーザから、Webサービスを介してサービスリクエストを受け付けた場合に、本システムは、当該リクエストに対して、もとのWebサービスと、更新Webサービスの両方の処理を実行し、両サービスの結果からKPIを算出し、比較結果をログに記録する。
As described above, in this embodiment, the
そして、所定の回数サービスリクエストが実行された後、蓄積されたログを分析して、KPIが悪化していない場合は、もとのWebサービスと更新Webサービスを入れ替え、Webサービス構成情報テーブルと、サービスフロー構成情報を更新する。一方、KPIが悪化している場合は、更新Webサービスを削除する。これにより、例えば、Webサービスとして提供される業務サービスが、複数のサブプログラム、いわゆるマイクロサービスのマッシュアップで構築される際のサービスの更新する場合において、マイクロサービスのバージョン更新が生じた際に、そのマイクロサービスを活用しているWebサービスの品質を低下させずに管理することが可能になる。 Then, after the service requests have been executed a predetermined number of times, the accumulated logs are analyzed, and if the KPI has not deteriorated, the original Web service and the updated Web service are replaced, and a Web service configuration information table and Update service flow configuration information. On the other hand, if the KPI is deteriorating, delete the update web service. As a result, for example, when a business service provided as a web service is built with a mashup of multiple subprograms, so-called microservices, and the service is updated, when the version of the microservice is updated, It becomes possible to manage without degrading the quality of Web services that utilize the microservices.
100…マイクロサービス管理部、200…マイクロサービス管理テーブル、110…サービスフロー管理部、120…Webサービス実行部、130…サービス評価更新処理部、141~143…アプリケーション、150…マイクロサービス実行部、300…サービス評価処理管理テーブル、400…サービスフロー管理テーブル、500…Webサービス管理テーブル
REFERENCE SIGNS
Claims (6)
前記更新前サービスフローの実行結果と前記更新後サービスフローの実行結果とを評価し、当該評価の結果が所定の関係を満たすサービスフローとして、前記更新前サービスフローまたは前記更新後サービスフローのいずれかを選択するサービス更新分析処理部と、を備え、
前記サービス更新分析処理部は、前記選択されたサービスフローに含まれるマイクロサービスを含む複数のサービスのうち、前記評価を行ったサービス以外の他のサービスについての評価を行って、前記マイクロサービスが前記他のサービスから選択されなくなった場合に、前記更新前サービスフローまたは前記更新後サービスフローのうちの選択がされなかったサービスフローを、前記プログラム運用システムから削除する、
ことを特徴とするプログラム運用システム。 In a service provided by executing one or more microservices, executing a pre-update service flow including pre-update microservices and a post-update service flow including post-update microservices, and said pre-update service flow a microservice management unit that outputs the execution result of and the execution result of the updated service flow;
Either the pre-update service flow or the post-update service flow is a service flow that evaluates the execution result of the pre-update service flow and the post-update service flow, and the evaluation result satisfies a predetermined relationship. a service update analysis processing unit that selects the
The service update analysis processing unit evaluates a service other than the evaluated service among a plurality of services including the microservice included in the selected service flow, and the microservice performs the evaluation. deleting from the program operation system the service flow that was not selected from the pre-update service flow or the post-update service flow when it is no longer selected from other services;
A program operation system characterized by:
前記サービス更新分析処理部は、前記評価の結果が高いサービスフローを、前記評価の結果が所定の関係を満たすサービスフローとして選択する、
ことを特徴とするプログラム運用システム。 The program operating system according to claim 1,
The service update analysis processing unit selects a service flow with a high evaluation result as a service flow whose evaluation result satisfies a predetermined relationship.
A program operation system characterized by:
前記マイクロサービス管理部は、前記更新前サービスフローと前記更新後サービスフローとを所定の回数実行し、
前記サービス更新分析処理部は、前記所定の回数の実行により得られた前記更新前サービスフローの実行結果の評価の統計値と前記更新後サービスフローの実行結果の評価の統計値とを用いて、前記評価の結果が高いサービスフローを選択する、
ことを特徴とするプログラム運用システム。 The program operating system according to claim 2,
The microservice management unit executes the pre-update service flow and the post-update service flow a predetermined number of times,
The service update analysis processing unit uses the statistical value of the evaluation of the execution result of the pre-update service flow obtained by executing the predetermined number of times and the statistical value of the evaluation of the execution result of the post-update service flow, selecting a service flow with a high evaluation result;
A program operation system characterized by:
前記マイクロサービス管理部が、前記更新前サービスフローの実行結果と前記更新後サービスフローの実行結果とを出力し、
サービス更新分析処理部が、前記更新前サービスフローの実行結果と前記更新後サービスフローの実行結果とを評価し、
前記サービス更新分析処理部が、当該評価の結果が所定の関係を満たすサービスフローとして、前記更新前サービスフローまたは前記更新後サービスフローのいずれかを選択する場合において、
前記サービス更新分析処理部は、前記選択されたサービスフローに含まれるマイクロサービスを含む複数のサービスのうち、前記評価を行ったサービス以外の他のサービスについての評価を行って、前記マイクロサービスが前記他のサービスから選択されなくなった場合に、前記更新前サービスフローまたは前記更新後サービスフローのうちの選択がされなかったサービスフローを、プログラム運用システムから削除する、
ことを特徴とするプログラム運用方法。 A microservice management unit executes a pre-update service flow including pre-update microservices and a post-update service flow including post-update microservices in services provided by executing one or more microservices. ,
the microservice management unit outputs an execution result of the pre-update service flow and an execution result of the post-update service flow;
a service update analysis processing unit evaluating an execution result of the pre-update service flow and an execution result of the post-update service flow;
When the service update analysis processing unit selects either the pre-update service flow or the post-update service flow as a service flow whose evaluation result satisfies a predetermined relationship ,
The service update analysis processing unit evaluates a service other than the evaluated service among a plurality of services including the microservice included in the selected service flow, and the microservice performs the evaluation. deleting from the program operation system the service flow that was not selected from the pre-update service flow or the post-update service flow when it is no longer selected from other services;
A program operation method characterized by:
前記サービス更新分析処理部は、前記評価の結果が高いサービスフローを、前記評価の結果が所定の関係を満たすサービスフローとして選択する、
ことを特徴とするプログラム運用方法。 The program operating method according to claim 4 ,
The service update analysis processing unit selects a service flow with a high evaluation result as a service flow whose evaluation result satisfies a predetermined relationship.
A program operation method characterized by:
前記マイクロサービス管理部は、前記更新前サービスフローと前記更新後サービスフローとを所定の回数実行し、
前記サービス更新分析処理部は、前記所定の回数の実行により得られた前記更新前サービスフローの実行結果の評価の統計値と前記更新後サービスフローの実行結果の評価の統計値とを用いて、前記評価の結果が高いサービスフローを選択する、
ことを特徴とするプログラム運用方法。 The program operating method according to claim 5 ,
The microservice management unit executes the pre-update service flow and the post-update service flow a predetermined number of times,
The service update analysis processing unit uses the statistical value of the evaluation of the execution result of the pre-update service flow obtained by executing the predetermined number of times and the statistical value of the evaluation of the execution result of the post-update service flow, selecting a service flow with a high evaluation result;
A program operation method characterized by:
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019075646A JP7218233B2 (en) | 2019-04-11 | 2019-04-11 | Program operation system, program operation method |
US16/835,542 US11399071B2 (en) | 2019-04-11 | 2020-03-31 | Program operation system and program operation method |
EP20168690.4A EP3722945B1 (en) | 2019-04-11 | 2020-04-08 | Program operation system and program operation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019075646A JP7218233B2 (en) | 2019-04-11 | 2019-04-11 | Program operation system, program operation method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020173650A JP2020173650A (en) | 2020-10-22 |
JP7218233B2 true JP7218233B2 (en) | 2023-02-06 |
Family
ID=70277174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019075646A Active JP7218233B2 (en) | 2019-04-11 | 2019-04-11 | Program operation system, program operation method |
Country Status (3)
Country | Link |
---|---|
US (1) | US11399071B2 (en) |
EP (1) | EP3722945B1 (en) |
JP (1) | JP7218233B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210075887A1 (en) * | 2019-09-09 | 2021-03-11 | Red Hat, Inc. | Artificial intelligence-powered diagram-to-deployment converter |
CN112612681B (en) * | 2020-12-29 | 2021-09-17 | 中国科学院空天信息创新研究院 | Automatic management method for deep learning model test evaluation full process based on container |
EP4303723A1 (en) * | 2022-07-07 | 2024-01-10 | Siemens Aktiengesellschaft | System and computer-implemented method for upgrading and/or updating at least one service of a plurality of services |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7903621B2 (en) * | 2005-04-29 | 2011-03-08 | Siemens Aktiengesellschaft | Service execution using multiple devices |
JP2008021114A (en) * | 2006-07-12 | 2008-01-31 | Olympus Corp | Control unit, control method and control program |
JP5537599B2 (en) | 2012-04-27 | 2014-07-02 | 株式会社日立製作所 | Version upgrade management method in business system |
US9645916B2 (en) * | 2014-05-30 | 2017-05-09 | Apple Inc. | Performance testing for blocks of code |
US9983985B2 (en) * | 2015-08-06 | 2018-05-29 | Sap Se | System and method for software upgrade analysis |
JP6674092B2 (en) * | 2016-02-10 | 2020-04-01 | 富士通株式会社 | Data management program, data management device, and data management method |
JP6948216B2 (en) | 2017-10-13 | 2021-10-13 | 株式会社日立製作所 | Ultrasonic transmitter / receiver and ultrasonic transducer |
CN108897557B (en) * | 2018-06-20 | 2022-06-10 | 中国联合网络通信集团有限公司 | Updating method and device of microservice architecture |
-
2019
- 2019-04-11 JP JP2019075646A patent/JP7218233B2/en active Active
-
2020
- 2020-03-31 US US16/835,542 patent/US11399071B2/en active Active
- 2020-04-08 EP EP20168690.4A patent/EP3722945B1/en active Active
Non-Patent Citations (2)
Title |
---|
BRYANT, Daniel,A Comprehensive Guide to Canary Releases,2019年02月01日,[online] [検索日:2022.10.19] インターネット<URL:https://web.archive.org/web/20190201031018/https://blog.getambassador.io/cloud-native-patterns-canary-release-1cb8f82d371a> |
NEWMAN, Sam,マイクロサービスアーキテクチャ,初版,日本,株式会社オライリー・ジャパン,2016年02月22日,pp.155-182 |
Also Published As
Publication number | Publication date |
---|---|
EP3722945A1 (en) | 2020-10-14 |
US11399071B2 (en) | 2022-07-26 |
US20200329108A1 (en) | 2020-10-15 |
EP3722945B1 (en) | 2023-11-29 |
JP2020173650A (en) | 2020-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7218233B2 (en) | Program operation system, program operation method | |
JP4809772B2 (en) | Management based on computer system and distributed application model | |
US20060235664A1 (en) | Model-based capacity planning | |
US8589884B2 (en) | Method and system for identifying regression test cases for a software | |
US8719784B2 (en) | Assigning runtime artifacts to software components | |
US8918783B2 (en) | Managing virtual computers simultaneously with static and dynamic dependencies | |
US9959197B2 (en) | Automated bug detection with virtual machine forking | |
US20200012582A1 (en) | Code assessment platform | |
US8627337B2 (en) | Programmatic modification of a message flow during runtime | |
US9696982B1 (en) | Safe host deployment for a heterogeneous host fleet | |
US9342784B1 (en) | Rule based module for analyzing computing environments | |
US11769067B2 (en) | Topology-based migration assessment | |
JP6256115B2 (en) | Operation search program, operation search method, and operation search device | |
TW201513003A (en) | Dynamic discovery of applications, external dependencies, and relationships | |
KR101337216B1 (en) | Computer system and siglature verification server | |
JP7218797B2 (en) | Information processing device and API usage history display program | |
US9716625B2 (en) | Identifying compatible system configurations | |
US11586459B2 (en) | Generating and preserving default configurations of a system | |
US20210311755A1 (en) | Schema-based classification of data on a system | |
US8775873B2 (en) | Data processing apparatus that performs test validation and computer-readable storage medium | |
JP2018063518A5 (en) | ||
JP5545133B2 (en) | Static analysis processing system, method, and program | |
JPWO2014054233A1 (en) | Information system performance evaluation apparatus, method and program | |
JP7210917B2 (en) | Verification information generation device, verification information generation method, and verification information generation program | |
JP6626804B2 (en) | Computer, selection method and selection program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20211222 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20220920 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20221025 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20221205 |
|
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: 20230117 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230125 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7218233 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |