Commit 063e8c5c authored by Evan Read's avatar Evan Read

Merge branch 'ashmckenzie/6193-geo-update-push-to-secondary' into 'master'

Geo: Update documentation for push to secondary support

See merge request gitlab-org/gitlab-ee!7854
parents ef250e65 31a34c49
......@@ -16,7 +16,7 @@ query.
## Can I git push to a secondary node?
Yes, you can push changes to a **secondary** node. The push will be proxied to the **primary** node.
Yes! Pushing directly to a **secondary** node (for both HTTP and SSH, including git-lfs) was [introduced](https://about.gitlab.com/2018/09/22/gitlab-11-3-released/) in [GitLab Premium](https://about.gitlab.com/pricing/#self-managed) 11.3.
## How long does it take to have a commit replicated to a secondary node?
......
This diff is collapsed.
......@@ -2,22 +2,17 @@
# Using a Geo Server
After you set up the [database replication and configure the Geo nodes][req],
there are a few things to consider:
After you set up the [database replication and configure the Geo nodes][req], use your closest GitLab node as you would a normal standalone GitLab instance.
1. Users need an extra step to be able to fetch code from the secondary and push
to primary:
Pushing directly to a **secondary** node (for both HTTP, SSH including git-lfs) was [introduced](https://about.gitlab.com/2018/09/22/gitlab-11-3-released/) in [GitLab Premium](https://about.gitlab.com/pricing/#self-managed) 11.3.
1. Clone the repository as you would normally do, but from the secondary node:
Example of the output you will see when pushing to a **secondary** node:
```bash
git clone git@secondary.gitlab.example.com:user/repo.git
```
1. Change the remote push URL to always push to primary, following this example:
```bash
git remote set-url --push origin git@primary.gitlab.example.com:user/repo.git
```
```bash
$ git push
> GitLab: You're pushing to a Geo secondary.
> GitLab: We'll help you by proxying this request to the primary: ssh://git@primary.geo/user/repo.git
Everything up-to-date
```
[req]: index.md#setup-instructions
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment