Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 17 Next »

It is classified resources according the types and has different attributes for each type.

이 페이지의 주요 내용

Resource Type

[Figure] Resource Types in the MCCS for Linux

Network Interface card(NIC)

MCCS monitor the TCP/IP based network connectivity.
It detects the network unplug, ethernet adapter failure, or cable failure.

IP Address

MCCS manages virtual IP address and subnet mask which will be assigned on a NIC and switchable node to node in case it reacts in the same manner as the node's real IP address. A real IP address which is static must be set in the NIC to add on a virtual IP address.

Process

Process is used when register single execution file. MCCS detects the failures by checking if the process name exists in the process table of operating system.

Application

It is similar to process. But this is more complicated. Application works with several application or scripts such as tomcat.
MCCS does only detect on execution file, but it also brings online/ take offline/monitor the process by using pre-defined script.

Shared Disk

There are two systems connected to external shared storage and MCCS monitor the health status of I/O path to the file system.

Mirror Disk

When clustered nodes does not use shared storage, the data will be stored in each of local disk or direct attache storage.
In this environment, the mirroring component is needed through TCP/IP connection between nodes to synchronize the changed data
.

Service

The service manages the process sets managed by the service demon of linux.

SCSI Reservation

 SCSI reservation agents manage LUN based locking using the SCSI3-PR (Persistent Reservation) protocols that shared storages support such as SAN.
This function can prevent data losses when no nodes in a cluster know the status of other nodes.



When you add a resource, this will be classified under the type as tree view structure.
For an example, when you add two NIC resource, these will be classified under the NIC type as shown below.
If you edit an attribute of resource type, this will affect all of the resources classified this type.

[Figure] Classifying of resources under the type


그림에서 보여지는 네트워크 카드 리소스인 eth0 과 eth1은 네트워크 카드 리소스 타입에 포함되는 리소스입니다.
If you edit an attribute of resource type, this will affect all of the resources classified this type.
For an example, if the value of MonitorInterval of NIC resource type is edited to 30 sec, this will be applied to all of NIC resource.

 

리소스 타입 속성

Resource type has specified attributes for each type.
For an example, when compare to NIC and mirror disk, each service has different characteristics and has specific monitor interval, online/offline timeout and managed policies
또한 고가용성 클러스터링을 구성한 환경에서도 네트워크 상태가 좋지 못한 경우에는 모니터링 타임아웃 값의 조정이 필요할 수가 있습니다. 이런 요구에 따라 타입 별로 각각의 속성을 변경할 수가 있습니다.
리소스 타입 속성은 MCCS 콘솔의 리소스 타입 속성에서 확인 할 수 있습니다.

[Figure] Resource Type Attribute View


속성
설명
타입
기본값
수정
비고
Actions

리소스의 동작 타입을 정합니다.
OnOff 값은 명령하는 리소스이며, None은 모니터링 전용 리소스 명령입니다.

STRING X 
ArgList

리소스 타입 별로 필요한 인수들을 나타냅니다.
이 인수들을 기반으로 에이전트 내에 변수를 만들어 타입 간의 특성을 구현합니다.
type.json 파일에서도 확인할 수 있지만 사용자가 수정할 수 없는 값입니다.

STRING X 
CleanTimeout

리소스 속성 중에서 CleanProgram을 실행하면 완료될 때까지의 타임아웃을 나타냅니다.
이 값을 초과하면 강제로 중단시킵니다.

INTEGER60초O 
FaultOnMonitorTimeouts

이 값만큼 모니터 타임아웃이 발생하면 장애로 간주합니다.
'0'이면 장애로 간주하지 않습니다.

INTEGER4회O 
MonitorInterval

온라인 상태의 리소스를 모니터링 할 때, 다음 모니터링까지의 시간 간격을 나타냅니다.
값이 너무 작으면 적절한 모니터링 결과를 받기 전에 다시 모니터링하는 오동작을 할 수 있고,
값이 너무 크면 상태를 변경한 후, 감지하는 데까지 걸리는 시간이 길어집니다.

INTEGER10초O 
MonitorTimeout모니터링이 완료되거나 중단될 때까지 걸리는 시간을 나타냅니다.INTEGER10초O 
OfflineMonitorInterval

오프라인 상태의 리소스를 모니터링할 때, 다음 모니터링까지의 시간 간격을 나타냅니다.
만약 '0'이면 오프라인된 리소스를 모니터링하지 않습니다.

INTEGER60초O 
OfflineTimeout리소스의 오프라인이 성공하거나 중단되는 최종 판단이 내려질 때까지 걸리는 최대 시간을 나타냅니다.INTEGER300초O 
OnlineRetryLimit리소스 시작이 실패할 경우 재시도할 횟수를 지정합니다.INTEGER0회O 
OnlineTimeout리소스의 온라인이 성공하거나 중단되는 최종 판단이 내려질 때까지 걸리는 최대 시간을 나타냅니다.INTEGER300초O 
OnlineTrustTime

리소스의 재시작 횟수를 재설정하는 시간입니다.
리소스가 시작된 후에 지정 시간 동안 정상 상태를 유지하면 재시작 횟수를 초기화합니다.

INTEGER600초O 
OnlineWaitLimit

리소스가 온라인된 후에 정상적인 온라인 여부를 판단하는 과정에서 타임아웃이 발생하면 지정된 횟수만큼 재시도합니다.
재시도하는 간격은 'MonitorInterval'에서 정의된 시간입니다.

NTEGER2회O 
* ToleranceLimit

모니터링 결과를 신뢰할 수 없을 때, 지정된 횟수만큼 모니터링을 재시도합니다.
예를 들면 네트워크 상태가 좋지 못해 ping 테스트 결과를 신뢰할 수 없는 경우, 몇 번 더 모니터링하여 신뢰할만한 응답을 받아야 합니다.

INTEGER0회O 

 

CLI 사용(mctype 명령)

리소스 타입에 관한 명령을 전달 합니다. 리소스 타입에 대해 속성 조회, 속성 값 변경 명령을 내릴 수 있습니다.

MCCS 는 설치시 최초 사용자 계정으로 id 가 'admin' 암호가 'password'인 계정을 생성합니다.
CLI 명령을 실행시 id 와 password를 입력하지 않으면 , 위의 최초 사용자 계정의 id와 암호로 실행됩니다.
따라서 최초 사용자의 패스워드 변경시, 필수적으로 CLI 명령에 id와 password를 옵션으로 입력해야만 합니다.

Syntax 

 

mctype [-u userid -pw password] -t resoruceType -a attribute

 

Options 

옵션설명

-h

도움말을 출력합니다.

-u 사용자 계정을 지정합니다.
-pw 사용자 Password를 지정합니다.

-r

수정할 리소스 타입 이름을 지정 합니다.

-a

수정할 리소스 타입의 속성 이름을 지정합니다.

-list

리소스 타입 리스트가 나열 됩니다.
[ -t resourceType ] 특정 리소스 타입 지정시 지정한 리소스 타입에 대하여 나열 됩니다

 

Example

modify

MirrorDisk의 MonitorInterval 속성값을 수정합니다.

 

mctype -modify -t MirrorDisk -a MonitorInterval value

 

list

모든 리소스 타입에 대한 속성값을 출력합니다.
(-t resourceType 입력시 지정한 리소스 타입에 대한 속성값이 출력됩니다.)

 

mcnode -list [t -resourceType]

 

 

  • No labels