You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Henrik Lundahl <he...@jayway.com> on 2016/01/28 15:07:21 UTC

Clustered and locally persisted cache?

Hi

I would like to set up a cache in a two node cluster where

* node A
    * loads the cache from local files at startup if they exist, otherwise
it
    * loads data into the cache from an external source and then
    * saves the whole cache down to local files.
* node B
    * loads the cache from local files at startup if they exist, otherwise
it
    * gets data into the cache through the cluster if there is a viable
network connection and then
    * saves the whole cache down to local files

I would at the same time like to have only part of the cache in memory,
i.e. it should swap to disk. Is there a reasonably simple way to accomplish
all this?


--
Henrik

Re: Clustered and locally persisted cache?

Posted by vkulichenko <va...@gmail.com>.
Hi Henrik,

I'm not sure I completely understood your use case, but it sound like you
should take a look at persistence capabilities of Ignite [1]. Cache store
allows to load the data from external storage and write it back when data is
updated.

Let us know if it works for you or if you have more questions.

[1] https://apacheignite.readme.io/docs/persistent-store

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clustered-and-locally-persisted-cache-tp2756p2768.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.