You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Kobe <rk...@mailcity.com> on 2016/02/10 23:25:31 UTC
Immediate flush of cache into backing store
I am using an IGFS backed by local filesystem. For the purposes of
verificaiton, I would like to
make sure that the content is being written successfully (of course I could
also read content back and ensure its written).
However, I would like to turn on an "immediate flush" option whereby the
content written to IGFS is immediately flushed to the backing store. How do
I do this? Clearly, I will turn it back off during production.
thanks
/Kobe
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Immediate-flush-of-cache-into-backing-store-tp2942.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Immediate flush of cache into backing store
Posted by vkulichenko <va...@gmail.com>.
Hi Kobe,
Yes, I was talking about IgfsMode, sorry for the confusion. Default is
DUAL_ASYNC.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Immediate-flush-of-cache-into-backing-store-tp2942p2969.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Immediate flush of cache into backing store
Posted by Kobe <rk...@mailcity.com>.
Sorry, I see a FileSystemConfiguration defaultMode property:
fs.setDefaultMode(IgfsMode.DUAL_SYNC);
What is the default value of this setting?
Thanks!
/Kobe
Kobe wrote
> Val,
>
> I assume you are referring to CacheWriteSynchronizationMode? I do not see
> the
> mode DUAL_ASYNC. I see only FULL_ASYNC, FULL_SYNC and PRIMARY_ASYNC.
>
> AM I missing something?
>
>
>
*
> CacheConfiguration datacache = new CacheConfiguration ();
> datacache.setName("igfs-data");
> datacache.setCacheMode(CacheMode.REPLICATED);
> datacache.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
>
> datacache.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
> datacache.setBackups(0);
> datacache.setAffinityMapper( new IgfsGroupDataBlocksKeyMapper
> (512));
*
>
> /Kobe
> vkulichenko wrote
>> Hi Kobe,
>>
>> It sounds like you're using DUAL_ASYNC IGFS mode, is this the case? To
>> update the secondary file system synchronously, simply switch to
>> DUAL_SYNC in the configuration. Is this what you're looking for?
>>
>> -Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Immediate-flush-of-cache-into-backing-store-tp2942p2967.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Immediate flush of cache into backing store
Posted by Kobe <rk...@mailcity.com>.
Val,
I assume you are referring to CacheWriteSynchronizationMode? I do not see
the
mode DUAL_ASYNC. I see only FULL_ASYNC, FULL_SYNC and PRIMARY_ASYNC.
AM I missing something?
* CacheConfiguration datacache = new CacheConfiguration ();
datacache.setName("igfs-data");
datacache.setCacheMode(CacheMode.REPLICATED);
datacache.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
datacache.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
datacache.setBackups(0);
datacache.setAffinityMapper( new IgfsGroupDataBlocksKeyMapper
(512));*
/Kobe
vkulichenko wrote
> Hi Kobe,
>
> It sounds like you're using DUAL_ASYNC IGFS mode, is this the case? To
> update the secondary file system synchronously, simply switch to DUAL_SYNC
> in the configuration. Is this what you're looking for?
>
> -Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Immediate-flush-of-cache-into-backing-store-tp2942p2966.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Immediate flush of cache into backing store
Posted by vkulichenko <va...@gmail.com>.
Hi Kobe,
It sounds like you're using DUAL_ASYNC IGFS mode, is this the case? To
update the secondary file system synchronously, simply switch to DUAL_SYNC
in the configuration. Is this what you're looking for?
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Immediate-flush-of-cache-into-backing-store-tp2942p2943.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.