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
7961c7d9
Commit
7961c7d9
authored
Oct 27, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ee into ce_upstream
parents
0e885485
9273de85
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
256 additions
and
124 deletions
+256
-124
.gitlab-ci.yml
.gitlab-ci.yml
+8
-3
CHANGELOG-EE.md
CHANGELOG-EE.md
+5
-4
doc/gitlab-geo/README.md
doc/gitlab-geo/README.md
+28
-12
doc/gitlab-geo/configuration.md
doc/gitlab-geo/configuration.md
+214
-104
doc/gitlab-geo/database.md
doc/gitlab-geo/database.md
+1
-1
doc/gitlab-geo/img/geo-nodes-screen.png
doc/gitlab-geo/img/geo-nodes-screen.png
+0
-0
doc/gitlab-geo/img/geo_nodes_add_new.png
doc/gitlab-geo/img/geo_nodes_add_new.png
+0
-0
No files found.
.gitlab-ci.yml
View file @
7961c7d9
...
...
@@ -302,15 +302,20 @@ coverage:
-
coverage/assets/
# Trigger docs build
# https://gitlab.com/gitlab-com/doc-gitlab-com/blob/master/README.md#deployment-process
trigger_docs
:
stage
:
post-test
before_script
:
[]
image
:
"
alpine"
before_script
:
-
apk update && apk add curl
variables
:
GIT_STRATEGY
:
none
cache
:
{}
artifacts
:
{}
script
:
-
"
curl
-X
POST
-F
token=${DOCS_TRIGGER_TOKEN}
-F
ref=master
https://gitlab.com/api/v3/projects/38069/trigger/builds"
-
"
curl
-X
POST
-F
token=${DOCS_TRIGGER_TOKEN}
-F
ref=master
-F
variables[PROJECT]=ee
https://gitlab.com/api/v3/projects/38069/trigger/builds"
only
:
-
master
-
master
@gitlab-org/gitlab-ee
# Notify slack in the end
...
...
CHANGELOG-EE.md
View file @
7961c7d9
Please view this file on the master branch, on stable branches it's out of date.
## 8.1
3.1
## 8.1
4.0 (2016-11-22)
-
Fix Elasticsearch::Transport::Transport::Errors::BadRequest when ES is enabled. #21036
-
Hides multiple board actions if user doesnt have permissions
## 8.13.0 (2016-10-22)
## 8.13.1 (2016-10-25)
-
Hide multiple board actions if user doesnt have permissions. !816
-
Fix Elasticsearch::Transport::Transport::Errors::BadRequest when ES is enabled. !818
## 8.13.0 (2016-10-22)
-
Cache the last usage data to avoid unicorn timeouts
-
Add user activity table and service to query for active users
-
Fix 500 error updating mirror URLs for projects
...
...
doc/gitlab-geo/README.md
View file @
7961c7d9
...
...
@@ -20,8 +20,6 @@ locations as a read-only fully operational version.
-
[
How long does it take to have a commit replicated to a secondary node?
](
#how-long-does-it-take-to-have-a-commit-replicated-to-a-secondary-node
)
-
[
What happens if the SSH server runs at a different port?
](
#what-happens-if-the-ssh-server-runs-at-a-different-port
)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## Overview
If you have two or more teams geographically spread out, but your GitLab
...
...
@@ -49,19 +47,35 @@ GitLab Geo requires some additional work installing and configuring your
instance, than a normal setup.
There are a couple of things you need to do in order to have one or more GitLab
Geo instances. Follow the steps below in the order that they appear:
Geo instances. Follow the steps below in the
**exact order**
that they appear:
1.
Follow the instructions to
[
install GitLab Enterprise Edition
][
install-ee
]
on the server that will serve as the secondary Geo node, but don't further
configure GitLab as authentication will be handled by the primary node (more
on this in the configuration step).
1.
[
Setup a database replication
](
database.md
)
in
`primary <-> secondary (read-only)`
topology.
1.
[
Configure GitLab
](
configuration.md
)
and set the primary and secondary nodes.
## After setup
1.
Install GitLab Enterprise Edition on the server that will serve as the
secondary Geo node
1.
[
Setup a database replication
](
database.md
)
in
`primary <-> secondary (read-only)`
topology
1.
[
Configure GitLab
](
configuration.md
)
and set the primary and secondary nodes
After you set up the database replication and configure the GitLab Geo nodes,
there are a few things to consider:
1.
When you create a new project in the primary node, the Git repository will
appear in the secondary only _after_ the first
`git push`
1.
To fetch from the secondary node, a separate remote URL must be set in your
Git repository locally
appear in the secondary only _after_ the first
`git push`
.
1.
You need an extra step to be able to fetch code from the
`secondary`
and push
to
`primary`
:
1. Clone your repository as you would normally do from the `secondary` node
1. Change the remote push URL following this example:
```bash
git remote set-url --push origin git@primary.gitlab.example.com:user/repo.git
```
> **Important**: The initialization of a new Geo secondary node requires data
to be copied from the primary, as there is no backfill feature bundled with it.
See more details in the
[
Configure GitLab
](
configuration.md
)
step.
## Current limitations
...
...
@@ -78,8 +92,8 @@ There are limitations to what we replicate (see Current limitations).
In an extreme data-loss situation you can make a secondary Geo into your
primary, but this is not officially supported yet.
If you still want to proceed, see our step-by-step instructions on how to
manually
[
promote a secondary node
](
disaster-recovery.md
)
into primary.
If you still want to proceed, see our step-by-step instructions on how to
manually
[
promote a secondary node
](
disaster-recovery.md
)
into primary.
### What data is replicated to a secondary node?
...
...
@@ -107,3 +121,5 @@ connectivity between your nodes, your hardware, etc.
We send the clone url from the primary server to any secondaries, so it
doesn't matter. If primary is running on port
`2200`
clone url will reflect
that.
[
install-ee
]:
https://about.gitlab.com/downloads-ee/
doc/gitlab-geo/configuration.md
View file @
7961c7d9
This diff is collapsed.
Click to expand it.
doc/gitlab-geo/database.md
View file @
7961c7d9
...
...
@@ -14,7 +14,7 @@ and `secondary` as either `slave` or `standby` server (read-only).
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**
*generated with [DocToc](https://github.com/thlorenz/doctoc)*
**Table of Contents**
-
[
PostgreSQL replication
](
#postgresql-replication
)
-
[
PostgreSQL - Configure the primary server
](
#postgresql-configure-the-primary-server
)
...
...
doc/gitlab-geo/img/geo-nodes-screen.png
View replaced file @
0e885485
View file @
7961c7d9
52.8 KB
|
W:
|
H:
39.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
doc/gitlab-geo/img/geo_nodes_add_new.png
0 → 100644
View file @
7961c7d9
62.5 KB
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