I have Nifi set up on 6 nodes, I want to store one variable in DistributedMapCache, so I instert it with PutDistributedMapCache and then read it with FetchDistributedMapCache. However it works very unpredictably, most of the time fetch processor is unable to find that cache entry. I suppose it’s a problem with multiple nodes but according to documentation of DistributedMapCacheClientService “This can be used in order to share a Map between nodes in a NiFi cluster”. Another thing is that I start my flow with GenerateFlowFile that executes on primary node only and all my flowfiles are on node 1 so I’m not sure how is it supposed to work with DMC. I tested how it works when executed on all nodes and got weird results, 3/6 cache entries still could not be fetched.
So the question is can I somehow make it work? To have 1 cache shared between 6 nodes?