Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Together AI 18 min read How-to mediumAdept

Canary rollouts: upgrade models in production without downtime

Together AI's rollouts shift live inference traffic from one model deployment to another using canary, blue-green or rolling strategies. Each step scales up the target, runs health gates before shifting traffic, waits for routing caches to propagate, drains the source, and on canaries evaluates metric gates (p95 router latency, error rate, inflight requests) as relative regression or absolute threshold checks. A failed gate system-pauses the rollout; operators cancel to freeze the split and run a reverse rollout instead of using a rollback verb. In a real Qwen2.5-7B → Qwen3.5-9B canary, the gate caught a 137% p95 latency regression at 10% traffic and the reversal completed with no failed requests. Timing guidance covers metric windows, step intervals and ~90s ingestion lag.

Related posts

  • Zero-Downtime Blue/Green Deployments on Render with Canary Traffic Splitting

    Render mediumAdept

    A blue/green canary pipeline for Render orchestrates six services (API, web frontend, worker, each duplicated into blue and green environments) using SuperPlane, an open-source DevOps workflow engine, with Cloudflare weighted traffic routing, Dash0 synthetic checks and PromQL error rates, and GitHub Actions smoke tests. On push to main, the workflow detects the live environment, deploys to the idle one, shifts 30% of traffic, runs verification in parallel after a configurable soak period, and either promotes to 100% or calls Render rollback APIs and restores Cloudflare weights. In testing, smoke tests passed while Dash0 caught 5xx rates above a 1% threshold and triggered automatic rollback. Remaining tradeoffs are backward-compatible schema migrations on the shared database and the cost of running duplicate services, which can be reduced by scaling the idle environment down.

  • A/B test models in production

    Together AI mediumAdept

    Together AI endpoints can run A/B experiments natively: one control and up to 20 variant deployments, each with a fixed percent share summing to 100, subdivide the control's share of the base traffic split so clients keep the same endpoint and keys. Shares are independent of replica counts. Variants must carry zero split weight. Updates replace the full member list and are guarded by etags against concurrent edits. Requests can stick to an arm via a sampling key such as `user` or `prompt_cache_key`, and a winning variant is promoted with a blue-green rollout before the experiment is deleted. In a live 3 RPS run, observed shares closely matched 95/5, 80/20 and 50/50, routing changes propagated in 30–60s, and deletion returned 100% of traffic to the control.

  • Endpoint Candidates: evaluate and promote inference endpoints

    Modal mediumAdept

    Endpoint Candidates let Modal users stage alternative deployments of a Dedicated Endpoint, such as new checkpoints or different models, mirror a sample of production traffic to them, measure latency, throughput, cost and quality, then promote a winner from the dashboard to the existing URL. Under the hood, Modal's Pingora-based proxy forks each request stream into a bounded per-Candidate buffer and also caps shared mirrored body memory per proxy process. A chunk is counted until its last network write releases it. When either limit is hit, the mirrored request is cancelled so production is never slowed. Mirroring is best-effort by design, and Candidates bill at standard compute pricing.

  • Configuring Dedicated Model Inference

    Together AI mediumAdept

    Together AI's Dedicated Model Inference separates a stable endpoint name, disposable deployments (model revision + config + autoscaling replicas), and immutable config revisions that specify engine, GPU type/count, parallelism and a latency/throughput/balanced profile. Traffic splits use per-replica weights, so routing follows effective capacity (weight × ready replicas): autoscaling shifts traffic automatically, and unready deployments receive none. A live test with two H100 deployments matched expected shares (69.4/30.6 measured vs 66.7/33.3 expected after scaling one deployment to two replicas). A concurrency sweep showed one profile scaling to 1,464 tok/s at c=16 while another, faster at c=4, saturated and halved its throughput, which makes the case for load-testing configs at realistic concurrency.

  • Roll it out, roll it back, never redeploy

    Railway mediumAdept

    Railway now offers feature flags across its dashboard, CLI, TypeScript SDK and MCP server, so code can ship dark behind a default-off flag and be rolled out to a team, a percentage of users, or targeted segments without redeploying. Percentage rollouts use a stable bucket(key) hash, so raising a threshold never flips users back. Reads evaluate in memory against rulesets fetched at init and refreshed in the background, which makes them cheap enough for hot paths. Instead of rule priorities, conflicting or unmatched rules resolve to the flag's default, and an evaluate API returns a reason and per-rule trace for debugging.

The quest for software engineering knowledge.

Look:
Layout: