Versions Compared

Key

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

 

Column
width350px
Panel

이 페이지의 주요 내용

Table of Contents
maxLevel4

 

What is Resource?

Resources are defined as hardware or software entities which are needed to provide application service.
Ethernet adapter, IP Address, Process, Service, Storage, etc are resources and MCCS manage these to ensure service availability.

There are two categories of these, one is on-off resource, another is persistent resource.
Most resources are normal which means MCCS online or offline them as their state. The other hands, a persistent resource cannot be brought online or taken offline, just only monitor them by MCCS.

Resource action is divided into regular resource(OnOff) and monitor resource(None).
Most of the resources are regular resources that goes Online or Offline according to the resource state.
Monitor resources are only able to monitor and does not go online or offline like regular resources.
For an instance, network interface card cannot be brought online or taken offline as its state. But it is essential resource to attach IP address on that.
Agents for each type of resource are in-charge of giving command and monitoring.

...

Column
width350px
Panel

이 페이지의 주요 내용

Table of Contents
maxLevel4

Resource Attributes

Resource attribute can be identified from Resource Attributes view of MCCS console. From the group management view of MCCS console, select the resource, then select ‘Resource Attributes’ tab located on the top of detailed information panel.
The values of gray colored are read only. They just contain and show the information of resource state. The values of white colored are configurable by user definition. Below is description of some of them.

...

AttributeDescriptionTypeDefaultEdit비고
 Key Attribute*Critical

When a failure occurs in the resource it indicated whether to failover the whole group.
true : failover the whole group.
false : no action.

BOOLEAN X 
*Enabled

It is used when deciding whether to manage the resource. 
After adding a resource for the first time and enable it, the value becomes true.

BOOLEAN X 
General Attribute*AgentState

It indicates the agent state of the resource.

STRING X

사용자가 임의로 수정할 수 없으며, MCCS엔진에서 모든 노드의 에이전트 상태를 수집한 후에 나타냅니다.

STRING X 

BatchAfterOffline

This is a batch command to be executed after a resource is taken offline.  
Success or failure of the batch file does not affect group procedure.  
Also, it still operates regardless of other resource online or offline. 

FILE O 

BatchAfterOnline

This is a batch command to be executed after a resource is brought online.  
Success or failure of batch does not affect group procedure.  
Also, it still operates regardless of other resource online or offline.

FILE O 
BatchBeforeOffline

This is a batch command to be executed before a resource is taken offline.  
Success or failure of batch does not affect group procedure.  
Also, it still operates regardless of other resource online or offline.

FILE O 
BatchBeforeOnline

This is a batch command to be executed before a resource is brought online.  
Success or failure of batch does not affect group procedure.  
Also, it still operates regardless of other resource online or offline. 

FILE O 
BatchTimeout

It is the waiting time until execution of batch command completes. If execution result is over this time, it is considered as a failure. (unit = second)

INTEGER300초O 
*CleanProgram

This program is executed to initialize related resources and state when a failure occurs to a resource. This program must be written separately.

FILE O 
FailoverableIt indicates whether the resource is in the state to be failover.BOOLEAN X 
*Group

It is the name of the group which the resource belongs.

STRING X 
LastOnline

It is name of the node on which state of the resource is online lastly.

STRING   
*Monitored

It periodically records whether monitoring is completed.

BOOLEAN X 
*NoAction

It is only for persistent resources. If it is 'true', action like Online, Offline, other than monitoring will be prohibited.

BOOLEAN X 
*ResNameIt is the name of the resource.NAME X 
Restartlimit 

It shows the number to restart before failover when the resource is determined as a failure. 
(unit=counts)

INTEGER0회O 
*StateIt is the resource state of each node.STRING X 
*TypeIt is the name of the agent type of the resource.STRING X 

...

[Figure] Resource Control Menus


A resource can be managed easily through MCCS console. From the group management view of MCCS console, select the resource and right click , then control menu will be pop up.
Another way to select group from the group management view of MCCS console, is to select ‘Resource Dependency’ tab from detailed information panel, select the resource and right click, then control menu will be pop upMCCS에서 리소스를 다루기 위한 명령은 관리 콘솔에서 왼쪽 뷰의 리소스를 선택한 후에 마우스의 오른쪽 클릭으로 생성된 팝업 화면에서 선택할 수 있습니다.
또 다른 곳은 그룹을 선택한 후에 '리소스 의존성' 탭에서 해당 리소스에 마우스의 오른쪽을 클릭하면 리소스와 같은 팝업 화면을 생성시킬 수 있습니다.
이 외에도 콘솔의 메뉴 항목이나 툴 바 메뉴에서 명령을 내릴 수 있으며 있으며 CLI 로도  로도 가능합니다.


Enable Resource

This can be checked by checking of there is a enabled check mark in front of the command. This can also be checked by checking on the Enabled value in the Resource Attribute. If the resource is disabled, resource state cannot be monitored.
If the attribute value is incorrect, this will be failed.  For example, when type a wrong path name in the process of application, monitoring whether it is online or offline is impossible. Therefore, whenever this is failed, attribute value should be checked first.

...

You can bring a resource online by using this. 
From here, there are sub menus per node so that nodes to be online can be selected. Sub menus can be 'Enabled' or 'Disabled' according to the resource state per node. For example, failover mode group cannot send enabled command when it is online in the temporary node.
This is because failover mode group should only have one node online and if there is one node that is already online, online menu is not enabled. However, in case of parallel mode group, it is all enabled if it is not in an online state.

Failover mode group should only have one node online and so node that is online can start the Online command. When this is selected, you can choose appropriate node from the sub menu which shows nodes list. When the resource is already online state, all of the node icons will be disabled at failover mode group.
But the node will be enabled which the resource isn’t online state at parallel mode group.

...

ex> Paste Network Card Resource  view

[Figure] Paste Network Card Resource View

...