Skip to content
smol.Docs

    Open console

    Configure traffic routing and failover

    Select compatible targets, balance new requests, drain a server or provide a ready backup under a single endpoint.

    Inference → your endpoint → Traffic routing controls where new requests go without changing the endpoint URL your clients use. A target is a compatible serving destination for this model. Having two credentials for a server doesn’t give you two independent servers.

    The backend calls one Smol endpoint. Its effective policy chooses a compatible ready target before dispatch. Hosted inference runs at the provider; connected or deployed servers run on customer infrastructure.

    Mode Behavior Good starting point
    Single target One target handles new requests An endpoint with a single serving destination
    Primary and backup Prefer the primary and use an eligible backup when necessary Keep a second compatible target ready without splitting normal traffic
    Load balancing Distribute new requests across eligible targets according to relative weight Share work across multiple ready targets; a weight is not an exact allocation for every few requests
    1. Open Traffic routing. Check the current mode, target health, model and location. Choose a mode the endpoint offers.
    2. Use Add target or Add backup to choose an eligible destination for the same model. For weighted routing, set relative weights. For primary/backup, check the designated roles. Prefer independently hosted targets if you need resilience to a host or zone failure; two targets in the same failure domain can go down together.
    3. Optionally open Advanced limits and status. Set a concurrency limit per target and an overall request deadline. Maximum submission attempts is distinct from target selection: the second submission, when enabled, is permitted only with proof the earlier attempt did not execute. A timeout alone is not proof.
    4. Choose Review changes, inspect the proposed policy and confirm. Wait for Effective before expecting traffic to follow it. The desired revision is what you asked for; the effective revision is what is confirmed in service. If a save is unconfirmed, use Check status, not a second save.
    5. Inspect Activity and the selected request’s routing details. A successful check of target health doesn’t itself send a model generation or verify end-to-end latency.

    If Deploy replica is available for your managed deployment, it starts a separate cost-bearing process with its own review. Wait for the replica to be eligible, then explicitly add it to the routing policy. Starting compute alone does not redirect requests.

    Mark a target as draining and confirm the policy. It stops accepting new assignments; work already admitted can finish. Check its active assignment count when available before taking it offline. Use Resume assignments and apply the policy when ready again. Disabling, draining or removing a target from routing does not stop or delete the machine.

    For dropped streams, uncertain execution or an unhealthy target, see routing and streaming failures.