Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column

리소스 타입은 리소스를 종류별로 분류해 놓은 것입니다. It is classified resources according the types and has different attributes for each type.

Column
width350px
Panel

이 페이지의 주요 내용Table of Contents

Table of Contents
maxLevel4

리소스 타입

It is classified resources according the types and has different attributes for each type.
MCCS provides various resource types as shown in below.

Image Removed

Resource Type

Image Added

[Figure] Resource Types in the MCCS for Linux

네트워크카드

...

Network Interface card(NIC)

MCCS monitor the TCP/IP  기반 네트워크 연결을 모니터 합니다.
일시적인 연결 장애나 네트워크 어댑터, 케이블의 네트워크에 장애를 감지합니다.

네트워크주소

MCCS는 전환가능한 노드안의 네트워크 장치 위에서 가상 IP 주소와 서브넷 마스크를 구성하고 가상 IP 주소를 감시하며 노드의 실제 IP 주소와 같은 방식으로 동작합니다.
가상 IP 주소를 할당할 네트워크 카드의 실제 IP 주소는 정적이어야 합니다.

기본 응용

단일 실행 파일 형태의 프로세스를 등록할 때 사용하며, MCCS는 운영 체제의 프로세스 테이블에 등록된 프로세스 이름의 존재 여부를 체크해서 장애를 감지합니다.

복합 응용

기본 응용과 달리 여러 개의 프로세스로 이루어진 응용 프로그램 또는 톰캣과 같이 스크립트로 실행해야 하는 응용 프로그램 등을 등록할 때에 사용합니다.
단순히 실행 파일만을 감지하지 않고, 프로세스에 대한 시작/종료/감지 기능을 수행하는 스크립트 명령을 이용하여 사용자가 원하는 방법으로 정상적인 동작을 감시하고자 할 경우에도 복합 응용으로 등록하여 사용합니다.

공유 디스크

MCCS 는 외부 공유 스토리지에 연결된 노드의 I/O 경로의 상태를 감시합니다.

미러 디스크

클러스터에 공유디스크가 없을 경우, 데이터는 로컬 혹은 직접 연결된 스토리지에 저장됩니다.
이런 환경에서 TCP/IP 를 통한 미러 구성요소는 변경된 데이터를 복제할 때 사용됩니다.

서비스

서비스는 리눅스의 서비스 데몬에 의해 관리되는 프로세스의 집합을  관리하기 위해 사용 합니다.

스카시예약

스카시예약 에이전트는 SAN등의 공유 스토리지가 지원하는  SCSI3-PR(Persistent Reservation) 프로토콜을 사용하여 LUN 단위의 Lock 을 관리합니다.
이 기능은 클러스터의 모든 노드가 다른 노드의 상태를 알 수 없을 때 데이터 손상을 방지합니다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 linux daemon.

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.

Oracle database

This resource controls the Oracle database.
It detects the Oracle database installed on the system, controls the service and monitors the status.

Oracle Listener

This resource controls the listener process of the Oracle DB.



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.

Image RemovedImage Added

[Figure] Classifying of resources under the type


그림에서 보여지는 네트워크 카드 리소스인 eth0 과 eth1은 네트워크 카드 리소스 타입에 포함되는 리소스입니다As shown in the figure, eth0 and eth1 are the resources included in the NIC resource type.
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 Attribute

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 콘솔의 리소스 타입 속성에서 확인 할 수 있습니다.Image RemovedIn addition, even in the environment where high availability clusters are configured, if the network condition is not good, you need to adjust the monitoring timeout.
Depending on the requests, you can change the attribute of each type.
Resource type attribute can be checked in the resource type attribute menu of the MCCS web console.

Image Added

[Figure] Resource Type Attribute View


속성Attribute
설명Description
타입Type
기본값Default
수정Edit
비고Note
Actions

리소스의 동작 타입을 정합니다.
OnOff 값은 명령하는 리소스이며, None은 모니터링 전용 리소스 명령입니다Define the resource operation type.
OnOff value is the command resource. None is the resource command only for monitoring.

STRING X 
ArgList

리소스 타입 별로 필요한 인수들을 나타냅니다.
이 인수들을 기반으로 에이전트 내에 변수를 만들어 타입 간의 특성을 구현합니다.
type.json 파일에서도 확인할 수 있지만 사용자가 수정할 수 없는 값입니다It represents the necessary arguments for each type of resource.
Based on these arguments, you can create variables in an agent and characterize the types.
You can check it in the type.json file but the value cannot be modified by a user.

STRING X 
CleanTimeout

리소스 속성 중에서 CleanProgram을 실행하면 완료될 때까지의 타임아웃을 나타냅니다.
이 값을 초과하면 강제로 중단시킵니다It represents the time out until execution of CleanProgram is finished.
When the limit is exceeded, it will be forcefully terminated.

INTEGER60초60 secO 
FaultOnMonitorTimeouts

이 값만큼 모니터 타임아웃이 발생하면 장애로 간주합니다.
'0'이면 장애로 간주하지 않습니다If the timeout specified by this value occurs, it is regarded as trouble.
If it is '0', it is not regarded as trouble.

INTEGER4회4 timesO 
MonitorInterval

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

INTEGER10초

It represents the time interval until the next monitoring of online resource.
If the value is too small, it could mistakenly start monitoring before receiving the proper monitoring results.
If the value is too big, then it will take too long until it detects the status changes.

INTEGER10 secO 
MonitorTimeout모니터링이 완료되거나 중단될 때까지 걸리는 시간을 나타냅니다It represents the time elapsed until monitoring is finished or terminated.INTEGER10초10 secO 
OfflineMonitorInterval

오프라인 상태의 리소스를 모니터링할 때, 다음 모니터링까지의 시간 간격을 나타냅니다.
만약 '0'이면 오프라인된 리소스를 모니터링하지 않습니다It is the time interval until the next monitoring of offline resource.
If the time interval is '0', the offline resources will not be monitored.

INTEGER60초60 secO 
OfflineTimeout리소스의 오프라인이 성공하거나 중단되는 최종 판단이 내려질 때까지 걸리는 최대 시간을 나타냅니다It represents the max time until the final decision is made on the success/failure of resource going offline.INTEGER300초300 secO 
OnlineRetryLimit리소스 시작이 실패할 경우 재시도할 횟수를 지정합니다Set the number of retries if the resource fails to restart.INTEGER0회0 timeO 
OnlineTimeout리소스의 온라인이 성공하거나 중단되는 최종 판단이 내려질 때까지 걸리는 최대 시간을 나타냅니다It represents the max time until the final decision is made on the success/failure of resource going online.INTEGER300초300 secO 
OnlineTrustTime

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

INTEGER600초

It is the time to reset the restart number of resource.
Initialize the number of retries if the normal condition is maintained for the duration specified after the resource is started

INTEGER600 secO 
OnlineWaitLimit

리소스가 온라인된 후에 정상적인 온라인 여부를 판단하는 과정에서 타임아웃이 발생하면 지정된 횟수만큼 재시도합니다.
재시도하는 간격은 'MonitorInterval'에서 정의된 시간입니다If the time our occurs while determining whether the resource goes online properly, it will retry as many times as designated.
It is the time interval of retry is defined in 'MonitorInterval'.

NTEGER2회2 timesO 
* ToleranceLimit

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

INTEGER0회

When the monitoring results cannot be trusted , monitoring will be retried as many times as designated.
For instance, if the network condition is not good, and you cannot trust the ping test results, then you need to perform monitoring several more times until you get a good result.

INTEGER0 timeO 

 

CLI

...

Use (mctype

...

command)

리소스 타입에 관한 명령을 전달 합니다. 리소스 타입에 대해 속성 조회, 속성 값 변경 명령을 내릴 수 있습니다Sends command related the resource type. You can command to inquire about the attribute or change the attribute values.

Info

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

...

When you run the CLI command, you need to enter the ID and the password. Otherwise, the above initial ID and password will be used.
Thus, when you change the initial user password, you must enter the ID/password in the CLI command as options.

 

Syntax 

 

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

 

Options Options 

옵션Option설명Description

-h

도움말을 출력합니다Display Help.

-u 사용자 계정을 지정합니다Designate the user ID.
-pw 사용자 Password를 지정합니다Enter the user password with the -u option.

-r

수정할 리소스 타입 이름을 지정 합니다Designate the name of resource type to be modified.

-a

수정할 리소스 타입의 속성 이름을 지정합니다Designate the attribute names for the resource type to be modified.

-list리소스

타입 리스트가 나열 됩니다Display the list of resource types.
[ -t resourceType ]
특정 리소스 타입 지정시 지정한 리소스 타입에 대하여 나열 됩니다List the resource types designated when a specific resource type is selected.

 

Example

modify

MirrorDisk의 MonitorInterval 속성값을 수정합니다Modify the MonitorInterval attribute values for MirrorDisk.

 

mctype -modify -t
MirrorDisk
resoruceType -a
MonitorInterval
attribute attribute_value

 

list

...

Display the attribute values for all the resource types.
(If you enter -t

...

resourceType, the attribute values for the designated resource type will be displayed.)

 

mcnode mctype -list [-t - resourceType]