Skip to content

How is Redis used #160

Answered by davies
dsmiley asked this question in Q&A
Jan 30, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@dsmiley We are sorry that there is no detailed docs for this part right now, please check the source code here: https://github.com/juicedata/juicefs/blob/main/pkg/meta/redis.go. The interface we are implementing is here: https://github.com/juicedata/juicefs/blob/main/pkg/meta/interface.go#L129

In order to implement the interface for metadata, there are lots of bookkeeping stuff, the data structures (hash map, list, and set, counter and so on) in Redis are very useful here. Also, the transaction and batch support in Redis is good to reduce latency for meta requests. ZooKeeper and Etcd don't have those powerful API to work with, they are also not intended to store hundreds of millions of s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dsmiley
Comment options

Answer selected by xiaogaozi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants