dsCfg.setWalSegmentSize(psCfg.getWalSegmentSize()); dsCfg.setWalPath(psCfg.getWalStorePath()); dsCfg.setAlwaysWriteFullPages(psCfg.isAlwaysWriteFullPages()); dsCfg.setMetricsEnabled(psCfg.isMetricsEnabled()); dsCfg.setWriteThrottlingEnabled(psCfg.isWriteThrottlingEnabled());
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); CacheConfiguration ccfg = new CacheConfiguration(CACHE_NAME) .setRebalanceMode(CacheRebalanceMode.NONE); CacheConfiguration mvccCfg = new CacheConfiguration(MVCC_CACHE_NAME) .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL_SNAPSHOT) .setRebalanceMode(CacheRebalanceMode.NONE); cfg.setCacheConfiguration(ccfg, mvccCfg); cfg.setDataStorageConfiguration( new DataStorageConfiguration() .setCheckpointFrequency(500) .setWalMode(WALMode.LOG_ONLY) .setAlwaysWriteFullPages(true) .setDefaultDataRegionConfiguration( new DataRegionConfiguration() .setPersistenceEnabled(true) .setMaxSize(DataStorageConfiguration.DFLT_DATA_REGION_INITIAL_SIZE) ) ); return cfg; }
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); CacheConfiguration ccfg = new CacheConfiguration(cacheName); ccfg.setAffinity(new RendezvousAffinityFunction(true, 1)); ccfg.setRebalanceMode(CacheRebalanceMode.NONE); ccfg.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL); cfg.setCacheConfiguration(ccfg); DataStorageConfiguration memCfg = new DataStorageConfiguration() .setDefaultDataRegionConfiguration( new DataRegionConfiguration() .setMaxSize(1024L * 1024 * 1024) .setPersistenceEnabled(true) .setName(policyName)) .setWalMode(WALMode.LOG_ONLY) .setCheckpointFrequency(500) .setAlwaysWriteFullPages(true); cfg.setDataStorageConfiguration(memCfg); return cfg; }
.setWalFsyncDelayNanos(in.readLong()) .setWalRecordIteratorBufferSize(in.readInt()) .setAlwaysWriteFullPages(in.readBoolean()) .setMetricsEnabled(in.readBoolean()) .setMetricsSubIntervalCount(in.readInt())
dsCfg.setWalSegmentSize(psCfg.getWalSegmentSize()); dsCfg.setWalPath(psCfg.getWalStorePath()); dsCfg.setAlwaysWriteFullPages(psCfg.isAlwaysWriteFullPages()); dsCfg.setMetricsEnabled(psCfg.isMetricsEnabled()); dsCfg.setWriteThrottlingEnabled(psCfg.isWriteThrottlingEnabled());
.setWalFsyncDelayNanos(in.readLong()) .setWalRecordIteratorBufferSize(in.readInt()) .setAlwaysWriteFullPages(in.readBoolean()) .setMetricsEnabled(in.readBoolean()) .setMetricsSubIntervalCount(in.readInt())