ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kobe <...@mailcity.com>
Subject IGFS with local filesystem: Lifecycle of content
Date Fri, 04 Dec 2015 17:26:47 GMT

Hello..

I have an IGFS instance managing content with a local file system backing
store.
I would like to understand the lifecycle of content in IGFS:
  1: Application A generates content and writes to IGFS
  2: IGFS writes to backing store (does this happen right away? can it be
batched?)
  3: Application B reads the content (the file) off IGFS. (I assume the
content will be delivered off the data cache and no reads from backing store
will be performed?)
  4: Application B deletes the content (is the backing store updated right
away?)

Any help gratefully appreciated,

thanx,

/Kobe

[CODE]

        IgfsSecondaryFileSystem igfsSec = new
IgniteHadoopIgfsSecondaryFileSystem("file:///", null, "data");
//
      dataCacheCfg.setName("partitioned");
        dataCacheCfg.setCacheMode(CacheMode.PARTITIONED);
        dataCacheCfg.setNearConfiguration(null);
       
dataCacheCfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
        dataCacheCfg.setAffinityMapper(new
IgfsGroupDataBlocksKeyMapper(128));
        dataCacheCfg.setBackups(0);
        dataCacheCfg.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
//...
        metaCacheCfg.setName("replicated");
        metaCacheCfg.setCacheMode(CacheMode.REPLICATED);
       
metaCacheCfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);
  ///...
      try (Ignite ig = Ignition.start(igCfg)) {
            IgniteFileSystem igfs = ig.fileSystem("myigfs");

        // Create, manage data   
   
[/CODE]



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IGFS-with-local-filesystem-Lifecycle-of-content-tp2141.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message