Hello! Since you have two storages (Persistent store and Cassandra) I would like to ask which one you are expecting to be restored from?
Regards, -- Ilya Kasnacheev ср, 6 нояб. 2019 г. в 12:23, slut_hunter <davidenko.serge...@gmail.com>: > Good afternoon. Help me please. I use a cluster of 3 nodes 2,7,6 with the > settings <property name = "persistenceEnabled" value = "true" /> > but if I turn off 1 node and turn it back on, the cluster does not restore > the cache from the storage > There is 1 warning in the logs Persistence store is configured, but both > read-through and write-through are disabled. > Tell me how to properly restore the cache from storage. > > Full config: > > > Java client example: > String cacheName = > ContactRepository.prepareCacheName(orgId); > CacheConfiguration cacheConfig = new CacheConfiguration(cacheName); > cacheConfig.setCacheMode(CacheMode.PARTITIONED); > cacheConfig.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL); > > cacheConfig.setBackups(0); > ContactCassandraCacheStoreExFactory factory = new > ContactCassandraCacheStoreExFactory(); > factory.setDataSource(cassandraSource); > factory.setThreadsCount(4); > factory.setCacheName(cacheName); > factory.setLoadCacheConfig(new LoadCacheConfig(keyspace, table)); > cacheConfig.setCacheStoreFactory(factory); > cacheConfig.setIndexedTypes(Integer.class, ContactDto.class); > IgniteConfiguration cfg = new IgniteConfiguration(); > // Ignite persistence configuration. > DataStorageConfiguration storageCfg = new > DataStorageConfiguration(); > > storageCfg.getDefaultDataRegionConfiguration().setPersistenceEnabled(true); > cfg.setDataStorageConfiguration(storageCfg); > cfg.setIgniteInstanceName("springDataNode"); > cfg.setWorkDirectory("/tmp/ignite"); > > cfg.setClientMode(clientMode); > cfg.setPeerClassLoadingEnabled(true); > > cfg.setMetricsLogFrequency(0); > cfg.setFailureDetectionTimeout(560_000); > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >