Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2968

Add an option to read the Clustering Journal from a different source than the rest of the clustering info

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.9
    • Fix Version/s: None
    • Component/s: clustering, jackrabbit-core
    • Labels:

      Description

      This patch adds the possibility to read (but not write) the Cluster JOURNAL from a different source than the rest of the cluster information. This makes it possible to setup a master/slave DB setup, where everything cluster related is read from the slave, but writes to the master. It reads the actual data also from the slave and assumes that this jackrabbit instance never does any writes (except for updating the cluster index position in the DB). We have to read the Cluster Journal from the slave to guarantee a consistent state

      More info why and how is here
      http://blog.liip.ch/archive/2011/05/04/how-to-make-jackrabbit-globally-distributable-fail-safe-and-scalable-in-one-go.html

      I didn't write any tests yet, if you can point me, where I should add them, I'll gladly do them.

      Would be great, if we could integrate that in any of the future Jackrabbit releases.

      It's of course fully backwards compatible, nothing changes, if you don't sepcify
      <param name="dataSourceNameJournalRead">
      in repository.xml

        Attachments

        1. database-slave-local-revision-on-file.diff
          20 kB
          Bart van der Schans
        2. 0001-JCR-2968-Add-an-option-to-read-the-Clustering-Journa.patch
          8 kB
          Jukka Zitting
        3. patch_commit_2eed44310e71.patch
          4 kB
          Christian Stocker

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chregu Christian Stocker
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: