use of org.apache.ignite.internal.processors.cache.persistence.file.AsyncFileIOFactory in project ignite by apache.
the class IgnitePdsThreadInterruptionTest method storageConfiguration.
/**
* @return DataStorage configuration.
*/
private DataStorageConfiguration storageConfiguration() {
DataRegionConfiguration regionCfg = new DataRegionConfiguration().setInitialSize(10L * 1024L * 1024L).setMaxSize(10L * 1024L * 1024L).setPageEvictionMode(DataPageEvictionMode.RANDOM_LRU);
DataStorageConfiguration cfg = new DataStorageConfiguration().setWalMode(WALMode.LOG_ONLY).setWalFsyncDelayNanos(0).setPageSize(PAGE_SIZE).setFileIOFactory(new AsyncFileIOFactory());
cfg.setDefaultDataRegionConfiguration(regionCfg);
return cfg;
}
Aggregations