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。 将这些代理在各自的 IntroscopeAgent.profile 文件中配置为连接到收集器 1、2、3,如下表所示:
|
代理名称 |
收集器名称 |
|---|---|
|
AgentA |
Collector01 |
|
AgentB |
Collector01 |
|
AgentC |
Collector02 |
|
AgentD |
Collector02 |
|
AgentE |
Collector03 |
|
AgentF |
Collector03 |
组织使用 loadbalancing.xml 对名为 EPAgent2 的代理进行负载平衡。
在所有 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>
示例 1 是管理员运行命令之前的 loadbalancing.xml 条目。 在示例 1 之后,MOM 添加了自动生成的条目。
以代理对收集器的连接条目更新 Loadbalancing.xml。
|
版权所有 © 2013 CA。
保留所有权利。
|
|