mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-22 21:55:54 +00:00
Merge pull request #445 from internetarchive/adds-bdbmodule-max-file-size-option
Adding configurable MaxLogFileSize option to BdbModule
This commit is contained in:
@@ -172,6 +172,14 @@ public class BdbModule implements Lifecycle, Checkpointable, Closeable, Disposab
|
||||
public void setUseSharedCache(boolean useSharedCache) {
|
||||
this.useSharedCache = useSharedCache;
|
||||
}
|
||||
|
||||
protected long maxLogFileSize = 10000000;
|
||||
public long getMaxLogFileSize() {
|
||||
return maxLogFileSize;
|
||||
}
|
||||
public void setMaxLogFileSize(long cacheSize) {
|
||||
this.maxLogFileSize = maxLogFileSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* Expected number of concurrent threads; used to tune nLockTables
|
||||
@@ -277,7 +285,10 @@ public class BdbModule implements Lifecycle, Checkpointable, Closeable, Disposab
|
||||
config.setConfigParam("je.lock.nLockTables", Long.toString(nLockTables));
|
||||
|
||||
// triple this value to 6K because stats show many faults
|
||||
config.setConfigParam("je.log.faultReadSize", "6144");
|
||||
config.setConfigParam("je.log.faultReadSize", "6144");
|
||||
|
||||
// set max bdb log file size. default 10M
|
||||
config.setConfigParam("je.log.fileMax", Long.toString(getMaxLogFileSize()));
|
||||
|
||||
if(!getUseHardLinkCheckpoints()) {
|
||||
// to support checkpoints by textual manifest only,
|
||||
|
||||
Reference in New Issue
Block a user