Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-63556

Implement semi-async cache replication for EhCache in DC

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Problem:
      Both, cache replication and cluster nodes discovery in EhCache are sequential and synchronous.
      Time required to replicate values is proportional to number of nodes in cluster.

      com.atlassian.cache.ehcache.replication.rmi.RMISynchronousCacheReplicator is a wrapper for net.sf.ehcache.distribution.RMISynchronousCacheReplicator

      We could use RMIAsynchronousCacheReplicator but it introduces numerous problems with backpressure and keeping soft references to objects waiting for replication.

      Solution:
      Implement semi-async replication where:

      • fire async replication tasks for each node
      • block until all tasks are done

      Implement parallel cluster nodes discovery

      It would significantly reduce cache replication time for large clusters

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dchan David Chan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: