Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-9540

JBOSS- Cache Preload is not loading data into cache on server startup , after introducing two cache clusters

    XMLWordPrintable

Details

    Description

      I am using JBoss cache version -3.2.0.GA with JBOSS AS 5.1.0 GA And . My applications runs on two servers and creates two cache instances on each sever. I have two cache clusters JBOSS-cluster-Live and JBOSS-cluster-Proving. JBOSS-cluster-Live includes cache-1 on server-1 and cache-1 on sever-2 similarly JBOSS-cluster-Proving includes cache-2 on server-1 and cache-2 on sever-2. Application workes fine if I keep one server up. BUT when I restart both the server together it doesn't load the persisted data.

      where as if i keep all 4 cache instance in one cluster then it loads the persisted state on start up.

      here in my configurations

      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

      cacheapi.cacheConfig.passivation=false
      cacheapi.cacheConfig.preload=/
      cacheapi.cacheConfig.cacheMode=REPL_SYNC
      cacheapi.cacheConfig.shared=false
      cacheapi.cacheConfig.singletonStoreEnabled=false
      cacheapi.cacheConfig.singletonStoreClass=org.jboss.cache.loader.SingletonStoreCacheLoader
      cacheapi.cacheConfig.jGroupsConfigLocation=file:/opt/bfcs/config/jgroups/replSync-service.xml
      cacheapi.cacheConfig.clusterName=Jboss-cluster-Default
      cacheapi.cacheConfig.fetchInMemoryState=false
      cacheapi.cacheConfig.isolationLevelString=READ_COMMITTED
      cacheapi.cacheConfig.async=false
      cacheapi.cacheConfig.purgeOnStartup=false
      cacheapi.cacheConfig.fetchPersistentState=true
      cacheapi.cacheConfig.checkCharacterPortability=false
      cacheapi.cacheConfig.ignoreModifications=false
      cacheapi.cacheConfig.location=/opt/cacheData/default

      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

      and jgroup's config file

      <config>
      <UDP singleton_name="udp_sync" mcast_port="${jboss.jgroups.udp_sync.mcast_port:45699}" mcast_addr="${jboss.jgroups.udp_sync.mcast_addr:229.11.11.11}" bind_port="${jboss.jgroups.udp_sync.bind_port:55250}" tos="8" ucast_recv_buf_size="20000000" ucast_send_buf_size="640000" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000" loopback="true" discard_incompatible_packets="true" enable_bundling="false" ip_ttl="${jgroups.udp.ip_ttl:2}" enable_diagnostics="${jboss.jgroups.enable_diagnostics:true}" diagnostics_addr="${jboss.jgroups.diagnostics_addr:224.0.75.75}" diagnostics_port="${jboss.jgroups.diagnostics_port:7500}" thread_pool.enabled="true" thread_pool.min_threads="8" thread_pool.max_threads="200" thread_pool.keep_alive_time="5000" thread_pool.queue_enabled="true" thread_pool.queue_max_size="1000" thread_pool.rejection_policy="discard" oob_thread_pool.enabled="true" oob_thread_pool.min_threads="20" oob_thread_pool.max_threads="200" oob_thread_pool.keep_alive_time="1000" oob_thread_pool.queue_enabled="false" oob_thread_pool.rejection_policy="discard" />
      <PING timeout="2000" num_initial_members="3" />
      <MERGE2 max_interval="100000" min_interval="20000" />
      <FD_SOCK start_port="${jboss.jgroups.udp_sync.fd_sock_port:54250}" />
      <FD timeout="6000" max_tries="5" shun="true" />
      <VERIFY_SUSPECT timeout="1500" />
      <BARRIER />
      <pbcast.NAKACK use_mcast_xmit="true" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800" discard_delivered_msgs="true" />
      <UNICAST timeout="300,600,1200,2400,3600" />
      <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" max_bytes="400000" />
      <VIEW_SYNC avg_send_interval="10000" />
      <pbcast.GMS print_local_addr="true" join_timeout="3000" shun="true" view_bundling="true" view_ack_collection_timeout="5000" resume_task_timeout="7500" />
      <FRAG2 frag_size="60000" />

      • <!-- pbcast.STREAMING_STATE_TRANSFER/
        -->
        <pbcast.STATE_TRANSFER />
        <pbcast.FLUSH timeout="0" start_flush_timeout="10000" />
        </config>

      please help me in resolving this issue....

      Pragya

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            pragyakrish Pragya Mehta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: