User Tools

Site Tools


sccl:configuration:resource_description

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:resource_description [2015-07-07 13:15]
uls [RS]
sccl:configuration:resource_description [2015-07-07 15:39] (current)
uls [Resources]
Line 3: Line 3:
 This chapter describes all possible resource entries. This chapter describes all possible resource entries.
  
 +All packages defined in the packages.conf must have a matching resource (package name = resource name).
  
-:TODO: final translations+But not every resource must be a package, a resource can be used by other resources (as sub-resources). 
 + 
 +You can e.g. group resources as one resource and use that in several package resources. 
 + 
 +The resource definition is processed from left to right when the resource is started,  
 +from right to left when the resource is stopped.
  
 === CPKG === === CPKG ===
Line 434: Line 440:
 ! example ! example
 | ''​SPKG:​apache:​webhost1''​ | ''​SPKG:​apache:​webhost1''​
 +|}
 +
 +
 +=== !SRES ===
 +
 +The <​resource>​ must not be active (only for action=stop).
 +
 +{|
 +! definition
 +| ''​!SRES:<​resource>​[:​STOP|WAIT]''​
 +|-
 +! action when "​start"​
 +| none
 +|-
 +! action when "​stop"​
 +| If STOP is given the <​resource>​ is stopped. If WAIT is given the further stop actions are suspended until the <​resource>​ has been stoppen (through other actions).
 +|-
 +! example
 +| ''​!SRES:​stunnel:​STOP''​
 |} |}
  
Line 445: Line 470:
 {| {|
 ! definition ! definition
-| ''​STST:<​secs>:<​num>​[:<​pfad>​]''​+| ''​STST:<​secs>:<​num>​[:<​path>​]''​
 |- |-
 ! action when "​start"​ ! action when "​start"​
-Wie TST, nur das Paket wird auf dem gleichen Knoten neu gestartet. Wenn <numangegeben, dann wird maximal ​<​num> ​mal neu gestartet.+Starts up the test script <​path>​ (see TST for description)restarts the resource on **this** node, if <pathreturns an error. 
 + <​num> ​defines the maximum number of restarts of the resource.
 |- |-
 ! action when "​stop"​ ! action when "​stop"​
-| The test script is stopped.+| The test script ​<​path> ​is stopped.
 |- |-
 ! example ! example
Line 460: Line 486:
 === TST === === TST ===
  
-:TODO: needs translation+Start a script on the next node (as defined in the packages.conf,​ if present).  
 +On the next node, the script does cyclic functional tests,  
 +if an error value is returned, the next node stops that package (best effort) on the current node 
 +and starts the package on the next node. The next node becomes the current node and  
 +again a test script is started on the next node (as defined in the packages.conf,​ if present). 
 + 
 +The chain ends if no more nodes are left over. There is no wrap around.
  
 +The script <​path>​ is executed every <​secs>​ seconds.
  
-Testskript zum automatischen Switch angeben+The default for <​path>​ is: <​package>​_test
  
 {| {|
Line 470: Line 503:
 |- |-
 ! action when "​start"​ ! action when "​start"​
-Es wird auf dem nächsten erlaubten Knoten ein Testskriptgestaertet. Dieses Skript ruft alle <​secs>​ Sekunden dasProgramm ​<​path> ​auf, das die Verfügbarkeit der Ressource prüft. Wenn das Skript einen Fehlerwert liefert, dann wird vom Test-Knoten versucht, das Paket zu stoppen und anschließend wiederzu starten. Der Test-Knoten ist der nächste erlaubte Knoten aus der packages.conf. Wenn das Paket auf dem letzten Knoten ausder packages.conf gestartet wird, dann wird kein Testskript  +The test script ​<​path> ​is started on the next node.
-gestartet+
 |- |-
 ! action when "​stop"​ ! action when "​stop"​
-| The test script is stopped.+| The test script ​<​path> ​is stopped.
 |- |-
 ! example ! example
sccl/configuration/resource_description.1436267742.txt.gz · Last modified: 2015-07-07 13:15 by uls