Hi,
Please properly subscribe to the mailing list so that the community can
receive email notifications for your messages. To subscribe, send empty
email to [email protected] and follow simple instructions in
the reply.
Marco wrote
> Hi,
> I'm using ignite 2.1 to simulate realtime adobe traffic analytics,
> currently I have 10+ caches like raws, cookies, sessions, pages, products
> etc. they simply works well, but because of the data size, I don't want to
> save all of them, is there any way to simply persist a particular cache to
> disk?
>
>
>
> <property name="persistentStoreConfiguration">
>
> <bean
> class="org.apache.ignite.configuration.PersistentStoreConfiguration"/>
>
> </property>
> this.ignite=Ignition.ignite();
> IgniteConfiguration ic = this.ignite.configuration();
> PersistentStoreConfiguration pc =
> ic.getPersistentStoreConfiguration();
> pc.setPersistentStorePath("E:\\project\\ignite\\localCache");
> this.ignite.active(true);
> this.cacheEntries =
> this.ignite.getOrCreateCache(init_entry("RawEntries"));
> this.cacheSessions =
> this.ignite.getOrCreateCache(init_sessions("Sessions"));
> this.cachePages =
> this.ignite.getOrCreateCache(init_pages("Pages"));
> .......
Right now, if persistence is enabled, all caches are persisted. This will be
improved in next releases.
Also keep in mind that configuration changes can't be done after node start.
So your pc.setPersistentStorePath invocation will not have any affect, you
should set the path in the initial configuration.
-Val
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/In-ignite-2-1-persist-a-particular-cache-rather-than-all-caches-tp16258p16265.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.