Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Introduction to Redis Cluster structure (Theory)

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

First, take a look at the redis cluster topology.

Introduction to redis Cluster:

1. Redis cluster is an acentric structure in which each node holds the data and the state of the entire cluster.

2. Each node will save the information of other nodes and will know the hash slot (hash slot) that other nodes are responsible for.

3. The heartbeat information will be sent regularly with other nodes, and the abnormal nodes in the cluster can be sensed in time.

Features of redis cluster structure:

1. All redis nodes are interconnected with each other (PING-PONG mechanism), and binary protocol is used internally to optimize the transmission speed and band library.

2. The fail of a node takes effect only when it is detected by more than half of the nodes in the cluster.

3. The client is directly connected to the redis node and does not require an intermediate proxy layer.

The client does not need to connect to all the nodes in the cluster, but to any of the available nodes in the cluster.

4. Redis cluster maps all physical nodes to slot (not necessarily evenly distributed)

5. Redis cluster is pre-divided into 16384 slots [0-16383]

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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report