faq.md 1.67 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Geo Frequently Asked Questions

## Can I use Geo in a disaster recovery situation?

There are limitations to what we replicate (see
[What data is replicated to a secondary node?](#what-data-is-replicated-to-a-secondary-node)).
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.

## What data is replicated to a secondary node?

15 16 17 18
We currently replicate project repositories, LFS objects, generated
attachments / avatars and the whole database. This means user accounts,
issues, merge requests, groups, project data, etc., will be available for
query. We currently don't replicate artifact data (`shared/folder`).
19 20 21 22 23 24 25 26 27

## Can I git push to a secondary node?

No. All writing operations (this includes `git push`) must be done in your
primary node.

## How long does it take to have a commit replicated to a secondary node?

All replication operations are asynchronous and are queued to be dispatched in
28
a batched request every 10 minutes. Besides that, it depends on a lot of other
29 30 31
factors including the amount of traffic, how big your commit is, the
connectivity between your nodes, your hardware, etc.

32
## What if the SSH server runs at a different port?
33 34

We send the clone url from the primary server to any secondaries, so it
35
doesn't matter. If primary is running on port `2200`, clone url will reflect
36
that.
37 38 39 40

## Is this possible to set up a Docker Registry for a secondary node that mirrors the one on a primary node?

Yes. See [Docker Registry for a secondary Geo node](docker_registry.md).