Table 6.2. Properties of an Ordering Constraint
| Field | Description |
|---|---|
id
| |
first
| |
then
| |
kind
|
How to enforce the constraint. (Since 1.1.2)
* Optional - Just a suggestion. Only applies if both resources are starting/stopping.
* Mandatory - Always. If first is stopping or cannot be started, then must be stopped.
* Serialize - Ensure that no two stop/start actions occur concurrently for a set of resources.
|
symmetrical
|
then resource cannot run without the first resource being active, one should use mandatory constraints. To specify a constraint is mandatory, use scores greater than zero. This will ensure that the then resource will react when the first resource changes state.
first resource was running and is stopped, the then resource will also be stopped (if it is running).
first resource was not running and cannot be started, the then resource will be stopped (if it is running).
first resource is (re)started while the then resource is running, the then resource will be stopped and restarted.