NiFi Load Balancing Demo
I'm trying to set up a Load Balancing Demo.
I have a GetFile processor that watcches a directory for incoming files and then a flow that processes them.
To try to understand LoadBalancing, I have created a second NiFi instance on the same host (my dev machine), but on a different port 8090 to the first 8080. I have then checked out the flow from the Registry so that it is identical on both instances.
Next, I have set the Load Balancing Strategy on the output queue from both nodes first processsor, (the GetFile proc) in order to see if I can get data going through both instances.
I can then drop files into the watch dir and see them hit my flow. However, all the files are going into the same node, even if I wait 10 minutes between dropping them into the dir. But, when I run again it switches to the other node and all the files go through there.
Is there a timeout somewhere that I can set to speed up the switch from one node to the other? Or better to switch files to alternate between the nodes.
I have assumed the use of the embedded Zookeepr and not made any specific cluster based config as yet...
Any help greatly appreciated. Note that this is all runnig on the same localhost, ports 8080 and 8090...

