Reputation: 1700
I moved a flow that was working on a single node NiFi to a 3 nodes NiFi cluster, and suddenly a wait processor that makes use of the DistributedMapCache doesn't works as expected, this means that wasn't able to recover a value from the cache. To be sure that the value exists in the cache I configured the cache to use a persistent directory, so I was able to check the content of the cache, after some testing a realize that:
Another test was to force the execution of the flows in the Primary node, in this case everything works as expected.
Another test was to write the cache from all the nodes at the same time, only worked for the primary node.
So my questions are:
Upvotes: 5
Views: 4297
Reputation: 18630
You shouldn't be using localhost in DistributedMapCacheClientService, just use the hostname of one of the nodes, then all your clients will be pointing to the same server.
Upvotes: 9