Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
[그림Figure] 그룹 시작/종료시 의존 관계에 있는 리소스들의 온라인/오프라인 순서Online/Offline Sequence of Dependent Resources When Starting or Terminating a Group
Dependency Configuration
o To define this dependency among resources, configure this link in the ‘Resource Dependency’ view.
[Figure] Dependency relationship
MCCS에서는 이런 리소스들간의 의존 관계를 계층적인 트리 형태로 간단히 구성할 수 있습니다.
우리는 위의 화면을 통하여 리소스들 간에 의존 관계를 알 수 있습니다.
부모인 네트워크주소 리소스는 그의 자식 리소스인 네트워크카드 리소스에 의존하며, 부모인 복합응용 리소스와 기본응용 리소스는 그의 자식 리소스인 네트워크주소 리소스에 의존하는 리소스입니다.
MCCS는 그룹 단위로 페일오버를 진행합니다. 따라서 그룹 내의 모든 리소스들을 서로 의존 관계로 연결하고 하나의 그룹으로 구성해서 실행이 되어야 의미 있는 서비스를 제공할 수 있습니다.
리소스 2 개를 부모 자식으로 의존 관계를 설정하면 상하 2 단계의 레벨로 볼 수 있으며, 최대 레벨은 그룹 속성의 'MaxDependencyLevel' 값에서 확인할 수 있습니다.
Link
In MCCS, you can configure the dependency relationship of resources by using a tree.
From the above screen, we can find out about the dependency relationship among resources.
The network address resource as a parent depends on the NIC resource as its child. The application resource as a parent depends on the network address resource as its child.
MCCS performs a failover on a group basis. Thus, all the resources within a group should be connected in this dependency relationship and they need to be put into a single group before we can provide meaningful service.
If we set two resources as a parent and an child, we can see it as two vertical levels. The max level can be checked in the 'MaxDependencyLevel' value in the group attribute menu.
Link
[Figure] Setting Link
위의 화면에서 기본응용 리소스(부모)와 네트워크주소 리소스(자식) 간에 링크를 설정하는 방법을 설명합니다.
네트워크주소 리소스(자식)는 기본응용 리소스(부모)에 의존하는 리소스입니다.
...
The above screen shows how to set the link between the process resource (parent) and the network address resource (child).
The network address resource (child) depends on the process resource (parent).
- Select the group relationship editor screen.
- On the right palette screen, select 'Create Dependency'.
- You can see that the mouse cursor shape is changed to support linking.
- First, select the parent resource (process resource) and then select the child resource (network address resource) to finish link setting.
Warning |
---|
※ For linking process, first selected resource is parent resource and the one selected later is the child resource. |
Dependency Removal
[그림Figure] Setting Unlink 설정 화면
...
- When you remove the dependency relationship, press 'Select' in the palette.
- Select a link to remove.
- The selected link will have big points at the both ends of resource to indicate the selection made.
- On the selected link, right click with your mouse button and select 'Dependency Removal' in the popup screen.
Basic Dependency Cases among resources
Following are the general cases of dependency.
네트워크카드 리소스, 네트워크주소 리소스
네트워크주소 리소스에서 IP를 할당하기 위해서는 먼저 물리적인 네트워크 카드가 필요합니다. 네트워크 카드 없이 IP 할당이 불가능하기 때문입니다.
네트워크 카드 리소스를 자식으로, 네트워크주소 리소스를 부모로 하는 의존 관계를 설정하게 되면 네트워크주소 리소스를 온라인 시도할 때 먼저 네트워크 카드가 정상적인 상태인지 확인합니다.
디스크 리소스 , 네트워크주소 리소스, 복합응용 리소스 (ex: 데이터베이스)
많은 응용프로그램들은 디스크(혹은 스토리지)에 데이터를 기록합니다. 따라서 응용프로그램들은 디스크에 의존하는 형태로 관계가 이루어져야 합니다.
데이터베이스의 경우는 데이터를 기록할 디스크를 지정해야 합니다. 따라서 데이터베이스는 디스크에 의존하도록 데이터베이스를 부모로 디스크를 자식으로 의존 관계를 설정합니다.
클라이언트에서 데이터베이스에 접속 할 수 있는 IP 주소가 필요하다면 네크워크주소를 자식으로 데이터베이스를 부모로 의존 관계를 설정합니다.
이 의존 관계를 바탕으로 MCCS에서는 그룹을 온라인 할 때, 네트워크주소 리소스와 디스크 un-lock 상태가 정상적으로 실행되었는지 확인한 후에 데이터베이스를 구동시킵니다.
따라서 데이터베이스는 네트워크주소 리소스, 디스크 리소스를 모두 의존하는 관계로 설정되어야 합니다.
지금까지의 관계로 의존성을 구성해보면 다음과 같은 형태가 됩니다.
...
Network Interface card(NIC) resource, Network Address Resource
Before assigning an IP address to the network address resource, you need to first have a physical network card. Without a network card, you cannot assign an IP address.
If you set the NIC resource as an child and the network address resource as a parent, it will check whether the network card is normal when the network address resources tries to go online.
Disk Resource, Network Address Resource, Application Resource (ex: DB)
Many applications record data in a disk or storage. Thus, applications must depend on disks in the dependency relationship.
If you use the DB, you need to designate the disk to record data in. Thus, for the DB, you must set the dependency relationship where the DB as a parent depends on the disk as a child.
If a client needs an IP address to access the DB, you must set the network address as an child and the DB as a parent.
Based on this dependency relationship, when a group goes online in MCCS, first check the network address resource and confirm whether the disk are unlocked properly before running the DB.
Thus the DB should be set to depend on both the network address resource and the disk resource.
We can provide the following configurations based on the dependency relationships discussed so far.
[Figure] Dependency of database application
Actions due to dependency
Online/Offline of the group is performed from bottom to top according to the dependency in case of online, and from top to bottom in case of offline.
Following are a few examples how MCCS manages the resources after dependency link among the resources when a resource is failed. Attributes and state of resources are defined as the figure below.
[Figure] Resource State Information Charts
Critical Attributes
- Failure occurs from a resource on which critical resource depend.
[Figure] Example of Failure Occur 1
- As a failure is occurred at resource r2, resource r1 will be taken offline. (Since resource r1 depends on resource r2 which is failed, resource r1 may cannot be online properly.)
- Since resource r1 has critical attribute, resource r3 and r4 will be taken offline in order to failover the group.
- As a result, resource r2 is considered as failure and all resources in the group will be taken offline
- Non-critical Resources
[Figure] Example of Failure Occur 2
- Resource r1 which is not critical is online status.
- When resource r2 get failed, resource r1 will be taken offline because it dependent on resource r2.
- As r1 resource is not critical, group failover will be not performed. Therefore, the group will be partial online status.
RestartLimit Attribute
RestartLimit is an attribute of the resource type. This value determines how many times the recovery will be attempted until it is finally confirmed that it is failure.
(Please refer to "6. Resource Type" for more details.)
[Figure] Example of Failure Occur 3
- On the assumption that the value of RestartLimit is 1 for resource r2, the first failure has occurred.
- MCCS will bring online resource r2 again as the value of RestartLimit.
At this time, resource r1 which depends on resource r2 will be taken offline. - resource r2 restart.
- resource r1 online.
- When another failure occurs on resource r2, all of the resource will be taken offline from resource r1 to r3 by order.
- Resource r3 will be taken offline.
- As a result, resource r2 is considered as failure and all resources in the group is offline status in the node.