Java Code Examples for org.apache.ignite.configuration.DataStorageConfiguration#setPageSize()
The following examples show how to use
org.apache.ignite.configuration.DataStorageConfiguration#setPageSize() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LargeEntryUpdateTest.java From ignite with Apache License 2.0 | 6 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); cfg.setPublicThreadPoolSize(THREAD_COUNT); DataStorageConfiguration mem = new DataStorageConfiguration(); mem.setPageSize(PAGE_SIZE); cfg.setDataStorageConfiguration(mem); CacheConfiguration[] ccfgs = new CacheConfiguration[CACHE_COUNT]; for (int i = 0; i < CACHE_COUNT; ++i) { CacheConfiguration ccfg = new CacheConfiguration(DEFAULT_CACHE_NAME); ccfg.setName(CACHE_PREFIX + i); ccfg.setAtomicityMode(CacheAtomicityMode.ATOMIC); ccfg.setCacheMode(CacheMode.PARTITIONED); ccfgs[i] = ccfg; } cfg.setCacheConfiguration(ccfgs); return cfg; }
Example 2
Source File: PageEvictionAbstractTest.java From ignite with Apache License 2.0 | 6 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration dbCfg = new DataStorageConfiguration(); DataRegionConfiguration plc = new DataRegionConfiguration(); // This will test additional segment allocation. plc.setInitialSize(SIZE / 2); plc.setMaxSize(SIZE); plc.setEmptyPagesPoolSize(EMPTY_PAGES_POOL_SIZE); plc.setEvictionThreshold(EVICTION_THRESHOLD); plc.setName(DEFAULT_POLICY_NAME); dbCfg.setDefaultDataRegionConfiguration(plc); dbCfg.setPageSize(PAGE_SIZE); cfg.setDataStorageConfiguration(dbCfg); return cfg; }
Example 3
Source File: IgnitePdsPageReplacementTest.java From ignite with Apache License 2.0 | 6 votes |
/** * @return DB config. */ private DataStorageConfiguration createDbConfig() { final DataStorageConfiguration memCfg = new DataStorageConfiguration(); DataRegionConfiguration memPlcCfg = new DataRegionConfiguration(); memPlcCfg.setInitialSize(MEMORY_LIMIT); memPlcCfg.setMaxSize(MEMORY_LIMIT); memPlcCfg.setPageEvictionMode(DataPageEvictionMode.RANDOM_LRU); memPlcCfg.setName("dfltDataRegion"); memPlcCfg.setPersistenceEnabled(true); memCfg.setPageSize(PAGE_SIZE); memCfg.setConcurrencyLevel(NUMBER_OF_SEGMENTS); memCfg.setDefaultDataRegionConfiguration(memPlcCfg); memCfg.setWalMode(WALMode.LOG_ONLY); return memCfg; }
Example 4
Source File: IgnitePdsSpuriousRebalancingOnNodeJoinTest.java From ignite with Apache License 2.0 | 6 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); cfg.setCommunicationSpi(new TestRecordingCommunicationSpi()); cfg.setConsistentId(igniteInstanceName); DataStorageConfiguration dsCfg = new DataStorageConfiguration(); dsCfg.setWalSegmentSize(4 * 1024 * 1024); dsCfg.setPageSize(1024); dsCfg.setDefaultDataRegionConfiguration(new DataRegionConfiguration(). setInitialSize(100L * 1024 * 1024). setMaxSize(200L * 1024 * 1024). setPersistenceEnabled(true)); cfg.setDataStorageConfiguration(dsCfg); cfg.setCacheConfiguration(new CacheConfiguration(DEFAULT_CACHE_NAME). setAtomicityMode(TRANSACTIONAL). setCacheMode(REPLICATED). setAffinity(new RendezvousAffinityFunction(false, PARTS))); return cfg; }
Example 5
Source File: GridInternalTaskUnusedWalSegmentsTest.java From ignite with Apache License 2.0 | 6 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); CacheConfiguration<Integer, Object> ccfg = new CacheConfiguration<>(DEFAULT_CACHE_NAME); ccfg.setAffinity(new RendezvousAffinityFunction(false, 32)); cfg.setCacheConfiguration(ccfg); DataStorageConfiguration dbCfg = new DataStorageConfiguration(); dbCfg.setPageSize(4 * 1024); cfg.setDataStorageConfiguration(dbCfg); dbCfg.setWalSegmentSize(1024 * 1024) .setWalHistorySize(Integer.MAX_VALUE) .setWalSegments(10) .setWalMode(WALMode.LOG_ONLY) .setDefaultDataRegionConfiguration(new DataRegionConfiguration() .setMaxSize(100 * 1024 * 1024) .setPersistenceEnabled(true)); return cfg; }
Example 6
Source File: IgniteCacheContinuousQueryBackupQueueTest.java From ignite with Apache License 2.0 | 6 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); CacheConfiguration ccfg = new CacheConfiguration(CACHE_NAME); ccfg.setCacheMode(PARTITIONED); ccfg.setAtomicityMode(ATOMIC); ccfg.setWriteSynchronizationMode(FULL_SYNC); ccfg.setBackups(1); cfg.setCacheConfiguration(ccfg); DataStorageConfiguration memCfg = new DataStorageConfiguration(); memCfg.setPageSize(16 * 1024); cfg.setDataStorageConfiguration(memCfg); return cfg; }
Example 7
Source File: CacheDataRegionConfigurationTest.java From ignite with Apache License 2.0 | 5 votes |
/** * Verifies that {@link IgniteCheckedException} is thrown when empty pages pool size is greater than * DataRegionConfiguration.getMaxSize() / DataStorageConfiguration.getPageSize() / 10. */ @Test public void testInvalidBigEmptyPagesPoolSize() { final int DFLT_PAGE_SIZE = 1024; long expectedMaxPoolSize; DataRegionConfiguration invCfg = new DataRegionConfiguration(); invCfg.setName("invCfg"); invCfg.setInitialSize(DFLT_MEM_PLC_SIZE); invCfg.setMaxSize(DFLT_MEM_PLC_SIZE); invCfg.setPageEvictionMode(DataPageEvictionMode.RANDOM_LRU); memCfg = new DataStorageConfiguration(); memCfg.setDataRegionConfigurations(invCfg); memCfg.setPageSize(DFLT_PAGE_SIZE); ccfg = new CacheConfiguration(DEFAULT_CACHE_NAME); expectedMaxPoolSize = invCfg.getMaxSize() / memCfg.getPageSize() / 10; if (expectedMaxPoolSize < Integer.MAX_VALUE) { // Setting the empty pages pool size greater than // DataRegionConfiguration.getMaxSize() / DataStorageConfiguration.getPageSize() / 10 invCfg.setEmptyPagesPoolSize((int)expectedMaxPoolSize + 1); memCfg.setDataRegionConfigurations(invCfg); checkStartGridException(IgniteCheckedException.class, "Failed to start processor: GridProcessorAdapter []"); } }
Example 8
Source File: IgniteCacheLargeValueExpireTest.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration dbCfg = new DataStorageConfiguration(); dbCfg.setPageSize(1024); cfg.setDataStorageConfiguration(dbCfg); return cfg; }
Example 9
Source File: DefaultPageSizeBackwardsCompatibilityTest.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration memCfg = new DataStorageConfiguration(); if (set16kPageSize) memCfg.setPageSize(16 * 1024); else memCfg.setPageSize(0); // Enforce default. DataRegionConfiguration memPlcCfg = new DataRegionConfiguration(); memPlcCfg.setMaxSize(100L * 1000 * 1000); memPlcCfg.setName("dfltDataRegion"); memPlcCfg.setPersistenceEnabled(true); memCfg.setDefaultDataRegionConfiguration(memPlcCfg); memCfg.setCheckpointFrequency(500); cfg.setDataStorageConfiguration(memCfg); CacheConfiguration ccfg1 = new CacheConfiguration(); ccfg1.setName(CACHE_NAME); ccfg1.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL); ccfg1.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC); ccfg1.setAffinity(new RendezvousAffinityFunction(false, 32)); if (!set16kPageSize) ccfg1.setDiskPageCompression(null); cfg.setCacheConfiguration(ccfg1); cfg.setConsistentId(gridName); return cfg; }
Example 10
Source File: IgnitePdsTaskCancelingTest.java From ignite with Apache License 2.0 | 5 votes |
/** * Default data storage configuration. */ private DataStorageConfiguration getDataStorageConfiguration() { DataStorageConfiguration dbCfg = new DataStorageConfiguration(); dbCfg.setPageSize(PAGE_SIZE); dbCfg.setFileIOFactory(new SlowIOFactory()); dbCfg.setDefaultDataRegionConfiguration(new DataRegionConfiguration() .setMaxSize(100 * 1024 * 1024) .setPersistenceEnabled(true)); return dbCfg; }
Example 11
Source File: IgniteChangeGlobalStateAbstractTest.java From ignite with Apache License 2.0 | 4 votes |
/** * @param gridName Grid name. */ @Override protected IgniteConfiguration getConfiguration(final String gridName) throws Exception { final IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration pCfg = new DataStorageConfiguration(); pCfg.setStoragePath(testName() + "/db"); pCfg.setWalArchivePath(testName() + "/db/wal/archive"); pCfg.setWalPath(testName() + "/db/wal"); pCfg.setPageSize(1024); pCfg.setConcurrencyLevel(64); pCfg.setWalMode(WALMode.LOG_ONLY); pCfg.setDefaultDataRegionConfiguration( new DataRegionConfiguration().setMaxSize(200L * 1024 * 1024).setPersistenceEnabled(true)); cfg.setDataStorageConfiguration(pCfg); return cfg; }
Example 12
Source File: IgniteDbAbstractTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @SuppressWarnings("unchecked") @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration dbCfg = new DataStorageConfiguration(); if (client) cfg.setClientMode(true); dbCfg.setConcurrencyLevel(Runtime.getRuntime().availableProcessors() * 4); if (isLargePage()) dbCfg.setPageSize(16 * 1024); dbCfg.setWalMode(WALMode.LOG_ONLY); dbCfg.setDefaultDataRegionConfiguration( new DataRegionConfiguration() .setPersistenceEnabled(true) .setMaxSize(DataStorageConfiguration.DFLT_DATA_REGION_INITIAL_SIZE) ); configure(dbCfg); cfg.setDataStorageConfiguration(dbCfg); CacheConfiguration ccfg = new CacheConfiguration(DEFAULT_CACHE_NAME); if (indexingEnabled()) ccfg.setIndexedTypes(Integer.class, DbValue.class); ccfg.setAtomicityMode(TRANSACTIONAL); ccfg.setWriteSynchronizationMode(FULL_SYNC); ccfg.setRebalanceMode(SYNC); ccfg.setAffinity(new RendezvousAffinityFunction(false, 32)); CacheConfiguration ccfg2 = new CacheConfiguration("non-primitive"); if (indexingEnabled()) ccfg2.setIndexedTypes(DbKey.class, DbValue.class); ccfg2.setAtomicityMode(TRANSACTIONAL); ccfg2.setWriteSynchronizationMode(FULL_SYNC); ccfg2.setRebalanceMode(SYNC); ccfg2.setAffinity(new RendezvousAffinityFunction(false, 32)); CacheConfiguration ccfg3 = new CacheConfiguration("large"); if (indexingEnabled()) ccfg3.setIndexedTypes(Integer.class, LargeDbValue.class); ccfg3.setAtomicityMode(TRANSACTIONAL); ccfg3.setWriteSynchronizationMode(FULL_SYNC); ccfg3.setRebalanceMode(SYNC); ccfg3.setAffinity(new RendezvousAffinityFunction(false, 32)); CacheConfiguration ccfg4 = new CacheConfiguration("tiny"); ccfg4.setAtomicityMode(TRANSACTIONAL); ccfg4.setWriteSynchronizationMode(FULL_SYNC); ccfg4.setRebalanceMode(SYNC); ccfg4.setAffinity(new RendezvousAffinityFunction(1, null)); CacheConfiguration ccfg5 = new CacheConfiguration("atomic"); if (indexingEnabled()) ccfg5.setIndexedTypes(DbKey.class, DbValue.class); ccfg5.setAtomicityMode(ATOMIC); ccfg5.setWriteSynchronizationMode(FULL_SYNC); ccfg5.setRebalanceMode(SYNC); ccfg5.setAffinity(new RendezvousAffinityFunction(false, 32)); if (!client) cfg.setCacheConfiguration(ccfg, ccfg2, ccfg3, ccfg4, ccfg5); cfg.setMarshaller(null); configure(cfg); return cfg; }
Example 13
Source File: IgniteCacheDatabaseSharedManager.java From ignite with Apache License 2.0 | 4 votes |
/** * @param memCfg Memory config. */ protected void checkPageSize(DataStorageConfiguration memCfg) { if (memCfg.getPageSize() == 0) memCfg.setPageSize(DFLT_PAGE_SIZE); }
Example 14
Source File: GridDataStorageConfigurationConsistencySelfTest.java From ignite with Apache License 2.0 | 3 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); DataStorageConfiguration memCfg = new DataStorageConfiguration(); // Nodes will have different page size. memCfg.setPageSize(DataStorageConfiguration.DFLT_PAGE_SIZE * (1 + getTestIgniteInstanceIndex(gridName))); cfg.setDataStorageConfiguration(memCfg); return cfg; }
Example 15
Source File: BigEntryQueryTest.java From ignite with Apache License 2.0 | 3 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration() throws Exception { IgniteConfiguration cfg = super.getConfiguration(); cfg.setIncludeEventTypes(EventType.EVT_CACHE_REBALANCE_PART_DATA_LOST); DataStorageConfiguration sCfg = new DataStorageConfiguration(); sCfg.setPageSize(1024 * 8); cfg.setDataStorageConfiguration(sCfg); return cfg; }
Example 16
Source File: IgnitePdsTransactionsHangTest.java From ignite with Apache License 2.0 | 3 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); BinaryConfiguration binaryCfg = new BinaryConfiguration(); binaryCfg.setCompactFooter(false); cfg.setBinaryConfiguration(binaryCfg); cfg.setPeerClassLoadingEnabled(true); TcpCommunicationSpi tcpCommSpi = new TcpCommunicationSpi(); tcpCommSpi.setSharedMemoryPort(-1); cfg.setCommunicationSpi(tcpCommSpi); TransactionConfiguration txCfg = new TransactionConfiguration(); txCfg.setDefaultTxIsolation(TransactionIsolation.READ_COMMITTED); cfg.setTransactionConfiguration(txCfg); DataRegionConfiguration memPlcCfg = new DataRegionConfiguration(); memPlcCfg.setName("dfltDataRegion"); memPlcCfg.setInitialSize(PAGE_CACHE_SIZE); memPlcCfg.setMaxSize(PAGE_CACHE_SIZE); memPlcCfg.setPersistenceEnabled(true); DataStorageConfiguration memCfg = new DataStorageConfiguration(); memCfg.setDefaultDataRegionConfiguration(memPlcCfg); memCfg.setWalHistorySize(1); memCfg.setCheckpointFrequency(CHECKPOINT_FREQUENCY); memCfg.setPageSize(PAGE_SIZE); cfg.setDataStorageConfiguration(memCfg); return cfg; }
Example 17
Source File: IgnitePdsNoActualWalHistoryTest.java From ignite with Apache License 2.0 | 3 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); CacheConfiguration<Integer, IndexedObject> ccfg = new CacheConfiguration<>(CACHE_NAME); ccfg.setAtomicityMode(CacheAtomicityMode.ATOMIC); ccfg.setRebalanceMode(CacheRebalanceMode.SYNC); ccfg.setAffinity(new RendezvousAffinityFunction(false, 32)); cfg.setCacheConfiguration(ccfg); DataStorageConfiguration dbCfg = new DataStorageConfiguration(); dbCfg.setPageSize(4 * 1024); cfg.setDataStorageConfiguration(dbCfg); dbCfg.setWalSegmentSize(4 * 1024 * 1024) .setWalHistorySize(2) .setWalSegments(10) .setWalMode(WALMode.LOG_ONLY) .setDefaultDataRegionConfiguration(new DataRegionConfiguration() .setMaxSize(100L * 1024 * 1024) .setPersistenceEnabled(true)); cfg.setMarshaller(null); BinaryConfiguration binCfg = new BinaryConfiguration(); binCfg.setCompactFooter(false); cfg.setBinaryConfiguration(binCfg); return cfg; }
Example 18
Source File: IgniteWalRecoveryPPCTest.java From ignite with Apache License 2.0 | 2 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); CacheConfiguration<Integer, IndexedObject> ccfg = new CacheConfiguration<>(CACHE_NAME_1); ccfg.setAtomicityMode(CacheAtomicityMode.ATOMIC); ccfg.setRebalanceMode(CacheRebalanceMode.SYNC); ccfg.setAffinity(new RendezvousAffinityFunction(false, 32)); cfg.setCacheConfiguration(ccfg); CacheConfiguration<Integer, IndexedObject> ccfg2 = new CacheConfiguration<>(CACHE_NAME_2); ccfg2.setAtomicityMode(CacheAtomicityMode.ATOMIC); ccfg2.setRebalanceMode(CacheRebalanceMode.SYNC); ccfg2.setAffinity(new RendezvousAffinityFunction(false, 32)); ccfg2.setDataRegionName(MEM_PLC_NO_PDS); cfg.setCacheConfiguration(ccfg, ccfg2); DataStorageConfiguration dbCfg = new DataStorageConfiguration(); dbCfg.setPageSize(4 * 1024); DataRegionConfiguration memPlcCfg = new DataRegionConfiguration(); memPlcCfg.setInitialSize(256L * 1024 * 1024); memPlcCfg.setMaxSize(256L * 1024 * 1024); memPlcCfg.setPersistenceEnabled(true); dbCfg.setDefaultDataRegionConfiguration(memPlcCfg); DataRegionConfiguration memPlcCfg2 = new DataRegionConfiguration(); memPlcCfg2.setName(MEM_PLC_NO_PDS); memPlcCfg2.setInitialSize(256L * 1024 * 1024); memPlcCfg2.setMaxSize(256L * 1024 * 1024); memPlcCfg2.setPersistenceEnabled(false); dbCfg.setDataRegionConfigurations(memPlcCfg2); dbCfg.setWalRecordIteratorBufferSize(1024 * 1024); dbCfg.setWalHistorySize(2); dbCfg.setWalMode(WALMode.LOG_ONLY); if (walSegmentSize != 0) dbCfg.setWalSegmentSize(walSegmentSize); cfg.setDataStorageConfiguration(dbCfg); cfg.setMarshaller(null); BinaryConfiguration binCfg = new BinaryConfiguration(); binCfg.setCompactFooter(false); cfg.setBinaryConfiguration(binCfg); return cfg; }
Example 19
Source File: WalRecoveryTxLogicalRecordsTest.java From ignite with Apache License 2.0 | 2 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); CacheConfiguration<Integer, IndexedValue> ccfg = new CacheConfiguration<>(CACHE_NAME); ccfg.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL); ccfg.setRebalanceMode(CacheRebalanceMode.SYNC); ccfg.setAffinity(new RendezvousAffinityFunction(false, PARTS)); ccfg.setIndexedTypes(Integer.class, IndexedValue.class); if (extraCcfg != null) cfg.setCacheConfiguration(ccfg, new CacheConfiguration<>(extraCcfg)); else cfg.setCacheConfiguration(ccfg); DataStorageConfiguration dbCfg = new DataStorageConfiguration(); dbCfg.setPageSize(pageSize); dbCfg.setWalHistorySize(WAL_HIST_SIZE); dbCfg.setDefaultDataRegionConfiguration(new DataRegionConfiguration() .setMaxSize(100L * 1024 * 1024) .setPersistenceEnabled(true)); if (checkpointFreq != null) dbCfg.setCheckpointFrequency(checkpointFreq); cfg.setDataStorageConfiguration(dbCfg); cfg.setMarshaller(null); BinaryConfiguration binCfg = new BinaryConfiguration(); binCfg.setCompactFooter(false); cfg.setBinaryConfiguration(binCfg); return cfg; }
Example 20
Source File: IgniteWalRecoveryTest.java From ignite with Apache License 2.0 | 2 votes |
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); cfg.setCommunicationSpi(new TestRecordingCommunicationSpi()); CacheConfiguration<Integer, IndexedObject> ccfg = renamed ? new CacheConfiguration<>(RENAMED_CACHE_NAME) : new CacheConfiguration<>(CACHE_NAME); ccfg.setAtomicityMode(CacheAtomicityMode.ATOMIC); ccfg.setRebalanceMode(CacheRebalanceMode.SYNC); ccfg.setAffinity(new RendezvousAffinityFunction(false, PARTS)); ccfg.setNodeFilter(new RemoteNodeFilter()); ccfg.setIndexedTypes(Integer.class, IndexedObject.class); CacheConfiguration<Integer, IndexedObject> locCcfg = new CacheConfiguration<>(LOC_CACHE_NAME); locCcfg.setCacheMode(CacheMode.LOCAL); locCcfg.setIndexedTypes(Integer.class, IndexedObject.class); CacheConfiguration<Object, Object> cfg1 = new CacheConfiguration<>("cache1") .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL) .setAffinity(new RendezvousAffinityFunction(false, 32)) .setCacheMode(CacheMode.PARTITIONED) .setRebalanceMode(CacheRebalanceMode.SYNC) .setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC) .setBackups(0); CacheConfiguration<Object, Object> cfg2 = new CacheConfiguration<>(cfg1).setName("cache2").setRebalanceOrder(10); cfg.setCacheConfiguration(ccfg, locCcfg, cfg1, cfg2); DataStorageConfiguration dbCfg = new DataStorageConfiguration(); dbCfg.setPageSize(4 * 1024); DataRegionConfiguration memPlcCfg = new DataRegionConfiguration(); memPlcCfg.setName("dfltDataRegion"); memPlcCfg.setInitialSize(256L * 1024 * 1024); memPlcCfg.setMaxSize(256L * 1024 * 1024); memPlcCfg.setPersistenceEnabled(true); dbCfg.setDefaultDataRegionConfiguration(memPlcCfg); dbCfg.setWalRecordIteratorBufferSize(1024 * 1024); dbCfg.setWalHistorySize(2); if (logOnly) dbCfg.setWalMode(WALMode.LOG_ONLY); if (walSegmentSize != 0) dbCfg.setWalSegmentSize(walSegmentSize); dbCfg.setWalSegments(walSegments); dbCfg.setWalPageCompression(walPageCompression); dbCfg.setCheckpointFrequency(checkpointFrequency); cfg.setDataStorageConfiguration(dbCfg); BinaryConfiguration binCfg = new BinaryConfiguration(); binCfg.setCompactFooter(false); cfg.setBinaryConfiguration(binCfg); if (!getTestIgniteInstanceName(0).equals(gridName)) cfg.setUserAttributes(F.asMap(HAS_CACHE, true)); if (customFailureDetectionTimeout > 0) cfg.setFailureDetectionTimeout(customFailureDetectionTimeout); return cfg; }