Skip to content

Commit 9002843

Browse files
authored
Merge pull request #606 from andrewh1978/autopilotfor
add for parameter
2 parents 002d780 + 6fb5546 commit 9002843

File tree

6 files changed

+7
-1
lines changed

6 files changed

+7
-1
lines changed

assets/autopilot/expand-pool.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ spec:
66
enforcement: required
77
##### conditions are the symptoms to evaluate. All conditions are AND'ed
88
conditions:
9+
for: 5
910
expressions:
1011
# pool available capacity less than 50%
1112
- key: "100 * ( px_pool_stats_available_bytes/ px_pool_stats_total_bytes)"

assets/autopilot/rebalance-pool.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
name: pool-rebalance
55
spec:
66
conditions:
7+
for: 5
78
requiredMatches: 1
89
expressions:
910
- keyAlias: PoolProvDeviationPerc

assets/postgres/postgres-autopilot-rule.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
pollInterval: 2
1111
##### conditions are the symptoms to evaluate. All conditions are AND'ed
1212
conditions:
13+
for: 5
1314
# volume usage should be less than 30%
1415
expressions:
1516
- key: "100 * (px_volume_usage_bytes / px_volume_capacity_bytes)"
@@ -22,4 +23,4 @@ spec:
2223
params:
2324
# resize volume by scalepercentage of current size
2425
scalepercentage: "100"
25-
maxsize: "30Gi"
26+
maxsize: "30Gi"

assets/training/Autopilot/autopilot-expand-pool-rule.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ spec:
66
enforcement: required
77
##### conditions are the symptoms to evaluate. All conditions are AND'ed
88
conditions:
9+
for: 5
910
expressions:
1011
# pool available capacity less than 50%
1112
- key: "100 * ( px_pool_stats_available_bytes/ px_pool_stats_total_bytes)"

assets/training/Autopilot/autopilot-rebalance-pool-rule.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
name: pool-rebalance
55
spec:
66
conditions:
7+
for: 5
78
requiredMatches: 1
89
expressions:
910
- keyAlias: PoolProvDeviationPerc

assets/training/Autopilot/postgres-autopilot-rule.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ spec:
99
app: postgres
1010
##### conditions are the symptoms to evaluate. All conditions are AND'ed
1111
conditions:
12+
for: 5
1213
# volume usage should be less than 30%
1314
expressions:
1415
- key: "100 * (px_volume_usage_bytes / px_volume_capacity_bytes)"

0 commit comments

Comments
 (0)