debian-mirror-gitlab/doc/administration/geo/setup/index.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
2.7 KiB
Markdown
Raw Normal View History

2020-11-24 15:15:51 +05:30
---
2022-07-23 23:45:48 +05:30
stage: Systems
2020-11-24 15:15:51 +05:30
group: Geo
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2020-11-24 15:15:51 +05:30
type: howto
---
2021-04-29 21:17:54 +05:30
# Setting up Geo **(PREMIUM SELF)**
2020-11-24 15:15:51 +05:30
2023-05-27 22:25:52 +05:30
## Prerequisites
2020-11-24 15:15:51 +05:30
2023-05-27 22:25:52 +05:30
- Two (or more) independently working GitLab sites:
- One GitLab site serves as the Geo **primary** site. Use the [GitLab reference architectures documentation](../../reference_architectures/index.md) to set this up. You can use different reference architecture sizes for each Geo site. If you already have a working GitLab instance that is in-use, it can be used as a **primary** site.
- The second GitLab site serves as the Geo **secondary** site. Use the [GitLab reference architectures documentation](../../reference_architectures/index.md) to set this up. It's a good idea to sign in and test it. However, be aware that **all of the data on the secondary are lost** as part of the process of replicating from the **primary** site.
2020-11-24 15:15:51 +05:30
2023-05-27 22:25:52 +05:30
NOTE:
Geo supports multiple secondaries. You can follow the same steps and make any changes accordingly.
2022-08-13 15:12:31 +05:30
2023-07-09 08:55:56 +05:30
- Ensure the **primary** site has a [GitLab Premium or Ultimate](https://about.gitlab.com/pricing/) subscription to unlock Geo. You only need one license for all the sites.
2023-05-27 22:25:52 +05:30
- Confirm the [requirements for running Geo](../index.md#requirements-for-running-geo) are met by all sites. For example, sites must use the same GitLab version, and sites must be able to communicate with each other over certain ports.
2020-11-24 15:15:51 +05:30
## Using Omnibus GitLab
If you installed GitLab using the Omnibus packages (highly recommended):
1. [Set up the database replication](database.md) (`primary (read-write) <-> secondary (read-only)` topology).
2022-05-07 20:08:51 +05:30
1. [Configure GitLab](../replication/configuration.md) to set the **primary** and **secondary** sites.
2022-08-13 15:12:31 +05:30
1. Optional: [Configure Object storage](../../object_storage.md)
2022-05-07 20:08:51 +05:30
1. Optional: [Configure a secondary LDAP server](../../auth/ldap/index.md) for the **secondary** sites. See [notes on LDAP](../index.md#ldap).
2022-08-13 15:12:31 +05:30
1. Optional: [Configure Geo secondary proxying](../secondary_proxy/index.md) to use a single, unified URL for all Geo sites. This step is recommended to accelerate most read requests while transparently proxying writes to the primary Geo site.
2021-06-08 01:23:25 +05:30
1. Follow the [Using a Geo Site](../replication/usage.md) guide.
2020-11-24 15:15:51 +05:30
2023-05-27 22:25:52 +05:30
## Using GitLab Charts
[Configure the GitLab chart with GitLab Geo](https://docs.gitlab.com/charts/advanced/geo/).
2020-11-24 15:15:51 +05:30
## Post-installation documentation
2022-05-07 20:08:51 +05:30
After installing GitLab on the **secondary** sites and performing the initial configuration, see the [following documentation for post-installation information](../index.md#post-installation-documentation).