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

리소스 타입

리소스 타입은 리소스를 종류별로 분류해 놓은 것입니다. 

MCCS에서 지원하는 리소스 타입은 다음과 같습니다.

Image Removed

[그림] 리소스 타입 목록

특정 타입에 해당하는 리소스는 특정 타입 하위에 포함되어 보여지며, 타입 속성 변경 시 포함된 리소스들은 모두 영향을 받습니다.

예를 들어 네트워크 카드 리소스가 2개 이상 생성되었을 때, 네트워크카드 타입 하위에 각각의 네트워크 카드 리소스가 포함됩니다.

Image Removed

[그림] 네트워크 카드 리소스 2개가 네트워크 카드 리소스 타입에 포함되어 있는 그림

그림에서 보여지는 네트워크 카드 리소스인 public 과 private1 은 네트워크 카드 리소스 타입에 포함되는 리소스입니다.

또한, 네트워크 카드 리소스 타입의 속성을 변경하게 되면 리소스 모두에 영향을 받습니다.

예를 들어 모니터 주기를 지정하는 MonitorInterval 속성 값을 30 초로 변경하게 되면 public , private1 으로 정의된 네트워크 카드 리소스는 모두 30 초로 변경된 값을 적용받게 됩니다.

 

리소스 타입 속성

리소스 타입 별로 다른 속성 값들을 가지고 있습니다.

가령 네트워크 카드와 미러 디스크 타입을 비교하면 모니터 주기나 온라인 타임아웃 등의 시간 값이 다른 경우가 있습니다.

또한 고가용성 클러스터링을 구성한 환경에서도 네트워크 상태가 좋지 못한 경우에는 모니터링 타임아웃 값의 조정이 필요할 수가 있습니다. 이런 요구에 따라 타입 별로 각각의 속성을 변경할 수가 있습니다.

리소스 타입 속성은 MCCS 콘솔의 리소스 타입 속성에서 확인 할 수 있습니다.

Image Removed

[그림] 리소스 타입 속성 화면

여기에는 수정 가능한 속성 값과 수정 불가능 한 속성 값이 있습니다. 예를 들어 액션과 인자는 수정할 수 없습니다. 

기본적으로 ArgList에는 리소스 타입에 맞는 변수가 어떤 것들이 있는지 정의되어 있으며, Actions에는 리소스 타입이 명령을 내릴 수 있는지(OnOff), 모니터링 전용 타입(None) 인지를 알려줍니다. 이런 값들은 사용자가 직접 수정할 수 없으며 단지 리소스 타입의 특성만 나타내주는 정보 값입니다. 자세한 내용은   "챕터 6. 리소스" 편을 참조해 주십시오.

CLI 사용(mctype 명령)

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

Syntax 

Resource Type

Image Added

[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 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 Added

[Figure] Classifying of resources under the type


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
In 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

Define the resource operation type.
OnOff value is the command resource. None is the resource command only for monitoring.

STRING X 
ArgList

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

It represents the time out until execution of CleanProgram is finished.
When the limit is exceeded, it will be forcefully terminated.

INTEGER60 secO 
FaultOnMonitorTimeouts

If the timeout specified by this value occurs, it is regarded as trouble.
If it is '0', it is not regarded as trouble.

INTEGER4 timesO 
MonitorInterval

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 
MonitorTimeoutIt represents the time elapsed until monitoring is finished or terminated.INTEGER10 secO 
OfflineMonitorInterval

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 secO 
OfflineTimeoutIt represents the max time until the final decision is made on the success/failure of resource going offline.INTEGER300 secO 
OnlineRetryLimitSet the number of retries if the resource fails to restart.INTEGER0 timeO 
OnlineTimeoutIt represents the max time until the final decision is made on the success/failure of resource going online.INTEGER300 secO 
OnlineTrustTime

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

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 timesO 
* ToleranceLimit

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

 When you install MCCS, the initial user account ID is set to 'admin' and the password is set to '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 

옵션설명
OptionDescription

-h도움말을 출력합니다

Display Help.

-uDesignate the user ID.
-pwEnter 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]