In this article
Test old/new health-state exchange, cache expiry and actual routing separately; unchanged Redis representation supports rollout but does not prove live provider health.
LiteLLM v1.111.0-dev.2 ships a native store for deployment health-check states. The November 13 prerelease retains the existing Redis keys and values to support mixed versions during rollout. Acceptance should distinguish wire compatibility from freshness and routing effect: reading a valid health record does not establish that it describes the current provider state or that the router uses it as intended.
Exchange records in both directions
Use old and candidate synthetic workers against one isolated store. Write a known health state from each and read it from the other. Assert typed fields and deployment identity, not only a nonempty result. This directly checks the rolling-deployment claim. A test where both workers run the new package can miss an incompatible key spelling or serialization change that would divide health visibility during a real staged rollout.
Freshness is a separate cache contract
Change the synthetic provider’s health and observe stored state, in-memory residence and router decisions across the configured TTL. The PR preserves a local snapshot lifetime rather than promising a fresh Redis read for every selection. Record timestamps and allowed staleness explicitly. A health state that was correct when written can become obsolete before the next poll, so acceptance should measure the supported update path rather than assume instantaneous failure detection.
Routing must consume the intended state
Configure a harmless group with two distinguishable deployments and the application’s health-routing setting. Mark one unhealthy and inspect actual selections. A valid store migration does not prove the feature is enabled or that the router’s staleness rules admit the record. Keep health record existence, configured filter and chosen deployment as separate observations. This avoids blaming storage for a policy choice that deliberately ignores old or unavailable health data.
Native storage is not a performance result
After compatibility and routing checks, measure the relevant store calls under the application’s workload if latency matters. The release describes an implementation migration with preserved representation, not a universal speed factor. Report mixed-version behavior, TTL settings and observed selection outcomes. A useful adoption result proves the service can roll forward and back without losing shared health meaning, while retaining explicit limits on freshness and external provider availability.
Sources
Related reading
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.