User Tools

Site Tools


sccl:configuration

This is an old revision of the document!


Configuration

This chapter describes the configuration of the Script-CLuster.

A SCript-CLuster is configured in three ascii files:

  • sccl.conf
  • packages.conf
  • resources.conf

All files are located in

cd /etc/sccl/

sccl.conf

:NOTE: This file is source'd, so be careful when editing.

:TODO: Missing content


packages.conf

Die Clusterpakete werden in der Datei, die durch PAKETE in der /etc/sccl/sccl.conf angegeben ist, definiert. Als Standard ist /etc/sccl/packages.conf festgelegt. Sie beinhaltet eine Tabelle mit allen Paketen des Clusters und die Clusterknoten, auf denen sie gestartet werden dürfen.

/etc/sccl/packages.conf
package1 clnode1 clnode2
package2 - clnode2 clnode1
package3 - clnode2 clnode1

Jede Zeile hat die Form:

<package> { - | <stdnode> } [<altnode1> <altnode2> ...]

Das Clusterpaket <package> wird automatisch beim Start des Clusters auf seinem Standard-Clusterknoten <stdnode> gestartet und darf auf allen <altnodeX> laufen. Ein '-' anstelle von <stdnode> verhindert das automatische Starten des Clusterpakets beim Starten des Clusters oder des Clusterknotens.


resources.conf

The resources are configured in the file indicated by the (showing the default entry):

RESOURCES=/etc/sccl/resources.conf

entry in the /etc/sccl/sccl.conf.

The RESOURCES file contains all definitions of the resources belonging to the cluster packages.

It may also contain resource definitions belonging to sub-packages which are not listed as packages in the PACKAGES file but only used in the RESOURCES file. Sub-packages are used to bundle resources under one definition, which is useful if several packages make use of that sub-package. Sub-packages cannot be started stand-alone and they do not appear as package in the output of the sccl_show_cluster command and their status cannot be determined.

The resource definition must be in one line! The general syntax of a resource definition:

<package> <description_no_spaces> [MULTI] <resource> <resource> ...

When the package ist “started”, all resources are activated or started in the sequence the resources are given in the resource definition line (from left to right/forward).

When the package ist “stopped”, all resources are deactivated or stopped in the sequence the resources are given in the resource definition line (from right to left/backwards).

<package> The name of a cluster package.
<description_no_spaces> Long description of the package, may not contain spaces, use underscore instead.
MULTI The cluster package may be simultaneously active on more than one cluster node.
<resource> A specification of a resource (described later)

:TODO: Link to examples

The resources are described in Resources.


sccl/configuration.1421335725.txt.gz · Last modified: 2015-01-15 16:28 by uls