Commit a4dd8b1
committed
Fix non-Primary checks in liveness probe
The liveness probe did not parse non-Primary condition out
of the mysql CLI command. Consequently, the liveness did not fail
whe a galera node was disconnected from the primary partition and
the galera pod could not restart automatically, leading to long
delays before restart or sometimes full cluster disruption.
Fix the way probes are handled and refactors bits to allow more
precise conditions in startup/readiness/liveness probes.
Jira: OSPRH-88621 parent 2d771bf commit a4dd8b1
1 file changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
| 17 | + | |
11 | 18 | | |
12 | | - | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | | - | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | | - | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | | - | |
24 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
| |||
0 commit comments