Question relative to terracotta BigMemory GO configuration

Q: Is there any way to configure disk store to remove all data store on service/cache manager start up ?

Description: I have BigMemory configure with overflow to OffHeap, so Lucene index would be created in disk store (not depended on persistent strategy). I need to have disk store cleaned on next cache manager start up (application start up), but I do not want to have specific clean up method in my application code. Currently if after should down was successful index would be reused by BigMemory on next start up.

Thank you.

1

There are 1 answers

1
Dhruv On

As I understand your question, you want to remove the Index data from BigMemory Go on restart.

Whether you can do this or not depends on your persistence strategy. If it is local restartable, BigMemory Go will try to either reuse the index data if the application was shutdown cleanly, or it will recover the indexes if it was shutdown abruptly. So, for a persistence strategy of local restartable, there is no way to avoid rebuilding the data.

If your persistence strategy is "localTempswap", then you will not rebuild any data on restart and will lose the application's state.

Please see here for more information: http://ehcache.org/documentation/configuration/fast-restart