이전 항목: 출력다음 항목: 샘플 스크립트


Loadbalancing.xml 명령

MOM은 클러스터 간 에이전트 부하를 분산하고 에이전트가 특정 수집기에 연결할 수 있도록 하기 위해 loadbalancing.xml 파일을 사용합니다. 이러한 명령은 loadbalancing.xml 파일을 업데이트합니다.

Autoprepare 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 파일에 구성되었습니다.

에이전트 이름

수집기 이름

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 항목입니다. MOM은 예제 1 이후에 자동 생성된 항목을 추가했습니다.

출력

Loadbalancing.xml이 에이전트-수집기 연결 항목으로 업데이트됩니다.