Created 07-11-2018 05:03 AM
Created 07-11-2018 05:06 AM
NiFi Implemented zero master since 1.0. generally you don't need a LB but for certain use cases it may be required.
Created 07-11-2018 05:06 AM
NiFi Implemented zero master since 1.0. generally you don't need a LB but for certain use cases it may be required.
Created 07-11-2018 05:21 AM
@sunile.manjee certain use cases means?
Created 07-11-2018 02:32 PM
That is a unbounded question. Knowing your use case would provide more value. For example, if you want to expose a single url for NiFi development on the UI, you could use LB with sticky sessions. Again your question is unbouded and better off you share your use case in another HCC question.
Created 07-11-2018 02:42 PM
-
Short answer: The Cluster Coordinator has no role in data distribution within a cluster. Each NiFi node only works on data it specifically receives.
-
Created 07-11-2018 04:17 PM
You might want a load balancer if
you use any of the listentcp/listenhttp/etc stages.
you want to spread your user interface activity across nodes. (You'll need to pin sessions to nodes for this)
you don't want to hardcode all your node hostnames into RPGs (though there are still issues with this)
A big problem with configuring your load balancer is when a node is disconnected it continues to listen on the nifi webui/rest api port. You will have to write some external healthcheck that authtenticates to nifi and gets the actuall node status.
Created 07-11-2018 04:53 PM
I don't understand the concern with a "disconnected node" still receiving data from a load-balancer? Just because a node is disconnected does not mean it is not still running its dataflow(s).
If the NiFi service or hosting server is down, their will be no running listener to receive data from the load-balancer, so the LB should failover to a different server.
Created 07-11-2018 06:20 PM
If I have disconnected a node (say to drain it for maintenance) I don't want my upstream sources to keep posting data to it. S2S ports already have this behavior and close on disconnect.
If a node is disconnected, I don't want webui user sessions to hit that node. At best they will be very confused, and at worst they will make changes to the flow on that node that will cause problems when I reconnect the node.
Created 07-11-2018 07:02 PM
A Jira was raised to address that concern and the improvement was made in Apache NiFi 1.7.0:
https://issues.apache.org/jira/browse/NIFI-5208
Created 07-12-2018 07:50 PM
@Matt Clarke Thanks for that info!