[TRTLLM-8952][feat] Support Multi-Node Disagg Perf Test in CI
Summary by CodeRabbit
Release Notes
- New Features
- Added multi-node disaggregated performance testing capabilities for distributed server scenarios
- Expanded performance sanity testing support for new hardware configurations and topologies
- Enhanced performance metrics tracking and comparison for complex server setups
Description
Test Coverage
PR Checklist
Please review the following before submitting your PR:
-
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
-
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
-
Test cases are provided for new code paths (see test instructions)
-
Any new dependencies have been scanned for license and vulnerabilities
-
CODEOWNERS updated if ownership changes
-
Documentation updated as needed
-
Update tava architecture diagram if there is a significant design change in PR.
-
The reviewers assigned automatically/manually are appropriate for the PR.
-
[x] Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...
Provide a user friendly way for developers to interact with a Jenkins server.
Run /bot [-h|--help] to print this help message.
See details below for each supported subcommand.
run [--reuse-test (optional)pipeline-id --disable-fail-fast --skip-test --stage-list "A10-PyTorch-1, xxx" --gpu-type "A30, H100_PCIe" --test-backend "pytorch, cpp" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" --detailed-log --debug(experimental)]
Launch build/test pipelines. All previously running jobs will be killed.
--reuse-test (optional)pipeline-id (OPTIONAL) : Allow the new pipeline to reuse build artifacts and skip successful test stages from a specified pipeline or the last pipeline if no pipeline-id is indicated. If the Git commit ID has changed, this option will be always ignored. The DEFAULT behavior of the bot is to reuse build artifacts and successful test results from the last pipeline.
--disable-reuse-test (OPTIONAL) : Explicitly prevent the pipeline from reusing build artifacts and skipping successful test stages from a previous pipeline. Ensure that all builds and tests are run regardless of previous successes.
--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.
--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.
--stage-list "A10-PyTorch-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-PyTorch-1, xxx". Note: Does NOT update GitHub check status.
--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.
--test-backend "pytorch, cpp" (OPTIONAL) : Skip test stages which don't match the specified backends. Only support [pytorch, cpp, tensorrt, triton]. Examples: "pytorch, cpp" (does not run test stages with tensorrt or triton backend). Note: Does NOT update GitHub pipeline status.
--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.
--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.
--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests in addition to running L0 pre-merge pipeline.
--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.
--extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-TensorRT-Post-Merge-1, xxx".
--detailed-log (OPTIONAL) : Enable flushing out all logs to the Jenkins console. This will significantly increase the log volume and may slow down the job.
--debug (OPTIONAL) : Experimental feature. Enable access to the CI container for debugging purpose. Note: Specify exactly one stage in the stage-list parameter to access the appropriate container environment. Note: Does NOT update GitHub check status.
For guidance on mapping tests to stage names, see docs/source/reference/ci-overview.md
and the scripts/test_to_stage_mapping.py helper.
kill
kill
Kill all running builds associated with pull request.
skip
skip --comment COMMENT
Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.
reuse-pipeline
reuse-pipeline
Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.
This PR introduces multi-node disaggregated performance testing infrastructure for Slurm-based deployments. It adds a new Groovy orchestration method, four Slurm execution scripts (Bash/Python), refactors core test configuration handling to support aggregated and multi-node disaggregated server architectures, extends performance database utilities with GPU type filtering, and introduces new test configurations and execution parameters for multi-node GB200 scenarios. 🎯 4 (Complex) | ⏱️ ~60 minutes📝 Walkthrough
Walkthrough
Changes
Cohort / File(s)
Change Summary
Jenkins Orchestration
jenkins/L0_Test.groovyAdded new method
runLLMMultiNodeDisaggTestlistWithSbatch to launch and manage multi-node disaggregated Slurm tests, including file transfers, test rendering, and sbatch construction; updated routing in runLLMTestlistOnSlurm to invoke multi-node disagg path when nodeCount > 1 and stage contains "Perf-Sanity-Disagg"; expanded post-merge perf-sanity configs with multi-node variants.
Slurm Execution Scripts
jenkins/scripts/perf/disaggregated/{install.sh, slurm_exec.py, slurm_launch.sh, slurm_run.sh}Added four new scripts:
install.sh prepares compute nodes with Python/dependencies and TensorRT-LLM wheel; slurm_exec.py orchestrates SLURM job submission and monitoring via sbatch; slurm_launch.sh coordinates container deployment, server startup (ctx/gen), and disaggregated benchmark execution; slurm_run.sh handles pytest invocation, library path setup, and optional performance validation.
Performance Test Configuration
tests/integration/defs/perf/test_perf.pyRefactored ServerConfig and ClientConfig constructors to accept dictionaries; added
disagg_configs field to PerfTestConfig; introduced new public methods get_trtllm_aggr_commands and get_trtllm_multi_node_disagg_commands; replaced server-only paths with aggregated and multi-node disaggregated workflows; extended to_cmd/to_db_data to accept hostname/port and include new fields (tp, ep, pp, gpus_per_node, etc.).
Performance Test Utilities
tests/integration/defs/perf/utils.pyRenamed
PerfServerClientBenchmarkCmds to PerfAggrScriptTestCmds; introduced new PerfMultiNodeDisaggScriptTestCmds type with ctx/gen/disagg server commands and benchmark commands; updated endpoint health checks and timeout configurations; added socket/YAML imports for multi-node config generation.
Performance Database Utilities
tests/integration/defs/perf/open_search_db_utils.pyAdded gpu_type filtering to
query_history_data and get_history_data; replaced field-skipping logic to exclude @, _, and ts\_ prefixed fields; changed baseline tracking from single value to list per cmd_idx; added regression awareness (b_is_regression == False constraint); removed SERVER_FIELDS and CLIENT_FIELDS constants.
Perf-Sanity Configurations
tests/scripts/perf-sanity/{l0_dgx_b200.yaml, l0_dgx_b300.yaml, l0_gb200_multi_nodes.yaml, l0_gb200_multi_nodes_disagg.yaml}Added/restructured server configurations with nested blocks (attention_dp_config, moe_config, cuda_graph_config, kv_cache_config, speculative_config); added multi-node GB200 configs (both aggregated and disaggregated); updated client configs with new naming and parameter adjustments; introduced disagg_configs block for multi-node disaggregated benchmarks.
Test Lists
tests/integration/test_lists/test-db/{perf_sanity_l0_dgx_b200.yml, perf_sanity_l0_gb200_multi_nodes.yml}Expanded DGX B200 test matrix with pre/post-merge variants for multi-parameter configs (fp4, tensor parallel, expert parallel); added new multi-node GB200 test entries with 8-GPU, 2-node configuration targeting pre/post-merge stages.
Sequence Diagram(s)
sequenceDiagram
actor User
participant Jenkins as Jenkins<br/>(L0_Test.groovy)
participant PyOrch as Python<br/>(slurm_exec.py)
participant Slurm as Slurm sbatch
participant Launch as Slurm Launch Script<br/>(slurm_launch.sh)
participant Compute as Compute Nodes
participant Run as Test Runner<br/>(slurm_run.sh)
User->>Jenkins: Trigger multi-node disagg test
Jenkins->>Jenkins: runLLMMultiNodeDisaggTestlistWithSbatch()
Jenkins->>Jenkins: Prepare test files & configs
Jenkins->>PyOrch: Execute slurm_exec.py
PyOrch->>PyOrch: Parse YAML, compute topology<br/>(ctx_servers, gen_servers, total_nodes)
PyOrch->>Slurm: Submit sbatch job
Slurm->>Launch: Allocate nodes & spawn srun
Launch->>Compute: install.sh on each node
Compute->>Compute: Setup Python, install wheel
Launch->>Compute: Start gen servers (srun)
Launch->>Compute: Start ctx servers (srun)
Launch->>Compute: Start disagg server + benchmark (srun)
Compute->>Run: Execute pytest via slurm_run.sh
Run->>Run: Set LD_LIBRARY_PATH<br/>Inject TensorRT wheel
Run->>Compute: Run performance tests
PyOrch->>Slurm: Poll job status via squeue
Slurm-->>PyOrch: Job completion
PyOrch->>PyOrch: Check exit code via sacct
PyOrch-->>Jenkins: Return status
sequenceDiagram
participant Config as Config YAML
participant TestPerf as test_perf.py
participant Parser as Config Parser
participant Commands as Command Gen
Config->>Parser: parse_aggr_config_file() / parse_multi_node_disagg_config_file()
alt Aggregated Server Path
Parser->>TestPerf: ServerConfig(server_config_dict)
Parser->>TestPerf: ClientConfig(client_config_dict)
TestPerf->>Commands: get_trtllm_aggr_commands()
Commands-->>TestPerf: [server_cmds, client_cmds]
else Multi-Node Disaggregated Path
Parser->>TestPerf: disagg_configs[] + ServerConfig
TestPerf->>Commands: get_trtllm_multi_node_disagg_commands()
Commands-->>TestPerf: PerfMultiNodeDisaggScriptTestCmds<br/>(ctx_cmds, gen_cmds, disagg_cmds, benchmark_cmds)
end
TestPerf->>TestPerf: set_aggr_server_configs() / set_multi_node_disagg_server_configs()
TestPerf-->>TestPerf: Update PerfTestConfig with commands
Estimated code review effort
test_perf.py ServerConfig/ClientConfig constructor refactoring from explicit parameters to dictionary-based initialization; validate all config field extractions and nested config structure parsingget_trtllm_multi_node_disagg_commands and related topology computation (ctx/gen server counts, node distribution)install.sh, slurm_exec.py, slurm_launch.sh, slurm_run.sh); validate task allocation, signal propagation, and cleanup logicopen_search_db_utils.py with gpu_type filtering and regression awareness; verify regression flag logic and baseline selectionPossibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches
❌ Failed checks (2 warnings)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 48.08% which is insufficient. The required threshold is 80.00%. | You can run @coderabbitai generate docstrings to improve docstring coverage. |
| Description check | ⚠️ Warning | The PR description is entirely empty—all required sections (Description, Test Coverage) are blank with only template placeholders remaining. | Fill in the Description section with what changes are being made and why. Provide Test Coverage section listing relevant tests that safeguard the changes. Complete other checklist items as applicable. |
✅ Passed checks (1 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title clearly and specifically describes the main feature: multi-node disaggregated performance testing support in CI, with appropriate JIRA ticket reference and [feat] type indicator. |
✨ Finishing touches
- [ ] 📝 Generate docstrings
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-Perf-Sanity-Post-Merge-1"
PR_Github #24970 [ run ] triggered by Bot. Commit: 0c34d50
/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-Perf-Sanity-Post-Merge-1"
PR_Github #25017 [ run ] triggered by Bot. Commit: 0c34d50
PR_Github #25017 [ run ] completed with state SUCCESS. Commit: 0c34d50
/LLM/main/L0_MergeRequest_PR pipeline #18901 (Partly Tested) completed with status: 'SUCCESS'
/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-Perf-Sanity-Post-Merge-1"
PR_Github #25444 [ run ] triggered by Bot. Commit: b38b874
PR_Github #25444 [ run ] completed with state SUCCESS. Commit: b38b874
/LLM/main/L0_MergeRequest_PR pipeline #19258 (Partly Tested) completed with status: 'SUCCESS'
/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-Perf-Sanity-Post-Merge-1"
PR_Github #25475 [ run ] triggered by Bot. Commit: 86a0704
PR_Github #25475 [ run ] completed with state FAILURE. Commit: 86a0704
/LLM/main/L0_MergeRequest_PR pipeline #19289 (Partly Tested) completed with status: 'FAILURE'
/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-Perf-Sanity-Disagg-Post-Merge-1"
PR_Github #25509 [ run ] triggered by Bot. Commit: 1bc66fa
PR_Github #25509 [ run ] completed with state FAILURE. Commit: 1bc66fa
/LLM/main/L0_MergeRequest_PR pipeline #19316 (Partly Tested) completed with status: 'FAILURE'
/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-Perf-Sanity-Disagg-Post-Merge-1"
PR_Github #25522 [ run ] triggered by Bot. Commit: d6c7bd1
PR_Github #25522 [ run ] completed with state FAILURE. Commit: d6c7bd1
/LLM/main/L0_MergeRequest_PR pipeline #19327 (Partly Tested) completed with status: 'FAILURE'
/bot run --stage-list "GB200-8_GPUs-2_Nodes-PyTorch-Perf-Sanity-Disagg-Post-Merge-1"
PR_Github #25645 [ run ] triggered by Bot. Commit: 74f1371