Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6521

CloudSolrClient should synchronize cache cluster state loading

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 5.0, 6.0
    • SolrCloud

    Description

      Under heavy load-testing with the new solrj client that caches the cluster state instead of setting a watcher, I started seeing lots of zk connection loss on the client-side when refreshing the CloudSolrServer collectionStateCache, and this was causing crazy client-side 99.9% latency (~15 sec). I swapped the cache out with guava's LoadingCache (which does locking to ensure only one thread loads the content under one key while the other threads that want the same key wait) and the connection loss went away and the 99.9% latency also went down to just about 1 sec.

      Attachments

        1. SOLR-6521.patch
          5 kB
          Noble Paul
        2. SOLR-6521.patch
          4 kB
          Noble Paul

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              mewmewball Jessica Cheng Mallet
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: