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:59] uls [sccl.conf] |
sccl:configuration [2015-07-07 15:35] (current) uls [resources.conf] |
||
---|---|---|---|
Line 74: | Line 74: | ||
The PACKAGES file contains all packages belonging to the cluster. | 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 PACKAGES file contains all definitions of all packages and the cluster nodes | + | The first node defines the default node. |
- | (NODES in sccl.conf) on which they may be started. | + | |
<file - /etc/sccl/packages.conf> | <file - /etc/sccl/packages.conf> | ||
# packages.conf | # packages.conf | ||
# | # | ||
- | # <package> { - | <stdnode> } [<altnode1> <altnode2> ...] | + | # <package> { - | <stdnode> } [<altnode1> [<altnode2> ...]] |
# | # | ||
p1 host001 host002 | p1 host001 host002 | ||
db - host001 | db - host001 | ||
- | other_package - host002 | + | other_package - host002 |
</file> | </file> | ||
Line 154: | 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> | ||
+ | |||
+ | |||
+ | |||