Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aurélien Vermylen
jio
Commits
3f60c4ab
Commit
3f60c4ab
authored
May 06, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicate storage documentation updated
parent
6466a083
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
docs/available_storages.rst
docs/available_storages.rst
+22
-1
No files found.
docs/available_storages.rst
View file @
3f60c4ab
...
...
@@ -205,18 +205,39 @@ Other split modes will be added later.
Replicate Storage
^^^^^^^^^^^^^^^^^
Work is in progress.
Replicates all data sent to the sub storages and synchronizes the sub storages
content in the background. The synchronization starts by doing an ``allDocs``
and tries to synchronize the touched documents as main priority, the documents
which needs to be synchronized after, and then the other documents.
The sub storages set in ``storage_list`` should return the same document id even
with the ``post`` method. We suggest to use the *GID Storage* on top of the sub
storages.
The ``cache_storage`` does not have to use the *GID* mechanism and is
optional. If set, *Replicate* will use it to store document which needs to be
synchronized (updated or deleted).
To synchronize a document in all sub storages, it will retrieve the document
``modified`` date metadata. The winner will be the document with the latest
date. If the other documents does not contain this metadata, then the winner
will be the one which has this property. If no document contains this date, the
winner will be the one retrieved by the first sub storages set in the
description.
.. code-block:: javascript
{
type: 'replicate',
cache_storage: <optional sub storage description>
storage_list: [
<sub storage description>,
...
]
}
**No unit tests are provided yet.**
Revision Based Handlers
-----------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment