에이전트와 수집기 사이의 연결 구성
수집기가 오버로드되는 경우 클러스터의 부하를 분산하기 위해 MOM이 연결을 해제하고 에이전트를 리디렉션할 수 있습니다. MOM은 가중치 속성 및 loadbalancing.xml을 사용하여 부하 분산을 처리합니다. MOM이 연결을 해제하고 에이전트를 리디렉션하는 것을 방지하려면 loadbalancing.xml에서 에이전트-수집기 연결을 정의하십시오. 필요한 경우 MOM이 에이전트의 부하를 분산할 수 있도록 IntroscopeAgent.profile에서 MOM 호스트 이름 또는 IP 주소를 구성할 수 있습니다.
apmdevops104kr
수집기가 오버로드되는 경우 클러스터의 부하를 분산하기 위해 MOM이 연결을 해제하고 에이전트를 리디렉션할 수 있습니다. MOM은 가중치 속성 및 loadbalancing.xml을 사용하여 부하 분산을 처리합니다. MOM이 연결을 해제하고 에이전트를 리디렉션하는 것을 방지하려면 loadbalancing.xml에서 에이전트-수집기 연결을 정의하십시오. 필요한 경우 MOM이 에이전트의 부하를 분산할 수 있도록 IntroscopeAgent.profile에서 MOM 호스트 이름 또는 IP 주소를 구성할 수 있습니다.
에이전트가 특정 수집기로만 연결하도록 하려면 loadbalancing.xml을 사용하여 해당 구성을 수행하십시오.
IntroscopeAgent.profile에서 정의된 에이전트-수집기 연결이 있는 경우 다음 CLW 명령을 실행할 수 있습니다.
autoprepare loadbalancing.xml
이 명령은 에이전트-수집기 연결 정보를 기존 loadbalancing.xml 파일에 추가합니다. 이 명령은 에이전트를 업그레이드하기전에 실행하십시오.
다음 단계를 따르십시오.
- MOM과 수집기를 업그레이드합니다.
- loadbalancing.xml을 백업합니다.
- loadbalacing.xml에 기존 구성이 있는 경우 MOM <EM_Home>/config 디렉터리로 이동하여 파일을 백업하십시오.
중요!MOM은 autoprepare loadbalancing.xml 프로세스를 실행할 때 기존 loadbalancing.xml 주석을 삭제합니다. MOM은 에이전트-수집기 연결 정보를 보존합니다. - 수집기에 직접 연결하도록 IntroscopeAgent.profile에 구성된 모든 에이전트가 실행 중이고 해당 수집기에 연결되었는지 확인합니다.
- MOM 컴퓨터에서 다음 CLW 명령을 실행합니다: autoprepare loadbalancing.xml중요!이 명령은 MOM과 모든 수집기를 현재 릴리스로 업그레이드한 후, 그리고 에이전트를 업그레이드하기 전에 실행하십시오. 에이전트를 업그레이드한 후에 이 명령을 실행하면 MOM이 이전 에이전트-수집기 연결 정보를 가져올 수 없습니다.MOM은 수집기에 직접 연결된 모든 에이전트에 대한 런타임 정보를 수집합니다. MOM은 loadbalancing.xml 맨 아래에 연결 정보를 채웁니다.수집기가 중단되거나 MOM에 연결되지 않은 경우 MOM은 해당 수집기에 대한 에이전트 연결 정보를 수집할 수 없습니다. Loadbalancing.xml은 이 정보로 업데이트되지 않습니다.
- 선택 사항: 수집기가 중단되거나 MOM에 연결되지 않은 경우 다음 방법 중 하나로 loadbalancing.xml을 업데이트합니다.
- 에이전트-수집기 정보를 loadbalancing.xml에 수동으로 추가합니다.
- loadbalancing.xml 백업 파일을 복원하고 모든 수집기에 연결된 모든 에이전트에 대해 이 명령을 다시 실행합니다.
에이전트 이름 | 수집기 이름 |
AgentA | Collector01 |
AgentB | Collector01 |
AgentC | Collector02 |
AgentD | Collector02 |
AgentE | Collector03 |
AgentF | Collector03 |
회사는 loadbalancing.xml을 사용하여 이름이 EPAgent2인 에이전트의 부하를 분산합니다.
<?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 이후에 자동 생성된 항목을 추가했습니다.