ZK Cluster source code interpretation

1.1.  Trunked mode

1.1.1.  Data synchronization total flow  

 

 

 

1.1.1.1. OBSERVING

 

 

 

 

 

1.1.1.2. FOLLOWING

 

 

 

 

1.1.1.3. LEADING

 

 

 

 

 

1.1.2.  Leadership election

1.1.2.1.  Leadership election initialization

 

 

 

1.1.2.2.  Thread logic

1.1.2.2.1.  Thread used to send request

 

 

 

1.1.2.2.2.  Receiving a request thread used

 

 

1.1.2.2.3.  Transmission / reception Overview

 

 

1.1.2.3.  Leadership election algorithm

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/Soy-technology/p/11404343.html