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
- is related to
-
XCOMMONS-3933 Allow storing X509 keys and certificates in a blob store
-
- Open
-
- relates to
-
XWIKI-22847 Make possible to use XWiki without any persistent file storage
-
- Open
-
-
XCOMMONS-3250 Make as easy as possible for various features to use an object store
-
- Closed
-