vllm.benchmarks.lib.ready_checker
¶
Utilities for checking endpoint readiness.
Functions:
-
wait_for_endpoint–Wait for an endpoint to become available before starting benchmarks.
wait_for_endpoint(request_func, test_input, session, timeout_seconds=600, retry_interval=5)
async
¶
Wait for an endpoint to become available before starting benchmarks.
Parameters:
-
(request_func¶RequestFunc) –The async request function to call
-
(test_input¶RequestFuncInput) –The RequestFuncInput to test with
-
(session¶ClientSession) –The aiohttp session used to issue the probe requests
-
(timeout_seconds¶int, default:600) –Maximum time to wait in seconds (default: 10 minutes)
-
(retry_interval¶int, default:5) –Time between retries in seconds (default: 5 seconds)
Returns:
-
RequestFuncOutput(RequestFuncOutput) –The successful response
Raises:
-
ValueError–If the endpoint doesn't become available within the timeout