CROSSSLOT Redis Error Causing Prompt Creation Failure with Azure Cache for Redis in Cluster Mode (Self host in openshift) #11853
-
|
SELF HOST LANGFUSE IN OPENSHIFT KEEP GETTING CREATE PROMPT FAIL Title: CROSSSLOT Redis Error Causing Prompt Creation Failure with Azure Managed for Redis in Cluster Mode Description: I'm experiencing prompt creation failures in my self-hosted Langfuse deployment using Azure Cache for Redis. The operation fails with a CROSSSLOT error. Environment: Langfuse Version: v3.140.0 Deployment Method: [Docker/Kubernetes/other] {"level":"warn","message":"Redis connection error: CROSSSLOT Keys in request don't hash to the same slot (context='', command='eval', original-slot='8819', wrong-slot='12233', first-key='bull:entity-change-queue:wait', violating-key='bull:entity-change-queue:paused')","timestamp":"2026-02-03T06:45:26.680Z"} {"level":"error","message":"Failed to queue entity change event for prompt 2b83c560-aa17-4da1-b902-c2e3eadab14e for project cml68gogr0005np07ufkc3tvy: ReplyError: CROSSSLOT Keys in request don't hash to the same slot (context='', command='eval', original-slot='8819', wrong-slot='12233', first-key='bull:entity-change-queue:wait', violating-key='bull:entity-change-queue:paused')","timestamp":"2026-02-03T06:45:26.682Z"} {"code":"INTERNAL_SERVER_ERROR","level":"error","message":"tRPC route failed on prompts.create: Internal error. Please check error logs in your self-hosted deployment.","name":"TRPCError","timestamp":"2026-02-03T06:45:26.682Z"} IMPORTANT! Eviction policy is volatile-lru. It should be "noeviction" Prompt creation fails because: Azure Redis is running in cluster mode, causing CROSSSLOT errors when Langfuse queue operations try to access keys that hash to different slots1
Langfuse Cloud or Self-Hosted?Self-Hosted If Self-Hostedv3.140.0 If Langfuse CloudNo response SDK and integration versionsLangfuse Version: latest
Pre-Submission Checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Based on the documentation, your CROSSSLOT errors are occurring because Azure Cache for Redis in cluster mode requires specific configuration that isn't currently set(1)(2). Required Configuration for Azure Redis Cluster ModeTo resolve the CROSSSLOT errors, you need to enable Redis cluster mode with these environment variables(1): For Azure Cache for Redis specifically, the configuration should look like(1): Replace the endpoint with your Azure Redis cluster endpoint(1). Queue Sharding ConfigurationTo distribute queue operations across cluster nodes and avoid CROSSSLOT errors, you should configure queue sharding(3): Set For example, if you have 3 Redis shards, set these to 6-9(3):
Redis Eviction PolicyYou must set the Additional Cluster Mode RequirementsWhen using Redis cluster mode(1):
📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.


@coderCyFl The inkeep answer seems to be on point for the questions you've asked.
The ones that are listed on the documentation page for Redis cluster mode.
Yes.
No.
See the Inkeep response or the corresponding Azure documentation.