여러 방법으로 MOM 에이전트 부하 분산 속성을 구성할 수 있습니다. 다음 구성 예제에서는 코드 샘플을 제공합니다.
다음 예제에서는 포트 5001에서 "myhost"라는 수집기에 MyAgent라는 에이전트를 할당하도록 구성하는 방법을 보여 줍니다.
<agent-collector name="Assign MyAgent to One Collector Example">
<agent-specifier>.*\|.*\|MyAgent</agent-specifier> <include>
<collector host="myhost" port="5001"/>
</include>
</agent-collector>
다음 예제에서는 아래 조건을 기반으로 latched 속성을 구성하는 방법을 보여 줍니다.
<agent-Collector name="Latch when Collector Unavailable Example">
<agent-specifier>.*\|.*\|EPAgent.*</agent-specifier> <include>
<Collector host="newCollector-ip" port="6001" latched=”true” /> <Collector host="Collector1-ip" port="6001" /> <Collector host="Collector2-ip" port="6001" />
</include>
</agent-Collector>
다음 예제에서는 아래 조건을 기반으로 에이전트를 할당하는 방법을 보여 줍니다.
<agent-collector name="Allow EPAgents on Two Collectors and One is Preferred Example">
<agent-specifier>.*\|.*\|EPAgent.*</agent-specifier> <include>
<collector host="localhost" port="5001" latched="true"/> <collector host="localhost" port="5002"/>
</include>
</agent-collector>
다음 예제에서는 아래 조건을 기반으로 에이전트를 할당하는 방법을 보여 줍니다.
<agent-collector name="Allow EPAgents on Four Collectors and Two are Preferred Example">
<agent-specifier>.*\|.*\|EPAgent.*</agent-specifier> <include>
<collector host="localhost" port="5001" latched="true"/> <collector host="localhost" port="5002"/> <collector host="localhost" port="5003" latched="true"/> <collector host="localhost" port="5004"/>
</include>
</agent-collector>
다음 예제에서는 MyHost라는 수집기에서 MyAgent라는 에이전트를 제외하는 방법을 보여 줍니다.
<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란 이름의 에이전트를 할당하는 방법을 보여 줍니다.
MOM과 loadbalancing.xml은 host1과 host2에 에이전트를 할당하기 위해 기본 통신 채널 포트를 사용합니다.
<agent-collector name="같은 클러스터의 두 개 수집기에서 EPAgent 허용 예제">
<agent-specifier>.*\|.*\|EPAgent.*</agent-specifier> <include>
<collector host="host01" port="5001"/> <collector host="host02" port="5001"/>
</include>
</agent-collector>
다음 예는 다음과 같은 환경의 다른 클러스터에 있는 수집기에 EPAgent란 이름의 에이전트를 할당하는 방법을 보여 줍니다.
MOM과 loadbalancing.xml은 host1과 host2에 에이전트를 할당하기 위해 특정 EPAgent-Enterprise Manager 통신 채널 포트를 사용합니다.
다음 예는 직접 소켓 연결을 사용하여 에이전트가 수집기에 연결할 때 다른 클러스터의 수집기에 EPAgent를 할당하는 방법을 보여 줍니다.
<agent-collector name="다른 클러스터의 두 수집기에서 EPAgent 허용 - 직접 소켓 연결 예제">
<agent-specifier>.*\|.*\|EPAgent.*</agent-specifier> <include>
<collector host="host01" port="5001"/> <collector host="host02" port="5001"/>
</include>
</agent-collector>
다음 예는 HTTP를 사용하여 에이전트가 수집기에 연결할 때 다른 클러스터의 수집기에 EPAgent를 할당하는 방법을 보여 줍니다.
<agent-collector name="다른 클러스터의 두 수집기에서 EPAgent 허용 - HTTP 예제">
<agent-specifier>.*\|.*\|EPAgent.*</agent-specifier> <include>
<collector host="host01" port="8081"/> <collector host="host02" port="8081"/>
</include>
</agent-collector>
다음 예는 HTTPS를 사용하여 에이전트가 수집기에 연결할 때 다른 클러스터의 수집기에 EPAgent를 할당하는 방법을 보여 줍니다.
<agent-collector name="다른 클러스터의 두 수집기에서 EPAgent 허용 - HTTPS 예제">
<agent-specifier>.*\|.*\|EPAgent.*</agent-specifier> <include>
<collector host="host01" port="8444"/> <collector host="host02" port="8444"/>
</include>
</agent-collector>
다음 예는 SSL를 사용하여 에이전트가 수집기에 연결할 때 다른 클러스터의 수집기에 EPAgent를 할당하는 방법을 보여 줍니다.
<agent-collector name="다른 클러스터의 두 수집기에서 EPAgent 허용 - SSL 예제">
<agent-specifier>.*\|.*\|EPAgent.*</agent-specifier> <include>
<collector host="host01" port="5443"/> <collector host="host02" port="5443"/>
</include>
</agent-collector>
|
Copyright © 2013 CA.
All rights reserved.
|
|