the plugin_daemon does't support redis cluster? #193

Closed
opened 2026-02-16 00:20:27 -05:00 by yindo · 3 comments
Owner

Originally created by @ROBODRILL on GitHub (Oct 14, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I want to use the redis cluster,the config is :
#REDIS_HOST=
#REDIS_PORT=
#REDIS_USERNAME=
#REDIS_PASWORD=
...
REDIS_USE_CLUSTERS=true
REDIS_CLUSTERS=ip1:port1,ip2:port2,ip3:port3,ip4:port4,ip5:port5,ip6:port6
REDIS_CLUSTERS_PASSWORD=password
;
starting the docker dify ,the error is :
plugin_daemon_1 |panic: [PANIC] init redis client failed: dial tcp: lookup redis: i/o timeout;

this is the dify_plugin_daemon source code:

Image

whether the dify_plugin_daemon can not use redis cluster?

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @ROBODRILL on GitHub (Oct 14, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I want to use the redis cluster,the config is : #REDIS_HOST= #REDIS_PORT= #REDIS_USERNAME= #REDIS_PASWORD= ... REDIS_USE_CLUSTERS=true REDIS_CLUSTERS=ip1:port1,ip2:port2,ip3:port3,ip4:port4,ip5:port5,ip6:port6 REDIS_CLUSTERS_PASSWORD=password ; starting the docker dify ,the error is : plugin_daemon_1 |panic: [PANIC] init redis client failed: dial tcp: lookup redis: i/o timeout; this is the dify_plugin_daemon source code: <img width="984" height="884" alt="Image" src="https://github.com/user-attachments/assets/2a369a9b-d302-4fe1-abdb-c66acced4541" /> whether the dify_plugin_daemon can not use redis cluster? ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo closed this issue 2026-02-16 00:20:27 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 14, 2025):

Dify does support Redis Cluster mode for internal caching if you set REDIS_USE_CLUSTERS=true and provide your cluster node addresses in REDIS_CLUSTERS—the system will initialize a RedisCluster client and connect as expected. However, Redis Cluster is not supported as the Celery broker; only standard Redis and Redis Sentinel are supported for that purpose. Your error (dial tcp: lookup redis: i/o timeout) is likely a network or DNS issue, not a lack of Redis Cluster support in the core platform. For more details, see the official discussion and configuration guidance and Celery broker limitations.

If you’re using Redis Cluster for internal caching, double-check your Docker network and DNS settings. If you’re trying to use it as a Celery broker, switch to Redis Sentinel or standalone Redis for that component.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Oct 14, 2025): <!-- Answer --> Dify does support Redis Cluster mode for internal caching if you set `REDIS_USE_CLUSTERS=true` and provide your cluster node addresses in `REDIS_CLUSTERS`—the system will initialize a RedisCluster client and connect as expected. However, Redis Cluster is not supported as the Celery broker; only standard Redis and Redis Sentinel are supported for that purpose. Your error (`dial tcp: lookup redis: i/o timeout`) is likely a network or DNS issue, not a lack of Redis Cluster support in the core platform. For more details, see the [official discussion and configuration guidance](https://github.com/langgenius/dify/issues/23941) and [Celery broker limitations](https://github.com/langgenius/dify/discussions/23219#discussioncomment-13943367). If you’re using Redis Cluster for internal caching, double-check your Docker network and DNS settings. If you’re trying to use it as a Celery broker, switch to Redis Sentinel or standalone Redis for that component. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/a8af72d0-f263-4205-98ea-d32d1a06274c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/a8af72d0-f263-4205-98ea-d32d1a06274c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/a8af72d0-f263-4205-98ea-d32d1a06274c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/a8af72d0-f263-4205-98ea-d32d1a06274c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a8af72d0-f263-4205-98ea-d32d1a06274c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/a8af72d0-f263-4205-98ea-d32d1a06274c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a8af72d0-f263-4205-98ea-d32d1a06274c?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/26865)
Author
Owner

@ROBODRILL commented on GitHub (Oct 14, 2025):

the way I check Docker network and DNS settings is wrong? please tell me the right way to check these two points

@ROBODRILL commented on GitHub (Oct 14, 2025): the way I check Docker network and DNS settings is wrong? please tell me the right way to check these two points
Author
Owner

@taowujie commented on GitHub (Oct 15, 2025):

Dify-api supports Redis Cluster mode for internal caching when the REDIS_USE_CLUSTERS=true setting is configured. However, Redis Cluster does not work with TLS and Redis Cluster username. For example, when using AWS ElastiCache Redis OSS with clustering enabled, it fails to run properly.
Additionally, I noticed that dify-plugin-daemon does not support Redis Cluster, as its configuration file does not read the REDIS_USE_CLUSTERS=true parameter. You can check the relevant code here: https://github.com/langgenius/dify-plugin-daemon/blob/main/internal/types/app/config.go

@taowujie commented on GitHub (Oct 15, 2025): Dify-api supports Redis Cluster mode for internal caching when the REDIS_USE_CLUSTERS=true setting is configured. However, Redis Cluster does not work with TLS and Redis Cluster username. For example, when using AWS ElastiCache Redis OSS with clustering enabled, it fails to run properly. Additionally, I noticed that dify-plugin-daemon does not support Redis Cluster, as its configuration file does not read the REDIS_USE_CLUSTERS=true parameter. You can check the relevant code here: https://github.com/langgenius/dify-plugin-daemon/blob/main/internal/types/app/config.go
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#193