This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
sccl:configuration [2015-01-19 13:50] uls [resources.conf] |
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. | ||
| Line 65: | Line 67: | ||
| ==== packages.conf ==== | ==== packages.conf ==== | ||
| - | :TODO: Missing content | + | The packages are configured in the file indicated by the (showing the default entry): |
| - | :TODO: Needs translation | + | |
| - | The cluster packages are defined in the file that is referenced by the PACKAGES | + | PACKAGES=/etc/sccl/packages.conf |
| - | parameter in the sccl.conf file. By default, ''/etc/sccl/packages.conf'' is used. | + | |
| - | The ''packages.conf'' contains all definitions of all packages and the cluster nodes | + | entry in the ''/etc/sccl/sccl.conf''. |
| - | (NODES in sccl.conf) on which they may be started. | + | |
| + | 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> | <file - /etc/sccl/packages.conf> | ||
| # packages.conf | # packages.conf | ||
| # | # | ||
| - | # <package> { - | <stdnode> } [<altnode1> <altnode2> ...] | + | # <package> { - | <stdnode> } [<altnode1> [<altnode2> ...]] |
| # | # | ||
| - | package1 host001 host002 | + | p1 host001 host002 |
| - | package2 - host001 | + | db - host001 |
| - | package3 - host002 | + | other_package - host002 |
| </file> | </file> | ||
| - | :TODO: needs translation | + | :TODO: needs translation :TODO: needs verification of exact usage |
| Das Clusterpaket <package> wird automatisch beim Start des Clusters auf | Das Clusterpaket <package> wird automatisch beim Start des Clusters auf | ||
| Line 149: | 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> | ||
| + | |||
| + | |||
| + | |||