Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

What could cause nifi primary/coordinator node change in a luster

avatar
New Member

It was noticed today the nifi re-elected the coordinator node although the previous coordinator node stayed connected based on nifi app log. What is the logic for kicking off coordinator reelection?

Thanks,

Mark

1 ACCEPTED SOLUTION

avatar
Master Mentor
@Mark Lin

Zookeeper is responsible for electing both the cluster coordinator and primary node for a nifi cluster.

Reason why ZK may elect a new primary node include:

Current primary node has not heartbeated to ZK:

- possibly because network issues?

- possibly because current Cluster Coordinator and/or Primary node is having issues preventing heartbeat form being sent such as Java garbage collection. As a stop-the-world event heartbeats would not be sent out while GC is running. by the time GC ends, ZK may have already elected a new Cluster coordinator and/or primary node. Node would notified of change next time it did successfully talk to ZK


So you may never see node actually become disconnected from cluster. Node send heartbeats to current elected cluster coordinator. As long as those heartbeats are making it within configured timeouts, nodes will stay connected in cluster.


Thanks you,

Matt

View solution in original post

1 REPLY 1

avatar
Master Mentor
@Mark Lin

Zookeeper is responsible for electing both the cluster coordinator and primary node for a nifi cluster.

Reason why ZK may elect a new primary node include:

Current primary node has not heartbeated to ZK:

- possibly because network issues?

- possibly because current Cluster Coordinator and/or Primary node is having issues preventing heartbeat form being sent such as Java garbage collection. As a stop-the-world event heartbeats would not be sent out while GC is running. by the time GC ends, ZK may have already elected a new Cluster coordinator and/or primary node. Node would notified of change next time it did successfully talk to ZK


So you may never see node actually become disconnected from cluster. Node send heartbeats to current elected cluster coordinator. As long as those heartbeats are making it within configured timeouts, nodes will stay connected in cluster.


Thanks you,

Matt