`gitlab.us.example.com` and `gitlab.eu.example.com` in the example above.
The following steps should be performed in the Services machine. SSH to it
and login as root:
```sh
NOTE: **Note:**
sudo-i
The primary and secondary GitLab Geo deployments must be able to communicate to each other over HTTPS.
```
### Step 1: Set up NFS share
1. Install the required NFS packages:
## Redis and PostgreSQL High Availability
```sh
The primary and secondary Redis and PostgreSQL should be configured
apt-get install nfs-kernel-server
for high availability. Because of the additional complexity involved
```
in setting up this configuration for PostgreSQL and Redis
it is not covered by this Geo HA documentation.
The two services will instead be configured such that
they will each run on a single machine.
1. Create the required directories:
For more information about setting up a highly available PostgreSQL cluster and Redis cluster using the omnibus package see the high availability documentation for
[PostgreSQL](../administration/high_availability/database.md) and
## Disable Redis on the local machine and connect to the remote
```
##
1. Mount the share:
redis['enable'] = false
gitlab_rails['redis_host'] = '10.0.2.1'
gitlab_rails['redis_password'] = 'Redis password'
```sh
geo_primary_role['enable'] = true
mount -a -t nfs
```
```
You can check if the mount is working by checking the existence of the
#### On the GitLab Secondary Frontend servers
directories `builds/`, `git-data/`, `shared/`, and `uploads/` in
`/mnt/nfs`:
```
ls /mnt/nfs
```
### Step 2: Configure proxied SSL
The load balancer will take care of the SSL termination, so configure nginx to
On the secondary the remote endpoint for the PostgreSQL Geo database will
work with proxied SSL.
be specified.
Follow the instructions to [configure proxied SSL](https://docs.gitlab.com/omnibus/settings/nginx.html#supporting-proxied-ssl).
1. Edit `/etc/gitlab/gitlab.rb` and ensure the following to disable PostgreSQL and Redis from running locally. Configure the secondary to connect to the GitLab Geo tracking database.
### Step 3: Configure connections to the Services machine
1. Edit `/etc/gitlab/gitlab.rb` and add the following: