litellm - 💡(How to fix) Fix [Bug]: Critical: Response leakage / Cross-talk between users in Redis Cluster environment on OpenShift [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#25447Fetched 2026-04-10 03:41:01
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
commented ×2labeled ×2mentioned ×1subscribed ×1
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

Hi,

We're seeing an issue in a distributed setup where responses occasionally seem to be returned to the wrong client.

Environment

  • OpenShift (multiple replicas)
  • Image: litellm-database (v1.81.3+)
  • Redis Cluster enabled
  • Behavior

Under concurrent load, it looks like a response generated for one request is sometimes returned to another client.

We noticed this happens more often when multiple sessions are using the same API key.

Question: Is there any known limitation or configuration requirement when using LiteLLM with: Redis Cluster Multiple replicas Shared API keys

Specifically, could this be related to caching or request scoping?

Would appreciate guidance on the correct configuration to ensure proper isolation between requests.

Thanks!

Steps to Reproduce

.

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

v1.81.3

Twitter / LinkedIn details

No response

extent analysis

TL;DR

Review and adjust the configuration of LiteLLM with Redis Cluster to ensure proper request scoping and isolation between clients, especially when using shared API keys.

Guidance

  • Investigate the caching mechanism in LiteLLM to determine if it's correctly scoped to individual requests or if it's possible for cache entries to be shared across requests from different clients.
  • Verify that the Redis Cluster configuration is set up to handle concurrent requests correctly and that the connection pooling is properly managed to prevent requests from being mixed up.
  • Check the documentation for LiteLLM and Redis Cluster to see if there are any known limitations or configuration requirements for using shared API keys in a distributed setup.
  • Consider implementing a unique identifier for each request to help track and isolate responses, ensuring they are returned to the correct client.

Example

No specific code example can be provided without more details on the LiteLLM and Redis Cluster configuration, but reviewing the caching and request scoping logic in the LiteLLM Proxy component may be a good starting point.

Notes

The exact cause of the issue is unclear without more information on the LiteLLM configuration and the specific Redis Cluster setup. Further investigation into the caching and request handling mechanisms is needed to determine the best course of action.

Recommendation

Apply workaround: Implement a unique request identifier to help ensure responses are correctly matched with their originating requests, and review the LiteLLM and Redis Cluster configuration for any necessary adjustments to support shared API keys and multiple replicas.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING