当前位置:网站首页>Redis configuration (IV) -- cluster
Redis configuration (IV) -- cluster
2022-06-12 06:19:00 【leo_ messi94】
Redis colony
Problem solved :
- Not enough capacity
- Concurrent write operations
colony :
- Redis The cluster has realized to Redis Horizontal expansion of , That is to start N individual redis node , The entire database is distributed and stored here N A node in the , Each node stores the total data 1/N
- Redis Clusters are partitioned (partition) To provide a certain degree of usability (availability): Even if some nodes in the cluster fail or fail to communicate , The cluster can also continue to process command requests .
Set up the cluster
Omit here 6 individual redis Cluster configuration .
Set up redis-trib You can see ,redis Automatically set it for us 3 Lord 3 Configuration from .

Set... In the cluster k-v:

After we set up the cluster , Just log in to one of the clients .
Log in to 6379, Set a value , You can see k The slots set are 12706, This k-v Be stored in 6381 The server is up .
The server with the value will be switched to the corresponding server .

example :aa and aaa All in group user in :
redis cluster How to allocate these six nodes :

slot slot:

Query the values in the cluster :


Fault recovery :
- If the master node goes offline ? Whether the slave node can be automatically promoted to the master node ?
answer : The slave node will be automatically promoted to the master node
close 6381, View the cluster node information :cluster nodes
- After the primary node is restored , How about the master-slave relationship ?
answer : The original master node will become a slave node
recovery 6381, View the cluster node information
- If the master and slave nodes in the slot at one end are all down ,redis Whether the service can continue ?
answer : Then the slot in that place won't work
close 6381 and 6391,
Try to get downtime redis The content in :
Set all slot Services can only be provided externally when they are normal :

边栏推荐
- Unity implements smooth interpolation
- MNIST handwritten data recognition by CNN
- Understand Houdini's (heightfield) remap operation
- English grammar_ Adverb_ With or without ly, the meaning is different
- Sqlite Cross - compile Dynamic Library
- Leetcode-646. Longest number pair chain
- R language homework (IV): GDP value analysis of Shanghai and Tokyo from 1997 to 2018
- C2w model - language model
- Logistic regression model
- Leetcode-139. Word splitting
猜你喜欢

In unity3d, billboard effect can be realized towards another target

Automatic modeling of Interchange

哈工大信息内容安全实验

. Net core - pass Net core will Net to cross platform

Sqlite Cross - compile Dynamic Library

Chartextcnn (Ag dataset - news topic classification)

Explanation of sensor flicker/banding phenomenon

前台展示LED数字(计算器上数字类型)

(UE4 4.27) customize primitivecomponent

Simple spiral ladder generation for Houdini program modeling
随机推荐
How do I get the date and time from the Internet- How to get DateTime from the internet?
Unity surface shader with template buffer
线程有哪些状态?
Leetcode-1552. Magnetic force between two balls
English grammar_ Adverb_ With or without ly, the meaning is different
E-book analysis
sqlite交叉編譯動態庫
Script for unity3d to recursively search for a node with a specific name from all child nodes of a node
Houdini & UE4 programmed generation of mountains and multi vegetation scattering points
Automatic modeling of Interchange
Three years of sharpening a sword: insight into the R & D efficiency of ant financial services
The unity3d script searches for colliders with overlaps within the specified radius
Leetcode personal question solution (Sword finger offer3-5) 3 Duplicate number in array, 4 Find in 2D array, 5 Replace spaces
Sqlite Cross - compile Dynamic Library
为什么数据库不使用二叉树、红黑树、B树、Hash表? 而是使用了B+树
Textcnn (MR dataset - emotion classification)
Android studio mobile development creates a new database and obtains picture and text data from the database to display on the listview list
C2w model - language model
IDEA常用配置
JS预解析