Implementation:Triton inference server Server L0 Model Queue Test
| Knowledge Sources | |
|---|---|
| Domains | Testing, Scheduling |
| Last Updated | 2026-02-13 17:00 GMT |
Overview
QA test script for validating model request queue behavior in the Triton Inference Server.
Description
This test validates the behavior of the Triton Inference Server's per-model request queues. It verifies that incoming inference requests are properly queued when model instances are busy, that queue priorities are respected, and that queue size limits and timeout policies are correctly enforced. The test also checks that requests are rejected with appropriate error codes when the queue is full or when a request exceeds the configured maximum queue delay.
Usage
Run as part of the Triton QA test suite. Requires a GPU-enabled Docker environment with pre-generated test models.
Code Reference
Source Location
- Repository: Triton Inference Server
- File: qa/L0_model_queue/test.sh
- Lines: 1-394
Signature
#!/bin/bash
source ../common/util.sh
# Test orchestration for model request queue behavior
Import
source ../common/util.sh
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| DATADIR | env var | No | Test data directory |
| MODEL_REPO | directory | Yes | Test model repository |
Outputs
| Name | Type | Description |
|---|---|---|
| exit code | int | 0 on success, 1 on failure |
| test logs | files | Server and test output logs |
Usage Examples
Running the Test
cd qa/L0_model_queue/
bash test.sh