JP2024003320A - System and control method - Google Patents

System and control method Download PDF

Info

Publication number
JP2024003320A
JP2024003320A JP2022102375A JP2022102375A JP2024003320A JP 2024003320 A JP2024003320 A JP 2024003320A JP 2022102375 A JP2022102375 A JP 2022102375A JP 2022102375 A JP2022102375 A JP 2022102375A JP 2024003320 A JP2024003320 A JP 2024003320A
Authority
JP
Japan
Prior art keywords
tenant
region
information
specified
tenant 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.)
Pending
Application number
JP2022102375A
Other languages
Japanese (ja)
Inventor
康矢 岡部
Koya Okabe
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2022102375A priority Critical patent/JP2024003320A/en
Publication of JP2024003320A publication Critical patent/JP2024003320A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To solve the problem that the same ID cannot be registered even in a different region when a tenant with the same sales ID is desired to create on two regions in a parallel transfer if there is the constraint which cannot change a sales ID before or after transfer.
SOLUTION: A system for managing tenant information is characterized by having: reception means for receiving a designation of a first tenant to be a transfer target and a region; identification means for identifying tenant information of a second tenant to be subordinate to the first tenant related to the designation among the managed tenant information; and changing means for changing the region of the tenant information of the identified second tenant to the region related to the designation.
SELECTED DRAWING: Figure 4
COPYRIGHT: (C)2024,JPO&INPIT

Description

本発明は、テナント情報を管理するシステム、および、制御方法に関する。 The present invention relates to a system and control method for managing tenant information.

インターネット上におけるコンピューティング、データベース、ストレージ、アプリケーションなどのさまざまなITリソースをオンデマンドで提供するサービスが、近年普及している。このサービスの上で企業のリソースを管理する場合、1つのシステムの中に複数の企業のサービスを同居させるマルチテナント方式が一般的である。各テナントは基本的に独立して存在し、権限を持つユーザーのみがアクセス可能である。またテナントにはサービスを提供、販売する側のテナント、サービスを享受する顧客側のテナントが存在する(それぞれ販売テナント、顧客テナントと呼称する)。販売テナントは顧客テナントの上位階層に位置し、1つ以上の顧客テナントを管理する関係にある。また販売テナント自身が複数の階層を持つ場合もある。 Services that provide various IT resources such as computing, databases, storage, and applications on the Internet on demand have become popular in recent years. When managing corporate resources on this service, a multi-tenant system is generally used in which services of multiple companies coexist in one system. Each tenant basically exists independently and can only be accessed by authorized users. Furthermore, there are tenants that provide and sell services, and tenants that are customers that enjoy services (referred to as sales tenants and customer tenants, respectively). The sales tenant is located in a higher hierarchy than the customer tenant, and has a relationship of managing one or more customer tenants. Additionally, the sales tenant itself may have multiple levels.

このシステムが稼働する基盤となるサービスは、世界中の地域(リージョン)で稼働している。基本的にユーザーは自身の居住する場所にもっとも近いリージョンで稼働するシステムを利用する。 The services that form the basis of this system operate in regions around the world. Basically, users use the system that operates in the region closest to where they live.

また、各テナントには識別子となるIDが付与されており、データベースで管理されている。IDにもいくつか種類が存在し、システム内部で管理するIDの他、ユーザーが指定して付与するIDも存在する。例えば販売テナントにユーザーが付与するIDを販売IDと呼称する。販売IDは全リージョンで一意という制約があるとすると、販売IDは販売テナントを管理するテナント管理テーブルの他、一意性を担保するためのID管理テーブルでも管理される。新規に販売テナントを作成する場合、ID管理テーブルを確認し、同じIDの付与を禁止する。 Furthermore, each tenant is assigned an ID that serves as an identifier, and is managed in a database. There are several types of IDs; in addition to IDs managed within the system, there are also IDs specified and assigned by the user. For example, an ID given by a user to a sales tenant is called a sales ID. Assuming that there is a restriction that the sales ID must be unique in all regions, the sales ID is managed not only in a tenant management table that manages sales tenants but also in an ID management table to ensure uniqueness. When creating a new sales tenant, check the ID management table and prohibit assignment of the same ID.

このテナント管理テーブルとID管理テーブルの間には、書き込み処理に失敗した場合、存在しないテナントのIDにも関わらず使用不可になってしまう場合がある。例えば、新規に販売テナント作成時、まずID管理テーブルにIDを書き込む。次にテナント管理テーブルにIDを書き込むが、その処理に失敗した場合、テナント作成処理は失敗となる。トランザクション処理が行えないデータベースである場合には、その結果ID管理テーブルにのみ値が残ってしまい、存在しないテナントにも関わらずそのIDは、ID管理テーブルの重複チェックではじかれ、使用することができない。 If writing between the tenant management table and the ID management table fails, the table may become unusable even though the ID of a tenant does not exist. For example, when creating a new sales tenant, the ID is first written into the ID management table. Next, the ID is written in the tenant management table, but if that process fails, the tenant creation process will fail. If the database cannot perform transaction processing, the value will remain only in the ID management table, and even if the tenant does not exist, the ID will be rejected by the ID management table's duplicate check and cannot be used. Can not.

この状態を避けるために、以下の条件を満たす場合、ID管理テーブルにおいて重複したIDの登録を許可している。条件は、ID管理テーブルにおいて既存のIDと新規付与のIDが、「同一リージョンへのテナント作成である」「既存IDの作成から一定時間以上経過している」ことである。この条件はユーザーの操作ミスや悪意を持った同じ販売IDの指定を排除するために考えられたものである。これにより、書き込み処理に失敗したと思われる状況に対して、同じIDを登録することが可能となる。 To avoid this situation, registration of duplicate IDs in the ID management table is permitted if the following conditions are met. The conditions are that the existing ID and the newly assigned ID in the ID management table are "tenant creation in the same region" and "a certain amount of time has passed since the creation of the existing ID." This condition was designed to eliminate user operational errors or malicious designation of the same sales ID. This makes it possible to register the same ID even in a situation where the writing process seems to have failed.

ここで、複数のリージョンで同じIDを利用したいケースを考える。例えばシステムをあるリージョンから別のリージョンへ移行するときに、運用上の理由からIDを変更せずに再利用したい場合である。IDを再利用する方法としては、ある識別子をサーバーに保持して、複数のユーザーエージェントから一意の識別子を再利用する方法が考えられている(特許文献1)。 Now, consider a case where you want to use the same ID in multiple regions. For example, when migrating a system from one region to another, there is a case where it is desired to reuse the ID without changing it for operational reasons. As a method for reusing IDs, a method has been considered in which a certain identifier is held in a server and a unique identifier is reused from a plurality of user agents (Patent Document 1).

特開2006-120139号公報Japanese Patent Application Publication No. 2006-120139

前述したように、複数のテナントを通信応答性や個人情報保護の問題などから、別のリージョンへ移行する場合がある。移行の際に、これまで稼働していたシステムを一旦止めてデータをコピーし、新しいリージョンで再開する、といった方法をとると、サービスが一時停止してしまうことになる。また移行中に障害が発生した場合には、システムを移行前の状態に戻す措置を取りたいが、そのためには移行前の状態を再構築するコストが発生してしまう。そこで新旧リージョンでシステムを並行して稼働させながら(並行稼働と呼称する)移行する方式が考えられる。しかし前述したように販売IDを移行前後で変更してはいけない制約があると、並行稼働において同じ販売IDのテナントを2つのリージョン上に作成したいが、同じIDは異なるリージョンにおいても登録できないという課題が浮上する。 As mentioned above, multiple tenants may be migrated to another region due to issues such as communication responsiveness and personal information protection. During migration, if you temporarily stop the system that was previously running, copy the data, and restart it in the new region, the service will be temporarily suspended. Furthermore, if a failure occurs during migration, it is desirable to take measures to return the system to its pre-migration state, but this incurs the cost of rebuilding the pre-migration state. Therefore, a method of migrating while running the systems in the old and new regions in parallel (referred to as parallel operation) can be considered. However, as mentioned above, there is a restriction that the sales ID cannot be changed before and after migration, and when you want to create tenants with the same sales ID in two regions in parallel operation, the problem is that the same ID cannot be registered even in different regions. emerges.

そこで本発明は、上述した処理を前提に、2つのリージョンでシステムを並行稼働させながら、販売IDを変えることなくテナントを移行することを目的とする。 Therefore, the present invention aims to migrate tenants without changing sales IDs while running systems in two regions in parallel, based on the above-described processing.

上記課題を解決するために、本発明は、テナント情報を管理するシステムであって、移行対象とする第1テナントおよびリージョンの指定を受け付ける受け付け手段と、前記管理されるテナント情報のうち、前記指定に係る第1テナントの下位である第2テナントのテナント情報を特定する特定手段と、前記特定された第2テナントのテナント情報のリージョンを、前記指定に係るリージョンに変更する変更手段と、を有することを特徴とする。 In order to solve the above-mentioned problems, the present invention provides a system for managing tenant information, comprising: an accepting means for accepting the designation of a first tenant and a region to be migrated; and a changing means for changing the region of the tenant information of the identified second tenant to the specified region. It is characterized by

本発明によれば、2つのリージョンでシステムを並行稼働させながら、販売IDを変えることなくテナントを移行することができる。 According to the present invention, it is possible to migrate tenants without changing sales IDs while running systems in two regions in parallel.

システム構成を示す図である。FIG. 1 is a diagram showing a system configuration. 本実施の形態に係る、テナント管理サーバーの構成図である。FIG. 2 is a configuration diagram of a tenant management server according to the present embodiment. 本実施の形態に係る、ソフトウェアの機能を示す図である。FIG. 3 is a diagram showing software functions according to the present embodiment. 本実施の形態に係る、ID管理テーブルにおける移行対象のリージョンの値を書き換える処理のフローチャートである。12 is a flowchart of a process of rewriting a value of a region to be migrated in an ID management table according to the present embodiment. 本実施の形態に係る、ID管理テーブルにおけるテナント作成時の処理のフローチャートである。It is a flowchart of the process at the time of tenant creation in an ID management table based on this Embodiment. 本実施の第2の形態に係る、ソフトウェアの機能を示す図である。FIG. 7 is a diagram showing software functions according to the second embodiment. 本実施の第2の形態に係る、テナント管理テーブルにおける移行したテナントの情報を削除する処理のフローチャートである。It is a flowchart of the process which deletes the information of the migrated tenant in the tenant management table based on the 2nd form of this embodiment.

以下、本発明を実施するための最良の形態について図面を用いて説明する。 DESCRIPTION OF THE PREFERRED EMBODIMENTS The best mode for carrying out the present invention will be described below with reference to the drawings.

本実施形態に係るシステム構成図である。インターネット100には、テナント管理サーバー101、111、データベース102、112、クライアント端末103が接続されている。またインターネット100には2つのリージョンが存在し、121はリージョンA、122はリージョンBを示す。テナント管理サーバー101、データベース102はリージョンA、テナント管理サーバー111、データベース112はリージョンBで稼働している。ただし本実施例では、どのリージョンにおいても同じとなる動作を説明する場合、リージョンAの番号を用いて説明する。 FIG. 1 is a system configuration diagram according to the present embodiment. Connected to the Internet 100 are tenant management servers 101 and 111, databases 102 and 112, and a client terminal 103. Furthermore, there are two regions in the Internet 100, 121 indicates region A, and 122 indicates region B. The tenant management server 101 and database 102 are operating in region A, and the tenant management server 111 and database 112 are operating in region B. However, in this embodiment, when explaining operations that are the same in all regions, the number of region A will be used.

テナント管理サーバー101はマルチテナント管理に関する処理を行うサーバーであり、テナントの検索、登録、更新、削除を行う。テナント管理サーバー101はインスタンスとしてサーバーが構築されていないサーバーレスサービス上で動作しても良い。またWEBサーバーなどのミドルウェアはテナント管理サーバー101上で動作しても良いし、別のサーバー上で動作しても良い。 The tenant management server 101 is a server that performs processing related to multi-tenant management, and searches for, registers, updates, and deletes tenants. The tenant management server 101 may operate on a serverless service in which a server is not constructed as an instance. Furthermore, middleware such as a WEB server may operate on the tenant management server 101 or on another server.

データベース102はテナント管理テーブル、ID管理テーブルなどを用いてテナント情報を管理している。テナント管理テーブルはデータベース102、112のそれぞれのリージョンごとに保管しているが、ID管理テーブルは全リージョンで1つ、すなわち本実施例ではリージョンAのデータベース102にのみ保管している。 The database 102 manages tenant information using a tenant management table, an ID management table, and the like. A tenant management table is stored in each region of the databases 102 and 112, but one ID management table is stored in all regions, that is, in this embodiment, only in the database 102 of region A.

クライアント端末103はユーザーが操作する端末である。例えばテナント管理サーバー101が提供するWEBページにブラウザーを通じてアクセスし、テナントの作成や編集などを行う。またテナントの移行指示もクライアント端末103からテナント管理サーバー101へ行う。端末は典型的にはPCやモバイル端末などが考えられるが、その他のものでも良い。 The client terminal 103 is a terminal operated by a user. For example, a web page provided by the tenant management server 101 is accessed through a browser to create or edit a tenant. In addition, a tenant migration instruction is also issued from the client terminal 103 to the tenant management server 101. The terminal is typically a PC or a mobile terminal, but other devices may also be used.

その他、本実施例に直接関係のないコンポーネントや処理に関しては記載を省略する。 Other components and processes that are not directly related to this embodiment will not be described.

図2はテナント管理サーバー101のハードウェア構成を示す図である。図2に示されるハードウェア図は一般的な情報処理装置のハードウェア図に相当するものとし、本実施形態の端末には一般的な情報処理装置のハードウェア構成を適用できる。 FIG. 2 is a diagram showing the hardware configuration of the tenant management server 101. The hardware diagram shown in FIG. 2 corresponds to a hardware diagram of a general information processing device, and the hardware configuration of a general information processing device can be applied to the terminal of this embodiment.

図2において、CPU201は、ROM203のプログラム用ROMに記憶された、或いはハードディスク(HD)等の外部メモリ211からRAM202にロードされたOSやアプリケーション等のプログラムを実行する。ここでOSとはコンピューター上で稼動するオペレーティングシステムの略語である。後述する各フローチャートの処理はこのプログラムの実行により実現できる。RAM202は、CPU201の主メモリ、ワークエリア等として機能する。キーボードコントローラー205は、キーボード209や不図示のポインティングデバイスからのキー入力を制御する。ディスプレイコントローラー206は、ディスプレイ210の表示を制御する。ディスクコントローラー207は各種データを記憶するハードディスク(HD)やフロッピーディスク(FD)等の外部メモリ211におけるデータアクセスを制御する。ネットワークコントローラー208はネットワークに接続されて、ネットワークに接続された他の機器との通信制御処理を実行する。 In FIG. 2, a CPU 201 executes a program such as an OS or an application stored in a program ROM of a ROM 203 or loaded into a RAM 202 from an external memory 211 such as a hard disk (HD). Here, OS is an abbreviation for an operating system that runs on a computer. Processing in each flowchart described later can be realized by executing this program. The RAM 202 functions as the main memory, work area, etc. of the CPU 201. A keyboard controller 205 controls key input from a keyboard 209 or a pointing device (not shown). Display controller 206 controls the display on display 210. A disk controller 207 controls data access in an external memory 211 such as a hard disk (HD) or floppy disk (FD) that stores various data. The network controller 208 is connected to a network and executes communication control processing with other devices connected to the network.

尚、後述の全ての説明においては特に断りのない限り、端末におけるプログラム実行のハードウェア上の主体はCPU201であり、ソフトウェア上の主体は外部メモリ211にインストールされたアプリケーションプログラムである。 In all the explanations that will be given later, unless otherwise specified, the CPU 201 is the hardware entity that executes programs in the terminal, and the application program installed in the external memory 211 is the software entity.

図3は本実施の形態に係る、テナント管理サーバー101の機能を示す図である。図3に示す各機能部は、テナント管理サーバー101が有しているCPU201が制御プログラムを実行することにより実現される。本実施例に関係しない機能部については説明を省略する。 FIG. 3 is a diagram showing the functions of the tenant management server 101 according to this embodiment. Each functional unit shown in FIG. 3 is realized by the CPU 201 included in the tenant management server 101 executing a control program. Descriptions of functional units not related to this embodiment will be omitted.

テナント管理サーバー101はリクエスト受信部301、テナント選択部302、リージョン変更部303、テナント作成部304、データベース通信部305を有する。 The tenant management server 101 includes a request reception section 301, a tenant selection section 302, a region change section 303, a tenant creation section 304, and a database communication section 305.

リクエスト受信部301はクライアント端末103からのリクエストを受信する。リクエストとは例えばテナントの作成や更新である。 The request receiving unit 301 receives a request from the client terminal 103. The request is, for example, creating or updating a tenant.

テナント選択部302は、リクエスト受信部301が受信したリクエストから、リージョンの移行対象のテナントを選び出す。リクエストにおいて移行対象のテナントが網羅されている場合はそのままリージョン更新部303へその情報を渡せばよい。しかしながら、本実施例では上位のテナントが1つ指定されたら、その下位のテナントが移行対象になるとして、そのテナントを、データベース102から選択する処理を行う。 The tenant selection unit 302 selects a tenant whose region is to be migrated from the request received by the request reception unit 301. If the request covers all the tenants to be migrated, the information can be directly passed to the region update unit 303. However, in this embodiment, once one upper tenant is specified, processing is performed to select the lower tenant from the database 102, assuming that the lower tenant is to be migrated.

リージョン更新部303は、リクエスト受信部301が受信したデータを元に、ID管理テーブルにおける移行対象のテナントのリージョンの値を、移行先のリージョンの値に更新する。 The region update unit 303 updates the region value of the migration target tenant in the ID management table to the migration destination region value based on the data received by the request reception unit 301.

テナント作成部304は、リクエスト受信部301が受信したデータを元に、ID管理テーブルとテナント管理テーブルにレコードを新規作成する。ID管理テーブルにおいて販売IDが重複していた場合、レコードが更新可能かどうか判断する。 The tenant creation unit 304 creates new records in the ID management table and tenant management table based on the data received by the request reception unit 301. If the sales ID is duplicated in the ID management table, it is determined whether the record can be updated.

データベース通信部305は、データベース102との通信を行い、リージョン更新部303の命令を受けてデータベース102の値を更新する。 The database communication unit 305 communicates with the database 102 and updates the values of the database 102 in response to instructions from the region update unit 303.

ここでデータベース102が保持するID管理テーブルの例を以下に示す。表1はリージョンの値を更新する前の例である。 An example of the ID management table held by the database 102 is shown below. Table 1 is an example before updating the region value.

Figure 2024003320000002
Figure 2024003320000002

ID管理テーブルには販売ID、最終更新日時、リージョンの項目が存在する。本実施例に直接関係しない項目は説明を省略する。 The ID management table includes items such as sales ID, last update date and time, and region. Explanation of items not directly related to this embodiment will be omitted.

表2はリージョンの値を更新した後のID管理テーブルの例である。 Table 2 is an example of the ID management table after updating the region values.

Figure 2024003320000003
Figure 2024003320000003

この例では販売IDが「DIST0101」、「DIST0102」が移行対象のテナントであるとして、そのレコードにおけるリージョンの値が「US」から「CA」に更新されている。 In this example, the sales ID is "DIST0101" and "DIST0102" are the tenants to be migrated, and the region value in the record has been updated from "US" to "CA".

図4は本実施の形態に係る、ID管理テーブルのリージョンの値を更新する処理のフローチャートである。 FIG. 4 is a flowchart of the process of updating the region value of the ID management table according to this embodiment.

テナント管理サーバー101のリクエスト受信部301は、クライアント端末103から移行対象の親となる販売テナントの指定を受信する(S401)。そしてテナント選択部302は受信した販売テナントの配下となる販売テナントが存在するか調べる(S402)。存在する場合、テナント選択部302はその販売テナントの販売IDを取得することで下位のテナントを特定し(S403)、次の販売テナントをさがす。配下の販売テナントを検索し終えたら、リージョン更新部303は、ID管理テーブルにおけるテナント選択部302が検索したテナントのリージョンの値を更新する(S404)。更新するリージョンの値はリクエスト受信部301が受信した値である。 The request receiving unit 301 of the tenant management server 101 receives from the client terminal 103 the designation of a sales tenant to be a parent to be migrated (S401). The tenant selection unit 302 then checks whether there is a sales tenant under the received sales tenant (S402). If the tenant exists, the tenant selection unit 302 obtains the sales ID of the sales tenant to identify the subordinate tenant (S403), and searches for the next sales tenant. After completing the search for the subordinate sales tenant, the region update unit 303 updates the region value of the tenant searched by the tenant selection unit 302 in the ID management table (S404). The value of the region to be updated is the value received by the request receiving unit 301.

図5は本実施の形態に係る、販売テナント作成時におけるID管理テーブルのレコードを作成、または更新する処理のフローチャートである。 FIG. 5 is a flowchart of the process of creating or updating records in the ID management table when creating a sales tenant, according to the present embodiment.

テナント管理サーバー101のリクエスト受信部301は、クライアント端末103から販売テナントの新規作成指示を受信する(S501)。このテナント作成指示には、販売テナントとおよびリージョンの指定が含まれる。テナント作成部304は受信した販売IDがID管理テーブルにおいて重複していないか確認する(S502)。重複していない場合はレコードを新規作成する(S503)。 The request receiving unit 301 of the tenant management server 101 receives an instruction to create a new sales tenant from the client terminal 103 (S501). This tenant creation instruction includes specification of a sales tenant and region. The tenant creation unit 304 checks whether the received sales ID is duplicated in the ID management table (S502). If there are no duplicates, a new record is created (S503).

重複している場合、テナント作成部304は、重複している販売IDに紐づくリージョンの値をID管理テーブルから取得し、リクエスト受信部301が受信したリージョンと比較する(S504)。値が同じであれば、次にテナント作成部304は重複している販売IDに紐づく最終更新日時を取得し、処理中の現在日時と比較する(S505)。一定時間以上経過している場合、テナント作成部304は最終更新日時を含め、レコードを更新する(S506)。一定時間経過を待つことにより、操作ミスや悪意による同じ販売IDの指定をある程度防ぐことができるが、あくまで一例であって別の手段でも構わない。 If there is a duplicate, the tenant creation unit 304 obtains the region value associated with the duplicate sales ID from the ID management table, and compares it with the region received by the request receiving unit 301 (S504). If the values are the same, the tenant creation unit 304 next obtains the last update date and time associated with the duplicate sales ID, and compares it with the current date and time during processing (S505). If a certain period of time or more has elapsed, the tenant creation unit 304 updates the record including the last update date and time (S506). By waiting for a certain period of time to elapse, specifying the same sales ID due to operational errors or malicious intent can be prevented to some extent, but this is just an example and other means may be used.

S504においてリージョンが異なる場合、またS505において一定時間が経過していない場合は、テナントの新規作成は失敗となる(S507)。 If the regions are different in S504, or if a certain period of time has not elapsed in S505, the creation of a new tenant will fail (S507).

以上、本実施の形態によれば、異なるリージョンでシステムを並行稼働させつつ、販売テナントのIDを変更せずに、テナントの移行が可能となる。 As described above, according to the present embodiment, it is possible to migrate the tenant without changing the ID of the sales tenant while running the systems in parallel in different regions.

(実施例2)
次に、本発明を実施するための第2の形態について図面を用いて説明する。なお第1の実施の形態と共通の部分については説明を省略し、以下では差異部分についてのみ説明する。
(Example 2)
Next, a second embodiment of the present invention will be described with reference to the drawings. Note that the explanation of the parts common to the first embodiment will be omitted, and only the different parts will be explained below.

テナントの移行が完了した後、移行元のテナント管理テーブルからは、移行済みのテナントのレコードは削除する必要がある。第1実施の形態で示したように、テナントの移行が実施されると、ID管理テーブルにおける移行対象のテナントのリージョンの値が変更される。そこで本実施例では、移行元のテナント管理テーブルから削除するレコードを、ID管理テーブルでリージョンを書き換えたレコードを元に判断する。 After tenant migration is completed, the record of the migrated tenant must be deleted from the migration source tenant management table. As shown in the first embodiment, when a tenant is migrated, the region value of the tenant to be migrated in the ID management table is changed. Therefore, in this embodiment, the record to be deleted from the migration source tenant management table is determined based on the record whose region has been rewritten in the ID management table.

図6は本実施の第2の形態に係る、テナント管理サーバー101の機能を示す図である。図6に示す各機能部は、テナント管理サーバー101が有しているCPU201が制御プログラムを実行することにより実現される。本実施例に関係しない機能部については説明を省略する。 FIG. 6 is a diagram showing the functions of the tenant management server 101 according to the second embodiment. Each functional unit shown in FIG. 6 is realized by the CPU 201 included in the tenant management server 101 executing a control program. Descriptions of functional units not related to this embodiment will be omitted.

テナント記憶部601は、テナント移行時にID管理テーブルでリージョンの値を書き換えたテナントを記憶する。 The tenant storage unit 601 stores tenants whose region values have been rewritten in the ID management table during tenant migration.

テナント削除部602は、テナント記憶部601が記憶したテナントに一致するテナントを、テナント管理テーブルから削除する。 The tenant deletion unit 602 deletes the tenant that matches the tenant stored in the tenant storage unit 601 from the tenant management table.

図7は本実施の第2の形態に係る、テナント管理サーバー101においてテナント移行後にテナント管理テーブルから移行済みのテナントのレコードを削除する処理のフローを示した図である。図示していないが、図4のS406において、テナント管理サーバー101のテナント記憶部601は、リージョンの値を更新したテナントを記憶しておく。例えばID管理テーブルに新たに列を追加しても良い。 FIG. 7 is a diagram showing a flow of processing for deleting a record of a migrated tenant from the tenant management table after tenant migration in the tenant management server 101 according to the second embodiment. Although not shown, in S406 of FIG. 4, the tenant storage unit 601 of the tenant management server 101 stores the tenant whose region value has been updated. For example, a new column may be added to the ID management table.

テナント管理サーバー101のテナント記憶部601は、前記記憶したテナントを読み込む(S701)。1つずつレコードを読み込み(S702)、移行済みのテナントに合致するテナントを、変更前のリージョンのテナント管理テーブルから削除する(S703)。すべてのテナントを削除したら処理を終了する。 The tenant storage unit 601 of the tenant management server 101 reads the stored tenant (S701). Records are read one by one (S702), and tenants that match the migrated tenant are deleted from the tenant management table of the region before change (S703). Finish the process after deleting all tenants.

以上、本実施の第2の形態によれば、テナント移行時にリージョンを更新するレコードを記憶しておくことにより、テナント移行後に削除すべきテナント管理テーブルのレコードを判断することができる。 As described above, according to the second embodiment, by storing records for updating regions at the time of tenant migration, it is possible to determine which records in the tenant management table should be deleted after tenant migration.

(他の実施例)
本発明は、上述した実施形態を適宜組み合わせることにより構成された装置あるいはシステムやその方法も含まれるものとする。
(Other examples)
The present invention also includes devices or systems configured by appropriately combining the embodiments described above, and methods therefor.

ここで、本発明は、上述した実施形態の機能を実現する1つ以上のソフトウェア(プログラム)を実行する主体となる装置あるいはシステムである。また、その装置あるいはシステムで実行される上述した実施形態を実現するための方法も本発明の1つである。また、そのプログラムは、ネットワークまたは各種記憶媒体を介してシステムあるいは装置に供給され、そのシステムあるいは装置の1つ以上のコンピューター(CPUやMPU等)によりそのプログラムが読み出され、実行される。つまり、本発明の1つとして、さらにそのプログラム自体、あるいは当該プログラムを格納したコンピューターにより読み取り可能な各種記憶媒体も含むものとする。また、上述した実施形態の機能を実現する回路(例えば、ASIC)によっても、本発明は実現可能である。 Here, the present invention is a device or system that is the main body that executes one or more software (programs) that implements the functions of the embodiments described above. The present invention also includes a method for implementing the above-described embodiments executed by the device or system. Further, the program is supplied to the system or device via a network or various storage media, and the program is read and executed by one or more computers (CPU, MPU, etc.) of the system or device. In other words, the present invention further includes the program itself or various computer-readable storage media storing the program. Further, the present invention can also be realized by a circuit (for example, an ASIC) that realizes the functions of the embodiments described above.

101、111 テナント管理サーバー
102、112 データベース
103 クライアント端末
101, 111 Tenant management server 102, 112 Database 103 Client terminal

Claims (10)

テナント情報を管理するシステムであって、
移行対象とする第1テナントおよびリージョンの指定を受け付ける受け付け手段と、
前記管理されるテナント情報のうち、前記指定に係る第1テナントの下位である第2テナントのテナント情報を特定する特定手段と、
前記特定された第2テナントのテナント情報のリージョンを、前記指定に係るリージョンに変更する変更手段と、を有することを特徴とするシステム。
A system for managing tenant information,
an acceptance means for accepting the specification of a first tenant and region to be migrated;
Specifying means for specifying tenant information of a second tenant that is subordinate to the specified first tenant among the managed tenant information;
A system comprising: changing means for changing the region of the tenant information of the identified second tenant to the specified region.
各リージョンに共通してテナント情報を管理する第1管理手段を有し、
前記変更手段は、前記第1管理手段で管理される前記第2テナントのテナント情報のリージョンを、前記指定に係るリージョンに変更することを特徴とする請求項1に記載のシステム。
It has a first management means that manages tenant information common to each region,
2. The system according to claim 1, wherein the changing unit changes the region of the tenant information of the second tenant managed by the first managing unit to the specified region.
テナントおよびリージョンの指定を含むテナント作成指示を受信する受信手段と、
前記テナント作成指示で指定されるテナントのテナント情報が、前記第1管理手段で管理されているテナント情報と重複していない場合、前記テナント作成指示で指定されるテナントを作成する作成手段と、を有することを特徴とする請求項2に記載のシステム。
a receiving means for receiving a tenant creation instruction including specification of a tenant and a region;
a creation means for creating a tenant specified in the tenant creation instruction, if the tenant information of the tenant specified in the tenant creation instruction does not overlap with the tenant information managed by the first management means; 3. The system of claim 2, comprising:
リージョンごとにテナント情報を管理する第2管理手段と、
前記第2管理手段で管理される前記変更手段による変更前のリージョンのテナント情報から、前記第2テナントのテナント情報を削除する削除手段と、を有することを特徴とする請求項1に記載のシステム。
a second management means for managing tenant information for each region;
The system according to claim 1, further comprising a deletion unit for deleting the tenant information of the second tenant from the tenant information of the region before the change by the change unit managed by the second management unit. .
前記受け付け手段は、クライアント端末から、移行対象とする第1テナントおよびリージョンの指定を受け付けることを特徴とする請求項1に記載のシステム。 2. The system according to claim 1, wherein the accepting means accepts a designation of a first tenant and a region to be migrated from a client terminal. テナント情報を管理するシステムの制御方法であって、
移行対象とする第1テナントおよびリージョンの指定を受け付ける受け付け工程と、
前記管理されるテナント情報のうち、前記指定に係る第1テナントの下位である第2テナントのテナント情報を特定する特定工程と、
前記特定された第2テナントのテナント情報のリージョンを、前記指定に係るリージョンに変更する変更工程と、を有することを特徴とする制御方法。
A control method for a system that manages tenant information, the method comprising:
an acceptance step of accepting the designation of the first tenant and region to be migrated;
A specifying step of specifying tenant information of a second tenant that is subordinate to the specified first tenant among the managed tenant information;
A control method comprising the step of changing the region of the tenant information of the identified second tenant to the specified region.
各リージョンに共通してテナント情報を管理する第1管理工程を有し、
前記変更工程では、前記第1管理工程で管理される前記第2テナントのテナント情報のリージョンが、前記指定に係るリージョンに変更されることを特徴とする請求項6に記載の制御方法。
It has a first management process that manages tenant information common to each region,
7. The control method according to claim 6, wherein in the changing step, the region of the tenant information of the second tenant managed in the first management step is changed to the specified region.
テナントおよびリージョンの指定を含むテナント作成指示を受信する受信工程と、
前記テナント作成指示で指定されるテナントのテナント情報が、前記第1管理工程で管理されているテナント情報と重複していない場合、前記テナント作成指示で指定されるテナントを作成する作成工程と、を有することを特徴とする請求項7に記載の制御方法。
a receiving step of receiving a tenant creation instruction including specification of a tenant and region;
If the tenant information of the tenant specified in the tenant creation instruction does not overlap with the tenant information managed in the first management step, a creation step of creating a tenant specified in the tenant creation instruction; 8. The control method according to claim 7, further comprising:
リージョンごとにテナント情報を管理する第2管理工程と、
前記第2管理工程で管理される前記変更工程での変更前のリージョンのテナント情報から、前記第2テナントのテナント情報を削除する削除工程と、を有することを特徴とする請求項6に記載の制御方法。
a second management step of managing tenant information for each region;
7. A deletion step of deleting the tenant information of the second tenant from the tenant information of the region before the change in the change step managed in the second management step. Control method.
前記受け付け工程では、クライアント端末から、移行対象とする第1テナントおよびリージョンの指定が受け付けられることを特徴とする請求項6に記載の制御方法。 7. The control method according to claim 6, wherein in the accepting step, designation of the first tenant and region to be migrated is accepted from the client terminal.
JP2022102375A 2022-06-27 2022-06-27 System and control method Pending JP2024003320A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022102375A JP2024003320A (en) 2022-06-27 2022-06-27 System and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022102375A JP2024003320A (en) 2022-06-27 2022-06-27 System and control method

Publications (1)

Publication Number Publication Date
JP2024003320A true JP2024003320A (en) 2024-01-15

Family

ID=89534126

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022102375A Pending JP2024003320A (en) 2022-06-27 2022-06-27 System and control method

Country Status (1)

Country Link
JP (1) JP2024003320A (en)

Similar Documents

Publication Publication Date Title
JP4416821B2 (en) A distributed file system that maintains a fileset namespace accessible to clients over the network
US9043370B2 (en) Online database availability during upgrade
US7783737B2 (en) System and method for managing supply of digital content
US9558194B1 (en) Scalable object store
JP4414381B2 (en) File management program, file management apparatus, and file management method
US7490265B2 (en) Recovery segment identification in a computing infrastructure
US20040205109A1 (en) Computer system
US20070118572A1 (en) Detecting changes in data
TW201229795A (en) Web service patterns for globally distributed service fabric
US20080059735A1 (en) Method of improving efficiency of replication monitoring
JPH0822409A (en) Distribution information management system for network
JP2001306372A (en) Method for managing document and storage medium storing program for executing the method
GB2481930A (en) Information management device and information management program
US20100023713A1 (en) Archive system and contents management method
JP2024003320A (en) System and control method
US11977559B2 (en) Providing instant and distributed access to a source blob via copy-on-read blobs and link blobs
JP2020013307A (en) Method and system for file transfer
US11151094B1 (en) Cluster gateway to multiple filesystems
JP4343056B2 (en) Storage device allocation method and management server and program therefor
JP2006004024A (en) Program for execution by directory server
JP2004157883A (en) Web site content management system and program
JP4843075B2 (en) Copy control method and storage control device
JP2009211413A (en) File management system, file management method, and file management program
JP4604666B2 (en) I / O target change control method
CN112948454A (en) Method, device, middleware and computer readable storage medium for accessing database

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20231213