Skip to content

Document how to install with decomposed mode

Today it is possible to install a GitLab instance with decomposed mode (the proof is that GitLab.com is decomposed)

To support/kickstart #382026 (closed), let's document how to install a GitLab instance that is decomposed for :

Also document that decomposed is alpha - given there's some limitations.

A potential followup is documenting how to migrate existing single database to multiple databases

Resources

How to spin up a VM to test Omnibus

  1. Create a GCP project with https://about.gitlab.com/handbook/infrastructure-standards/realms/sandbox/#how-to-get-started
  2. Go to your GCP project in console.cloud.google.com. Note it may take 5-10 for your new GCP project to appear in the projects list
  3. Go to the Compute Engine section, enable the API (sorry I forgot the exact label)
  4. Create a new VM instance. GitLab recommends 4GB memory and 2 CPU, so I chose Machine type: n2-standard-4 (Omar: This is 4 VCPUs and 8 GB)
  5. Download, and install gcloud locally. Select the SSH dropdown for the VM instance you want to connect to. Select the gcloud SSH option to get the command line to connect via SSH using the gcloud too. https://cloud.google.com/sdk/docs/install
  6. Once on the VM, follow https://about.gitlab.com/install/#debian to install GitLab. Select a http external url like http://gitlab-me.example.com (as long as it's http, we will use SSH port forwarding)
  7. On another terminal tab, connect using the same SSH command from 5 but with the additional flag --ssh-flag="-L 8082:localhost:80".
  8. Open http://localhost:8082 on your browser. You should see a login screen for your new GitLab instance!
  9. Various reconfiguration options are documented in https://docs.gitlab.com/omnibus/index.html#installation-and-configuration-using-omnibus-package
Edited by Omar Qunsul