Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2106

Optimize reads from secondaries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • core, mongomk

    Description

      OAK-1645 introduced support for reads from secondaries under certain
      conditions. The current implementation checks the _lastRev on a potentially
      cached parent document and reads from a secondary if it has not been
      modified in the last 6 hours. This timespan is somewhat arbitrary but
      reflects the assumption that the replication lag of a secondary shouldn't
      be more than 6 hours.

      This logic should be optimized to take the actual replication lag into
      account. MongoDB provides information about the replication lag with
      the command rs.status().

      Attachments

        1. OAK-2106.patch
          45 kB
          Tomek Rękawek

        Issue Links

          Activity

            People

              tomek.rekawek Tomek Rękawek
              mreutegg Marcel Reutegger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: