Spaces:
Runtime error
Runtime error
Ashira Pitchayapakayakul commited on
Commit Β·
e40f7ec
1
Parent(s): 57a564a
fix: scrape pause threshold load>10 \u2192 load>50 (consistent with auto-orchestrate)
Browse filesdomain-scrape-loop was still using the old aggressive 'load>10 pause 30s'
threshold while auto-orchestrate raised to 50. HF Space normal load is 10-15.
Result: scrape kept pausing every iter even though container was healthy.
Now both daemons share threshold load>50 = real saturation only.
bin/domain-scrape-loop.sh
CHANGED
|
@@ -32,10 +32,10 @@ while true; do
|
|
| 32 |
[[ $((NOW - START)) -gt $DUR ]] && break
|
| 33 |
ITER=$((ITER + 1))
|
| 34 |
|
| 35 |
-
# Health check β
|
| 36 |
LOAD=$(uptime | sed -E 's/.*load average[s]?:[[:space:]]*//' | awk -F',' '{print int($1)}')
|
| 37 |
LOAD=${LOAD:-0}
|
| 38 |
-
if [[ $LOAD -gt
|
| 39 |
echo " [iter=$ITER] load=$LOAD pause 30s" | tee -a "$LOG"
|
| 40 |
sleep 30
|
| 41 |
continue
|
|
|
|
| 32 |
[[ $((NOW - START)) -gt $DUR ]] && break
|
| 33 |
ITER=$((ITER + 1))
|
| 34 |
|
| 35 |
+
# Health check β pause only on real saturation (load>50 on HF Space CPU)
|
| 36 |
LOAD=$(uptime | sed -E 's/.*load average[s]?:[[:space:]]*//' | awk -F',' '{print int($1)}')
|
| 37 |
LOAD=${LOAD:-0}
|
| 38 |
+
if [[ $LOAD -gt 50 ]]; then
|
| 39 |
echo " [iter=$ITER] load=$LOAD pause 30s" | tee -a "$LOG"
|
| 40 |
sleep 30
|
| 41 |
continue
|