1.4. 고가용성 서비스 관리
고가용성 서비스 관리에서는 Red Hat 클러스터에 있는 고가용성 클러스터 서비스를 생성하고 관리하는 기능을 제공합니다. Red Hat 클러스터에 있는 고가용성 서비스 관리에 필요한 주요 구성요소인
rgmanager
는 상용 어플리케이션에 필요한 cold failover를 실행합니다. Red Hat 클러스터에서 어플리케이션은 고가용성 클러스터 서비스를 구축하기 위해 다른 클러스터 리소스로 설정되어 있습니다. 고가용성 클러스터 서비스는 클러스터 클라이언트에 장애를 일으키지 않고 하나의 클러스터 노드에서 다른 노드로 장애 조치될 수 있습니다. 클러스터 노드에 문제가 발생한 경우나 또는 클러스터 시스템 관리자가 다른 클러스터 노드로 서비스를 이전할 경우 클러스터 서비스 장애 조치가 실행될 수 있습니다. (예: 클러스터 노드의 정기적 중지와 같은 경우)
고가용성 서비스를 생성하려면 이를 클러스터 설정 파일에서 설정해야 합니다. 클러스터 서비스는 클러스터 리소스로 구성되어 있습니다. 클러스터 리소스에서는 클러스터 설정 파일에서 생성하고 관리할 블록을 만듭니다. — 예: IP 주소, 어플리케이션 초기화 스크립트, RHGFS; 공유 파티션
You can associate a cluster service with a failover domain. A failover domain is a subset of cluster nodes that are eligible to run a particular cluster service (refer to 그림 1.9. “장애조치 도메인”).
참고
장애조치 도메인은 작동에 필요하지 않습니다.
클러스터 서비스는 데이터 무결성을 유지하기 위해 한번에 하나의 클러스터 노드에서만 실행될 수 있습니다. 장애조치 도메인에서 장애 조치 우선 순위를 지정할 수 있습니다. 지정된 장애 조치 우선 순위는 장애 조치 도메인에 있는 각각의 노드에 지정된 우선 순위로 구성되어 있습니다. 우선 순위로 장애 조치 순서가 결정됩니다 — 클러스터 서비스가 어떤 노드를 장애 조치할 지를 결정. 장애 조치 우선 순위를 지정하지 않으셨을 경우, 클러스터 서비스는 장애 조치 도메인에 있는 아무 노드에 장애 조치를 실행할 수 있습니다. 또한, 클러스터 서비스를 관련 장애 조치 도메인의 노드에서만 실행하도록 제한할 수 있습니다. (제한되지 않은 장애 조치 도메인과 연관될 경우, 사용 가능한 장애 조치 도메인이 없을 경우 클러스터 서비스는 아무 클러스터 노드에서 시작될 수 있습니다.)
In 그림 1.9. “장애조치 도메인”, Failover Domain 1 is configured to restrict failover within that domain; therefore, Cluster Service X can only fail over between Node A and Node B. Failover Domain 2 is also configured to restrict failover with its domain; additionally, it is configured for failover priority. Failover Domain 2 priority is configured with Node C as priority 1, Node B as priority 2, and Node D as priority 3. If Node C fails, Cluster Service Y fails over to Node B next. If it cannot fail over to Node B, it tries failing over to Node D. Failover Domain 3 is configured with no priority and no restrictions. If the node that Cluster Service Z is running on fails, Cluster Service Z tries failing over to one of the nodes in Failover Domain 3. However, if none of those nodes is available, Cluster Service Z can fail over to any node in the cluster.
![장애조치 도메인](https://access.redhat.com/webassets/avalon/d/Red_Hat_Enterprise_Linux-5-Cluster_Suite_Overview-ko-KR/images/528c590019b925bef1fde0ee5473a67f/svc-fo-domain.png)
그림 1.9. 장애조치 도메인
그림 1.10. “Web Server Cluster Service Example” shows an example of a high-availability cluster service that is a web server named "content-webserver". It is running in cluster node B and is in a failover domain that consists of nodes A, B, and D. In addition, the failover domain is configured with a failover priority to fail over to node D before node A and to restrict failover to nodes only in that failover domain. The cluster service comprises these cluster resources:
- IP 주소 리소스 — IP 주소 10.10.10.201.
- An application resource named "httpd-content" — a web server application init script
/etc/init.d/httpd
(specifyinghttpd
). - A file system resource — Red Hat GFS named "gfs-content-webserver".
![Web Server Cluster Service Example](https://access.redhat.com/webassets/avalon/d/Red_Hat_Enterprise_Linux-5-Cluster_Suite_Overview-ko-KR/images/cb144da1fb7f6d6d2774cf1fbe3e5d0f/ha-svc-example-webserver.png)
그림 1.10. Web Server Cluster Service Example
클라이언트는 10.10.10.201 IP 주소를 통해 클러스터 서비스에 액세스하며, 웹서버 어플리케이션인 httpd-content와 상호 대화합니다. httpd-content 어플리케이션은 gfs-content-webserver 파일 시스템을 사용합니다. 노드 B에 장애가 발생할 경우, content-webserver 클러스터 서비스는 노드 D로 장애 조치를 실행합니다. 노드 D가 사용 불가능하거나 또는 장애가 발생할 경우, 노드 A로 장애조치합니다. 클러스터 클라이언트에 명백한 장애가 없을 경우 장애 조치가 실행됩니다. 클러스터 서비스는 장애 조치 되기 전과 같은 IP 주소를 통해 다른 클러스터 노드에서 액세스될 수 있습니다.