The core principle Redis cluster analysis

An internal communication mechanism between the nodes

1, basic communication theory

Room (1) redis cluster nodes take gossip protocol to communicate

With centralized different than the cluster metadata (node ​​information, fault, etc.) stored centrally on a node, but continue to communicate with each other, to keep the whole cluster data from all nodes is complete

Maintain the cluster metadata and must be centralized, called gossip

Centralized: the benefits of that update, and read metadata, timeliness is very good, there was once metadata changes immediately update to the centralized storage, when the other nodes can be read immediately perceived;
bad that with the new pressure all metadata all in one place, it may lead to metadata stored pressure

gossip: the benefits that update metadata scattered, not concentrated in one place, update requests after another, hit update all nodes up, a certain delay, reduce the pressure;
shortcomings, there is a delay metadata updates Some operations will likely lead to a cluster of some hysteresis

 

Guess you like

Origin www.cnblogs.com/sunliyuan/p/11334516.html