4.14. 로드 밸런서 리소스 에이전트 구성
상태 프로브를 생성한 후 load balancer
리소스 에이전트를 구성해야 합니다. 이 리소스 에이전트는 Azure 로드 밸런서의 상태 프로브 요청에 응답하는 서비스를 실행하고 요청에 응답하지 않는 클러스터 노드를 제거합니다.
절차
모든 노드에
nmap-ncat
리소스 에이전트를 설치합니다.# dnf install nmap-ncat resource-agents
단일 노드에서 다음 단계를 수행합니다.
pcs
리소스 및 그룹을 만듭니다. IPaddr2 주소에 로드 밸런서 FrontendIP를 사용합니다.# pcs resource create resource-name IPaddr2 ip="10.0.0.7" --group cluster-resources-group
load balancer
리소스 에이전트를 구성합니다.# pcs resource create resource-loadbalancer-name azure-lb port=port-number --group cluster-resources-group
검증
pcs status
를 실행하여 결과를 확인합니다.[root@node01 clouduser]# pcs status
출력 예:
Cluster name: clusterfence01 Stack: corosync Current DC: node02 (version 1.1.16-12.el7_4.7-94ff4df) - partition with quorum Last updated: Tue Jan 30 12:42:35 2018 Last change: Tue Jan 30 12:26:42 2018 by root via cibadmin on node01 3 nodes configured 3 resources configured Online: [ node01 node02 node03 ] Full list of resources: clusterfence (stonith:fence_azure_arm): Started node01 Resource Group: g_azure vip_azure (ocf::heartbeat:IPaddr2): Started node02 lb_azure (ocf::heartbeat:azure-lb): Started node02 Daemon Status: corosync: active/disabled pacemaker: active/disabled pcsd: active/enabled