/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration dsCfg = cfg.getDataStorageConfiguration(); dsCfg.setCheckpointThreads(4).setCheckpointWriteOrder(CheckpointWriteOrder.SEQUENTIAL); return cfg; }
dsCfg.setCheckpointThreads(psCfg.getCheckpointingThreads()); dsCfg.setCheckpointWriteOrder(psCfg.getCheckpointWriteOrder()); dsCfg.setFileIOFactory(psCfg.getFileIOFactory());
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); cfg.setDataStorageConfiguration( new DataStorageConfiguration() .setFileIOFactory(new SlowCheckpointFileIOFactory()) .setCheckpointThreads(checkpointThreads) .setDefaultDataRegionConfiguration( new DataRegionConfiguration() .setPersistenceEnabled(true) .setMaxSize(MAX_SIZE) .setCheckpointPageBufferSize(CP_BUF_SIZE) ) ); cfg.setFailureHandler(new StopNodeFailureHandler()); strLog = new GridStringLogger(false, new GridTestLog4jLogger()); cfg.setGridLogger(strLog); return cfg; }
/** /** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration memCfg = new DataStorageConfiguration() .setDefaultDataRegionConfiguration( new DataRegionConfiguration().setMaxSize(800L * 1024 * 1024).setPersistenceEnabled(true)) .setWalMode(WALMode.LOG_ONLY) .setCheckpointThreads(1) .setCheckpointFrequency(1); memCfg.setDataRegionConfigurations(new DataRegionConfiguration() .setMaxSize(200L * 1024 * 1024) .setName(NO_PERSISTENCE_REGION) .setPersistenceEnabled(false)); cfg.setDataStorageConfiguration(memCfg); CacheConfiguration ccfg = new CacheConfiguration(DEFAULT_CACHE_NAME); CacheConfiguration ccfgNp = new CacheConfiguration("nonPersistentCache"); ccfgNp.setDataRegionName(NO_PERSISTENCE_REGION); ccfgNp.setDiskPageCompression(null); ccfg.setAffinity(new RendezvousAffinityFunction(false, 4096)); cfg.setCacheConfiguration(ccfg, ccfgNp); return cfg; }
.setStoragePath(in.readString()) .setCheckpointFrequency(in.readLong()) .setCheckpointThreads(in.readInt()) .setLockWaitTime((int) in.readLong()) .setWalHistorySize(in.readInt())
dsCfg.setCheckpointThreads(psCfg.getCheckpointingThreads()); dsCfg.setCheckpointWriteOrder(psCfg.getCheckpointWriteOrder()); dsCfg.setFileIOFactory(psCfg.getFileIOFactory());
.setStoragePath(in.readString()) .setCheckpointFrequency(in.readLong()) .setCheckpointThreads(in.readInt()) .setLockWaitTime((int) in.readLong()) .setWalHistorySize(in.readInt())