MOM は loadbalancing.xml ファイルを使用して、クラスタ全体でエージェントの負荷分散を行い、エージェントが特定のコレクタに接続できるようにします。 これらのコマンドは loadbalancing.xml ファイルを更新します。
このコマンドはアップグレード時に MOM で実行できます。 このコマンドは、8.x および 9.0.x エージェントに IntroscopeAgent.profile で定義されたエージェントからコレクタへの接続があるときに使用します。
MOM は、コレクタに直接接続されているすべての 8.x および 9.0.x エージェントに関するランタイム情報を収集します。 MOM は loadbalancing.xml の末尾に接続情報を挿入します。
重要: このコマンドは、MOM およびすべてのコレクタを 9.1.2 以降にアップグレードした後、エージェントをアップグレードする前に実行します。 エージェントがアップグレードされた後にコマンドを実行すると、MOM は以前のエージェントからコレクタへの接続情報を収集できません。
詳細については、「CA APM インストールおよびアップグレード ガイド」を参照してください。
autoprepare loadbalancing.xml
autoprepare loadbalancing.xml
エージェント A、B、C、D、E、F はすべてバージョン 8.x ~ 9.0.x です。 以下の表に示すように、コレクタ 1、2、3 に接続するためにエージェントをその IntroscopeAgent.profile ファイルで設定します。
エージェント名 |
コレクタ名 |
---|---|
エージェント A |
コレクタ 01 |
エージェント B |
コレクタ 01 |
エージェント C |
コレクタ 02 |
エージェント D |
コレクタ 02 |
エージェント E |
コレクタ 03 |
エージェント F |
コレクタ 03 |
この組織は、EPAgent2 という名前のエージェントを負荷分散するために loadbalancing.xml を使用します。
バージョン 8.x および 9.0.x の エージェントがすべて起動および動作している状態で、管理者は autoprepare loadbalancing.xml CLW コマンドを実行します。 loadbalancing.xml ファイルには以下の例に太字で表示されているエントリが入力されます。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <loadbalancing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="loadbalancing0.1.xsd">
<agent-collector name="Example 1">
<agent-specifier>.*¥|.*¥|EPAgent2</agent-specifier> <exclude> <collector latched="false" port="5001" host="Collector02"/> </exclude>
</agent-collector> <agent-collector name="Collector01@5001 auto-generated configuration">
<agent-specifier>HostName|ProcessName|AgentA</agent-specifier> <agent-specifier>HostName|ProcessName|AgentB</agent-specifier> <include> <collector latched="false" port="5001" host="Collector01"/> </include>
</agent-collector> <agent-collector name="Collector02@5001 auto-generated configuration">
<agent-specifier>HostName|ProcessName|AgentC</agent-specifier> <agent-specifier>HostName|ProcessName|AgentD</agent-specifier> <include> <collector latched="false" port="5001" host="Collector02"/> </include>
</agent-collector> <agent-collector name="Collector03@5001 auto-generated configuration">
<agent-specifier>HostName|ProcessName|AgentE</agent-specifier> <agent-specifier>HostName|ProcessName|AgentF</agent-specifier> <include> <collector latched="false" port="5001" host="Collector03"/> </include>
</agent-collector>
</loadbalancing>
Example 1 は、管理者がコマンドを実行する前の、loadbalancing.xml のエントリでした。 MOM によって Example 1 の後に自動生成されたエントリが追加されます。
Loadbalancing.xml は、エージェントからコレクタへの接続エントリで更新されます。
Copyright © 2013 CA.
All rights reserved.
|
|