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

Improve calculation of poll interval for replicas

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.0, 8.11.2
    • 9.2
    • replication (java)
    • None

    Description

      Currently the polling for replication is fairly simply, but can lead to polling too often. As an example if you had the following config for commits:

      <autoCommit>
          <maxTime>15000</maxTime>
          <openSearcher>false</openSearcher>
      </autoCommit>
      
      <autoSoftCommit>
          <maxTime>60000</maxTime>
      </autoSoftCommit> 

      The current logic would setup polling to be half of the autoCommit time, so poll every 7.5 seconds. However since a new searcher isn't opened, there will only be changes reflected every 60 seconds on the leader. We can make this logic a bit smarter knowing that the replication handler won't reflect changes until a new searcher is opened.

      Attachments

        Activity

          People

            jsweeney Justin Sweeney
            jsweeney Justin Sweeney
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m