This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sccl:configuration:resource_description [2015-07-07 13:27] uls [Resources] |
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 439: | 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 450: | 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 <num> angegeben, dann wird maximal <num> mal neu gestartet. | + | | 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. | ||
|- | |- | ||
! action when "stop" | ! action when "stop" | ||
- | | The test script is stopped. | + | | The test script <path> is stopped. |
|- | |- | ||
! example | ! example | ||
Line 465: | 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 475: | 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 |