Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

Version 1 Next »

An application is similar to Process resource, but it is more flexible and can be managed by batch script which contains multiple processes.
The reason why program is executed using batch script is because it will make it possible managed by MCCS even when the name of starting program and running program is not the same. Besides this, it not only monitors the existence of process but also monitors the response of process with this.  
For these reasons, batch script will provide more detail monitoring and flexibility and an application agent manages this.
Same as process, application is basically executed with the system account, but is can be executed with particular user by using attributes of User.

Table of Contents

Adding

Add the application resource to a group.

  1. When add a resource from a group name, select a group → right click → 'Add Resource'. Or select Edit(E) from the main menu bar → select 'Add Resource'. Or select 'Add Resource' icon from the tool bar.

  2. Select 'Application' from Resource Type lists and click 'Next' button. When add a resource from the Application resource type name, this step will be skipped.
  3. Enter the resource name and the pre-scripted file name for start, stop and monitoring with full path or click click  to browse the file, or click the  to create user defined script file.
  4. Enter the process name where listed in task manager for monitoring target into MonitorProcesses box.


    [Figure] Adding application Resource


  5. Click 'Finish' to add the application resource.


Deleting

Select resource type → right click → delete resource.   


State

The following table explains the state of application resource.

복합 응용 에이전트: 일반적인 어플리케이션 항목을 관리합니다.
기본 응용보다 복잡하고, 더 많은 확장성을 제공하여 애플리케이션, 서비스 등을 관리합니다.

StateAgent commandDescriptionNote

Online

All the processes into MonitorProcesses are running properly and MonitorProgram returns '0'.

Offline

StopProgram 속성에 등록된 스크립트를 실행합니다. 


Monitoring

MonitorProgram 속성에 등록된 스크립트를 실행합니다.
스크립트로 감시 할 경우에는 종료 값이 0 일 경우 성공, 그 외의 경우에는 실패를 의미합니다.
MonitorProcesses 속성에 등록된 프로세스 목록으로 감시할 때는 리스트에 등록한 모든 프로세스가 구동중일 경우 성공, 그렇지 않으면 실패를 의미합니다.
프로세스 목록과 스크립트를 모두 등록할 경우에는 2 가지 조건이 모두 성공해야만 성공을 의미하며, 프로세스 목록이 없거나 스크립트가 성공이 아니라면 실패로 간주하게 됩니다.


Offline

When one of the process into MonitorProcesses is at least offline or 'MonitorProgram' does not return in '0'.

Online

StartProgram 속성에 등록된 스크립트를 실행합니다.
StartProgram 속성은 배치 스크립트를 사용하여 기본 응용 리소스보다 유연하게 프로그램을 실행할 수 있습니다.
잘못된 경로를 입력한 경우에는 MCCS가 에러 로그를 출력하고 리소스를 사용할 수 없게 합니다.


Monitoring

위에 모니터링 명령 설명 참조


Fault

When an onlined application has not taken offline through offline command, it is defined as fault.

Online

위에 온라인 명령 설명 참조


OfflineStopProgram 속성에 등록된 스크립트를 실행합니다. 


Attribute

Show the specified attribute of application resource.

Attribute

Description

Type

DefaultEditNote

MonitorProcesses

It is the list of the process to be monitored. 
Name of each process is simply the name of the executables. If there is more than one process, they are separated by (','). 
(ex : /usr/sbin/crond, crond) 

STRING


O

If you enter the value on both attribute, MCCS determinds the resource is normal state when both of them returns '0'.

MonitorProgram

It is program or script based file for monitoring an object.

FILE


O

StartProgram

It is a program to bring online the Application in each node.

FILE


O

StartupDirectory

It is a work directory. it means %MCCS_HOME if it does not have a value.

DIRECTORY

(.)O

StopProgram

It is a program to take offline the Application of each node.

FILE


O

User

It is a user name which has received the permission to use the application. 
It is MCCS service account if there is no value. 

STRING

rootO

Specified attribute values are normally entered when add the resource, This value can be edited or viewed through 'Specified Attribute' table in the Resource Attributes tab on the detailed information panel.



  • No labels