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
72ab47df
Commit
72ab47df
authored
Sep 27, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document hashed storage recommendations for Geo
parent
3b0aedda
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
6 deletions
+43
-6
doc/gitlab-geo/README.md
doc/gitlab-geo/README.md
+1
-1
doc/gitlab-geo/configuration.md
doc/gitlab-geo/configuration.md
+27
-3
doc/gitlab-geo/configuration_source.md
doc/gitlab-geo/configuration_source.md
+15
-2
doc/gitlab-geo/img/hashed-storage.png
doc/gitlab-geo/img/hashed-storage.png
+0
-0
No files found.
doc/gitlab-geo/README.md
View file @
72ab47df
...
@@ -9,7 +9,7 @@ and there is significant chance of data loss. For the latest updates, check the
...
@@ -9,7 +9,7 @@ and there is significant chance of data loss. For the latest updates, check the
> **Notes:**
> **Notes:**
-
GitLab Geo is part of
[
GitLab Enterprise Edition Premium
][
ee
]
.
-
GitLab Geo is part of
[
GitLab Enterprise Edition Premium
][
ee
]
.
-
Introduced in GitLab Enterprise Edition 8.9.
-
Introduced in GitLab Enterprise Edition 8.9.
We recommend you use it with at least GitLab Enterprise Edition
8.14
for
We recommend you use it with at least GitLab Enterprise Edition
10.0
for
basic Geo features, or latest version for a better experience.
basic Geo features, or latest version for a better experience.
-
You should make sure that all nodes run the same GitLab version.
-
You should make sure that all nodes run the same GitLab version.
...
...
doc/gitlab-geo/configuration.md
View file @
72ab47df
...
@@ -157,7 +157,19 @@ Regenerate the keys for `~/.ssh/authorized_keys`
...
@@ -157,7 +157,19 @@ Regenerate the keys for `~/.ssh/authorized_keys`
This will enable `
git
` operations to authorize against your existing users.
This will enable `
git
` operations to authorize against your existing users.
New users and SSH keys updated after this step, will be replicated automatically.
New users and SSH keys updated after this step, will be replicated automatically.
### Step 5. Enabling the secondary GitLab node
### Step 5. Enabling hashed storage (from GitLab 10.0)
1. Visit the **primary** node's **Admin Area ➔ Settings**
(`
/admin/application_settings
`) in your browser
1. In the `
Repository Storages
` section, check `
Create new projects using hashed storage paths
`:
![](img/hashed-storage.png)
Using hashed storage significantly improves Geo replication - project and group
renames no longer require synchronization between nodes - so we recommend it is
used for all GitLab Geo installations.
### Step 6. Enabling the secondary GitLab node
1. SSH into the **secondary** node and login as root:
1. SSH into the **secondary** node and login as root:
...
@@ -194,7 +206,7 @@ The two most obvious issues that replication can have here are:
...
@@ -194,7 +206,7 @@ The two most obvious issues that replication can have here are:
[Troubleshooting](#troubleshooting) section)
[Troubleshooting](#troubleshooting) section)
- Instance is firewalled (check your firewall rules)
- Instance is firewalled (check your firewall rules)
### Step
6
. Replicating the repositories data
### Step
7
. Replicating the repositories data
Getting a new secondary Geo node up and running, will also require the
Getting a new secondary Geo node up and running, will also require the
repositories data to be synced.
repositories data to be synced.
...
@@ -284,7 +296,7 @@ namespaces to be replicated.
...
@@ -284,7 +296,7 @@ namespaces to be replicated.
## Adding another secondary Geo node
## Adding another secondary Geo node
To add another Geo node in an already Geo configured infrastructure, just follow
To add another Geo node in an already Geo configured infrastructure, just follow
[the steps starting f
or
m step 2](#step-2-updating-the-known_hosts-file-of-the-secondary-nodes).
[the steps starting f
ro
m step 2](#step-2-updating-the-known_hosts-file-of-the-secondary-nodes).
Just omit the first step that sets up the primary node.
Just omit the first step that sets up the primary node.
## Additional information for the SSH key pairs
## Additional information for the SSH key pairs
...
@@ -300,6 +312,18 @@ not create them manually.
...
@@ -300,6 +312,18 @@ not create them manually.
### Upgrading Geo
### Upgrading Geo
#### Upgrading to GitLab 10.1
[Hashed storage](../administration/repository_storage_types.md) was introduced
in GitLab 10.0, and a [migration path](../administration/raketasks/storage.md)
for existing repositories was added in GitLab 10.1.
After upgrading to GitLab 10.1, we recommend that you
[enable hashed storage for all new projects](#step-5-enabling-hashed-storage-from-gitlab-100),
then [migrate existing projects to hashed storage](../administration/raketasks/storage.md).
This will significantly reduce the amount of synchronization required between
nodes in the event of project or group renames.
#### Upgrading to GitLab 10.0
#### Upgrading to GitLab 10.0
Since GitLab 10.0, we require all **Geo** systems to [use SSH key lookups via
Since GitLab 10.0, we require all **Geo** systems to [use SSH key lookups via
...
...
doc/gitlab-geo/configuration_source.md
View file @
72ab47df
...
@@ -150,7 +150,20 @@ Regenerate the keys for `~/.ssh/authorized_keys`
...
@@ -150,7 +150,20 @@ Regenerate the keys for `~/.ssh/authorized_keys`
This will enable `
git
` operations to authorize against your existing users.
This will enable `
git
` operations to authorize against your existing users.
New users and SSH keys updated after this step, will be replicated automatically.
New users and SSH keys updated after this step, will be replicated automatically.
### Step 5. Enabling the secondary GitLab node
### Step 5. Enabling hashed storage (from GitLab 10.0)
1. Visit the **primary** node's **Admin Area ➔ Settings**
(`
/admin/application_settings
`) in your browser
1. In the `
Repository Storages
` section, check `
Create new projects using hashed storage paths
`:
![](img/hashed-storage.png)
Using hashed storage significantly improves Geo replication - project and group
renames no longer require synchronization between nodes - so we recommend it is
used for all GitLab Geo installations.
### Step 6. Enabling the secondary GitLab node
1. SSH into the **secondary** node and login as root:
1. SSH into the **secondary** node and login as root:
...
@@ -195,7 +208,7 @@ The two most obvious issues that replication can have here are:
...
@@ -195,7 +208,7 @@ The two most obvious issues that replication can have here are:
[Troubleshooting](configuration.md#troubleshooting) section)
[Troubleshooting](configuration.md#troubleshooting) section)
- Instance is firewalled (check your firewall rules)
- Instance is firewalled (check your firewall rules)
### Step
6
. Replicating the repositories data
### Step
7
. Replicating the repositories data
Getting a new secondary Geo node up and running, will also require the
Getting a new secondary Geo node up and running, will also require the
repositories data to be synced.
repositories data to be synced.
...
...
doc/gitlab-geo/img/hashed-storage.png
0 → 100644
View file @
72ab47df
29.8 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