Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
aa53911d
Commit
aa53911d
authored
Nov 15, 2019
by
Valery Sizov
Committed by
Achilleas Pipinellis
Nov 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document every step needed to replicate a new data type
parent
2979ac2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
doc/development/geo.md
doc/development/geo.md
+18
-0
No files found.
doc/development/geo.md
View file @
aa53911d
...
@@ -491,6 +491,24 @@ When some write actions are not allowed because the node is a
...
@@ -491,6 +491,24 @@ When some write actions are not allowed because the node is a
The database itself will already be read-only in a replicated setup,
The database itself will already be read-only in a replicated setup,
so we don't need to take any extra step for that.
so we don't need to take any extra step for that.
## Steps needed to replicate a new data type
As GitLab evolves, we constantly need to add new resources to the Geo replication system.
The implementation depends on resource specifics, but there are several things
that need to be taken care of:
-
Event generation on the primary site. Whenever a new resource is changed/updated, we need to
create a task for the Log Cursor.
-
Event handling. The Log Cursor needs to have a handler for every event type generated by the primary site.
-
Dispatch worker (cron job). Make sure the backfill condition works well.
-
Sync worker.
-
Registry with all possible states.
-
Verification.
-
Cleaner. When sync settings are changed for the secondary site, some resources need to be cleaned up.
-
Geo Node Status. We need to provide API endpoints as well as some presentation in the GitLab Admin Area.
-
Health Check. If we can perform some pre-cheсks and make node unhealthy if something is wrong, we should do that.
The
`rake gitlab:geo:check`
command has to be updated too.
## History of communication channel
## History of communication channel
The communication channel has changed since first iteration, you can
The communication channel has changed since first iteration, you can
...
...
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