Skip to content

Commit 7cebbe3

Browse files
committed
Merge remote-tracking branch 'upstream/main' into rhoai-3.5
2 parents 3d3b9dc + 2fa9f51 commit 7cebbe3

2 files changed

Lines changed: 20 additions & 16 deletions

File tree

examples/deploy-demo/deploy-k8s.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -576,25 +576,27 @@ verify_flow_control_runtime() {
576576
die "EPP metrics response body is empty."
577577
fi
578578

579-
# 1. Interactive requests enqueued (priority 0)
579+
echo "${metrics_body}" | grep 'inference_extension_flow_control_request_queue_duration_seconds_count'
580+
581+
# 1. Interactive requests dispatched (priority 0)
580582
step "Checking flow control metrics for interactive requests (priority 0)..."
581583
local interactive_count
582-
interactive_count=$(echo "${metrics_body}" | grep 'inference_extension_flow_control_request_enqueue_duration_seconds_count' \
583-
| grep 'priority="0"' | grep -oE '[0-9]+$' || echo "0")
584+
interactive_count=$(echo "${metrics_body}" | grep 'inference_extension_flow_control_request_queue_duration_seconds_count' \
585+
| grep 'priority="0"' | grep 'outcome="Dispatched"' | grep -oE '[0-9]+$' || echo "0")
584586
if [ "${interactive_count}" -gt 0 ] 2>/dev/null; then
585-
log "Flow control enqueued ${interactive_count} interactive request(s) (priority 0)."
587+
log "Flow control dispatched ${interactive_count} interactive request(s) (priority 0)."
586588
else
587589
warn "No interactive requests (priority 0) found in flow control metrics."
588590
errors=$((errors + 1))
589591
fi
590592

591-
# 2. Batch requests enqueued (priority -1)
593+
# 2. Batch requests dispatched (priority -1)
592594
step "Checking flow control metrics for batch requests (priority -1)..."
593595
local batch_count
594-
batch_count=$(echo "${metrics_body}" | grep 'inference_extension_flow_control_request_enqueue_duration_seconds_count' \
595-
| grep 'priority="-1"' | grep -oE '[0-9]+$' || echo "0")
596+
batch_count=$(echo "${metrics_body}" | grep 'inference_extension_flow_control_request_queue_duration_seconds_count' \
597+
| grep 'priority="-1"' | grep 'outcome="Dispatched"' | grep -oE '[0-9]+$' || echo "0")
596598
if [ "${batch_count}" -gt 0 ] 2>/dev/null; then
597-
log "Flow control enqueued ${batch_count} batch request(s) (priority -1)."
599+
log "Flow control dispatched ${batch_count} batch request(s) (priority -1)."
598600
else
599601
warn "No batch requests (priority -1) found in flow control metrics."
600602
errors=$((errors + 1))

examples/deploy-demo/deploy-rhoai.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,25 +1178,27 @@ verify_flow_control_runtime() {
11781178
die "EPP metrics response body is empty."
11791179
fi
11801180

1181-
# 1. Interactive requests enqueued (priority 0)
1181+
echo "${metrics_body}" | grep 'inference_extension_flow_control_request_queue_duration_seconds_count'
1182+
1183+
# 1. Interactive requests dispatched (priority 0)
11821184
step "Checking flow control metrics for interactive requests (priority 0)..."
11831185
local interactive_count
1184-
interactive_count=$(echo "${metrics_body}" | grep 'inference_extension_flow_control_request_enqueue_duration_seconds_count' \
1185-
| grep 'priority="0"' | grep -oE '[0-9]+$' || echo "0")
1186+
interactive_count=$(echo "${metrics_body}" | grep 'inference_extension_flow_control_request_queue_duration_seconds_count' \
1187+
| grep 'priority="0"' | grep 'outcome="Dispatched"' | grep -oE '[0-9]+$' || echo "0")
11861188
if [ "${interactive_count}" -gt 0 ] 2>/dev/null; then
1187-
log "Flow control enqueued ${interactive_count} interactive request(s) (priority 0)."
1189+
log "Flow control dispatched ${interactive_count} interactive request(s) (priority 0)."
11881190
else
11891191
warn "No interactive requests (priority 0) found in flow control metrics."
11901192
errors=$((errors + 1))
11911193
fi
11921194

1193-
# 2. Batch requests enqueued (priority -1)
1195+
# 2. Batch requests dispatched (priority -1)
11941196
step "Checking flow control metrics for batch requests (priority -1)..."
11951197
local batch_count
1196-
batch_count=$(echo "${metrics_body}" | grep 'inference_extension_flow_control_request_enqueue_duration_seconds_count' \
1197-
| grep 'priority="-1"' | grep -oE '[0-9]+$' || echo "0")
1198+
batch_count=$(echo "${metrics_body}" | grep 'inference_extension_flow_control_request_queue_duration_seconds_count' \
1199+
| grep 'priority="-1"' | grep 'outcome="Dispatched"' | grep -oE '[0-9]+$' || echo "0")
11981200
if [ "${batch_count}" -gt 0 ] 2>/dev/null; then
1199-
log "Flow control enqueued ${batch_count} batch request(s) (priority -1)."
1201+
log "Flow control dispatched ${batch_count} batch request(s) (priority -1)."
12001202
else
12011203
warn "No batch requests (priority -1) found in flow control metrics."
12021204
errors=$((errors + 1))

0 commit comments

Comments
 (0)