Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-135

Remote JCS Implemented

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: jcs-1.3
    • Fix Version/s: jcs-2.0-beta-2
    • Component/s: RMI Remote Cache
    • Labels:
      None
    • Environment:
      Windows

      Description

      HI I am using Remote JCS because of its client server arch. I am finding an wired issue on the server , when element are added , updated or deleted then changes are not reflected on clients i.e if I add a element on server then i can fetch on client but when i try to update or delete it then these changes are not reflected on server . Similarly when i add element from client then element are added on server and they are spooled to disk but i can't fetch them . But if I perform put ,remove operation form between clients
      every thing is working fine but i can't access them on server as they are storing within disk of its .

      1. Registry used to register and provide the
      2. IRemoteCacheService service.
        registry.host=10.71.71.18
        registry.port=1111
      3. call back port to local caches.
        remote.cache.service.port=1102
      4. rmi socket factory timeout
        remote.cache.rmiSocketFactoryTimeoutMillis=5000
      5. cluster setting
        remote.cluster.LocalClusterConsistency=true
        remote.cluster.AllowClusterGet=true

      #Define mp3Cache Region

      jcs.region.mp3Cache=DC
      jcs.region.mp3Cache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
      jcs.region.mp3Cache.cacheattributes.MaxObjects=10
      jcs.region.mp3Cache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
      jcs.region.mp3Cache.cacheattributes.UseMemoryShrinker=true
      jcs.region.mp3Cache.cacheattributes.MaxMemoryIdleTimeSeconds=5
      jcs.region.mp3Cache.cacheattributes.ShrinkerIntervalSeconds=30
      jcs.region.mp3Cache.cacheattributes.MaxSpoolPerRun=500
      jcs.region.mp3Cache.elementattributes=org.apache.jcs.engine.ElementAttributes
      jcs.region.mp3Cache.elementattributes.IsEternal=true
      jcs.region.mp3Cache.elementattributes.MaxLifeSeconds=7
      jcs.region.mp3Cache.elementattributes.IdleTime=1

      jcs.region.mp3Cache.elementattributes.IsSpool=true
      jcs.region.mp3Cache.elementattributes.IsRemote=true
      jcs.region.mp3Cache.elementattributes.IsLateral=true

      #=============================================================================================================

      1. AVAILABLE AUXILIARY CACHES
        jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
        jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
        jcs.auxiliary.DC.attributes.DiskPath=e:/temp
        jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000000
        jcs.auxiliary.DC.attributes.MaxKeySize=-1
        jcs.auxiliary.DC.attributes.MaxRecycleBinSize=5000
        jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
        jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60

      CLIENT CONFIGURATION
      ================================================
      #Define mp3Cache Region

      jcs.region.mp3Cache=DC,RFailover
      jcs.region.mp3Cache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
      jcs.region.mp3Cache.cacheattributes.MaxObjects=10
      jcs.region.mp3Cache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
      jcs.region.mp3Cache.cacheattributes.UseMemoryShrinker=true
      jcs.region.mp3Cache.cacheattributes.MaxMemoryIdleTimeSeconds=5
      jcs.region.mp3Cache.cacheattributes.ShrinkerIntervalSeconds=30
      jcs.region.mp3Cache.cacheattributes.MaxSpoolPerRun=500
      jcs.region.mp3Cache.elementattributes=org.apache.jcs.engine.ElementAttributes
      jcs.region.mp3Cache.elementattributes.IsEternal=true
      jcs.region.mp3Cache.elementattributes.MaxLifeSeconds=7
      jcs.region.mp3Cache.elementattributes.IdleTime=1

      jcs.region.mp3Cache.elementattributes.IsSpool=true
      jcs.region.mp3Cache.elementattributes.IsRemote=true
      jcs.region.mp3Cache.elementattributes.IsLateral=true

      #=============================================================================================================

      1. AVAILABLE AUXILIARY CACHES
        jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
        jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
        jcs.auxiliary.DC.attributes.DiskPath=c:/temp
        jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000000
        jcs.auxiliary.DC.attributes.MaxKeySize=-1
        jcs.auxiliary.DC.attributes.MaxRecycleBinSize=5000
        jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
        jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60
      1. Client configuration
        ===============================================
      1. Remote RMI Cache set up to failover

      jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
      jcs.auxiliary.RFailover.attributes=org.apache.jcs.auxiliary.remote.RemoteCacheAttributes
      jcs.auxiliary.RFailover.attributes.FailoverServers=10.71.71.18:1111
      jcs.auxiliary.RFailover.attributes.RemoveUponRemotePut=true
      jcs.auxiliary.RFailover.attributes.GetOnly=false

      Please guys let me know where i am going wrong.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tv Thomas Vandahl
                Reporter:
                mgmankush Ankush
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: