Dedicated LLM replicas are independent copies of a large language model reserved for one customer’s inference requests. Customers can use the same API endpoint and model ID. A key with no reservation uses the shared pool. A key with a different reservation uses only replicas assigned to that reservation. In Hivenet Router v0.1.8, the customer’s API key and the agent beside each dedicated replica carry a matching reservation name. If the customer’s last replica goes offline, Router returns an error even when a shared replica is idle.
This walkthrough is for platform engineers who run a shared inference service and need to give one application dedicated capacity. You’ll use two keys, one model and one replica in each pool. Send the same chat request with each key and use the audit log to identify the agent that handled it. Then take the reserved agent offline and check that the shared application can still get an answer. The expected results below come from the dedicated replicas reference.
Suppose two teams use the same large language model through a single endpoint. One runs a customer-facing chat application, and the other sends batches of requests throughout the day. If both keys use a shared pool, both workloads can send work to the same inference server. Reserving a replica for the chat application gives its requests a separate pool and queue. The batch job cannot borrow the reserved instance, even during quiet hours. The same holds if the batch queue fills up while the chat queue is empty. Consider the cost of keeping that capacity available when comparing the two setups. If the teams keep sharing a vLLM replica, check whether one tenant can reuse another tenant’s cached prompt tokens.
To reserve two copies for the same customer, register both agents with the same reservation name. The client still sends the same model ID to the same endpoint. You can change which replicas serve a customer without asking the application to select a GPU or a backend address.
Both applications can send chat completions to Router’s OpenAI-compatible API at the same URL. The model name and chat request can stay identical. Changing the credential changes which agents may serve the request. Use a reservation when you need control over replica selection. If you also need a private network endpoint or a dedicated machine for customer data, configure those infrastructure boundaries separately.
For a customer with a data-location requirement, identify where each reserved server runs, which operators can access it, and where the application sends logs. Those are deployment decisions. The two-key test below establishes which agent received each request. See the self-hosted endpoint security guide for the access controls to review alongside a reservation.
For a local LLM server, first check whether the model fits in the memory available to the serving engine. The serving engine needs memory for the model weights and for the key-value (KV) cache used by active requests. Two customers sending the same number of requests can place different demands on the cache if one sends longer prompts or has more concurrent requests. A reservation selects a server that you have already provisioned.
Count running model copies when sizing the pool. A local model that fits on one GPU can run there. Larger models may need tensor parallelism across several GPUs for one replica. Four GPUs serving one copy still give Router one destination when a single agent fronts that copy. To give a customer a second destination, run another replica and register its agent under the same reservation. See vLLM’s parallelism and scaling guide.
For hardware selection, start with the model revision and precision, the GPU type, and the context lengths you intend to serve. Keep that hardware profile and serving configuration fixed during the routing test. If the shared and dedicated servers run different model revisions, an unexpected answer is harder to trace. Pin the same model revision and vLLM version on both, including the Docker image tag if you deploy containers. This applies whether you run on premises or rent GPUs. Keep the revision and server settings in your test notes so another operator can repeat the comparison.
Use an isolated Router v0.1.8 deployment with two healthy vLLM servers, each with its own Router agent and peer ID. Both must serve the same concrete model ID. If you’re starting from scratch, follow the two-replica vLLM setup first. For this test, use a policy that admits both agents, omit external provider fallback, and allow enough capacity for a single short request.
Choose one agent for the customer, here called Acme. Add the following option to that agent’s existing launch command and restart it. Keep the other agent’s reservation empty. Record which peer ID belongs to which agent so you can check the routing decision later.
--reserved-for acmeUse an administrator credential, separate from the two client keys, to check the agent registrations in GET /admin/routing-table. If you collect Prometheus metrics, hivenet_pool_healthy_agents gives the healthy count for each model and pool. For this setup, expect one for pool="acme" and one for pool="" under the same model. The empty label identifies shared capacity. A fleet total of two would also be consistent with two shared replicas and no reserved one. Check both labels before issuing the keys.
Use two distinct test credentials. With static client authentication, run hivenet-router keygen twice and keep each raw key paired with its SHA-256 hash. Add these two entries to the existing api.keys list in your test Router’s auth.yaml. Indent the entries to match the other keys in that list. Replace each placeholder hash and both model IDs. The raw keys stay with the client.
- key_hash: "<hash of Acme test key>"
metadata:
name: "Acme reservation test"
owner: "acme"
models:
- "<model ID>"
reservation: "acme"
- key_hash: "<hash of shared test key>"
metadata:
name: "Shared pool test"
owner: "shared-test"
models:
- "<model ID>"The models list permits each key to call the model. The reservation field sits alongside that list and selects the pool. Giving the key an owner called acme alone would leave it in the shared pool. With Router already running in static api-key mode, reload the file with SIGHUP and check the Router log for a successful reload. A rejected edit leaves the previous keys active. See the auth.yaml reference.
In a Bash shell with curl and jq, set ROUTER_URL to the Router’s HTTPS base URL without /v1. Set MODEL_ID to the model ID in both key entries. Load the raw test keys into ACME_KEY and SHARED_KEY from your normal secret store. This example sends the same small, non-streaming request twice and prints the response headers and body.
body=$(jq -nc --arg model "$MODEL_ID" '{
model: $model,
messages: [{role: "user", content: "Name one color."}],
max_tokens: 16,
stream: false
}')
chat() {
curl --silent --show-error --include \
"${ROUTER_URL%/}/v1/chat/completions" \
-H "Authorization: Bearer $1" \
-H "Content-Type: application/json" \
--data-binary "$body"
}
chat "$ACME_KEY"
chat "$SHARED_KEY"Expect two HTTP 200 responses. Copy the X-Request-ID from each and look it up as request_id in the Router audit log. The Acme request’s agent_id should match the reserved peer ID you recorded. The shared request should name the other peer. Both replicas can produce the same answer, so the response text alone cannot tell you which one served it. The audit field reference describes both identifiers.
Stop only the reserved agent in the test deployment. Leave the shared agent and both client key entries in place. Wait until the reserved peer is absent from the routing table or marked unhealthy. Confirm that the shared peer is still present and healthy. Then repeat the two chat commands.
503 with error.code set to no_agents_available. The shared replica can be idle and still be ineligible for Acme.200 and an audit record naming the shared agent. This second request distinguishes loss of the reserved pool from an outage affecting the whole model.Restart the reserved agent with --reserved-for acme. Wait for it to register as healthy, repeat the Acme request, and confirm that its audit record names the reserved agent again. These are acceptance checks for your deployment. The two-replica outage and recovery sequence has not been run for this guide.
If Acme still gets a 200 while its only agent is offline, check the request’s audit record, the credential used by the client, and the most recent auth reload. A valid key with an omitted reservation can successfully use the shared replica. A 403 model_forbidden points to a different check: inspect the key’s model allowlist before troubleshooting agent selection.
A healthy but busy reserved pool can queue or reject work. Inspect queue depth and occupancy for the customer’s pool even when fleet-wide metrics show spare capacity. If the dedicated pool is full, requests can wait and then receive a 429 or 503. Check the error code and queue metrics before interpreting a 503 as loss of the last healthy agent.
Choose a replica count using two workloads: steady production traffic and the busiest interval the application needs to support. Send representative requests with the reserved key and record the number of simultaneous requests, prompt and response lengths, time to first token, and errors. Measure sustained throughput as successful requests per second at that load. If you also track token throughput, record the output lengths so you can interpret the result. Inspect hivenet_queue_depth and hivenet_admission_inflight_requests for the model and customer pool during that run. Spare capacity in another pool can make a fleet-wide average look healthy while requests for this customer wait.
If the application must stay available when one replica is down, repeat the load test with that replica offline. A successful chat on a quiet server only tells you the route is open. Use the customer’s latency and error targets to decide whether the remaining replicas can carry its traffic. The inference metrics guide explains how to measure those results.
Run a steady stream of customer requests first. Then add a burst of requests with the shared key while keeping the customer workload fixed. Compare the two pools’ queue depths and the customer’s time to first token before and during the burst. This tests the noisy-neighbor case that motivated the reservation. If the reserved pool slows down, check for resources the two paths still share, such as a host, network link, or Router process. A reservation controls which agent receives a request; the hardware layout affects the performance you measure.
A second healthy replica gives Router another eligible destination when the first fails. For a host-failure test, put the replicas on separate machines: losing one host would otherwise remove both. A single Router is still a common dependency. The Router failover guide covers testing that part of the request path.
Horizontal scaling adds independent model copies so different replicas can process concurrent requests. To measure what that buys this application, send overlapping requests to the customer's pool. Run the same workload with one replica and with two. Compare completed work, queue length and response times at the same concurrency. GPU utilization can help explain what each server was doing, but a busy GPU by itself tells you little about the time a user waited. If you have a latency SLO, count how many successful requests finished within it.
Yes. In v0.1.8, you choose how many dedicated replicas to run for a customer. You can add a replica for one application without adding capacity to the shared pool. If an external autoscaler manages the shared deployment, filter its pool metrics on pool="". Otherwise a busy reserved pool can appear in the demand you use to size shared capacity. Router’s hold-at-zero behavior applies to the shared pool. A request for an offline reserved pool fails instead of waiting for a cold start.
Pick one AI, compute, or storage workload and see the difference for yourself. Spin it up in minutes, or let our team map your fastest path to production.