Skip to content

Conversation

@mt5225
Copy link
Contributor

@mt5225 mt5225 commented Jan 16, 2026

Summary

  • Document that for Redis Cluster, the database number in the URL is used as a key prefix ({N} format) rather than for actual database selection
  • Explain that Redis Cluster only supports database 0, so the DB number serves as isolation mechanism
  • Add examples showing how multiple JuiceFS volumes can share a single Redis Cluster
  • Updated both English and Chinese documentation

Test plan

  • Documentation changes only - no code changes
  • Verified behavior against source code (pkg/meta/redis.go)

Closes #6585

Explain that for Redis Cluster, the database number in the URL is used
as a key prefix (format {N}) rather than for actual database selection,
since Redis Cluster only supports database 0. This allows multiple
JuiceFS file systems to share a single Redis Cluster.

Closes #6585
@mt5225 mt5225 requested a review from CaitinChen as a code owner January 16, 2026 16:52
@mt5225 mt5225 requested a review from davies January 16, 2026 16:56
@jiefenghuang jiefenghuang merged commit 05eb6a0 into main Jan 19, 2026
4 checks passed
@jiefenghuang jiefenghuang deleted the docs/redis-cluster-key-prefix branch January 19, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

redis-cluster作为元数据存储,建议支持指定 key前缀,方便统一管理

2 participants