Uploaded image for project: 'Replication'
  1. Replication
  2. REPLICAT-241

Store the replication queues and keys in a blob store

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 2.4.2
    • Generic
    • Unknown

    Description

      Everything the replication keeps is currently stored in the local permanent directory (<permdir>/replication/, see ReplicationFileStore):

      • the sender queues: the messages waiting to be sent to each target instance (sender/), along with the queue index and head offset
      • the receiver queue: the received messages waiting to be handled (receiver/)
      • the certified key pairs used to sign the messages (ReplicationCertifiedKeyPairStore)

      To make possible to run XWiki without any persistent file storage, this data should be moved to a blob store (XCOMMONS-3250). Without that, all the messages waiting to be sent or handled are lost (and new key pairs are generated) each time the permanent directory is lost.

      Cluster

      The tricky part is that, once in a shared storage, the queues become visible to all the members of a cluster, while each member currently assumes they are its own: for example, ReplicationReceiverMessageQueue loads all the stored messages at startup and handles them, and each member sends the content of its sender queues. Just moving the files to a shared blob store would thus lead to messages being sent or handled several times.

      So this also requires making sure that each message is sent and handled by a single cluster member (for example by clearly tracking which member owns or is currently processing a message, and what happens to the messages of a member which left the cluster).

      Note that the blob store API is only available since XWiki 17.10.0 while the extension currently requires XWiki 14.10.7, so this means either upgrading the minimum required XWiki version, or making the blob store support optional.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: