前のトピック: コレクタへのエージェントの割り当ての構成次のトピック: Enterprise Manager ネットワーク トポロジ エージェントの設定


エージェントの負荷分散の設定例

MOM エージェント負荷分散プロパティを、さまざまな方法で設定できます。 以下の設定例にはコード サンプルが用意されています。

特定のコレクタまたはコレクタのセットへのエージェントの割り当て

以下の例は、MyAgent という名前のエージェントを、ポート 5001 上の「myhost」という名前のコレクタに割り当てる設定方法を示しています。

<agent-collector name="Assign MyAgent to One Collector Example">
<agent-specifier>.*¥|.*¥|MyAgent</agent-specifier>
<include>
<collector host="myhost" port="5001"/>
</include>
</agent-collector>

以下の例は、ラッチ済みプロパティを設定する方法を示しています。各値は以下のとおりです。

以下の例は、エージェントを割り当てる方法を示しています。各値は以下のとおりです。

以下の例は、エージェントを割り当てる方法を示しています。各値は以下のとおりです。

特定のコレクタまたはコレクタのセットからのエージェントの除外

以下の例は、MyAgent という名前のエージェントを MyHost という名前のコレクタから除外する方法を示しています。

<agent-collector name="Exclude MyAgent from a Collector Example">
<agent-specifier>.*¥|.*¥|MyAgent</agent-specifier>
<exclude>
<collector host="MyHost" port="5001"/>
</exclude>
</agent-collector>

以下の例は、複数のエージェントを複数のコレクタから除外する方法を示しています。

<agent-collector name="Exclude Two Agents Assigned from Two Collectors Example>
<agent-specifier>.*¥|.*¥|MyAgent.*</agent-specifier>
<agent-specifier>.*¥|.*¥|MyOtherAgent.*</agent-specifier>
<exclude>
<collector host="MyHost" port="5001"/>
<collector host="MyOtherHost" port="5001"/>
</exclude>
</agent-collector>

複数のコレクタへの複数のエージェントの割り当て

以下の例は、複数のエージェントを複数のコレクタに割り当てる方法を示しています。

<agent-collector name="Two Agents Assigned to Two Collectors Example>
<agent-specifier>.*¥|.*¥|MyAgent.*</agent-specifier>
<agent-specifier>.*¥|.*¥|MyOtherAgent.*</agent-specifier>
<include>
<collector host="MyHost" port="5001"/>
<collector host="MyOtherHost" port="5001"/>
</include>
</agent-collector>

同じクラスタ内の特定のコレクタへのエージェントの割り当て

以下の例は、EPAgent という名前のエージェントをクラスタ内のコレクタに割り当てる方法を示します。条件は以下のとおりです。

host1 と host2 にエージェントを割り当てるには、MOM がデフォルトの通信チャネル ポートを使用し、loadbalancing.xml がそのポートを必要とすることに注意してください。

<agent-collector name="Allow EPAgents on Two Collectors in the Same Cluster Example">

<agent-specifier>.*¥|.*¥|EPAgent.*</agent-specifier>
<include>
<collector host="host01" port="5001"/>
<collector host="host02" port="5001"/>
</include>
</agent-collector>

別のクラスタ内の特定のコレクタへのエージェントの割り当て

以下の例は、EPAgent という名前のエージェントを別のクラスタ内のコレクタに割り当てる方法を示します。条件は以下のとおりです。

host1 と host2 にエージェントを割り当てるには、MOM が EPAgent から Enterprise Manager への特定の通信チャネル ポートを使用し、loadbalancing.xml がそのポートを必要とすることに注意してください。

以下の例は、直接ソケット接続を使用してエージェントがコレクタに接続するとき、別のクラスタ内のコレクタに EPAgent を割り当てる方法を示します。

<agent-collector name="Allow EPAgents on Two Collectors in Different Clusters - Direct Socket Connection Example">
<agent-specifier>.*¥|.*¥|EPAgent.*</agent-specifier>
<include>
<collector host="host01" port="5001"/>
<collector host="host02" port="5001"/>
</include>
</agent-collector>

以下の例は、HTTP を使用してエージェントがコレクタに接続するとき、別のクラスタ内のコレクタに EPAgent を割り当てる方法を示します。

<agent-collector name="Allow EPAgents on Two Collectors in Different Clusters - HTTP Example">
<agent-specifier>.*¥|.*¥|EPAgent.*</agent-specifier>
<include>
<collector host="host01" port="8081"/>
<collector host="host02" port="8081"/>
</include>
</agent-collector>

以下の例は、HTTPS を使用してエージェントがコレクタに接続するとき、別のクラスタ内のコレクタに EPAgent を割り当てる方法を示します。

<agent-collector name="Allow EPAgents on Two Collectors in Different Clusters - HTTPS Example">
<agent-specifier>.*¥|.*¥|EPAgent.*</agent-specifier>
<include>
<collector host="host01" port="8444"/>
<collector host="host02" port="8444"/>
</include>
</agent-collector>

以下の例は、SSL を使用してエージェントがコレクタに接続するとき、別のクラスタ内のコレクタに EPAgent を割り当てる方法を示します。

<agent-collector name="Allow EPAgents on Two Collectors in Different Clusters - SSL Example">
<agent-specifier>.*¥|.*¥|EPAgent.*</agent-specifier>
<include>
<collector host="host01" port="5443"/>
<collector host="host02" port="5443"/>
</include>
</agent-collector>