2 Replies Latest reply on Sep 21, 2009 9:07 AM by sannegrinovero

    Flushing it all to he store.

    sannegrinovero

      Hi all,
      I've been reading the FAQ but still have a doubt about when the data is going to be written to the Store.
      I'd like to use Infinispan as a permanent storage of data, so I need to be able to import and export, and possibly make backups flushing all current state to the DB (using JdbcStore).
      When some value is Expired, is it going to be removed from everywhere, including the Store, or is it going to be removed from node's memory and flushed to the store?

      I would like to be able to shutdown all nodes, and later restart them without loosing any information; Is there some documentation about such an usage, or configuration examples?

      For example if I put a new value, commit succesfully, and then kill the nodes.. is the value guaranteed to be committed in the store too?

        • 1. Re: Flushing it all to he store.
          mircea.markus

           

          When some value is Expired, is it going to be removed from everywhere, including the Store, or is it going to be removed from node's memory and flushed to the store?

          expired data will be removed from both memory and storage. Infinispan
          works both with eviction(keep only N elements in memory) and expiration(keep this element for M seconds/millis). For details take a look here: http://www.jboss.org/community/wiki/infinispan-eviction

          I would like to be able to shutdown all nodes, and later restart them without loosing any information; Is there some documentation about such an usage, or configuration examples?

          if you use a cache store (no passivation) then whatever you write in memory will be mirrored to the store (your case DB). Next time you restart the cache set "preload" of the store to true and all the persisted data will be loaded at startup. You might want to use an async cache store (async=true at cache store config) to improve responsiveness.

          • 2. Re: Flushing it all to he store.
            sannegrinovero

            thank you!
            is looking very good.