Ashira Pitchayapakayakul commited on
Commit
e40f7ec
Β·
1 Parent(s): 57a564a

fix: scrape pause threshold load>10 \u2192 load>50 (consistent with auto-orchestrate)

Browse files

domain-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.

Files changed (1) hide show
  1. bin/domain-scrape-loop.sh +2 -2
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 β€” break if load > 10 (Linux: "load average:", macOS: "load averages:")
36
  LOAD=$(uptime | sed -E 's/.*load average[s]?:[[:space:]]*//' | awk -F',' '{print int($1)}')
37
  LOAD=${LOAD:-0}
38
- if [[ $LOAD -gt 10 ]]; then
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