You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/AdministratorGuide/Systems/ResourceStatus/advanced_configuration.rst
+30-7Lines changed: 30 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,14 @@ Already described in :ref:`config section <config section>`.
21
21
Policies
22
22
--------
23
23
24
-
This section describes the policies and the conditions to match elements.
24
+
This section describes the policies, and to which elements such policies are applied.
25
25
26
26
::
27
27
28
28
/Operations/Defaults/ResourceStatus
29
29
/Policies
30
30
/PolicyName
31
-
policyType = policyType
31
+
policyType = nameOfPolicyType
32
32
doNotCombineResult = something
33
33
/matchParams
34
34
element = element
@@ -42,10 +42,10 @@ This section describes the policies and the conditions to match elements.
42
42
43
43
This is the complete definition of a policy. Let's go one by one.
44
44
45
-
* PolicyName : this must be a human readable name explaining what the policy is doing (mandatory).
46
-
* policyType : is the name of the policy we want to run as defined in DIRAC.ResourceStatusSystem.Policy.Configurations (mandatory ).
47
-
* doNotCombineResult : if this option is present, the status will not be merged with the rest of statuses (but actions on this policy will apply).
48
-
* matchParams : is the dictionary containing the policy metadata used by :ref:`Info Getter <info getter>` to match policies. Any of them can be a CSV.
45
+
* PolicyName : this must be a human readable name explaining what the policy is doing (mandatory).
46
+
* policyType : is the name of the policy we want to run as defined in DIRAC.ResourceStatusSystem.Policy.Configurations (mandatory). Possible policy names: "Downtime", "FreeDiskSpace", "JobEfficiency", "PilotEfficiency", "AlwaysBanned", "AlwaysActive", "AlwaysProbing", "AlwaysDegraded", "Propagation", "JobDoneRatio", "JobRunningWaitingRatio", "JobRunningMatchedRatio"
47
+
* doNotCombineResult : if this option is present, the status will not be merged with the rest of statuses (but actions on this policy will apply).
48
+
* matchParams : This section defines to which elements the policy is applied. It is used by :ref:`Info Getter <info getter>` to match policies.
49
49
50
50
.. note :: Remember, declare ONLY the parameters in match params that want to be taken into account.
51
51
@@ -66,10 +66,13 @@ we cannot define the following matchParams:
66
66
67
67
Code templates and examples for creating custom policies: :doc:`../../../DeveloperGuide/Systems/ResourceStatus/index`
68
68
69
+
70
+
The Downtime and FreeDiskSpace policies have some configurable parameters.
71
+
69
72
Built-in Downtime Policy
70
73
~~~~~~~~~~~~~~~~~~~~~~~~
71
74
72
-
The ``Downtime`` policy type evaluates GOCDB downtime data for a Site or Resource.
75
+
The ``Downtime`` policy type evaluates `GOC DB <https://goc.egi.eu/>`__ downtime data for a Site or Resource.
73
76
Severity is mapped to RSS status as follows:
74
77
75
78
* **OUTAGE** → **Banned**
@@ -101,6 +104,26 @@ Example: flag elements with downtimes starting within the next 24 hours::
0 commit comments