Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6923471B2 - Relay device, relay method and program - Google Patents
[go: Go Back, main page]

JP6923471B2 - Relay device, relay method and program - Google Patents

Relay device, relay method and program Download PDF

Info

Publication number
JP6923471B2
JP6923471B2 JP2018055293A JP2018055293A JP6923471B2 JP 6923471 B2 JP6923471 B2 JP 6923471B2 JP 2018055293 A JP2018055293 A JP 2018055293A JP 2018055293 A JP2018055293 A JP 2018055293A JP 6923471 B2 JP6923471 B2 JP 6923471B2
Authority
JP
Japan
Prior art keywords
processing
data
priority
relay device
relay
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.)
Expired - Fee Related
Application number
JP2018055293A
Other languages
Japanese (ja)
Other versions
JP2019169812A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2018055293A priority Critical patent/JP6923471B2/en
Publication of JP2019169812A publication Critical patent/JP2019169812A/en
Application granted granted Critical
Publication of JP6923471B2 publication Critical patent/JP6923471B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、中継装置ならびにその中継制御方法に関する。 The present invention relates to a relay device and a relay control method thereof.

特許文献1には、HTTPプロトコル形式で送信され、XML形式のデータを含み、パケットのヘッダにHTTP形式のクライアントの認証情報と、前記データの蓄積の種別を示す蓄積種別情報及び前記データの処理の優先度を示す処理優先度情報を含む付加情報を有するHTTPリクエストを受信する手段と、前記受信されたHTTPリクエストの付加情報に基づいて、前記データを処理する処理手段が開示されている。 Patent Document 1 includes data transmitted in the HTTP protocol format and in the XML format, and includes the authentication information of the client in the HTTP format in the header of the packet, the storage type information indicating the storage type of the data, and the processing of the data. A means for receiving an HTTP request having additional information including processing priority information indicating a priority and a processing means for processing the data based on the additional information of the received HTTP request are disclosed.

特開2006−259928号公報Japanese Unexamined Patent Publication No. 2006-259928

情報制御システムを安定的に運転するためには、前記システムを構成する各装置のOSやミドルウェアなどのシステムソフトウェアを最新の状態に維持して運用しなければならない。しかし、現場のセンサから受信するセンサデータを、サービスに提供するサーバに送信する中継処理を行う中継装置において、システムの運転にかかわるソフトウェアの更新処理などを実施するとき、従来技術を用いて中継処理をデータ種別によりリアルタイム処理とバッチ処理に振り分けることができる。 In order to operate the information control system in a stable manner, it is necessary to maintain and operate the system software such as the OS and middleware of each device constituting the system in the latest state. However, when performing software update processing related to system operation in a relay device that performs relay processing that transmits sensor data received from on-site sensors to a server that provides services, relay processing is performed using conventional technology. Can be divided into real-time processing and batch processing according to the data type.

しかし、前記ソフトウェアの更新処理と中継処理のリアルタイム処理が中継装置の計算能力を超えてしまうと、必要なセンサデータがサーバへ渡らずに情報制御システムが提供する優先度の高いサービスが実行できなくなる場合があった。 However, if the real-time processing of the software update processing and relay processing exceeds the computing capacity of the relay device, the necessary sensor data does not pass to the server and the high-priority service provided by the information control system cannot be executed. There was a case.

そこで、本発明は、中継装置の運転に関わる重要な処理(ソフトウェアの更新)を行いながら、優先度の高いサービスにデータの提供を継続することを目的とする。 Therefore, an object of the present invention is to continue providing data to a service having a high priority while performing important processing (software update) related to the operation of the relay device.

本発明は、プロセッサとメモリを有して、受信したセンサデータに所定の処理を実施してサーバに提供する中継装置であって、前記センサデータを受信して当該センサデータに所定のデータ処理を実施してデータ処理結果を生成し、前記サーバに前記データ処理結果を送信する中継管理部と、ソフトウェアの更新要求を受け付けて、当該中継装置の稼働に関わるソフトウェアの更新を実行するソフトウェア更新部と、前記中継管理部のデータ処理と、前記ソフトウェア更新部に割り当てる計算機資源を制御する計算機資源割当部と、前記サーバのサービスに提供する前記センサデータの優先度を決定する優先度決定部と、を有し、前記中継管理部は、前記優先度と所定の閾値に基づいて、前記センサデータのデータ処理をリアルタイム処理とバッチ処理のいずれかに振り分けるデータ処理振分部を含み、前記計算機資源割当部は、前記ソフトウェア更新部でソフトウェアの更新要求を受け付けたときに、前記ソフトウェアの更新要求の内容に応じて予め設定された緊急度に応じて前記ソフトウェア更新部へ割り当てる計算機資源を変更するThe present invention is a relay device having a processor and a memory, performing a predetermined process on the received sensor data and providing the sensor data to the server. The present invention receives the sensor data and performs a predetermined data process on the sensor data. A relay management unit that executes data processing results and sends the data processing results to the server, and a software update unit that receives software update requests and executes software updates related to the operation of the relay device. , The data processing of the relay management unit, the computer resource allocation unit that controls the computer resources allocated to the software update unit, and the priority determination unit that determines the priority of the sensor data provided to the service of the server. a, the relay management unit, on the basis of the priority and the predetermined threshold value, see contains data processing assignment unit for distributing to one of real-time processing and batch processing data processing of the sensor data, the computing resource allocation When the software update unit receives a software update request, the unit changes the computer resources allocated to the software update unit according to a preset urgency according to the content of the software update request .

本発明によれば、中継装置の運転に関わる重要な処理(ソフトウェアの更新)を行いながら、優先度の高いサービスにデータの提供を継続できるので、情報制御システム全体の高い可用性を実現できる。 According to the present invention, it is possible to continue to provide data to a service having a high priority while performing important processing (software update) related to the operation of the relay device, so that high availability of the entire information control system can be realized.

本発明の実施例を示し、計算機システムの一例を示すブロック図である。It is a block diagram which shows the Example of this invention and shows an example of a computer system. 本発明の実施例を示し、中継装置の構成の一例を示すブロック図である。It is a block diagram which shows the Example of this invention and shows an example of the structure of a relay device. 本発明の実施例を示し、中継装置のテーブル群の構成の一例を示すブロック図である。It is a block diagram which shows the Example of this invention and shows an example of the structure of the table group of a relay device. 本発明の実施例を示し、中継装置で行われる処理の一例を示すシーケンス図である。It is a sequence diagram which shows the Example of this invention and shows an example of the processing performed by the relay device. 本発明の実施例を示し、センサデバイスから受信したセンサデータを格納するセンサデータテーブルの一例を示す図である。It is a figure which shows the Example of this invention and shows an example of the sensor data table which stores the sensor data received from a sensor device. 本発明の実施例を示し、中継装置の内部処理に関する内部処理属性テーブルの一例を示す図である。It is a figure which shows the Example of this invention and shows an example of the internal processing attribute table concerning the internal processing of a relay device. 本発明の実施例を示し、中継装置の内部処理の構成情報を格納する内部処理構成テーブルの一例を示す図である。It is a figure which shows the Example of this invention and shows an example of the internal processing configuration table which stores the configuration information of the internal processing of a relay device. 本発明の実施例を示し、クラウドで提供されるサービスを管理するサービス管理テーブルの一例を示す図である。It is a figure which shows the Example of this invention and shows an example of the service management table which manages the service provided in the cloud. 本発明の実施例を示し、中継装置で処理するデータの優先度を格納するデータ優先度テーブルの一例を示す図である。It is a figure which shows the Example of this invention and shows an example of the data priority table which stores the priority of the data processed by a relay device. 本発明の実施例を示し、ソフトウェア更新の緊急度を判定するための緊急度判定テーブルの一例を示す図である。It is a figure which shows the Example of this invention and shows an example of the urgency determination table for determining the urgency of software update. 本発明の実施例を示し、ソフトウェア更新の緊急度と更新処理に割り当てる処理資源量の関係を示す要求資源テーブルの一例を示す図である。It is a figure which shows the Example of this invention and shows an example of the required resource table which shows the relationship between the urgency of software update and the amount of processing resources allocated to update processing. 本発明の実施例を示し、データ処理の振分を判定する閾値を管理する優先度閾値テーブルの一例を示す図である。It is a figure which shows the Example of this invention and shows an example of the priority threshold value table which manages the threshold value which determines the distribution of data processing. 本発明の実施例を示し、タイマ起動の一例を示すフローチャートである。It is a flowchart which shows the Example of this invention and shows an example of timer activation. 本発明の実施例を示し、データ処理の振分処理の一例を示すフローチャートである。It is a flowchart which shows the Example of this invention and shows an example of the distribution processing of data processing. 本発明の実施例を示し、バッチ処理の一例を示す実施フローチャートである。It is an execution flowchart which shows the Example of this invention and shows an example of a batch process. 本発明の実施例を示し、センサデバイスとサービスを接続する内部処理の第1の構成を示すブロック図である。FIG. 5 is a block diagram showing an embodiment of the present invention and showing a first configuration of an internal process for connecting a sensor device and a service. 本発明の実施例を示し、センサデバイスとサービスを接続する内部処理の第2の構成を示すブロック図である。FIG. 5 is a block diagram showing an embodiment of the present invention and showing a second configuration of an internal process for connecting a sensor device and a service. 本発明の実施例を示し、優先度を継承して内部処理の優先度を決定する内部処理の第3の構成を示すブロック図である。It is a block diagram which shows the Example of this invention and shows the 3rd structure of the internal processing which inherits the priority and determines the priority of an internal processing. 本発明の実施例を示し、サービスの優先度を継承して内部処理の優先度を決定する内部処理の第4の構成を示すブロック図である。It is a block diagram which shows the Example of this invention and shows the 4th structure of the internal processing which inherits the priority of a service, and determines the priority of an internal processing. 本発明の実施例を示し、処理結果の参照数で内部処理の優先度を決定する内部処理の第5の構成を示すブロック図である。It is a block diagram which shows the Example of this invention and shows the 5th structure of the internal processing which determines the priority of the internal processing by the reference number of the processing result.

以下、本発明の実施形態を添付図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

図1は本発明が対象にする計算機システムの構成の一例を示すブロック図である。工場などの装置や設備が配置される現場側には、観測の対象物から温度、湿度、回転数、振動数などを観測するセンサデバイス100−1〜100−3が配置される。なお、以下の説明では、センサデバイスの個々を特定しない場合には、「−」以降を省略した符号100を用いる。他の構成要素の符号についても同様である。 FIG. 1 is a block diagram showing an example of the configuration of a computer system targeted by the present invention. Sensor devices 100-1 to 100-3 for observing temperature, humidity, rotation speed, frequency, etc. from an object to be observed are arranged on the site side where devices and equipment such as factories are arranged. In the following description, when the individual sensor devices are not specified, reference numeral 100 is used with the “−” and subsequent parts omitted. The same applies to the codes of other components.

中継装置2は、センサデバイス100から受け付けたセンサデータに所定の処理を実施した処理結果(データオブジェクト)をクラウド40に送信する。クラウド40の計算機(またはサーバ)では受信したデータオブジェクトについて高度な分析処理などを実施するサービス300−1〜300−3が提供される。なお、クラウド40は、複数の仮想計算機等を提供する計算機を含むデータセンタなどで構成される。 The relay device 2 transmits a processing result (data object) obtained by performing a predetermined process on the sensor data received from the sensor device 100 to the cloud 40. The computer (or server) of the cloud 40 provides services 300-1 to 300-3 that perform advanced analysis processing and the like on the received data object. The cloud 40 is composed of a data center or the like including a computer that provides a plurality of virtual computers or the like.

また、これらのサービスはクラウド40だけで実行されるのではなく、サービスの性質(リアルタイム性能、ユーザビリティ要件など)や環境(混雑度、消費電力の最適化など)に応じて動的に実行する環境がクラウド40または中継装置2によって決定される。 In addition, these services are not executed only in the cloud 40, but are dynamically executed according to the nature of the service (real-time performance, usability requirements, etc.) and the environment (congestion degree, optimization of power consumption, etc.). Is determined by the cloud 40 or the relay device 2.

さらに、1つのサービスは複数のソフトウェアコンポーネントから構成されており、各ソフトウェアコンポーネントがクラウド40と中継装置2に分散して配置されることもある。 Further, one service is composed of a plurality of software components, and each software component may be distributed and arranged in the cloud 40 and the relay device 2.

サービス300の性質と環境に応じて、各サービス300を提供するためのソフトウェアコンポーネントが動的に配置され、最適な構成でサービス300として動的に再構成される。中継装置2が実行するソフトウェアコンポーネントは、中継装置2が具備する処理基盤30の中の分析ロジックや信号処理などのデータ処理を中継管理部34で実行される。 Software components for providing each service 300 are dynamically arranged according to the nature and environment of the service 300, and are dynamically reconfigured as the service 300 with the optimum configuration. The software component executed by the relay device 2 is executed by the relay management unit 34 for data processing such as analysis logic and signal processing in the processing board 30 included in the relay device 2.

センサデバイス100は、対象物からセンサデータを取得するためのセンサと、センサデータを中継装置2に送信するための通信装置を具備する。 The sensor device 100 includes a sensor for acquiring sensor data from an object and a communication device for transmitting the sensor data to the relay device 2.

中継装置2は、センサデバイス100から送信されたセンサデータ及び処理中のデータを格納するためのセンサデータテーブルT100と、サービス300および分析ロジックや信号処理など1つまたは複数の内部処理を中継管理部34が実行して、クラウド40で実行されるサービス300が参照可能なデータオブジェクト(データ処理結果)を格納するためのデータオブジェクトテーブル1100を具備する。 The relay device 2 relays the sensor data table T100 for storing the sensor data transmitted from the sensor device 100 and the data being processed, the service 300, and one or more internal processes such as analysis logic and signal processing. A data object table 1100 for storing a data object (data processing result) that can be referenced by the service 300 executed by the 34 and executed in the cloud 40 is provided.

センサデータテーブルT100には、センサデバイス100により観測されたデータ1001が格納される。また、データオブジェクトテーブル1100には、クラウド40などで提供されるサービス300が参照するデータオブジェクト1101が格納される。 The sensor data table T100 stores the data 1001 observed by the sensor device 100. Further, the data object table 1100 stores the data object 1101 referenced by the service 300 provided by the cloud 40 or the like.

そして、中継装置2は、センサデータテーブルT100およびデータオブジェクトテーブル1100を管理するための処理基盤30を具備する。この処理基盤30は、センサデータテーブルT100に格納されるデータ1001を参照して、データオブジェクト1101を生成するためのデータ処理を行う中継管理部34と、中継装置2のソフトウェア更新の受付や実施を行うソフトウェア更新部31と、クラウド40などで提供されるサービス300の優先度や、サービス300に関連するデータを提供するセンサデバイス100を管理するサービス管理部32、および、中継装置2の処理資源量を管理する処理資源管理33を具備する。なお、データオブジェクト生成344は、中継管理部34に含まれる。 The relay device 2 includes a processing base 30 for managing the sensor data table T100 and the data object table 1100. The processing platform 30 refers to the data 1001 stored in the sensor data table T100, and receives and executes software updates of the relay management unit 34 that performs data processing for generating the data object 1101 and the relay device 2. The amount of processing resources of the software update unit 31 to perform, the service management unit 32 that manages the priority of the service 300 provided by the cloud 40 and the like, the sensor device 100 that provides the data related to the service 300, and the relay device 2. The processing resource management 33 for managing the above is provided. The data object generation 344 is included in the relay management unit 34.

また、中継装置2は、ソフトウェアの更新を管理する中継装置管理サーバ400に接続される。中継装置管理サーバ400は、OSやファームウェアなどソフトウェアの更新を管理する。中継装置管理サーバ400は、更新が必要なソフトウェアを外部から取得すると、中継装置2へ更新要求を通知し、ソフトウェアのアップデータを配信する。中継装置2は、中継装置管理サーバ400から更新要求を受け付けると、図4に示す処理を実行する。 Further, the relay device 2 is connected to the relay device management server 400 that manages software updates. The relay device management server 400 manages software updates such as the OS and firmware. When the relay device management server 400 acquires the software that needs to be updated from the outside, it notifies the relay device 2 of the update request and distributes the software updater. When the relay device 2 receives the update request from the relay device management server 400, the relay device 2 executes the process shown in FIG.

図2は、中継装置2の構成の一例を示すブロック図である。 FIG. 2 is a block diagram showing an example of the configuration of the relay device 2.

中継装置2は、演算処理を行うCPU21と、プログラムやデータを格納するメモリ22と、CPU21に接続されたI/Oインターフェース23と、I/Oインターフェース23に接続されてデータを永続的に保持可能な不揮発性のストレージ26と、I/Oインターフェース23に接続されてセンタ側ネットワーク28との間で通信を行うセンタ側通信装置25と、I/Oインターフェース23に接続されて現場側ネットワーク27との間で通信を行う現場側通信装置24から構成される。 The relay device 2 can permanently hold data by being connected to a CPU 21 that performs arithmetic processing, a memory 22 that stores programs and data, an I / O interface 23 that is connected to the CPU 21, and an I / O interface 23. Non-volatile storage 26, a center-side communication device 25 connected to the I / O interface 23 to communicate with the center-side network 28, and a site-side network 27 connected to the I / O interface 23. It is composed of a field-side communication device 24 that communicates with each other.

I/Oインターフェース23は、例えば、PCIexpressで構成され、CPU21とI/Oデバイスと間の通信を行う。メモリ22には、OS200がロードされてCPU21によって実行される。 The I / O interface 23 is composed of, for example, PCIe express, and communicates between the CPU 21 and the I / O device. The OS 200 is loaded into the memory 22 and executed by the CPU 21.

また、メモリ22には、処理基盤30を構成するプログラムと、処理基盤30が使用するテーブル群T10が格納される。なお、テーブル群T10は、ストレージ26に格納されていても良い。テーブル群T10の詳細を図3に示す。 Further, the memory 22 stores a program constituting the processing base 30 and a table group T10 used by the processing base 30. The table group T10 may be stored in the storage 26. Details of the table group T10 are shown in FIG.

テーブル群T10は、センサデバイス100から送信されて中継装置2が受信したセンサデータ及び処理中のデータを格納するセンサデータテーブルT100と、前記センサデータをサービス300で扱えるように、分析ロジックや信号処理などのデータ処理を施したデータオブジェクトを格納するデータオブジェクトテーブル1100と、中継装置2が収容するサービス300の優先度と、サービス300のために実施する分析ロジックや信号処理などのデータ処理の関係を考慮して決定した各データの優先度を格納するデータ優先度テーブルT500と、さらに、前記サービス300のために実施する分析ロジックや信号処理などのデータ処理の前後関係および接続関係を保持する内部処理管理テーブル(内部処理属性テーブルT200及び内部処理構成テーブルT300)を含んで、メモリ22上に格納される。 The table group T10 includes a sensor data table T100 that stores sensor data transmitted from the sensor device 100 and received by the relay device 2 and data being processed, and analysis logic and signal processing so that the sensor data can be handled by the service 300. The relationship between the data object table 1100 that stores the data objects that have undergone data processing such as, the priority of the service 300 accommodated by the relay device 2, and the data processing such as analysis logic and signal processing performed for the service 300. A data priority table T500 that stores the priority of each data determined in consideration, and an internal process that holds the context and connection relationship of data processing such as analysis logic and signal processing performed for the service 300. The management table (internal processing attribute table T200 and internal processing configuration table T300) is included and stored in the memory 22.

さらに、テーブル群T10は、中継装置2がセンサデータに基づくデータオブジェクトを提供するサービス300を管理するサービス管理テーブルT400と、中継装置2が受け付けるソフトウェアの更新要求の緊急度を判定するための緊急度判定テーブルT600と、ソフトウェアの更新処理を実施するための緊急度と処理資源量(計算機資源の割当量)を管理する要求資源テーブルT700と、データ処理の振分を判定するための優先度閾値テーブルT800を含む。なお、内部処理属性テーブルT200〜優先度閾値テーブルT800は、予め設定されたテーブルである。 Further, the table group T10 includes a service management table T400 that manages a service 300 in which the relay device 2 provides a data object based on sensor data, and an urgency level for determining the urgency of a software update request received by the relay device 2. Judgment table T600, request resource table T700 that manages urgency and processing resource amount (allocation amount of computer resources) for executing software update processing, and priority threshold table for judging data processing distribution. Includes T800. The internal processing attribute table T200 to the priority threshold table T800 are preset tables.

また、メモリ22には、処理基盤30を構成するプログラム群として、ソフトウェア更新部31と、サービス管理部32と、処理資源管理33と、中継管理部34がロードされる。 Further, the software update unit 31, the service management unit 32, the processing resource management 33, and the relay management unit 34 are loaded into the memory 22 as a group of programs constituting the processing infrastructure 30.

ソフトウェア更新部31のプログラムには、中継装置管理サーバ400からソフトウェアの更新要求を受け付ける要求受付311と、受け付けたソフトウェアの更新要求の緊急度を判定する緊急度判定312と、ソフトウェアの更新要求を実行する更新実行管理313が含まれる。 The program of the software update unit 31 executes a request reception 311 for receiving a software update request from the relay device management server 400, an urgency determination 312 for determining the urgency of the received software update request, and a software update request. Update execution management 313 is included.

処理資源管理33は、中継装置2の処理基盤30が利用可能な処理資源量(計算機資源)を制御するプログラムである。 The processing resource management 33 is a program that controls the amount of processing resources (computer resources) that can be used by the processing infrastructure 30 of the relay device 2.

サービス管理部32のプログラムには、中継装置2がデータオブジェクトを提供するサービス300の優先度を管理するサービス管理321と、中継装置2が収容するセンサデバイスを管理するセンサデバイス管理322と、前記内部処理管理テーブル(内部処理属性テーブルT200、内部処理構成テーブルT300)を用いて、サービス300のために実施する分析ロジックや信号処理などのデータ処理の前後関係および接続関係を管理する内部処理管理323と、前記内部処理管理テーブルを用いて、各データの優先度をデータ優先度テーブルT500を用いて管理するセンサデータ評価(優先度決定部)324が含まれる。 The program of the service management unit 32 includes a service management 321 that manages the priority of the service 300 that the relay device 2 provides a data object, a sensor device management 322 that manages the sensor device accommodated by the relay device 2, and the inside. Using the processing management table (internal processing attribute table T200, internal processing configuration table T300), the internal processing management 323 that manages the context and connection of data processing such as analysis logic and signal processing to be executed for the service 300. A sensor data evaluation (priority determination unit) 324 that manages the priority of each data using the data priority table T500 using the internal processing management table is included.

処理資源管理33は、中継装置2が具備する処理基盤30の処理資源を管理するプログラムである。 The processing resource management 33 is a program for managing the processing resources of the processing infrastructure 30 included in the relay device 2.

中継管理部34のプログラムには、受信したセンサデータについて、必要な分析ロジックや信号処理などのデータ処理を実施してデータオブジェクトを生成し、データオブジェクトテーブル1100に格納する中継処理を制御する中継処理制御341と、中継装置2の中継処理の負荷状況を監視する負荷監視342と、センサデバイス100から送信されるセンサデータを受信してセンサデータテーブルT100に格納するセンサデータ受信343と、データオブジェクトをサービス300に送信するデータオブジェクト送信346と、センサデータの優先度に応じて分析ロジックや信号処理などのデータ処理の実行を即時実施するかバッチ処理でまとめて実施するかを振り分けるデータ処理振分345が含まれる。 In the program of the relay management unit 34, the received sensor data is subjected to data processing such as necessary analysis logic and signal processing to generate a data object, and the relay processing for controlling the relay processing stored in the data object table 1100 is performed. The control 341, the load monitoring 342 that monitors the load status of the relay processing of the relay device 2, the sensor data reception 343 that receives the sensor data transmitted from the sensor device 100 and stores it in the sensor data table T100, and the data object. Data object transmission 346 to be transmitted to service 300 and data processing distribution 345 that divides whether data processing such as analysis logic and signal processing is executed immediately or collectively by batch processing according to the priority of sensor data. Is included.

なお、中継処理制御341は、センサデータに対して必要なデータ処理を実施してデータオブジェクトを生成(または変換)するデータオブジェクト生成344を含む。また、センサデータ受信343は、データ処理が連鎖する場合には、データ処理が生成した出力データをセンサデータテーブルT100に格納することができる。 The relay processing control 341 includes a data object generation 344 that generates (or converts) a data object by performing necessary data processing on the sensor data. Further, the sensor data reception 343 can store the output data generated by the data processing in the sensor data table T100 when the data processing is chained.

CPU21は、処理基盤30を構成するソフトウェア更新部31と、サービス管理部32と、処理資源管理33と、中継管理部34のプログラムをメモリ22にロードして実行する。 The CPU 21 loads and executes the programs of the software update unit 31, the service management unit 32, the processing resource management 33, and the relay management unit 34 that constitute the processing infrastructure 30 into the memory 22.

CPU21は、各機能部のプログラムに従って処理することによって、所定の機能を提供する機能部として稼働する。例えば、CPU21は、処理資源管理33のプログラムに従って処理することで処理資源管理部として機能する。他のプログラムについても同様である。さらに、CPU21は、各プログラムが実行する複数の処理のそれぞれの機能を提供する機能部としても稼働する。計算機及び計算機システムは、これらの機能部を含む装置及びシステムである。 The CPU 21 operates as a functional unit that provides a predetermined function by processing according to the program of each functional unit. For example, the CPU 21 functions as a processing resource management unit by processing according to the program of the processing resource management 33. The same applies to other programs. Further, the CPU 21 also operates as a functional unit that provides each function of a plurality of processes executed by each program. A computer and a computer system are devices and systems including these functional parts.

処理基盤30の各機能を実現するプログラム、テーブル等の情報は、ストレージ26や不揮発性半導体メモリ、ハードディスクドライブ、SSD(Solid State Drive)等の記憶デバイス、または、ICカード、SDカード、DVD等の計算機読み取り可能な非一時的データ記憶媒体に格納することができる。 Information such as programs and tables that realize each function of the processing board 30 can be stored in a storage 26, a non-volatile semiconductor memory, a hard disk drive, a storage device such as an SSD (Solid State Drive), or an IC card, SD card, DVD, or the like. It can be stored in a computer-readable non-volatile data storage medium.

中継装置2の処理基盤30の機能は、ソフトウェア更新部31が中継装置2のソフトウェアの更新を管理し、サービス管理部32がクラウドなどで提供されるサービスを管理し、処理資源管理33が中継装置2の処理基盤30が具備する処理資源を管理し、中継管理部34が中継装置2に収容されるセンサデバイス100から受信したセンサデータに対して所定の処理を実施してサービス300に送信する。 As for the functions of the processing infrastructure 30 of the relay device 2, the software update unit 31 manages the software update of the relay device 2, the service management unit 32 manages the services provided in the cloud, and the processing resource management 33 manages the relay device. The processing resource included in the processing base 30 of 2 is managed, and the relay management unit 34 performs predetermined processing on the sensor data received from the sensor device 100 accommodated in the relay device 2 and transmits the sensor data to the service 300.

図4は、中継装置2がソフトウェアの更新要求を受信したときに実行される処理の一例を示すシーケンス図である。 FIG. 4 is a sequence diagram showing an example of processing executed when the relay device 2 receives a software update request.

まず、中継装置2の要求受付311が中継装置管理サーバ400から中継装置2のソフトウェアの更新要求を受け付ける(SQ01)。要求受付311は、受け付けたソフトウェアの更新要求の緊急度を判定するために、受け付けた要求に関する情報を緊急度判定312に送信する(SQ02)。緊急度判定312は、ソフトウェアの更新要求の緊急度を判定した結果を要求受付311に送信する(SQ03)。 First, the request reception 311 of the relay device 2 receives the software update request of the relay device 2 from the relay device management server 400 (SQ01). The request reception 311 transmits information regarding the received request to the urgency determination 312 in order to determine the urgency of the received software update request (SQ02). The urgency determination 312 transmits the result of determining the urgency of the software update request to the request reception 311 (SQ03).

要求受付311は、緊急度の判定結果により示されたソフトウェアの更新処理のために確保する処理資源を処理資源管理33に要求する(SQ04)。処理資源管理33は、要求された処理資源を確保が完了したことを通知する(SQ05)。 The request reception 311 requests the processing resource management 33 for the processing resources reserved for the software update processing indicated by the urgency determination result (SQ04). The processing resource management 33 notifies that the requested processing resource has been secured (SQ05).

要求受付311は、要求した処理資源が確保できたことを受けて、受け付けたソフトウェアの更新処理の実行を更新実行管理313に指示する(SQ06)。処理資源管理33は、要求受付311からの処理資源の要求により、現在中継処理に割り当てている処理資源量に変化があった場合、変更後に中継処理に割り当てられる処理資源量を中継処理制御341に通知する(SQ07)。 Upon receiving that the requested processing resource has been secured, the request reception 311 instructs the update execution management 313 to execute the update processing of the received software (SQ06). When the processing resource amount currently allocated to the relay processing changes due to the processing resource request from the request reception 311, the processing resource management 33 sets the processing resource amount allocated to the relay processing after the change to the relay processing control 341. Notify (SQ07).

中継処理制御341は、現在収容しているセンサデバイス100およびサービス300と、データオブジェクトを生成するために構成されている分析ロジックや信号処理などデータ処理で扱われるデータの優先度の判定をセンサデータ評価324に依頼する(SQ08)。 The relay processing control 341 determines the priority of the sensor device 100 and the service 300 currently housed and the data handled in the data processing such as the analysis logic and signal processing configured to generate the data object. Request evaluation 324 (SQ08).

センサデータ評価324は、現在収容しているセンサデバイス100およびサービス300と、データオブジェクトを生成するために構成されている分析ロジックや信号処理などデータ処理の構成状況を考慮して、各データ(センサデータ及び処理中のデータ)の処理の優先度を判定する(SQ09)。センサデータ評価324は、判定された優先度を中継処理制御341に応答する。 The sensor data evaluation 324 considers each data (sensor) in consideration of the currently accommodated sensor device 100 and service 300 and the configuration status of data processing such as analysis logic and signal processing configured to generate a data object. The processing priority of (data and data being processed) is determined (SQ09). The sensor data evaluation 324 responds to the relay processing control 341 with the determined priority.

中継処理制御341は、現在実行している中継処理により発生している処理負荷を負荷監視342に問い合わせる(SQ10)。負荷監視342は、現在実行している中継処理により発生している処理負荷を中継処理制御341に応答する(SQ11)。中継処理制御341は、各データの優先度に応じて、適用する処理を即時(リアルタイム)処理とバッチ処理に振り分けるデータ処理振分345の実行開始を指示する(SQ12)。 The relay processing control 341 inquires the load monitoring 342 about the processing load generated by the relay processing currently being executed (SQ10). The load monitoring 342 responds to the relay processing control 341 with the processing load generated by the relay processing currently being executed (SQ11). The relay processing control 341 instructs the start of execution of the data processing distribution 345 that divides the processing to be applied into immediate (real-time) processing and batch processing according to the priority of each data (SQ12).

上記の処理によって、計算機資源の割り当てと中継処理制御341の処理内容が変更されて、更新実行管理313によってソフトウェアの更新が実行され、中継処理制御341によってデータ処理が継続される。 By the above processing, the allocation of computer resources and the processing contents of the relay processing control 341 are changed, the software update is executed by the update execution management 313, and the data processing is continued by the relay processing control 341.

図5は、センサデバイス100から受信される、センサによって観測されたデータと、中継装置2の内部で処理を行うデータを格納するセンサデータテーブルT100の構成例を示す。 FIG. 5 shows a configuration example of the sensor data table T100 that stores the data received from the sensor device 100 and observed by the sensor and the data to be processed inside the relay device 2.

センサデータテーブルT100は、格納するセンサデータまたは処理中のデータ(以下、データとする)の受信の順序を示すシリアル番号T110と、格納するデータの送信元のセンサデバイス100を識別するデバイスID T120は、このセンサデバイス100を製造したベンダを識別するベンダID T121と、該当ベンダの製品を識別するプロダクトID T122と、該当ベンダが付与した該当製品の製造番号を示す製造番号T123で構成され、さらにセンサデバイス100が送信するデータの形式を示すデータ型T130と、センサデバイス100が送信したデータが示す値T140と、各データを中継装置2内で一意に特定するためのデータID T150と、各データの処理状況として、「未処理」、「バッチ」、「処理済」の3つの値を格納する処理状況T160、から構成される。 In the sensor data table T100, the serial number T110 indicating the order of receiving the stored sensor data or the data being processed (hereinafter referred to as data) and the device ID T120 for identifying the sensor device 100 from which the stored data is transmitted are The sensor is composed of a vendor ID T121 that identifies the vendor that manufactured the sensor device 100, a product ID T122 that identifies the product of the vendor, and a serial number T123 that indicates the serial number of the product assigned by the vendor. The data type T130 indicating the format of the data transmitted by the device 100, the value T140 indicated by the data transmitted by the sensor device 100, the data ID T150 for uniquely identifying each data in the relay device 2, and each data. The processing status is composed of a processing status T160 that stores three values of "unprocessed", "batch", and "processed".

なお、中継装置2の内部で処理を行うデータ(例えば、前処理PRE100(後述)の出力データ)については、デバイスID T120はブランクとする。また、デバイスID T120は、センサデバイス100毎に予め中継装置2が設定しても良いし、センサデバイス100から読み込むようにしても良い。 The device ID T120 is blank for the data to be processed inside the relay device 2 (for example, the output data of the preprocessing PRE100 (described later)). Further, the device ID T120 may be set in advance by the relay device 2 for each sensor device 100, or may be read from the sensor device 100.

図5は、2つのベンダが製造した4種類の製品であるセンサデバイス100から受信したデータを格納した例を示している。 FIG. 5 shows an example of storing data received from the sensor device 100, which is four kinds of products manufactured by two vendors.

図6は、中継処理制御341がデータを用いてサービス300へ提供するデータオブジェクトを生成するために、中継装置2の内部処理として実施する分析ロジックや信号処理などのデータ処理の属性を格納する内部処理属性テーブルT200の構成例を示す。 FIG. 6 shows an internal storage of data processing attributes such as analysis logic and signal processing executed as internal processing of the relay device 2 in order for the relay processing control 341 to generate a data object to be provided to the service 300 using the data. A configuration example of the processing attribute table T200 is shown.

内部処理属性テーブルT200は、各内部処理を識別するために付与されたシリアル番号T210と、処理の種別を示す接頭語、”PRE”(前処理)、”INTM”(中間処理)、または”POST”(後処理)、および、各接頭語を含む処理を一意に識別可能な数字から構成されて、中継装置2内のデータ処理を一意に識別可能な処理ID T220と、各データ処理の入力データ数を示す入力数T230と、各データ処理の出力データ数を示す出力数T240、から構成される。 The internal processing attribute table T200 includes a serial number T210 assigned to identify each internal processing and a prefix indicating the type of processing, "PRE" (preprocessing), "INTM" (intermediate processing), or "POST". "(Post-processing) and the processing ID T220, which is composed of a number that can uniquely identify the processing including each prefix and can uniquely identify the data processing in the relay device 2, and the input data of each data processing. It is composed of an input number T230 indicating a number and an output number T240 indicating the number of output data of each data processing.

図7は、中継処理制御341がデータを用いてサービス300に提供するデータオブジェクトを生成するために、中継装置2の内部処理として実施する分析ロジックや信号処理などのデータ処理に対する入力データおよび出力データの関係を示す内部処理構成テーブルT300の構成例を示す。 FIG. 7 shows input data and output data for data processing such as analysis logic and signal processing executed as internal processing of the relay device 2 in order to generate a data object provided to the service 300 by the relay processing control 341 using the data. A configuration example of the internal processing configuration table T300 showing the relationship between the above is shown.

内部処理構成テーブルT300は、各内部処理を識別するために付与されたシリアル番号T310と、処理の種別を示す接頭語、”PRE”(前処理)、”INTM”(中間処理)、または”POST”(後処理)、および、各接頭語を含む処理を一意に識別可能な数字から構成されて、中継装置2内のデータ処理を一意に識別可能な処理ID T320と、各データ処理の入力データを示す入力データID T330と、各データ処理の出力データを示す出力データID T340、から構成される。 The internal processing configuration table T300 includes a serial number T310 assigned to identify each internal processing and a prefix indicating the type of processing, "PRE" (preprocessing), "INTM" (intermediate processing), or "POST". "(Post-processing) and the processing ID T320, which is composed of a number that can uniquely identify the processing including each prefix and can uniquely identify the data processing in the relay device 2, and the input data of each data processing. It is composed of an input data ID T330 indicating the above and an output data ID T340 indicating the output data of each data processing.

前記出力データID T340に複数のデータIDが格納される場合は、該当データ処理の結果の複製を生成して、各出力データのデータIDを付与する。 When a plurality of data IDs are stored in the output data ID T340, a duplicate of the result of the corresponding data processing is generated and the data ID of each output data is assigned.

図8は、中継装置2が収容するサービス300を管理するサービス管理テーブルT400の構成例を示す。サービス管理テーブルT400は、各サービス300に付与されたシリアル番号T410と、サービス300を一意に識別可能なサービスID T420と、該当サービス300の優先度を格納する優先度T430と、該当サービス300への入力となるデータを示す入力データID T440から構成される。前記優先度T430は、1が最も高い優先度を示して、10が最も低い優先度を示す。 FIG. 8 shows a configuration example of the service management table T400 that manages the service 300 accommodated by the relay device 2. The service management table T400 has a serial number T410 assigned to each service 300, a service ID T420 that can uniquely identify the service 300, a priority T430 that stores the priority of the service 300, and the service 300. It is composed of an input data ID T440 indicating data to be input. In the priority T430, 1 indicates the highest priority and 10 indicates the lowest priority.

図9は、中継装置2内でデータ処理される各データの優先度を格納するデータ優先度テーブルT500の構成例を示す。 FIG. 9 shows a configuration example of the data priority table T500 that stores the priority of each data processed in the relay device 2.

データ優先度テーブルT500は、各データに付与されるシリアル番号T510と、各データを中継装置2内で一意に識別するデータID T520と、該当データの優先度を格納する優先度T530、から構成される。前記優先度T530は、「1」が最も高い優先度を示して、「10」が最も低い優先度を示す。 The data priority table T500 is composed of a serial number T510 assigned to each data, a data ID T520 that uniquely identifies each data in the relay device 2, and a priority T530 that stores the priority of the corresponding data. NS. In the priority T530, "1" indicates the highest priority and "10" indicates the lowest priority.

図10は、中継装置2が受け付けるソフトウェアの更新処理の緊急度を判定するための緊急度判定テーブルT600の構成例を示す。 FIG. 10 shows a configuration example of the urgency determination table T600 for determining the urgency of the software update process accepted by the relay device 2.

緊急度判定テーブルT600は、各更新内容に付与されるシリアル番号T610と、ソフトウェアの更新処理の内容を示すソフトウェア更新内容T620と、該当ソフトウェア更新処理の緊急度を格納する緊急度T630、から構成される。前記緊急度T630は、1が最も高い緊急度を示して、10が最も低い緊急度を示す。 The urgency determination table T600 is composed of a serial number T610 assigned to each update content, a software update content T620 indicating the content of the software update process, and an urgency level T630 for storing the urgency of the corresponding software update process. NS. In the urgency T630, 1 indicates the highest urgency and 10 indicates the lowest urgency.

図11は、中継装置2が受け付けるソフトウェアの更新処理の緊急度に応じて、該当システム更新処理の実施に必要な処理資源量を管理する要求資源テーブルT700の構成例を示す。 FIG. 11 shows a configuration example of the request resource table T700 that manages the amount of processing resources required to execute the corresponding system update process according to the urgency of the software update process received by the relay device 2.

要求資源テーブルT700は、各緊急度に割り当てられたシリアル番号T710と、各緊急度を示す緊急度T720と、該当緊急度のときに対応するソフトウェアの更新処理のために割り当てを要求する処理資源の割合(%)を示す要求処理資源T730、から構成される。 The request resource table T700 contains a serial number T710 assigned to each urgency, an urgency T720 indicating each urgency, and a processing resource that requests allocation for software update processing corresponding to the urgency. It is composed of a request processing resource T730 indicating a ratio (%).

要求処理資源T730には、CPU21の使用率やメモリ22の使用率等、処理に必要な計算機資源の割合が設定される。 In the request processing resource T730, the ratio of computer resources required for processing, such as the usage rate of the CPU 21 and the usage rate of the memory 22, is set.

図12は、中継装置2がデータ処理の振分を判定するときに参照する閾値を格納する中継データ処理振分の優先度閾値テーブルT800の構成例を示す。 FIG. 12 shows a configuration example of a priority threshold table T800 for relay data processing distribution, which stores a threshold value referred to when the relay device 2 determines the distribution of data processing.

優先度閾値テーブルT800は、各エントリに割り当てられたシリアル番号T810と、中継処理のために利用可能な処理資源量を示す利用可能処理資源T820と、中継処理負荷に対する優先度の閾値T830、から構成される。 The priority threshold table T800 is composed of a serial number T810 assigned to each entry, an available processing resource T820 indicating the amount of processing resources available for relay processing, and a priority threshold T830 for the relay processing load. Will be done.

前記中継処理負荷に対する優先度の閾値T830は、中継処理が低負荷時の閾値を格納する低T831と、中継処理が中負荷時の閾値を格納する中T832と、中継処理が高負荷時の閾値を格納する高T833、から構成される。 The priority threshold value T830 for the relay processing load includes a low T831 that stores the threshold value when the relay processing is low load, a medium T832 that stores the threshold value when the relay processing is medium load, and a threshold value when the relay processing is high load. Consists of a high T833, which stores.

なお、低負荷とは、例えば、CPU21の使用率が30%未満の状態を示し、中負荷は、CPU21の使用率が30%以上80%未満の状態を示し、高負荷は、CPU21の使用率が80%以上の状態を示す。また、負荷はCPU21の使用率に限定されるものではなく、メモリ22の使用率やI/Oの頻度やこれらの組合せを用いるようにしても良い。 図13は、各種処理を起動するためのタイマを開始するフローチャートを示す。まず、中継管理部34は、データ処理振分用の短周期タイマを開始するS301。次に、バッチ処理用の長周期タイマを開始するS302。そして、本処理フローを終了する。 A low load means, for example, a state in which the usage rate of the CPU 21 is less than 30%, a medium load means a state in which the usage rate of the CPU 21 is 30% or more and less than 80%, and a high load means a state in which the usage rate of the CPU 21 is less than 80%. Indicates a state of 80% or more. Further, the load is not limited to the usage rate of the CPU 21, and the usage rate of the memory 22, the frequency of I / O, or a combination thereof may be used. FIG. 13 shows a flowchart for starting a timer for activating various processes. First, the relay management unit 34 starts the short-cycle timer for data processing distribution S301. Next, S302 starts a long-period timer for batch processing. Then, this processing flow is terminated.

なお、短周期タイマは、例えば、100msに設定され、長周期タイマは、例えば、10秒に設定される。これらの周期は、センサデバイス100が測定するセンサデータやサービス300の内容に応じて適宜設定することができる。 The short-period timer is set to, for example, 100 ms, and the long-period timer is set to, for example, 10 seconds. These cycles can be appropriately set according to the sensor data measured by the sensor device 100 and the content of the service 300.

図14は、中継装置2が内部処理として実施するデータ処理の振分処理の一例を示すフローチャートS100を示す。本振分処理のフローチャートS100は、事前に設定された短周期タイマが所定の周期となる度にデータ処理振分345が呼び出されて実行される。 FIG. 14 shows a flowchart S100 showing an example of distribution processing of data processing performed by the relay device 2 as internal processing. In the flowchart S100 of the main distribution processing, the data processing distribution 345 is called and executed every time the preset short-cycle timer reaches a predetermined cycle.

まず、データ処理振分345は、現在、中継処理のために利用可能な処理資源量(または比率)を処理資源管理33から取得する(S101)。そして、データ処理振分345は、現時点での中継処理を実行することにより生じている負荷情報を負荷監視342から取得する(S102)。 First, the data processing distribution 345 acquires the amount (or ratio) of processing resources currently available for relay processing from the processing resource management 33 (S101). Then, the data processing distribution 345 acquires the load information generated by executing the relay processing at the present time from the load monitoring 342 (S102).

そして、データ処理振分345は、前記利用可能な処理資源量と前記負荷情報を用いて、優先度閾値テーブルT800を参照して優先度の閾値T830をデータ処理の振分閾値として取得する(S103)。データ処理振分345は、負荷情報が低負荷であれば優先度閾値テーブルT800の低T831のカラムから、利用可能処理資源量T820に対応する閾値を取得する。中負荷、高負荷の場合も同様である。 Then, the data processing distribution 345 uses the available processing resource amount and the load information to refer to the priority threshold table T800 and acquire the priority threshold T830 as the data processing distribution threshold (S103). ). If the load information is low, the data processing distribution 345 acquires a threshold value corresponding to the available processing resource amount T820 from the column of the low T831 of the priority threshold table T800. The same applies to medium load and high load.

そして、データ処理振分345は、中継装置2のセンサデータテーブルT100のすべてのデータに対してステップS109までの処理を繰り返す(S104)。まず、データ処理振分345は、センサデータテーブルT100を読み込んで、データの処理状況を示すフィールド(処理状況T160)が「バッチ」または「処理済」か否かを判定する(S105)。 Then, the data processing distribution 345 repeats the processing up to step S109 for all the data in the sensor data table T100 of the relay device 2 (S104). First, the data processing distribution 345 reads the sensor data table T100 and determines whether or not the field indicating the data processing status (processing status T160) is "batch" or "processed" (S105).

データ処理振分345は、該当フィールド(処理状況T160)の値が「バッチ」または「処理済」であれば該当するデータの処理は終了して、ステップS109へ進んで次のデータの処理に移る。 If the value of the corresponding field (processing status T160) is "batch" or "processed", the data processing distribution 345 ends the processing of the corresponding data, proceeds to step S109, and proceeds to the processing of the next data. ..

一方、データ処理振分345は、データの処理状況を示すフィールド(処理状況T160)が「未処理」の場合、ステップS106に進んで各データの優先度が振分閾値以下であるか否を判定する(S106)。データ処理振分345は、取得したデータの識別子でデータ優先度テーブルT500を検索し、当該データの優先度を取得する。そして、データ処理振分345は、データの優先度がステップS103で取得した優先度の閾値T830(振分閾値)以下であるか否かを判定する。 On the other hand, when the field indicating the data processing status (processing status T160) is "unprocessed", the data processing distribution 345 proceeds to step S106 and determines whether or not the priority of each data is equal to or less than the distribution threshold. (S106). The data processing distribution 345 searches the data priority table T500 with the identifier of the acquired data, and acquires the priority of the data. Then, the data processing distribution 345 determines whether or not the priority of the data is equal to or less than the priority threshold T830 (distribution threshold) acquired in step S103.

データ処理振分345は、データの優先度が振分閾値以下であれば、ステップS107へ進み、該当データを入力データとするデータ処理を実施する。このデータ処理はリアルタイム処理である。データ処理を実施した後には、データ処理振分345が、該当データの処理状況を示すセンサデータテーブルT100のフィールド(処理状況T160)を「処理済」として更新する。 If the priority of the data is equal to or less than the distribution threshold value, the data processing distribution 345 proceeds to step S107 and executes data processing using the corresponding data as input data. This data processing is real-time processing. After performing the data processing, the data processing distribution 345 updates the field (processing status T160) of the sensor data table T100 indicating the processing status of the corresponding data as "processed".

一方、データの優先度が振分閾値を越えていれば、データ処理振分345は、ステップS108へ進んで、該当データを処理キュー(図示省略)に格納してバッチ処理まで待機するために、該当データの処理状況を示すフィールド(処理状況T160)を「バッチ」として更新する。データ処理振分345は、上記の処理をセンサデータテーブルT100の全てのデータに対して繰り返して実行してから終了する(S109)。 On the other hand, if the priority of the data exceeds the distribution threshold, the data processing distribution 345 proceeds to step S108, stores the corresponding data in the processing queue (not shown), and waits until batch processing. The field (processing status T160) indicating the processing status of the corresponding data is updated as "batch". The data processing distribution 345 repeats the above processing for all the data in the sensor data table T100, and then ends (S109).

上記処理によって、優先度が振分閾値以下の優先度の高いデータは、そのままデータ処理が実行されて、データオブジェクトが生成される。一方、優先度が振分閾値を超える優先度の低いデータは、処理状況T160が「バッチ」に更新されて、データ処理の実行が遅延される。 By the above processing, the data processing is executed as it is for the high-priority data whose priority is equal to or lower than the distribution threshold value, and a data object is generated. On the other hand, for low-priority data whose priority exceeds the distribution threshold, the processing status T160 is updated to "batch", and the execution of data processing is delayed.

図15は、バッチ処理を実施するフローチャートS200を示す。本バッチ処理のフローチャートは、前記振分処理よりも長い時間間隔で実施するため、事前に設定された長周期タイマが所定の周期となったときに呼び出されて実行される。 FIG. 15 shows a flowchart S200 for performing batch processing. Since the flowchart of this batch process is executed at a longer time interval than the distribution process, it is called and executed when a preset long-period timer reaches a predetermined cycle.

ただし、バッチ処理の優先度は、振分処理よりも低く設定されるので、バッチ処理の実行中に前記振分処理の用の短周期タイマが所定の周期になると、当該バッチ処理は中断されて、前記振分処理の実行が優先的に行われる。これにより、データのリアルタイム処理とバッチ処理が重複して、中継装置2の負荷が過大になるのを抑制することができる。 However, since the priority of the batch processing is set lower than that of the distribution processing, if the short-cycle timer for the distribution processing reaches a predetermined cycle during the execution of the batch processing, the batch processing is interrupted. , The execution of the distribution process is preferentially performed. As a result, it is possible to prevent the load on the relay device 2 from becoming excessive due to duplication of real-time data processing and batch processing.

本バッチ処理のフローチャートは、センサデータテーブルT100の全てのデータに対してステップS204までを繰り返して処理が実行される(S201)。まず、データ処理振分345は、各データの処理状況を示すフィールド(処理状況T160)が「バッチ」を示すものがあるか否かを判定する(S202)。 In the flowchart of this batch process, the process is executed by repeating steps up to step S204 for all the data in the sensor data table T100 (S201). First, the data processing distribution 345 determines whether or not there is a field (processing status T160) indicating the processing status of each data indicating "batch" (S202).

判定結果が「バッチ」であれば、データ処理振分345は、処理状況を示すフィールド(処理状況T160)が、「バッチ」であれば、該当データを入力データとするデータ処理を実施して、該当するデータの処理状況を示すフィールドを「処理済」に更新する(S203)。 If the determination result is "batch", the data processing distribution 345 executes data processing using the corresponding data as input data if the field indicating the processing status (processing status T160) is "batch". The field indicating the processing status of the corresponding data is updated to "processed" (S203).

一方、判定結果が「未処理」または「処理済」であれば、データ処理振分345は、該当データの処理は終了して、次のデータの処理に移る。上記の処理を全てのデータに対して繰り返して実行(S203)した後に、当該バッチ処理を終了する(S204)。 On the other hand, if the determination result is "unprocessed" or "processed", the data processing distribution 345 ends the processing of the corresponding data and moves to the processing of the next data. After repeating the above processing for all the data (S203), the batch processing is terminated (S204).

上記処理によって、センサデータテーブルT100の処理状況T160が「バッチ」に設定されたデータは、長周期タイマが所定の周期になると、一括して所定のデータ処理が実施されてデータオブジェクトが生成される。ソフトウェア更新部31がソフトウェアの更新中にデータ処理が保留されていたデータは、長周期タイマのカウントアップの度に一括してデータ処理が実行される。 For the data in which the processing status T160 of the sensor data table T100 is set to "batch" by the above processing, when the long-period timer reaches a predetermined cycle, the predetermined data processing is collectively executed and a data object is generated. .. The data whose data processing has been suspended while the software update unit 31 is updating the software is collectively executed every time the long-period timer counts up.

このように、ソフトウェア更新部31でソフトウェアの更新が実行されている期間は、データ処理振分345がデータの優先度に基づいてリアルタイム処理とバッチ処理のいずれかを選択し、データ処理に割り当てられた計算機資源が制限された環境でセンサデータの中継を継続することができる。 In this way, during the period during which the software update is being executed by the software update unit 31, the data processing distribution 345 selects either real-time processing or batch processing based on the priority of the data, and is assigned to the data processing. It is possible to continue relaying sensor data in an environment where computer resources are limited.

図16は、センサデバイスとサービスを接続する内部処理の第1の構成を示すブロック図である。図示の例は、中継装置2が収容するセンサデバイスD100〜D212と、クラウド40で提供される可視化サービスSV100と、中継装置2の内部で実施されるデータ処理(PRE100、PRE101、およびPOST100)との関係を示す。 FIG. 16 is a block diagram showing a first configuration of an internal process for connecting a sensor device and a service. In the illustrated example, the sensor devices D100 to D212 accommodated in the relay device 2, the visualization service SV100 provided by the cloud 40, and the data processing (PRE100, PRE101, and POST100) performed inside the relay device 2 Show the relationship.

これらの関係は、図7の内部処理構成テーブルT300と図8のサービス管理テーブルT400によって決定される。 These relationships are determined by the internal processing configuration table T300 of FIG. 7 and the service management table T400 of FIG.

データ処理としては、センサデバイスD100〜D110のセンサデータを受信して所定の前処理を実施する前処理PRE100と、センサデバイスD200〜D212のセンサデータを受信して所定の前処理を実施する前処理PRE101と、前処理PRE100の出力データと、前処理PRE101の出力データを受信して所定の後処理を実施する後処理POST100が含まれる。 The data processing includes preprocessing PRE100 that receives sensor data of sensor devices D100 to D110 and performs predetermined preprocessing, and preprocessing that receives sensor data of sensor devices D200 to D212 and performs predetermined preprocessing. The PRE 101, the output data of the pre-process PRE 100, and the post-process POST 100 that receives the output data of the pre-process PRE 101 and performs a predetermined post-process are included.

そして、後処理POST100が出力するデータオブジェクトが、可視化サービスSV100によって利用される。本実施例では、収容するサービスやセンサデバイスに応じて、このような中継装置2の内部で実施されるデータ処理の内容や構成が、動的に変化することを想定する。 Then, the data object output by the post-processing POST 100 is used by the visualization service SV100. In this embodiment, it is assumed that the content and configuration of the data processing performed inside the relay device 2 dynamically changes depending on the service to be accommodated and the sensor device.

図17は、センサデバイスとサービスを接続する内部処理の第2の構成を示すブロック図である。図示の例では、図16に示したセンサデバイスと、サービス及びデータ処理の構成に対して、新たにセンサデバイスD300〜D302と、サービスSV200、SV300、データ処理、PRE102、INTM100、POST101、POST102が動的に追加された構成の例を示している。 FIG. 17 is a block diagram showing a second configuration of internal processing that connects the sensor device and the service. In the illustrated example, the sensor devices D300 to D302 and the services SV200, SV300, data processing, PRE102, INTM100, POST101, and POST102 are newly operated with respect to the configuration of the sensor device shown in FIG. 16 and the service and data processing. An example of the configuration added is shown.

新たに追加された前処理PRE102は、センサデバイスD300〜D302のセンサデータを受信して所定の前処理を実施する。新たに追加された中間処理INTM100は、前処理PRE101と前処理PRE102の出力を受信して所定の中間処理を実施する。 The newly added preprocessing PRE102 receives the sensor data of the sensor devices D300 to D302 and performs a predetermined preprocessing. The newly added intermediate processing INTM100 receives the outputs of the preprocessing PRE101 and the preprocessing PRE102 and performs a predetermined intermediate processing.

新たに追加された後処理POST101は、前処理PRE100の出力と、中間処理INTM100の出力を受信して所定の後処理を実施して、省エネサービスSV200にデータオブジェクトを提供する。 The newly added post-processing POST 101 receives the output of the pre-processing PRE100 and the output of the intermediate processing INTM100, performs a predetermined post-processing, and provides a data object to the energy-saving service SV200.

新たに追加された後処理POST102は、中間処理INTM100の出力を受信して所定の後処理を実施して、予兆サービスSV300にデータオブジェクトを提供する。 The newly added post-processing POST 102 receives the output of the intermediate processing INTM 100, performs a predetermined post-processing, and provides a data object to the predictive service SV300.

このように、中継管理部34とサービス管理部32は、収容するサービスやセンサデバイスに応じて、内部処理構成テーブルT300やサービス管理テーブルT400を更新することで、中継装置2の内部で実施されるデータ処理の内容や構成を、動的に変更することができる。 In this way, the relay management unit 34 and the service management unit 32 are implemented inside the relay device 2 by updating the internal processing configuration table T300 and the service management table T400 according to the services and sensor devices to be accommodated. The content and configuration of data processing can be changed dynamically.

図18は、優先度を継承して内部処理の優先度を決定する内部処理の第3の構成を示すブロック図である。図示の例では、図16に示したセンサデバイス、サービス、データ処理の構成のときに、可視化サービスSV100の優先度が「3」を中継装置2内のデータ処理に引き継ぐ。 FIG. 18 is a block diagram showing a third configuration of internal processing that inherits the priority and determines the priority of the internal processing. In the illustrated example, in the configuration of the sensor device, service, and data processing shown in FIG. 16, the priority “3” of the visualization service SV100 is taken over by the data processing in the relay device 2.

まず、サービス管理部32のセンサデータ評価324は、サービス管理テーブルT400を参照して、サービスID T410=SV100の優先度T430=3と入力データID T440=30001を取得する。 First, the sensor data evaluation 324 of the service management unit 32 refers to the service management table T400 and acquires the priority T430 = 3 of the service ID T410 = SV100 and the input data ID T440 = 30001.

次に、センサデータ評価324は、内部処理構成テーブルT300を参照して、出力データID T340に入力データID T440の値を含むエントリを検索して、該当する入力データID T330を特定する。 Next, the sensor data evaluation 324 refers to the internal processing configuration table T300, searches for an entry including the value of the input data ID T440 in the output data ID T340, and identifies the corresponding input data ID T330.

そして、センサデータ評価324は、特定した入力データID T330の値で、データ優先度テーブルT500のデータID T520を検索し、該当するエントリの優先度T530に可視化サービスSV100の優先度T430=「3」を設定する。なお、処理ID T320が、前処理になるまで、後処理から中間処理へ、出力データID T340から入力データID T330を辿ることで、各処理の優先度を設定することができる。 Then, the sensor data evaluation 324 searches the data ID T520 of the data priority table T500 with the value of the specified input data ID T330, and sets the priority T530 of the corresponding entry to the priority T430 of the visualization service SV100 = "3". To set. The priority of each process can be set by tracing the input data ID T330 from the output data ID T340 from the post-process to the intermediate process until the process ID T320 becomes the pre-process.

上記処理により、後処理POST100が引き継ぎ優先度=「3」と評価され、次に、前処理PRE100、PRE101が、前記POST100の優先度=「3」を引き継ぎ、前処理PRE100、PRE101の優先度=「3」と評価され、一連の処理にかかわるデータの優先度が「3」と評価される。 By the above processing, the post-processing POST 100 is evaluated as the takeover priority = "3", then the pre-processing PRE100 and PRE101 take over the priority of the POST 100 = "3", and the priority of the pre-processing PRE100 and PRE101 = It is evaluated as "3", and the priority of the data related to the series of processing is evaluated as "3".

このように、センサデータ評価324は、中継装置2の内部のデータ処理の連携関係(処理状況)に応じて優先度を引き継ぐことができる。 In this way, the sensor data evaluation 324 can take over the priority according to the cooperation relationship (processing status) of the data processing inside the relay device 2.

図19は、サービスの優先度を継承して内部処理の優先度を決定する内部処理の第4の構成を示すブロック図である。図17に示したサービスとデータ処理及びセンサデバイスの構成で、図18と同様に、サービスの優先度を引き継ぐ例を示す。 FIG. 19 is a block diagram showing a fourth configuration of internal processing that inherits the priority of services and determines the priority of internal processing. In the configuration of the service, data processing, and sensor device shown in FIG. 17, an example of inheriting the priority of the service is shown as in FIG.

図示の例では、内部処理の同一の処理結果が複数のサービスまたはデータ処理の入力として設定されるときの、優先度の評価方法の例を示している。この例では、複数のサービスまたはデータ処理で、データ処理の結果が参照されている場合は、参照されているサービスまたはデータ処理の高いほうの優先度を引き継ぐ例を示す。 The illustrated example shows an example of a priority evaluation method when the same processing result of internal processing is set as an input of a plurality of services or data processing. In this example, when the result of data processing is referenced in a plurality of services or data processing, an example of inheriting the higher priority of the referenced service or data processing is shown.

例えば、前処理PRE100は、後処理POST100と、後処理POST101に、データ処理結果が参照されている。そのため、後処理POST100と後処理POST101の優先度は「3」と「5」なので、優先度の高い「3」を引き継ぎ、前処理PRE100の優先度は「3」と評価されて、前処理PRE100の入力となっているデータの優先度が「3」と評価される。 For example, in the pre-processing PRE100, the data processing result is referred to in the post-processing POST 100 and the post-processing POST 101. Therefore, since the priorities of the post-processing POST 100 and the post-processing POST 101 are "3" and "5", the high priority "3" is inherited, the priority of the pre-processing PRE100 is evaluated as "3", and the pre-processing PRE100 is evaluated. The priority of the data input of is evaluated as "3".

以上のように、センサデータ評価324は、中継装置2の内部のデータ処理の連携関係(処理状況)に応じて優先度を変更することができる。これにより、ひとつのサービスに関連するデータ処理の入力データと出力データの優先度を、サービスを起点として優先度を引き継ぐことにより、リアルタイム処理とバッチ処理に振り分けるデータの優先度をサービス単位で統一することができる。また、ひとつのデータが複数のサービスまたはデータ処理で利用される場合には、最も高い優先度を引き継ぐことで、データ処理が遅延するのを抑制することができる。 As described above, the priority of the sensor data evaluation 324 can be changed according to the cooperation relationship (processing status) of the data processing inside the relay device 2. As a result, the priority of the input data and the output data of the data processing related to one service is inherited from the service as the starting point, and the priority of the data to be distributed to the real-time processing and the batch processing is unified for each service. be able to. Further, when one data is used in a plurality of services or data processing, it is possible to suppress the delay in data processing by inheriting the highest priority.

図20は、処理結果の参照数で内部処理の優先度を決定する内部処理の第5の構成を示すブロック図である。図17に示したサービスとデータ処理及びセンサデバイスの構成のときに、優先度を引き継ぐのではなくて、参照数の和を引き継ぐことで、サービス管理部32が該当するデータ処理およびデータの優先度を評価する例を示している。なお、この処理はサービス管理部32で行うことができる。 FIG. 20 is a block diagram showing a fifth configuration of internal processing in which the priority of internal processing is determined by the number of references of the processing result. In the configuration of the service, data processing, and sensor device shown in FIG. 17, the service management unit 32 takes over the sum of the number of references instead of taking over the priority, so that the service management unit 32 has the corresponding data processing and data priority. Is shown as an example of evaluating. This process can be performed by the service management unit 32.

ここでは、便宜的に出力データの参照数から優先度を導出する関数fを、f(参照数)=11−(参照数)とする。ただし、これは参照数が最大10を想定した例である。ここでは、参照数が多いほうが、関連するデータ処理およびデータの重要性が高いと判断する。 Here, for convenience, the function f for deriving the priority from the number of references in the output data is set to f (number of references) = 11- (number of references). However, this is an example assuming that the maximum number of references is 10. Here, it is judged that the larger the number of references, the higher the importance of the related data processing and data.

前処理PRE100は、後処理POST100と後処理POST101に処理結果が参照されているため、参照数は2となる。そのため、f(2)=11−2=9となり、優先度は「9」と評価される。 Since the processing result is referred to by the post-processing POST 100 and the post-processing POST 101 in the pre-processing PRE100, the number of references is 2. Therefore, f (2) = 11-2 = 9, and the priority is evaluated as “9”.

一方、前処理PRE101は、後処理POST100と中間処理INTM100に処理結果が参照されているため、後処理POST100の参照数は「1」、中間処理INTM100の参照数は「2」なので、参照数の和は「3」となる。したがって、前処理PRE101の参照数は「3」となる。そのため、前処理PRE101の優先度はf(3)=11−3=8となり、優先度は「8」と評価される。 On the other hand, in the pre-processing PRE101, since the processing result is referred to by the post-processing POST 100 and the intermediate processing INTM 100, the number of references of the post-processing POST 100 is "1" and the number of references of the intermediate processing INTM 100 is "2". The sum is "3". Therefore, the number of references of the preprocessing PRE101 is "3". Therefore, the priority of the pretreatment PRE101 is f (3) = 11-3 = 8, and the priority is evaluated as “8”.

以上のように、センサデータ評価324は、リアルタイム処理とバッチ処理に振り分けるデータの優先度を、データ処理の出力を参照するサービスやデータ処理の数等の処理状況に応じて変更することで、参照数の多い出力の遅延を抑制することができる。 As described above, the sensor data evaluation 324 refers by changing the priority of the data to be distributed to the real-time processing and the batch processing according to the processing status such as the service that refers to the output of the data processing and the number of data processing. It is possible to suppress the delay of a large number of outputs.

<まとめ>
本発明は、工場などの現場設備にセンサデバイス100を取り付け、クラウド40やエッジまたはフォグにもIoT(Internet of Things)プラットフォームを用いて提供するサービスを構成する各種機能が動的に配置されて、各機能が自律分散的に連携して、動的に実行するソフトウェア構成が変化する環境に適用することができる。
<Summary>
In the present invention, the sensor device 100 is attached to a field facility such as a factory, and various functions constituting a service provided by using the IoT (Internet of Things) platform are dynamically arranged in the cloud 40, the edge, or the fog. Each function can be autonomously and decentralized, and can be applied to an environment where the software configuration to be dynamically executed changes.

上述のように中継装置2がソフトウェアの更新要求を受信すると、更新の緊急度に応じて更新処理に割り当てる計算機資源を制御することで、中継装置2の運転にかかわるソフトウェアの更新処理を優先的に実施することができる。そして、クラウド40で提供されるサービスの優先度に応じて、優先度の高いサービスが必要とするデータを選択して即時にデータ処理を行い、それ以外の優先度の低いサービスにかかわるデータ処理を所定時間後にバッチ処理することにより、優先度の高いサービスの提供も継続して、計算機システム全体として重要な処理を遅延させることなく高い可用性を提供することが可能となる。 When the relay device 2 receives the software update request as described above, the software update process related to the operation of the relay device 2 is prioritized by controlling the computer resources allocated to the update process according to the urgency of the update. Can be carried out. Then, according to the priority of the service provided by the cloud 40, the data required by the high-priority service is selected and immediately processed, and the data processing related to the other low-priority services is performed. By batch processing after a predetermined time, it is possible to continue to provide high-priority services and provide high availability without delaying important processing of the entire computer system.

また、中継装置2は、更新するソフトウェアの種類(または内容)に応じて緊急度を変更し、緊急度に応じて計算機資源を更新処理に割り当てるようにしたので、不急のソフトウェアの更新には計算機資源の割当量を抑制することで、データ処理の遅延を抑制して、時間をかけてソフトウェアの更新を実施する。一方、緊急度の高いソフトウェア(例えば、セキュリティパッチ)の更新には、計算機資源の割当量を増大することで、迅速にソフトウェアの更新を実施し、優先度が閾値以下のデータについてはデータ処理の遅延を許容する。 In addition, the relay device 2 changes the urgency according to the type (or content) of the software to be updated, and allocates computer resources to the update process according to the urgency. By suppressing the allocation of computer resources, delays in data processing are suppressed, and software is updated over time. On the other hand, for updating software with high urgency (for example, security patch), the software is updated quickly by increasing the allocation of computer resources, and data processing for data whose priority is below the threshold value. Allow delays.

このように、本発明の中継装置2では、更新するソフトウェアの緊急度に応じて、リアルタイム処理とバッチ処理に振り分けるデータの比率を動的に変更することで、センサデータの中継処理と中継装置2のソフトウェアのメンテナンスを両立させることが可能となる。 As described above, in the relay device 2 of the present invention, the relay processing of the sensor data and the relay device 2 are performed by dynamically changing the ratio of the data to be distributed to the real-time processing and the batch processing according to the urgency of the software to be updated. It is possible to achieve both software maintenance.

なお、上記実施例では、サービスに設定された優先度や、データ処理の結果の参照数に応じて中継装置2で処理するデータの優先度を変更する例を示したが、中継装置2のデータオブジェクトを参照するサービスの稼働状況に応じて優先度を変更しても良い。例えば、サービス管理テーブルT400に稼働状況を示すフィールドを追加して、試験中、起動中、停止中、運転中、保守中等の各状況に対して優先度を変更する値を設定しておくことができる。 In the above embodiment, an example of changing the priority of the data processed by the relay device 2 according to the priority set in the service and the number of references of the data processing result is shown, but the data of the relay device 2 is shown. The priority may be changed according to the operating status of the service that refers to the object. For example, it is possible to add a field indicating the operation status to the service management table T400 and set a value for changing the priority for each status such as test, start, stop, operation, and maintenance. can.

なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施例は本発明を分かりやすく説明するために詳細に記載したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることも可能である。また、各実施例の構成の一部について、他の構成の追加、削除、又は置換のいずれもが、単独で、又は組み合わせても適用可能である。 The present invention is not limited to the above-described examples, and includes various modifications. For example, the above-described embodiment is described in detail in order to explain the present invention in an easy-to-understand manner, and is not necessarily limited to the one including all the configurations described. Further, it is possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add the configuration of another embodiment to the configuration of one embodiment. Further, for a part of the configurations of each embodiment, any of addition, deletion, or replacement of other configurations can be applied alone or in combination.

また、上記の各構成、機能、処理部、及び処理手段等は、それらの一部又は全部を、例えば集積回路で設計する等によりハードウェアで実現してもよい。また、上記の各構成、及び機能等は、プロセッサがそれぞれの機能を実現するプログラムを解釈し、実行することによりソフトウェアで実現してもよい。各機能を実現するプログラム、テーブル、ファイル等の情報は、メモリや、ハードディスク、SSD(Solid State Drive)等の記録装置、または、ICカード、SDカード、DVD等の記録媒体に置くことができる。 Further, each of the above configurations, functions, processing units, processing means and the like may be realized by hardware by designing a part or all of them by, for example, an integrated circuit. Further, each of the above configurations, functions, and the like may be realized by software by the processor interpreting and executing a program that realizes each function. Information such as programs, tables, and files that realize each function can be stored in a memory, a hard disk, a recording device such as an SSD (Solid State Drive), or a recording medium such as an IC card, an SD card, or a DVD.

また、制御線や情報線は説明上必要と考えられるものを示しており、製品上必ずしも全ての制御線や情報線を示しているとは限らない。実際には殆ど全ての構成が相互に接続されていると考えてもよい。 In addition, the control lines and information lines indicate those that are considered necessary for explanation, and do not necessarily indicate all the control lines and information lines in the product. In practice, it can be considered that almost all configurations are interconnected.

2 中継装置
22 メモリ
21 CPU
23 I/O
30 処理基盤
31 ソフトウェア更新部
311 要求受付
312 緊急度判定
313 更新実行管理
32 サービス管理部
321 サービス管理
322 センサデバイス管理
323 内部処理管理
324 センサデータ評価
33 処理資源管理
34 中継管理部
341 中継処理制御
342 負荷監視
343 センサデータ受信
344 データオブジェクト生成
345 データ処理振分
346 データオブジェクト送信部
100−1〜100−3 センサデバイス
200 OS
300−1〜300−3 上位サービス
1100 データオブジェクトテーブル
T100 センサデータテーブル
T500 データ優先度テーブル
2 Relay device 22 Memory 21 CPU
23 I / O
30 Processing infrastructure 31 Software update unit 311 Request reception 312 Urgency judgment 313 Update execution management 32 Service management unit 321 Service management 322 Sensor device management 323 Internal processing management 324 Sensor data evaluation 33 Processing resource management 34 Relay management unit 341 Relay processing control 342 Load monitoring 343 Sensor data reception 344 Data object generation 345 Data processing distribution 346 Data object transmitter 100-1 to 100-3 Sensor device 200 OS
300-1 to 300-3 Upper service 1100 Data object table T100 Sensor data table T500 Data priority table

Claims (9)

プロセッサとメモリを有して、受信したセンサデータに所定の処理を実施してサーバに提供する中継装置であって、
前記センサデータを受信して当該センサデータに所定のデータ処理を実施してデータ処理結果を生成し、前記サーバに前記データ処理結果を送信する中継管理部と、
ソフトウェアの更新要求を受け付けて、当該中継装置の稼働に関わるソフトウェアの更新を実行するソフトウェア更新部と、
前記中継管理部のデータ処理と、前記ソフトウェア更新部に割り当てる計算機資源を制御する計算機資源割当部と、
前記サーバのサービスに提供する前記センサデータの優先度を決定する優先度決定部と、を有し、
前記中継管理部は、
前記優先度と所定の閾値に基づいて、前記センサデータのデータ処理をリアルタイム処理とバッチ処理のいずれかに振り分けるデータ処理振分部を含み、
前記計算機資源割当部は、
前記ソフトウェア更新部でソフトウェアの更新要求を受け付けたときに、前記ソフトウェアの更新要求の内容に応じて予め設定された緊急度に応じて前記ソフトウェア更新部へ割り当てる計算機資源を変更することを特徴とする中継装置。
A relay device that has a processor and memory, performs predetermined processing on the received sensor data, and provides it to the server.
A relay management unit that receives the sensor data, performs predetermined data processing on the sensor data, generates a data processing result, and transmits the data processing result to the server.
A software update unit that accepts software update requests and executes software updates related to the operation of the relay device.
The data processing of the relay management unit, the computer resource allocation unit that controls the computer resources allocated to the software update unit, and the computer resource allocation unit.
It has a priority determination unit that determines the priority of the sensor data provided to the service of the server.
The relay management unit
Based on the priority and a predetermined threshold, looking contains data processing assignment unit for distributing to one of the data processing of the sensor data real-time processing and batch processing,
The computer resource allocation unit
When the software update unit receives a software update request, the computer resource allocated to the software update unit is changed according to a preset urgency according to the content of the software update request. Relay device.
請求項1に記載の中継装置であって、
前記優先度決定部は、
前記センサデータの処理状況に基づいて、センサデータの優先度を変更することを特徴とする中継装置。
The relay device according to claim 1.
The priority determination unit
A relay device characterized in that the priority of sensor data is changed based on the processing status of the sensor data.
請求項1に記載の中継装置であって、
前記中継管理部は、
前記中継装置の負荷と利用可能な計算機資源を取得して、前記負荷と利用可能な計算機資源に基づいて前記閾値を変更することを特徴とする中継装置。
The relay device according to claim 1.
The relay management unit
A relay device characterized in that the load of the relay device and available computer resources are acquired, and the threshold value is changed based on the load and available computer resources .
請求項1に記載の中継装置であって、
前記優先度決定部は、
前記サービスの稼働状態に基づいて、前記センサデータの優先度を変更することを特徴とする中継装置。
The relay device according to claim 1.
The priority determination unit
A relay device characterized in that the priority of the sensor data is changed based on the operating state of the service.
プロセッサとメモリを有する中継装置が、受信したセンサデータに所定の処理を実施してサーバに提供する中継方法であって、 A relay method in which a relay device having a processor and a memory performs predetermined processing on received sensor data and provides it to a server.
前記中継装置が、前記センサデータを受信して当該センサデータに所定のデータ処理を実施してデータ処理結果を生成し、前記サーバに前記データ処理結果を送信する第1のステップと、 A first step in which the relay device receives the sensor data, performs predetermined data processing on the sensor data to generate a data processing result, and transmits the data processing result to the server.
前記中継装置が、ソフトウェアの更新要求を受け付ける第2のステップと、 The second step in which the relay device receives the software update request,
前記中継装置が、前記データ処理と、ソフトウェアの更新処理に割り当てる計算機資源を決定する第3のステップと、 A third step in which the relay device determines the computer resources allocated to the data processing and software update processing.
前記中継装置が、当該中継装置の稼働に関わるソフトウェアの更新処理を実行する第4のステップと、 The fourth step in which the relay device executes software update processing related to the operation of the relay device, and
前記中継装置が、前記サーバのサービスに提供する前記センサデータの優先度を決定する第5のステップと、 A fifth step of determining the priority of the sensor data provided by the relay device to the service of the server, and
前記中継装置が、前記優先度と所定の閾値に基づいて、前記センサデータのデータ処理をリアルタイム処理とバッチ処理のいずれかに振り分ける第6のステップと、 A sixth step in which the relay device allocates the data processing of the sensor data to either real-time processing or batch processing based on the priority and a predetermined threshold value.
を含み、Including
前記第3のステップは、 The third step is
前記ソフトウェアの更新要求を受け付けたときに、前記ソフトウェアの更新要求の内容に応じて予め設定された緊急度に応じて前記ソフトウェアの更新処理へ割り当てる計算機資源を変更することを特徴とする中継方法。 A relay method characterized in that when a software update request is received, the computer resources allocated to the software update process are changed according to a preset urgency according to the content of the software update request.
請求項5に記載の中継方法であって、 The relay method according to claim 5.
前記第5のステップは、 The fifth step is
前記センサデータの処理状況に基づいて、センサデータの優先度を変更することを特徴とする中継方法。 A relay method characterized in that the priority of sensor data is changed based on the processing status of the sensor data.
請求項5に記載の中継方法であって、 The relay method according to claim 5.
前記第6のステップは、 The sixth step is
前記中継装置の負荷と利用可能な計算機資源を取得して、前記負荷と利用可能な計算機資源に基づいて前記閾値を変更することを特徴とする中継方法。 A relay method characterized in that the load of the relay device and available computer resources are acquired, and the threshold value is changed based on the load and available computer resources.
請求項5に記載の中継方法であって、 The relay method according to claim 5.
前記第5のステップは、 The fifth step is
前記サービスの稼働状態に基づいて、前記センサデータの優先度を変更することを特徴とする中継方法。 A relay method characterized in that the priority of the sensor data is changed based on the operating state of the service.
プロセッサとメモリを有する計算機で、受信したセンサデータに所定の処理を実施してサーバに提供させるためのプログラムであって、 A computer that has a processor and memory, and is a program for performing predetermined processing on received sensor data and providing it to a server.
前記センサデータを受信して当該センサデータに所定のデータ処理を実施してデータ処理結果を生成し、前記サーバに前記データ処理結果を送信する第1のステップと、 The first step of receiving the sensor data, performing predetermined data processing on the sensor data to generate a data processing result, and transmitting the data processing result to the server.
ソフトウェアの更新要求を受け付ける第2のステップと、 The second step of accepting software update requests and
前記データ処理と、ソフトウェアの更新処理に割り当てる計算機資源を決定する第3のステップと、 The third step of determining the computer resources to be allocated to the data processing and the software update processing, and
当該計算機の稼働に関わるソフトウェアの更新処理を実行する第4のステップと、 The fourth step of executing the software update process related to the operation of the computer, and
前記サーバのサービスに提供する前記センサデータの優先度を決定する第5のステップと、 A fifth step of determining the priority of the sensor data to be provided to the service of the server, and
前記優先度と所定の閾値に基づいて、前記センサデータのデータ処理をリアルタイム処理とバッチ処理のいずれかに振り分ける第6のステップと、 A sixth step of allocating the data processing of the sensor data to either real-time processing or batch processing based on the priority and a predetermined threshold value.
を前記計算機に実行させ、To the calculator
前記第3のステップは、 The third step is
前記ソフトウェアの更新要求を受け付けたときに、前記ソフトウェアの更新要求の内容に応じて予め設定された緊急度に応じて前記ソフトウェアの更新処理へ割り当てる計算機資源を変更することを特徴とするためのプログラム。 A program for changing the computer resources allocated to the software update process according to a preset urgency according to the content of the software update request when the software update request is received. ..
JP2018055293A 2018-03-22 2018-03-22 Relay device, relay method and program Expired - Fee Related JP6923471B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018055293A JP6923471B2 (en) 2018-03-22 2018-03-22 Relay device, relay method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018055293A JP6923471B2 (en) 2018-03-22 2018-03-22 Relay device, relay method and program

Publications (2)

Publication Number Publication Date
JP2019169812A JP2019169812A (en) 2019-10-03
JP6923471B2 true JP6923471B2 (en) 2021-08-18

Family

ID=68108556

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018055293A Expired - Fee Related JP6923471B2 (en) 2018-03-22 2018-03-22 Relay device, relay method and program

Country Status (1)

Country Link
JP (1) JP6923471B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4201045B1 (en) * 2020-10-02 2024-05-15 Google LLC Real-time and file-based audio data processing
CN115129549A (en) * 2022-06-30 2022-09-30 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for determining alarm urgency

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016017995A1 (en) * 2014-07-31 2016-02-04 Samsung Electronics Co., Ltd. System and method of controlling data transmission of external apparatus connected to gateway

Also Published As

Publication number Publication date
JP2019169812A (en) 2019-10-03

Similar Documents

Publication Publication Date Title
US11546644B2 (en) Bandwidth control method and apparatus, and device
US10733026B2 (en) Automated workflow selection
CN108431796B (en) Distributed resource management system and method
US10530846B2 (en) Scheduling packets to destination virtual machines based on identified deep flow
CN108205541B (en) Distributed network crawler task scheduling method and device
US8996756B2 (en) Using process location to bind IO resources on NUMA architectures
US20170031622A1 (en) Methods for allocating storage cluster hardware resources and devices thereof
KR102392442B1 (en) Managing classified network streams
US7296133B2 (en) Method, apparatus, and computer program product for dynamically tuning amount of physical processor capacity allocation in shared processor systems
CN112882827B (en) Method, electronic device and computer program product for load balancing
US20170034063A1 (en) Prioritization of network traffic in a distributed processing system
US20110173319A1 (en) Apparatus and method for operating server using virtualization technique
CN105743808A (en) A method and device for adapting QoS
KR102358821B1 (en) Network classification for applications
CN106030536A (en) Method, computer program and node for resource management
KR20200054368A (en) Electronic apparatus and controlling method thereof
CN108028806A (en) Method and device for allocating virtual resources in network function virtualization NFV network
JP6923471B2 (en) Relay device, relay method and program
CN109076027B (en) web service request
CN111357259A (en) Adaptive Control Mechanism for Service Layer Operation
CN110300138B (en) Picture service scheduling method, device, management node, and computer-readable storage medium
CN115086909B (en) Vehicle communication control device and method
US20250021371A1 (en) Method and system for managing kubernetes cluster resources in a multi-cloud environment
US20250021409A1 (en) Server and application aware numa-based load-balancing solution
WO2025003737A1 (en) Observability-based cloud service level agreement enforcement

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210326

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: 20210706

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210729

R150 Certificate of patent or registration of utility model

Ref document number: 6923471

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees