Why one vLLM request can starve the whole server and how to bound it
On a shared self-hosted vLLM server, the control you need is a bound on what any single request can consume, because one oversized prompt, one large media file or one runaway generation can hold GPU memory and scheduler slots that every other user is waiting for. vLLM is Apache-2.0 open-source software, and its vllm serve process exposes OpenAI-compatible endpoints such as /v1/completions and /v1/chat/completions, so the limits you set apply to the same paths your applications call. These bounds are configured in three places: on the server itself, in the reverse proxy or gateway in front of it, and in the client-facing contract that defines what each user or application may send. Treat them as one part of denial-of-service hardening, alongside endpoint allowlisting and a patch process, since a limit cannot stop a request to an endpoint that should not be reachable at all.
Start by inventorying which request fields can grow without a ceiling: prompt length, requested output tokens, the number of images, audio or video inputs, and any per-request processor arguments your models accept. Then confirm, against the vLLM online serving documentation for your release, which of these the server caps and which only the gateway can cap. Your gateway should enforce a maximum request body size, a maximum output token count, a per-key rate of requests and tokens, and a cap on concurrent streams per user, so that one client cannot queue work faster than the GPUs drain it. Ask the vendor or your own platform team to confirm the exact configuration keys for your vLLM version, because these names change across the two-week release cadence.
Write the limits down as part of the service contract. Each internal consumer should know its token ceiling, its concurrency allowance and the behavior when it is exceeded, typically a clear rejection rather than a silent queue. Test each limit with a deliberately oversized request on a staging server before production, and watch the /metrics endpoint for request counts, queue depth and KV cache use during the test so you can see whether a bound actually holds under load. Keep in mind that /metrics is not covered by --api-key, so the gateway must keep it off the user path.
Which request paths consume the most resources
A single vLLM request can consume memory, compute and queue capacity in several places at once. The cards below cover the paths that most often drive resource use, so you can decide which limits to set at the server, the gateway and the request layer.
Multimodal media download and decode
Image, audio and video inputs are fetched from URLs or decoded from payloads before the model sees them. A large or slow media file ties up the request while it is downloaded, decoded and converted into model inputs. Check the size and duration limits your vLLM version applies to media, and test how long a worst-case file takes to process on your hardware. Fetching from arbitrary URLs also widens the network path, which is covered separately in the SSRF guidance.
vLLM security docsPrompt length against context
Every input token must fit inside the model's context window, and the work to process it grows with prompt length. A few very long prompts can occupy a large share of the KV cache and delay other requests. Decide a maximum prompt length per route, reject or truncate anything above it at the gateway, and confirm how the server responds to an over-length request under your settings.
Generated output length
The number of tokens a model generates is often the largest unknown in a request, because the caller controls it and the model may keep generating until it reaches the limit you allow. Output tokens hold cache space for the full duration of generation. Set a default and a ceiling for maximum output tokens on each endpoint, and make sure the gateway, not the client, enforces the ceiling.
Concurrent requests and batch size
The engine batches many requests together, so the number of requests in flight determines how much memory and accelerator time each one can claim. Concurrency limits belong at the gateway, per user or per key, so one caller cannot fill the queue for everyone else. Measure throughput and tail latency at your expected concurrency before setting limits, because the right number depends on your model and GPUs.
Per-request processor arguments
Some request fields change how much work the server does, such as multimodal processor settings, sampling options and the number of completions requested in one call. These fields are passed through from the client unless your gateway filters them. Review which processor arguments your application actually needs, reject or clamp the rest, and test each accepted argument with a worst-case value before exposing it to users.
Server and gateway limit options and when each fits
This table compares the controls that bound what one request can consume, from media download limits and sequence caps on the vLLM server to token and concurrency limits at the gateway. Confirm each option name and default against the vLLM serving docs for your pinned release before you write configuration. Read each row as a layer: no single control covers every path, so most deployments combine a server cap with a gateway cap.
| Control | What it bounds | Trade-off | When it fits |
|---|---|---|---|
| Media download and decode limits | Size, count and decode cost of image, audio and video inputs fetched or decoded per request | Tight limits reject legitimate large media; loose limits let one request hold memory and CPU | Any deployment that accepts multimodal input from users; confirm the exact option names for your release |
| Maximum sequence length | Total prompt plus generated tokens the engine will schedule for one request | Lower caps protect KV cache capacity but cut off long-context use cases | Shared endpoints where one long prompt could crowd out other users |
| Output token cap | Maximum tokens generated for one response, usually also set per request by the client | Clients may ask for more than the server allows, so the server cap must be enforced, not assumed | Chat products and APIs where responses have a known upper bound |
| Per-request processor arguments | Preprocessing options a request can pass to the processor, such as image resolution or frame counts | Permissive arguments let callers raise memory and compute cost; restricting them may break some clients | Deployments that expose processor options to end users; consider server-side defaults and ceilings |
| Gateway token limits | Input and output tokens per key, user or time window, counted before requests reach vLLM | Requires token counting that matches the model tokenizer; estimates drift and limits can be bypassed | Multi-user access where the built-in API key is a single shared secret and cannot separate callers |
| Gateway concurrency limits | Number of in-flight requests per user, route or upstream | Protects GPU queues from overload but can add queueing delay and reject bursts that a larger pool could serve | Shared GPU pools with predictable peak load and a clear fairness policy |
| Request body size and timeouts at the proxy | Bytes accepted in a request and how long a connection or stream may stay open | Short timeouts cut off long generations; large body limits let oversized payloads reach the server | Every internet or partner-facing route; set alongside the endpoint allowlist |
How media download and processor limits protect the server
Remote image, audio and video URLs and per-request processor arguments need explicit bounds because each one asks the server to do work the client does not pay for in the same way. A URL in a multimodal request makes the server fetch content from somewhere else, so the cost starts with the network: connection time, transfer size and how long a slow or endless response can hold a worker. Decoding comes next. A small compressed file can expand into a large pixel or sample buffer, and video multiplies that by frame count. Preprocessing then resizes, tiles or resamples the input before the model sees it, and that step runs on the same CPU and memory the serving process needs for batching. Each stage has a different cost driver, so a limit on one does not protect the others.
For each modality, confirm which limits your vLLM version exposes before you plan around them. Check the server's help output and the engine arguments for your release for download timeouts, maximum media sizes and any per-modality caps, and confirm whether those settings apply to online requests, batch requests or both. Also confirm which per-request processor arguments the model accepts, such as image resolution or frame sampling settings, and whether the server validates them or passes them through to the processor. Where a limit is not exposed, record that gap as a finding and plan a control outside vLLM, such as an input size check at the gateway. The vLLM security docs describe the server's trust model and are the natural next read before you set any values.
Setting resource limits in sequence
This sequence moves from mapping what users can reach to setting caps on the vLLM server, adding gateway limits per key or tenant, and testing that oversized and slow requests are rejected with clear errors and visible metrics. Each step ends with a check so the limits are known to work before production traffic arrives.
Inventory user-facing endpoints and modalities
Before setting any limit, list every route that users and applications will call on the vLLM server, including completions, chat completions, responses, embeddings, and audio transcription or translation. Mark which modalities accept media URLs, long inputs, or large outputs, because those are where a single request can consume the most memory, compute, or time. Record which paths stay internal, such as metrics and health. The step is done when the team has a written table of endpoints, the modality each one serves, and the expected request size for each. Confirm the endpoint list against the vLLM online serving documentation for the release you have pinned, since the set of routes can change between releases.
Set server-side caps on the pinned release
Using the configuration options documented for your pinned vLLM release, set the server-side bounds that limit what one request can consume: maximum model length, limits on media download and decode, and per-request processor arguments where the release supports them. Your platform team makes these changes in the serving configuration, and the security owner reviews them. Do not copy option names from older blog posts or other versions, because flags are renamed or removed between releases. The step is done when each cap is written in the deployment configuration, mapped to the documentation section that describes it, and confirmed on a test server that starts with the settings applied.
Add gateway token and concurrency limits
Place a gateway in front of the vLLM server and configure token and concurrency limits per API key, user, or tenant. The gateway should count input and output tokens where it can, cap the number of simultaneous requests for each identity, and return a clear status code when a limit is reached. Because the built-in API key is a single shared secret, per-caller limits belong in the gateway. The step is done when a test identity can exceed its quota in a controlled run and receives a rejection, while other identities keep working. Confirm with the gateway vendor how token counts are measured for streaming responses and multimodal inputs, since those counts can differ from what the server reports.
Prepare oversized and slow request cases
Build a set of test requests that stress each limit: prompts near the maximum length, requests with many images or large audio files, media URLs that return slow or very large responses, and streaming requests from clients that read slowly. Keep the test data in a repository so the same cases can run after every upgrade. The test owner records the expected result for each case, such as a rejection with a specific error, a truncated output, or a timeout. The step is done when the cases and their expected outcomes are documented and reviewed by the team that owns the endpoint.
Load test with oversized and slow requests
Run the test cases against a staging deployment that matches production configuration, both one request at a time and with concurrent load that mixes normal and abusive traffic. Watch the vLLM server and the gateway during the run, and stop the test if the server becomes unresponsive. Confirm that normal requests still complete while the abusive ones are rejected. The step is done when each case produces its expected result and the server recovers without a restart after the load stops.
Verify rejections through metrics
Scrape the /metrics endpoint during the load test and check that request counts show the rejected and completed requests, that token throughput drops only as expected, and that latency histograms reflect the slow requests rather than hiding them. Compare KV cache usage during the run with the caps you set. Make sure /metrics stays reachable only from the monitoring network, because the built-in key does not protect it. The step is done when the team can point to metrics that show each limit firing and to dashboards or alert rules that would catch a sustained spike.
Confirm clear errors for callers
Check that every rejection returns an error message that a client developer can act on, with the correct status code and a reason that names the limit reached, such as input length, media size, or quota. Confirm that errors do not expose stack traces, internal hostnames, or model paths. Share the error format with the teams that integrate with the endpoint so their retry logic handles it correctly. The step is done when a sample of each error type is recorded in the test report and the integration owners have confirmed their handling.
Record the limits and review after each upgrade
Write the final limit values, their owners, and the test results into the runbook, including the vLLM release they were validated against. Add the test cases to the regression suite that runs before every upgrade. Because vLLM ships new minor releases about every two weeks, any change in release can alter defaults or flag behavior, so the limits must be re-verified before a new version reaches production. The step is done when the runbook names a reviewer for the limits and the regression suite passes on the pinned release.
Each request meets a limit at every layer before the GPU runs it
Traffic starts at the client application and first reaches the gateway, which checks authentication, token budget and concurrency before forwarding. The reverse proxy then passes only user-facing endpoints to the vLLM server, so internal paths never reach it. Inside the server, input size checks and media fetch and decode run before the request reaches the GPU engine, where the generation cap ends output. Check each rejection path in your own environment, and confirm that the /metrics endpoint is reachable only by your monitoring system.
Limit checks at each layer, with rejection points and metrics emission marked.
Security and operational risks when limits are missing or mis-set
Missing or mis-set limits on vLLM show up as security exposure and as operational drift. The cards below cover the failure modes we see most often, and each one can be checked on your own deployment before a limit is trusted.
Unbounded media fetches reaching internal services
When image, audio or video URLs in a request are fetched by the server without an allowlist, a single request can make vLLM reach metadata services, admin panels or other internal hosts, and can pull very large files into memory. Check which media domains are permitted, whether redirects are followed, and what the server's network path allows. Treat the media download and decode limits as a bound on both bandwidth and memory, and test them on online and batch paths.
vLLM security docsLong generations monopolizing KV cache
A request with a large maximum output length keeps its KV cache blocks allocated for as long as it runs, which squeezes out other users sharing the same GPU. Without sequence caps on input and output, a few heavy requests can push ordinary traffic into queuing or timeouts. Ask which maximum sequence length and output limits are set for each served model, and confirm how the gateway forwards the max_tokens value when the client omits it.
Limits bypassed by direct server access
Rate limits and token caps placed only in a proxy do not apply when a client reaches the vLLM port directly, or when a request is sent to an endpoint the proxy never listed. Confirm that the server port is reachable only from the proxy, and that the proxy forwards only the paths meant for users. The --api-key option is not a complete control: it does not cover every endpoint, so it should never be the only one in place.
Metrics and health endpoints exposed
The /metrics endpoint publishes request counts, token throughput, latency histograms and KV cache use, which show other tenants' load and help an attacker time a flood. The /health endpoint and control paths such as /pause and /abort_requests are also outside the --api-key scope. Keep them on an internal network or behind a monitoring-only route, and verify from outside the cluster that they cannot be reached.
Drift after upgrades
vLLM ships new minor releases about every two weeks, and defaults, endpoint sets and flags can change between them. A limit that was enforced on one version can silently stop applying after a container image or Helm chart update. Keep a written list of the limit settings and the endpoint allowlist, re-run the checks after every upgrade, and track the security advisories that affect the version you run.
Questions teams ask before setting vLLM request limits
Can vLLM request limits be set without an API gateway?
Partly. vLLM accepts several per-request settings and server options on its own, such as maximum sequence length and limits on media fetching and decoding, so some bounds can be set on the server itself. However, per-user token budgets, request rate limits and concurrency caps per client are normally enforced in front of the server, because the built-in --api-key option is a single shared key and does not cover every endpoint. Confirm each limit option against the security documentation and the release you run, since option names and defaults change between releases.
How much effort does a vLLM request limits review take, and what drives it?
The effort depends on how many entry points reach the server, how many input types users can send, and how many teams share the deployment. A review usually covers the request paths that accept images, audio or video from URLs, the sequence and output length caps you set, the concurrency and token budgets at the gateway, and the metrics you need to confirm that limits hold under load. Each additional model, multimodal input type or tenant adds test cases. Ask any provider for a written scope listing the endpoints, input types and environments covered before agreeing a fixed price or timeline.
What does the work need from our team?
Expect to supply access and knowledge rather than only approvals. The work typically needs a test environment that matches production accelerators and vLLM version, a list of the endpoints and clients that call the service, the expected prompt and output lengths for each workload, and the owner of the gateway or reverse proxy where limits will live. Someone must also decide the business trade-offs, such as how long a legitimate request may run and which users may send large media inputs. Request this list in writing so the dependency is visible before the work starts.
Can our own team set these limits without outside help?
Yes, if your team already runs the serving stack, understands its request paths and can test under load. Teams usually struggle with the parts that are easy to miss: media download and decode behavior, limits that apply only on the online path but not the batch path, and metrics that show whether a limit is actually triggering. An independent review is useful when a second set of eyes must confirm the configuration before go-live, or when the same controls must be shown to a security or compliance reviewer.
How do limits change when vLLM ships a new release?
vLLM ships new minor releases about every two weeks. Recent examples in the release history are v0.30.0 on September 22 and v0.31.0 on October 5, 2026. Each release can change option names, defaults, supported endpoints or how limits are enforced, so a limit that worked on one version must be retested after an upgrade. Plan a regression test for the limits on every version you adopt, and decide which releases you will skip for production. The patching work also depends on this cadence, because security fixes arrive through the same releases.
What cost comes from infrastructure rather than the software?
vLLM has no paid edition, so its license cost is zero under Apache-2.0. The real costs come from accelerator capacity, which is paid per GPU or other accelerator in your cloud account or data center, plus the surrounding infrastructure such as gateways, load balancers, monitoring storage and test environments. People are the other major cost, both internal staff time and any external implementation. Limits add cost in test capacity, because you need load tests that can saturate the endpoint, and in gateway components. Ask any quote to break out accelerator, infrastructure, labor and recurring operations separately.
Which limits matter most for a first deployment?
Start with the limits that protect the accelerator from a single expensive request: a maximum input length, a maximum output length, and caps on how many requests run at once per client. Then bound the work done on behalf of URLs, because media fetching and decoding can consume resources before the model runs. Finally, confirm that metrics on /metrics show queueing and throughput so you can tell whether a limit is working. Treat the exact values as settings to tune against your own workloads rather than figures copied from a guide.
What DeployOpen needs from your team to set these limits
The fastest way to bound what a single request can consume on vLLM is to give us an accurate endpoint inventory before work starts. List every route that reaches the vLLM server, including the OpenAI-compatible paths such as /v1/completions, /v1/chat/completions, /v1/responses and /v1/embeddings, plus any audio transcription or translation routes you enable. Note which paths are called by end users, which by internal services, and which only by operators. Also tell us whether anything still reaches the server directly, bypassing your gateway, because a direct path is where request limits most often go missing. The vLLM security documentation covers the control endpoints, such as /metrics and /health, that the built-in API key does not protect, so we need to know exactly where those are reachable from.
Next, we need the expected request profile for each application and tenant: typical and maximum prompt length, expected output length, how many requests each client sends in parallel, whether clients send images, audio or video by URL, and which models each route serves. We also need the current gateway and identity setup, including which product terminates authentication, how API keys or tokens map to users or teams, and whether a gateway already applies rate or token limits. Confirm this with the people who own the gateway and identity system, since we will configure and test limits against them rather than assume defaults. Finally, grant us a load test environment inside your infrastructure, with access to the vLLM metrics endpoint so we can read request, token and KV cache figures during tests, and agree in writing who may run tests and against which hosts. Ask our quote to name each of these inputs as a dependency, so any gap in access or data is visible before the price is fixed.
How DeployOpen scopes, delivers and supports vLLM request limits
DeployOpen approaches vLLM resource limits as a written, fixed-scope engagement inside infrastructure you control. The work covers media and sequence limits, gateway controls, testing under load and documentation your operators can run after handover.
How we scope
- Inventory which endpoints accept multimodal input, long prompts and per-request processor arguments in your deployment.
- Agree limits for media download size, decode time, maximum sequence length and concurrent requests per tenant.
- Define token and concurrency quotas at the gateway and the owner of each limit before any build starts.
How we build
- Configure vLLM server arguments and gateway rules according to the agreed scope, with each setting recorded in version control.
- Test oversized media, very long prompts and bursts of concurrent requests against the configured limits.
- Confirm that rejected requests return clear errors and do not stall GPU workers or the metrics endpoint.
How we hand over
- Deliver a configuration reference listing each limit, its value, its reason and the file or setting that holds it.
- Provide test scripts and expected results so your team can repeat the checks after each vLLM upgrade.
- Document the monitoring signals to watch in the Prometheus metrics for request rejections and queue growth.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the fixed-scope work ends.
- Retesting limits when vLLM releases change defaults, arguments or request handling, which new minor releases can do.
- Ask any provider to confirm in writing who maintains limit configuration, test evidence and incident response after handover.

