we use bdb je in replicated environments with 10 billion records per day ,and met some problem about reclaim log files and delete reserved log files.
As descipted in `Getting Started with High Availability Applications` :
"For replicated environments, JE hangs on to log files as long as possible in case they are needed to bring a replica up to date. Log files that have been cleaned but then saved due because of replication are in a reserved state. All such files are retained until the disk usage thresholds as defined by EnvironmentConfig.MAX_DISK and EnvironmentConfig.FREE_DISK are exceeded. At that point, JE deletes reserved log files."
In out project , write operations are increasing quickly sometimes. And if the disk usage thresholds are approaching , the replicated environment throws DiskLimitException and write operations are prohibited because of the speed of delete file cannot match the speed of write data . So I'm really want to know if there is a way to delete reserved files manually instead of dependent on the the disk usage thresholds .
we use je.properties to config out HA environment and content is like :
In our project , we use ReplicatedEnvironment.cleanLogFile() telling je to clean file , and use ReplicatedEnvironment.removeDatabase(null, "persist#" + storeName + "#com.sleepycat.persist.formats") to declare one EntityStore can be cleaned.
Any advise will be appreciated.