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: website/docs/d0-observe.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,3 +45,44 @@ On hovering over the bar, the user can view the following information related to
45
45
- Failed Tests
46
46
47
47
On clicking the bar, a table is shown below the graph which displays all the experiments present in the workflow run and their individual result points. These result points are then used to calculate the **Resilience Score** of the workflow which is displayed at the end of the table.
48
+
49
+
### 2. Resilience Score Calculation
50
+
51
+
A Resilience Score is the measure of how resilient your workflow is considering all the chaos experiments and their individual result points. This calculation takes into account the individual experiment weights (from a range of 1-10) which are relative to each other.
52
+
53
+
#### **The Importance of Weights in experiments**
54
+
55
+
Giving a weightage to your experiment is a way of signifying/attaching the importance/priority of that experiment in your workflow. The higher the weight, the more importance it holds.
56
+
57
+
The weight priority is generally divided into three sections:
58
+
***0-3:** Low Priority
59
+
***4-6:** Medium Priority
60
+
***7-10:** High Priority
61
+
62
+
#### **The Calculation**
63
+
64
+
Once a weight has been assigned to the experiment, we look for the [Probe Success Percentage](https://docs.litmuschaos.io/docs/litmus-probe/) for that experiment itself (Post Chaos) and calculate the total resilience result for that experiment as a multiplication of the weight given and the probe success percentage returned after the Chaos Run.
65
+
66
+
```doc
67
+
Total Resilience for one single experiment = (Weight Given to that experiment * Probe Success Percentage)
68
+
```
69
+
> If an experiment doesn't have a probe in it, the probe success percentage returned can either be 0 or 100 based on the experiment verdict. If the experiment passed then it returns 100 else 0.
70
+
71
+
The Final Resilience Score is calculated by dividing the total test result by the sum of all the weights of all the experiments combined in a single workflow.
72
+
73
+
For example, if we consider two experiments in a workflow, here is what the calculation would look like.
74
+
> Considering Probe Success Percentage is 100
75
+
76
+
| Experiment | Weight | Probe Success Percentage | Total Test Result |
0 commit comments