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:43]
uls [STST]
sccl:configuration:resource_description [2015-07-07 15:39] (current)
uls [Resources]
Line 9: Line 9:
 You can e.g. group resources as one resource and use that in several package resources. You can e.g. group resources as one resource and use that in several package resources.
  
-:TODO: final translations+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 472: Line 473:
 |- |-
 ! action when "​start"​ ! action when "​start"​
-| Starts up the test script <​path>​ (see TST for description),​ restarts the resource on this node, if <​path>​ returns an error.+| Starts up the test script <​path>​ (see TST for description),​ restarts the resource on **this** node, if <​path>​ returns an error.
  <​num>​ defines the maximum number of restarts of the resource.  <​num>​ defines the maximum number of restarts of the resource.
 |- |-
Line 485: 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.
  
-Testskript zum automatischen Switch angeben+The script <​path>​ is executed every <​secs>​ seconds. 
 + 
 +The default for <​path>​ is: <​package>​_test
  
 {| {|
Line 495: 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.1436269391.txt.gz · Last modified: 2015-07-07 13:43 by uls