Beruflich Dokumente
Kultur Dokumente
0 for UNIX:
Example Application Configurations
Example 1: Clustering Applications
Lesson objectives
Topic
Objectives
Application service
overview
The Application
agent
IMF support
Application service
overview
After completing this topic, you
will be able to describe how
application services work in a high
availability environment.
Web
server
Application
Storage
Network
IP address
NIC
10.10.21.198
S1
File system
Volume
Disk group
Application requirements
Start and stop procedures
Clean up capability after operational failures
Automated monitoring facility
Data storage on external shared disks
Restart capability after sudden failures
Support for multiple servers designated as potential
hosts:
No license issues tied to individual servers
No host name dependencies
Application and
Partner
Custom
IP
NIC
Symantec-developed agents
Independent software vendor (ISV) agents
Quarterly updates
Available from sort.symantec.com
Ldom
HAD
onlin
eoffline
monitor
or
An agent binary and a collection of scripts that
correspond to agent functions not included in the
binary
clean
types.cf
type Diskgroup(
. . .
static str ArgList[] =
{ DiskGroup . . .}
. . .
)
main.cf
DiskGroup webdg (
DiskGroup = webdatadg
)
webdg
DiskGroup agent
online
offline
monitor
clean
online
$1 webdg
$2 webdatadg
HAD
The Application
agent
After completing this topic, you
will be able to configure the
application agent.
Function
Online
Offline
Monitor
Clean
StopProgram
EnvFile
UseSUDash
main.cf
Application payroll_app (
StartProgram = /etc/init.d/payroll start
StopProgram = /etc/init.d/payroll stop
PidFiles = { /paydata/payroll.pid }
MonitorProcesses = { paydebit
payvendor }
)
IMF-related attributes
Type Attributes Defaults:
IMF
Mode
MonitorFreq
default)
RegisterRetryLimit
IMFRegList
MonitorProgram
LevelTwoMonitorFreq
Supported configurations
MonitorProgra
m
MonitorProces
ses
PidFiles
IMF Mode
n/a
Online, Offline
(3)
Online, Offline
(3)
None (0)
None (0)
None (0)
None (0)
main.cf snippet
Application myappd (
StartProgram = "/usr/bin/myappd start"
StopProgram = "/usr/bin/myappd stop"
MonitorProcesses = { " myappd " }
)
StartProgram example
myappd
Limitations of PCV
Is only supported for failover service groups
Works only with MonitorProcesses attribute specified
Is not supported if StartProgram refers to a wrapper-type
script
Requires exact match between path and arguments in MonitorProcesses
attribute and process table
Lesson summary
Key points
VCS provides a variety of agents to manage all types of
applications.
The Application agent is easily configurable for basic
management of an application.
Reference materials
Veritas Cluster Server Bundled Agents Reference Guide
Veritas Cluster Server Agent Developers Guide
Veritas Cluster Server: Install and Configure Course
www.symantec.com
End of Presentation