当前位置:网站首页>Project practice, redis cluster technology learning (6)
Project practice, redis cluster technology learning (6)
2022-07-02 10:04:00 【User 1289394】
4. Cluster integrity check
Cluster integrity means that all slots are allocated to the surviving master node , as long as 16384 If one of the slots is not assigned to a node, the cluster is incomplete . have access to redis-trib.rb check The command checks whether the two clusters created before are successful ,check The command only needs to give the address of any node in the cluster to complete the inspection of the whole cluster , The order is as follows :
redis-trib.rb check 127.0.0.1:6379
redis-trib.rb check 127.0.0.1:6481
When the following information is finally output , Prompt that all slots in the cluster have been assigned to nodes :
[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.
Redis.3 Node communication
Redis.3.1 Communication process
In distributed storage, we need to provide a mechanism to maintain node metadata information , Metadata means : node
What data are you responsible for , Whether there is fault and other status information . Common metadata maintenance methods include : focus
The type and P2P The way .Redis The cluster using P2P Of Gossip( Gossip ) agreement ,Gossip agreement
The working principle is that nodes constantly communicate with each other and exchange information , After a period of time, all nodes will know the set
Group complete information , This way is similar to spreading rumors
Communication process description :
1) Each node in the cluster will have a separate TCP passageway , For communication between nodes ,
The communication port number is added to the basic port 10000.
2) Each node selects several nodes to send through specific rules in a fixed period ping news .
3) Received ping The node of the message uses pong Message in response .
Each node in the cluster selects the node to communicate through certain rules , Each node may know all sections
spot , Or maybe only some nodes are known , As long as these nodes can communicate with each other normally , Eventually they will reach
To a consistent state . When a node fails 、 New nodes join 、 The role of master and slave changes 、 Slot information change and so on
When this happens , Through constant ping/pong Message communication , After a period of time, all nodes will know the latest status of all nodes in the whole cluster , So as to achieve the purpose of cluster state synchronization .
边栏推荐
- YOLO物体识别,生成数据用到的工具
- Junit4运行mvn test 测试套件升级方案
- [illusory] weapon slot: pick up weapons
- go语言入门
- A model can do two things: image annotation and image reading Q & A. VQA accuracy is close to human level | demo can be played
- 2837xd 代码生成——总结篇
- C language programming problems
- Creation and jump of activity
- QT signal slot summary -connect function incorrect usage
- [ue5] blueprint making simple mine tutorial
猜你喜欢

QT qlabel style settings

PI control of grid connected inverter (grid connected mode)

Introduction et prévention des essais de pénétration

并网逆变器PI控制(并网模式)

The latest progress and development trend of 2022 intelligent voice technology

Skywalking理论与实践

UE5——AI追逐(藍圖、行為樹)

Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd

UE4 night lighting notes

Summary of demand R & D process nodes and key outputs
随机推荐
A model can do two things: image annotation and image reading Q & A. VQA accuracy is close to human level | demo can be played
Image recognition - Data Acquisition
并网逆变器PI控制(并网模式)
Kinect DK obtains color RGB images in cv:: mat format (used in openpose)
Junit5 supports suite methods
Blender multi lens (multi stand) switching
Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
2837xd 代码生成——补充(1)
This monitoring system makes workers tremble: turnover intention and fishing can be monitored. After the dispute, the product page has 404
渗透测试的介绍和防范
ESLint 报错
2837xd 代码生成——补充(2)
2837xd Code Generation - stateflow (4)
Ckeditor 4.10.1 upload pictures to prompt "incorrect server response" problem solution
图像识别-数据标注
Large neural networks may be beginning to realize: the chief scientist of openai leads to controversy, and everyone quarrels
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
2837xd code generation module learning (4) -- idle_ task、Simulink Coder
上班第一天的报错(Nessus安装winpcap报错)
Cmake command - Official Document