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]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

How to let the nifi flows edit to be applied to the primary node directly

avatar
Explorer

I am running 3 nifi nodes using AWS ECS, while the development team is working over the nifi console, we are getting an error related to the unable to sync. So the node is being disconnected.

My mind is this issue is happening due to that the changes are not being made over the primary node.

How can I enforce that the changes are applied directly to the primary node to avoid this issue?

Can any one help?

1 REPLY 1

avatar
Master Mentor

@fy-test 

Welcome to the community.

What are the reasons being given in the NiFi elected cluster coordinator nifi-app.log for the disconnection or from the disconnected node's nifi-app.log?

No matter which NiFi node you are connected to any, change request must be sent the elected "Cluster Coordinator" that replicates that request to all connected nodes.   If any of the nodes that has been requested to make the change fails to respond in the node will get disconnected.  The elected "Primary node" is the node on which any primary only scheduled processor components will run. It is also important to understand that which node is elected as the "Primary" or "Coordinator" can change at any time.

MattWho_0-1739911652884.png

 

I don't think forcing all your users on to the Primary node is going to solve your issue. 

Even with a node disconnection caused by a failure of the request replication, the disconnected node should attempt to reconnect to the node and inherit the cluster flow if is it different from the local flow on the connecting node.

You should also be looking at things like CPU load average, Heap usage, and Garbage collection stats on your primary node versus the other nodes.

Perhaps adjust max timer driven thread pool sizes or adjusting timeouts would be helpful.

Cluster Node Properties

MattWho_1-1739911652243.png

MattWho_2-1739911652245.png

MattWho_3-1739911652253.png

MattWho_4-1739911652254.png

 

How well are your dataflow designs distributing the load across all nodes in your cluster?


Please help our community grow and thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt