In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The editor will share with you what redis slot refers to. I hope you will gain a lot after reading this article. Let's discuss it together.
What is the redis slot?
Slot (slot) concept
There is the concept of a 16384-length slot in Redis Cluster, and their numbers are 0, 1, 2, 3... 16382 、 16383 . This slot is a virtual slot and does not really exist.
During normal operation, each Master node in the Redis Cluster is responsible for a part of the slot. When a key is mapped to a slot responsible for a Master, then the Master is responsible for providing services for the key. As for which Master node is responsible for which slot, it can be specified by the user or automatically generated during initialization (redis-trib.rb script).
It is worth mentioning that in Redis Cluster, only Master owns the slot. If it is the slave of a Master, this slave is only responsible for the use of the slot, but has no ownership.
Redis Cluster fragmentation implementation
The general Sharding implementation methods are list, range and hash (or based on the combination of the above) and so on.
The implementation of Redis is based on the slicing method of hash, specifically virtual slot partition.
Virtual slot partition slot (slot): uses a well-dispersed hash function to map all data to a fixed range of integers, which is the slot.
Redis Cluster slot: the range of Redis Cluster slot is 0 ~ 16383. Slot is the basic unit of data management and migration in the cluster.
After reading this article, I believe you have a certain understanding of what redis slot refers to, want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.