TECHNOLOGY

LiteLLM migrates session pins to a native store while preserving claim semantics

In this article
THE QUICK TAKE

Race old and new workers on one synthetic session pin, then test expiry and Redis failure; compatible serialization alone cannot prove preserved affinity.

The November 13 LiteLLM v1.111.0-dev.2 prerelease moves deployment-affinity and complexity-router session pins into a native store. Redis representations and claim scripts remain compatible with existing workers. A migration test should verify contention and affinity, not only successful reads, because several callers can agree on a file format while disagreeing about which worker won the claim for one session.

Pin identity includes the caller scope

Create synthetic session identifiers for two callers and two distinguishable deployments. Compare key construction and returned pin values across old and candidate workers. A shared session string should not accidentally merge independent caller scope. Keep deployment-affinity and complexity-router pin families as separate fixtures because the store serves both, and a passing read for one key family does not establish the other’s hashed or typed identity contract.

A claim needs a single observable winner

Have old and new workers propose different synthetic pin values concurrently. Inspect the shared result and subsequent routing from both workers. The expected claim contract must remain stable under contention. A last-write-wins test performed sequentially does not exercise the same boundary. Record claim outcome separately from the worker’s local fallback so a transient store failure cannot be mistaken for successful distributed agreement.

Expiry and outage policy remain distinct

Advance a synthetic pin past its TTL, then interrupt Redis in another fixture and inspect the documented pod-local behavior. A missing pin after normal expiry is not the same as a failed read from shared storage. Preserve those causes in diagnostics. The release retains existing failure semantics, so adoption should not silently promise globally stable affinity through an outage simply because the normal path now uses a native implementation.

Affinity does not add model authorization

After confirming store compatibility, repeat a pinned request with allowed and denied deployment permissions using inert resources. Session affinity is a routing preference or claim, not authority. Keep the separate access-group control active. A reviewable rollout records shared key/value compatibility, claim outcomes, TTL and outage limits, then shows actual requests still obey the intended deployment policy rather than treating an existing pin as permission to bypass normal checks.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles