通知を受け取る

UiPath Orchestrator

UiPath Orchestrator ガイド

マシン テンプレートを使用して無人インフラストラクチャを最適化する

このページでは、効率を最大限に高めてコストを削減するために、マシンを特定の種類のプロセスの実行に特化して、無人オートメーションのワークロードを既存のインフラストラクチャに分散するプロセスについて説明します。

📘

はじめる前に

以下の表では、プロセスの実行に必要な Robot のバージョンをターゲット フレームワークおよび対応 OS 別に示します。

Operating system (target framework)Robot version
Windows - Legacy (.NET Framework 4.6.1)Any
Windows (.NET 5.0+)2021.10+
Cross-platform (.NET 5.0+)2021.10+

以下の表では、ロボットの資格情報の有無に応じた、フォアグラウンド/バックグラウンド プロセスの実行に必要な Robot のバージョンを示します。

Process typeRobot credential considerationsRobot version
BackgroundWith credentialsAny
ForegroundWith credentialsAny
BackgroundWithout credentials2021.10+
ForegroundWithout credentialsInvalid configuration. You need credentials to run foreground jobs.

無人インフラストラクチャを最適化する


無人プロセスのワークロードでは、その時々でさまざまなインフラストラクチャの条件が求められます。マシン テンプレートとそれに関連付けられたマシン インフラストラクチャで実行できるプロセスの種類を制限することで、効率を最大限に高め、無駄を最小限に抑えることができます。

  1. [マシン] ページで、新しいマシン テンプレートを追加または編集します。
  2. 必要に応じて、[サポートする使用方法] セクションで利用可能な 2 つのオプションを設定します。
1527
Process typeOn the machine infrastructure employing that machine template you can execute:
Foreground only - only foreground processes, (1)
Background only - only background processes, (2)
All - both background and foreground processes. (3)
Process compatibilityOn the machine infrastructure employing that machine template you can execute:
Windows only - Windows-compatible processes only, (4)
Cross-platform only - cross-platform processes only, (5)
All - both Windows-compatible and cross-platform processes. (6)


たとえば、UiPath Studio をかなり前から使用しているため、さまざまなオートメーション (バックグラウンド プロセスとフォアグラウンド プロセス) が蓄積されているとします。それらのオートメーションのうち、あるものは .NET Framework 4.6.1 を使用して開発され、新しいものは .NET 5.0 で開発されました。

インフラストラクチャは以下で構成されています。

  • 1 つの Windows デスクトップ
  • one high-density Windows Server
  • 3 つの Linux マシン

効率的な最適化戦略とはどのようなものでしょうか?

No of processesCompatibility (set in Studio)Machine Template Settings (set in Orchestrator)Why
4 background processesWindows - Legacy
(.NET Framework 4.6.1)
We connect the Windows desktop using template A which we define as follows:
Process type = Background only
Process compatibility = Windows only
Unattended Runtimes = 4
.NET Framework 4.6.1 processes can only run on Windows machines.
Background processes can run concurrently under the same account.
Template A has 4 runtimes assigned, allowing execution of 4 jobs concurrently.
6 background processesCross-platform
(.NET 5.0 or higher)
We connect three Linux machines using template B which we define as follows:
Process type = Background only
Process compatibility = Cross-platform only
Unattended Runtimes = 2
.NET Framework 5.0 processes can run on any type of machine, Linux machines included.
Template B only allows execution of background processes on the connected Linux machines.
Background processes can run concurrently under the same account.
Template B has 2 runtimes assigned, allowing execution of 2 jobs concurrently on each connected Linux machine: 2 jobs x 3 machines results in an execution capacity of 6 concurrent jobs.
10 foreground processesWindows
(.NET 5.0 or higher)
We connect the Windows server using template C which we define as follows:
Process type = Foreground only
Process compatibility = Windows only
Unattended Runtimes = 10
.NET Framework 5.0 processes can run on any type of machine, Linux machines included, but because these are foreground processes developed for Windows, you need to run them on Windows machines.
One account can run one foreground process at a time.
A HD Windows Server allows opening multiple account sessions.
Template C has 10 runtimes assigned, meaning 10 sessions are opened simultaneously, allowing execution of 10 foreground jobs concurrently.

ヒントとコツ


  • バックグラウンド プロセスの実行を低価格マシン (Linux など) に割り当てます。
  • Windows マシンをフォアグラウンド オートメーションのために確保します。
  • .NET Framework 4.6.1 を使用して開発されたバックグラウンド プロセスには Windows が必要です。同時接続実行には、Windows デスクトップを使用できます。バックグラウンド プロセスには Windows Server も高密度環境も不要です。バックグラウンド ジョブは、同一のアカウントで同時に実行できるためです。
  • .NET. 5.0 以上のプロセスを実行するには、2021.10 以降の Robot が必要です。

ジョブの割り当て


Orchestrator では、無効な設定でジョブを開始することはできません。無効な設定でジョブを開始しようとすると、設定の修正方法を詳しく示したエラー メッセージが表示されます。

1258

Starting a job using dynamic allocation, i.e. no machine or account specified, with an incompatible folder setup results in an error. Make sure to correct the setup, otherwise, jobs stay pending indefinitely. For example, trying to run a .NET Framework 4.6.1 background job when there are only cross-platform templates in the folder does not work, and jobs stay pending until the configuration is fixed.

1496

[ジョブの詳細] ウィンドウで、設定の修正方法を確認できます。

639

無効な設定

  • フォアグラウンド プロセスは UI を使用して開発されており、実行するには UI が必要です。現在、UiPath のフォアグラウンド オートメーションは Windows でのみ可能です。このため、クロスプラットフォームのみのマシンでフォアグラウンド オートメーションが実行されるよう設定することはできません。
  • Linux マシンで Windows のみのテンプレートを使用するよう設定することはできません。クロスプラットフォームのみのテンプレートを使用するか、無制限のテンプレート (すべて) を使用します。
  • 2021.10+ よりも古いバージョンの UiPath Robot が実行されているマシンで、クロスプラットフォームのみのテンプレートを使用するよう設定することはできません。バージョンを更新するか、マシン テンプレートを Windows のみまたはすべてに設定します。

1 年前に更新


マシン テンプレートを使用して無人インフラストラクチャを最適化する


このページでは、効率を最大限に高めてコストを削減するために、マシンを特定の種類のプロセスの実行に特化して、無人オートメーションのワークロードを既存のインフラストラクチャに分散するプロセスについて説明します。

改善の提案は、API リファレンスのページでは制限されています

改善を提案できるのは Markdown の本文コンテンツのみであり、API 仕様に行うことはできません。