You mention "Pod restart", does this mean you're deploying NiFi into
Kubernetes? If so, you will need to mount an external Persistent Volume
into the Pod as a directory that you can use for the Persistent Directory
of the DistributedMapCacheServer.

We've used NiFi Kubernetes and successfully persisted DMC data between Pod
restarts using this approach.


---
*Chris Sampson*
IT Consultant
chris.samp...@naimuri.com
<https://www.naimuri.com/>


On Wed, 18 Aug 2021 at 04:01, Ravneet Cheema <ravneet.che...@macrohealth.com>
wrote:

> Hello ,
>
>
>
> I am using DistributedMapCacheServer with setting of Persistent Directory.
> I can see contents of cache in the directory, but the contents do not
> survive nifi restart .
>
> Older values from cache should be available after restart, right ?
>
> I have attached template where I have configured client and distributed
> map cache server.
>
> Based on answer in following link , data in cache should be available on
> restart.
>
> https://community.cloudera.com/t5/Support-Questions/How-to-update-nifi-cache-on-nifi-service-restart/td-p/225434
>
> Please provide insights on how I can achieve a persistent cache in which
> data survives pod restart .
>
>
>
> Thanks,
>
> Ravneet
>
>
>

Reply via email to