User Tools

Site Tools


sccl:configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sccl:configuration [2015-01-15 15:20]
uls
sccl:configuration [2015-07-07 15:35] (current)
uls [resources.conf]
Line 19: Line 19:
 ==== sccl.conf ==== ==== sccl.conf ====
  
 +This is the upper level configuration file of the script cluster.
 +The arbitrary name of the cluster (CLUSTER) is defined and all associated cluster nodes (NODES) are listed.
  
 :NOTE: This file is source'​d,​ so be careful when editing. :NOTE: This file is source'​d,​ so be careful when editing.
 +
 +<file - sccl.conf>​
 +# Definition der Variablen fuers Script-Cluster
 +#
 +# Clustername
 +CLUSTER=SCCL001
 +#
 +# Physische Nodes im Cluster
 +NODES="​host001 host002"​
 +# HBNODE_EXT="​hb1"​
 +# HBNODES=""​
 +
 +# Pakete bei sccl_show_cluster sortieren
 +SHOWSORTED=1
 +
 +# Start und Stopp-Zeiten ans ULS liefern?
 +ULS="​1"​
 +# ULS=""​
 +
 +############################################################​
 +# Verzeichnis zum Speichern der Cluster-Lockdateien
 +LOCKDIR=/​var/​clusterlocks
 +
 +# Datei mit den Paketen des Clusters
 +PACKAGES=/​etc/​sccl/​packages.conf
 +
 +# Datei mit den Resourcen des Clusters
 +RESOURCES=/​etc/​sccl/​resources.conf
 +
 +# Directory mit den Start-Stop und Test-Scripten der Resourcen
 +STARTSTOPDIR=/​usr/​local/​sccl
 +
 +# Einstellungen fuer die Clusterkommunikation ueber unix2web
 +U2WHOME=/​usr/​local/​sccl/​bin
 +U2WPWDDAT=/​usr/​local/​sccl/​bin/​u2w_pwd.dat
 +U2WPORT=3579
 +</​file>​
 +
 +:TODO: missing explanation
  
 ----- -----
Line 26: Line 67:
 ==== packages.conf ==== ==== packages.conf ====
  
-Die Clusterpakete werden in der Datei, die durch PAKETE ​in der +The packages are configured ​in the file indicated by the (showing the default entry): 
-/​etc/​sccl/​sccl.conf ​angegeben ist, definiertAls Standard ist + 
-/​etc/​sccl/​packages.conf ​festgelegtSie beinhaltet eine Tabelle mit allen Paketen +  PACKAGES=/​etc/​sccl/​packages.conf 
-des Clusters und die Clusterknoten,​ auf denen sie gestartet werden dürfen.+ 
 +entry in the ''​/​etc/​sccl/​sccl.conf''​
 + 
 +The PACKAGES file contains all packages belonging to the cluster. 
 +Each package lists one or more cluster nodes (NODES) on which they may be started. 
 +The first node defines the default node. 
 + 
 +<file - /​etc/​sccl/​packages.conf
 +# packages.conf 
 +
 +# <​package>​ { - | <​stdnode>​ } [<​altnode1>​ [<​altnode2> ​...]] 
 +
 + 
 +p1   ​host001 ​ host002 
 +db - host001 
 +other_package - host002
  
-  # vi /etc/​sccl/​packages.conf +</file>
-  package1 clnode1 clnode2 +
-  package2 - clnode2 clnode1 +
-  package3 - clnode2 clnode1+
  
-Jede Zeile hat die Form: +:TODO: needs translation ​ :TODO: needs verification of exact usage
-  <​package>​ { - | <​stdnode>​ } [<​altnode1>​ <​altnode2>​ ...]+
  
 Das Clusterpaket <​package>​ wird automatisch beim Start des Clusters auf Das Clusterpaket <​package>​ wird automatisch beim Start des Clusters auf
Line 65: Line 117:
  
 The resource definition **must** be in one line! The resource definition **must** be in one line!
-The general syntax of a resource definition: 
  
-  ​<​package>​ <​description_no_spaces>​ [MULTI] <​resource>​ <​resource>​ ...+<file - /​etc/​sccl/​resources.conf>​ 
 + 
 +# The general syntax of a resource definition:​ 
 +<​package>​ <​description_no_spaces>​ [MULTI] <​resource>​ <​resource>​ ... 
 + 
 +# example 
 +db My_Database IP:​AUTO:​10.1.2.4.255.255.255.240 PRG:/​home/​db/​scripts/​sccl_startstop 
 + 
 +</​file>​
  
 When the package ist "​started",​ all resources are activated or started in the sequence ​ When the package ist "​started",​ all resources are activated or started in the sequence ​
Line 94: Line 153:
  
 ----- -----
 +
 +==== examples ====
 +
 +<file packages.conf>​
 +db       ​host1 ​  host2
 +tomcat ​  host3
 +apache ​  ​host4 ​ host5
 +</​file>​
 +
 +<file resources.conf>​
 +db         ​MySQL_DB ​   PRG:/​etc/​init.d/​mysql ​    ​RST:​tomcat,​apache:​CLUSTER
 +tomcat ​    ​Tomcat ​        ​CPKG:​db:​WAIT ​  ​PRG:/​etc/​init.d/​tomcat6
 +apache ​    ​Apache ​        ​CPKG:​db:​WAIT ​  ​PRG:/​etc/​init.d/​apache2
 +</​file>​
 +
 +
 +
  
sccl/configuration.1421331646.txt.gz · Last modified: 2015-01-15 15:20 by uls