The keys are not written until shutdown.  I could create a method that could 
write them to disk and make a copy of the datafile.  It could be called 
"createSnapShot"  You could call it programatically.  There are details to 
think through.  Should we try to load from a snapshot on startup?  How many 
snapshots should we store?  Could we create these via a timer?  I guess this 
could all be configurable.

Aaron



----- Original Message ----
From: Silvano <m...@ipsoft.it>
To: jcs-users@jakarta.apache.org
Sent: Wednesday, June 17, 2009 4:23:52 AM
Subject: Indexed Disk Cache safe copying of files

Since we have a large cache that needs significant time to be populated, we 
need to be able to copy the files of the regions configured as Indexed Disk 
Cache between different installations.
We believe this can be done safely if we turn off the jvm, but we would need to 
copy safely the files while the jvm is running. However it seems that the key 
files are written only when you turn off the jvm (at least the size changes 
when we turn off the jvm, so we suspect that they are not synchronized to disk 
in normal operations).

We can make sure at application level that nobody writes in the cache during 
the file copy process, but is this sufficient?

Can anybody recommend a solution to this issue?

Best regards,
   Silvano.

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jcs-users-h...@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jcs-users-h...@jakarta.apache.org

Reply via email to