User Tools

Site Tools


sccl:usage

This is an old revision of the document!


Usage

:TODO: more to come


Examples

Example 1

This example script-cluster configuration describes a productive environment of:

  • two servers, host001 and host002
    • one application server
    • one database server
  • each server has a package
    • 'tomcat' for the application server
    • 'database' for the database server

This is a very simple example and does not contain any failover functionality.

The following configuration files only show the significantly changed parts or parameters.

/etc/sccl/sccl.conf
# Clustername
CLUSTER=SAMPLE01
 
# Cluster nodes
NODES="host001 host002"

The package 'tomcat' can only run on host 'host001'. The package 'database' can only run on host 'host002'.

/etc/sccl/packages.conf
# <package>  [-]  <host1> [<host2> [<host3>]...]
 
# Application
tomcat host001
 
# Database
database host002
/etc/sccl/resources.conf
# <package>  <package_name>  <resource1> [<resource2> [<resource3]...]
 
database My_Database   PRG:db_startstop   RST:tomcat:CLUSTER
 
tomcat Tomcat_Application_Server   CPKG:database:WAIT:3   PRG:tomcat_startstop

Alternatively you can use:

/etc/sccl/resources.conf
# <package>  <package_name>  <resource1> [<resource2> [<resource3]...]
 
database My_Database   PRG:db_startstop   RST:tomcat:CLUSTER
 
tomcat Tomcat_Application_Server   CPKG:database:START   PRG:tomcat_startstop

sccl/usage.1421850767.txt.gz · Last modified: 2015-01-21 15:32 by uls