Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-9561

Optimize affinity initialization for started cache groups

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.8
    • cache
    • Docs Required

    Description

      At the end of

      org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager#processCacheStartRequests 
      

      method we're initializing affinity for cache groups starting at current exchange.
      We do it one-by-one and synchronously wait for AffinityFetchResponse for each of the starting groups. This is inefficient. We may parallelize this process and speed up caches starting process.

      NOTE: There are also a lot of affinity recalculation methods in: 

      CacheAffinitySharedManager
      

      which all looks like iterate over cache groups and recalculate affinity for all of them. We can easily speed-up each of such methods executing in parallel affinity re-calculation for each of cache groups.

      Attachments

        Issue Links

          Activity

            People

              jokser Pavel Kovalenko
              jokser Pavel Kovalenko
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: