- static metadata that describes the intended hardware tier
- live metrics that describe the current state of the agent host and inference engine
Hivenet Router does not automatically calculate the fastest, cheapest, or most energy-efficient hardware.You define the hardware tiers and operational limits. Hivenet Router applies those rules to the metadata and metrics reported by agents.
Static and dynamic hardware signals
The static fields describe what an agent is.
The dynamic fields describe how it is behaving now.
Configure GPU metadata
The hardware-specific static match field is:Prefer a GPU tier
Use the primary policy for the preferred tier and fallback steps for acceptable alternatives.- H100 agents
- A100 agents
- A10 agents
- serve the requested model
- serve the required capability
- be healthy
- have free declared capacity
Represent VRAM tiers
Hivenet Router cannot statically match total VRAM or require an absolute number of free bytes. This is not supported:Use operator-defined tags
When total VRAM matters, describe the tier explicitly:Every tag listed in a policy must exist on the agent.Tag matching uses AND logic.
Thermal-aware routing
Exclude agents above your chosen temperature threshold:- GPU model
- cooling design
- ambient temperature
- normal operating range
- throttling behavior
- hardware policy
Use graduated thermal limits
A fallback step can retain hotter agents as a last local option:- prefers agents below or equal to 75°C
- falls back to agents below or equal to 82°C
- exhausts the local chain when every agent exceeds the relaxed limit
Protect VRAM and engine cache
Host-level VRAM and engine KV cache describe different kinds of pressure.
A backend can have:
- high total VRAM use but moderate KV-cache pressure
- low host-wide VRAM use but a nearly full engine cache
- pressure in both layers
Avoid highly utilized GPUs
0 to 100 scale:
GPU utilization and Hivenet Router capacity are independent signals.The hard capacity gate uses:A GPU can be highly utilized before the agent reaches capacity, or lightly utilized while every declared request slot is occupied.For streaming requests, Hivenet Router currently releases the declared capacity slot when response headers arrive while backend generation continues. Use engine running and waiting requests, KV-cache pressure, TTFT, and ITL alongside capacity-based gates for streaming-heavy workloads.
Avoid host CPU and memory pressure
Inference backends can depend on CPU and system memory for:- tokenization
- request parsing
- input preprocessing
- model loading
- memory-mapped files
- network processing
- CPU offloading
0.0 to 1.0.
The metrics describe the whole host, not only the inference process.
Other workloads on the same machine can therefore exclude the agent.
Multi-GPU agents
When an agent reports several GPUs, Hivenet Router evaluates the highest value across the reported devices for:- temperature
- compute utilization
- VRAM-used fraction
This policy:
--gpu-devices-file when the agent should report only the devices assigned to its inference engine.
Missing metrics pass
A hardware gate is skipped when its metric is unavailable for an agent. For example:- a CPU-only agent
- an agent without working NVML
- an agent that has not yet reported a hardware snapshot
Hardware does not change ranking
The only implemented ranking strategy is:Real-time inference
A real-time policy can combine a preferred hardware tier with latency and pressure gates:
SRTT and TTFT are different:
- SRTT is measured by Hivenet Router across the router-agent-backend request path.
- TTFT is reported by the inference engine.
Batch inference
Batch workloads may favor high-memory agents and tolerate more queueing or latency.Prefer a lower-cost tier
Hivenet Router does not know GPU prices, contracts, or operating costs. Represent the intended economic preference through operator-defined metadata:The tags do not affect billing.They are routing metadata maintained by the operator.
Route by location or energy policy
Hivenet Router does not measure:- electricity source
- carbon intensity
- renewable-energy share
- water use
- facility efficiency
Power-aware monitoring
GPU power is available through Prometheus:exclude_if field.
This is not supported:
Combine hardware and engine state
A production policy can protect several layers at once:exclude_if block.
A long list of gates can drain the candidate pool more often than expected. Add rules gradually and monitor which gate exhausts each step.
Monitor hardware-aware routing
Current GPU state
Current host state
Engine pressure
Routing outcomes
- thresholds are too strict
- hardware metrics are genuinely degraded
- static metadata is inconsistent
- the preferred tier lacks capacity
- one metric is behaving differently from your assumption
Diagnose an excluded agent
Inspect the current snapshot:Test a policy safely
A practical test sequence is:- Record current hardware and engine values.
- Add one gate whose threshold should pass.
- Reload the policy.
- Send representative traffic.
- Confirm primary routing continues.
- Lower the threshold in a controlled environment.
- Confirm that the intended fallback step receives traffic.
- Inspect fallback and exhaustion metrics.
- Restore the production threshold.
- Add the next gate only after the first behaves as expected.
Capacity remains operator-defined
Hivenet Router does not derive agent capacity from:- total VRAM
- free VRAM
- GPU count
- model parameters
- KV-cache size
- power limit
- model architecture
- quantization
- context distribution
- engine implementation
- batching and scheduler settings
- tensor parallelism
- prefix reuse
- CPU work
- latency objectives
- workload mix
Design guidance
Prefer explicit metadata
Use stable tags for operational facts such as:region or gpu_model with several unrelated meanings.
Keep policy and monitoring separate
A routing gate decides whether an agent should receive the current request. An alert decides whether an operator should investigate. The appropriate thresholds may differ. For example:- route away from a GPU briefly above 82°C
- alert only when it remains above 85°C for five minutes
Use relaxed fallbacks deliberately
A relaxed step accepts a condition that the primary step rejected. Document why that compromise is acceptable.Avoid false precision
Hardware values are sampled periodically and may be slightly stale by the time a request is routed. Use thresholds with practical headroom rather than treating a single decimal point as a precise safety boundary.Troubleshooting
A GPU-tier policy matches nothing
Check the registered metadata:gpu_model automatically.
A VRAM requirement cannot be expressed
Hivenet Router does not support an absolute VRAM match. Use an operator-defined tag such as:gpu_model value.
Use gpu_vram_used_percent only for live pressure, not total device capacity.
A hardware gate does not exclude an agent
The metric may be missing. Check the routing-table hardware object. Also verify the units:
Missing metrics pass.
One hot GPU excludes a multi-GPU agent
This is expected. Hivenet Router uses the highest temperature, utilization, and VRAM fraction across the GPUs reported by the agent. Restrict collection with--gpu-devices-file if the agent should represent only a subset of the host’s devices.
Power cannot be used in exclude_if
GPU power is currently an observability metric only.
Use static hardware metadata, tags, or one of the supported dynamic gate fields.
The preferred tier is skipped
Check the earlier hard constraints:- requested model
- capability
- agent health
- static metadata
- previous failures
- declared capacity
Fallback traffic rises after adding gates
Inspect:- policy-exhaustion logs
- current metric distributions
- missing-metric behavior
- preferred-tier capacity
- threshold units
- whether one agent reports a persistent outlier
Hardware data appears stale
Check agent logs for collection errors and confirm the latest heartbeat. The current system does not expose a dedicated hardware-snapshot age metric. A healthy heartbeat does not prove that every recent hardware sample succeeded.Next steps
Prometheus metrics
Query the live hardware, engine, latency, capacity, and routing signals used in these policies.
Policy gates
Review the exact evaluation behavior and all supported gate fields.
Hardware metrics
Understand how GPU, CPU, memory, temperature, and power values are collected.

