12 KiB
stage | group | info | type |
---|---|---|---|
Enablement | Geo | To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments | howto |
Geo validation tests (PREMIUM SELF)
The Geo team performs manual testing and validation on common deployment configurations to ensure that Geo works when upgrading between minor GitLab versions and major PostgreSQL database versions.
This section contains a journal of recent validation tests and links to the relevant issues.
GitLab upgrades
The following are GitLab upgrade validation tests we performed.
July 2020
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.10.12 to 13.0.10 package in a multi-node configuration. As part of the issue to Fix zero-downtime upgrade process/instructions for multi-node Geo deployments, we monitored for downtime using the looping pipeline, HAProxy stats dashboards, and a script to log readiness status on both nodes.
- Outcome: Partial success because we observed downtime during the upgrade of the primary and secondary sites.
- Follow up issues/actions:
Switch from repmgr to Patroni on a Geo primary site:
- Description: Tested switching from repmgr to Patroni on a multi-node Geo primary site. Used the orchestrator tool to deploy a Geo installation with 3 database nodes managed by repmgr. With this approach, we were also able to address a related issue for verifying a Geo installation with Patroni and PostgreSQL 11.
- Outcome: Partial success. We enabled Patroni on the primary site and set up database replication on the secondary site. However, we found that Patroni would delete the secondary site's replication slot whenever Patroni was restarted. Another issue is that when Patroni elects a new leader in the cluster, the secondary site will fail to automatically follow the new leader. Until these issues are resolved, we cannot officially support and recommend Patroni for Geo installations.
- Follow up issues/actions:
June 2020
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.9.10 to 12.10.12 package in a multi-node configuration. Monitored for downtime using the looping pipeline and HAProxy stats dashboards.
- Outcome: Partial success because we observed downtime during the upgrade of the primary and secondary sites.
- Follow up issues/actions:
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.8.1 to 12.9.10 package in a multi-node configuration.
- Outcome: Partial success because we did not run the looping pipeline during the demo to validate zero-downtime.
- Follow up issues:
- Clarify how Puma/Unicorn should include deploy node
- Investigate MR creation failure after upgrade to 12.9.10 Closed as false positive.
February 2020
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.7.5 to the latest GitLab 12.8 package in a multi-node configuration.
- Outcome: Partial success because we did not run the looping pipeline during the demo to monitor downtime.
January 2020
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.6.x to the latest GitLab 12.7 package in a multi-node configuration.
- Outcome: Upgrade test was successful.
- Follow up issues:
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.5.7 to GitLab 12.6.6 in a multi-node configuration.
- Outcome: Upgrade test was successful.
- Follow up issue: Update documentation for zero-downtime upgrades to ensure deploy node it not in use.
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.4.x to the latest GitLab 12.5 package in a multi-node configuration.
- Outcome: Upgrade test was successful.
- Follow up issues:
October 2019
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.3.5 to GitLab 12.4.1 in a multi-node configuration.
- Outcome: Upgrade test was successful.
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.2.8 to GitLab 12.3.5.
- Outcome: Upgrade test was successful.
Upgrade Geo multi-node installation:
- Description: Tested upgrading from GitLab 12.1.9 to GitLab 12.2.8.
- Outcome: Partial success due to possible misconfiguration issues.
PostgreSQL upgrades
The following are PostgreSQL upgrade validation tests we performed.
September 2020
Verify PostgreSQL 12 upgrade for Geo installations:
- Description: With PostgreSQL 12 available as an opt-in version in GitLab 13.3, we tested upgrading existing Geo installations from PostgreSQL 11 to 12. We also re-tested fresh installations of GitLab with Geo after fixes were made to support PostgreSQL 12. These tests were done using a nightly build of GitLab 13.4.
- Outcome: Tests were successful for Geo deployments with a single database node on the primary and secondary. We encountered known issues with repmgr and Patroni managed PostgreSQL clusters on the Geo primary. Using PostgreSQL 12 with a database cluster on the primary is not recommended until the issues are resolved.
- Known issues for PostgreSQL clusters:
August 2020
Verify Geo installation with PostgreSQL 12:
- Description: Prior to PostgreSQL 12 becoming available as an opt-in version in GitLab 13.3, we tested fresh installations of GitLab 13.3 with PostgreSQL 12 enabled and Geo installed.
- Outcome: Setting up a Geo secondary required manual intervention because the
recovery.conf
file is no longer supported in PostgreSQL 12. We do not recommend deploying Geo with PostgreSQL 12 until the appropriate changes have been made to Omnibus and verified. - Follow up issues:
April 2020
PostgreSQL 11 upgrade procedure for Geo installations:
- Description: Prior to making PostgreSQL 11 the default version of PostgreSQL in GitLab 12.10, we tested upgrading to PostgreSQL 11 in Geo deployments on GitLab 12.9.
- Outcome: Partially successful. Issues were discovered in multi-node configurations with a separate tracking database and concerns were raised about allowing automatic upgrades when Geo enabled.
- Follow up issues:
replicate-geo-database
incorrectly tries to back up repositories.pg-upgrade
fails to upgrade a standalone Geo tracking database.revert-pg-upgrade
fails to downgrade the PostgreSQL data of a Geo secondary’s standalone tracking database.- Timeout error on Geo secondary read-replica near the end of
gitlab-ctl pg-upgrade
.
Verify Geo installation with PostgreSQL 11:
- Description: Prior to making PostgreSQL 11 the default version of PostgreSQL in GitLab 12.10, we tested fresh installations of GitLab 12.9 with Geo installed with PostgreSQL 11.
- Outcome: Installation test was successful.
September 2019
Test and validate PostgreSQL 10.0 upgrade for Geo:
- Description: With the 12.0 release, GitLab required an upgrade to PostgreSQL 10.0. We tested various upgrade scenarios from GitLab 11.11.5 through to GitLab 12.1.8.
- Outcome: Multiple issues were found when upgrading and addressed in follow-up issues.
- Follow up issues:
Other tests
The following are additional validation tests we performed.
August 2020
Test Gitaly Cluster on a Geo Deployment:
- Description: Tested a Geo deployment with Gitaly clusters configured on both the primary and secondary Geo sites. Triggered automatic Gitaly cluster failover on the primary Geo site, and ran end-to-end Geo tests. Then triggered Gitaly cluster failover on the secondary Geo site, and re-ran the end-to-end Geo tests.
- Outcome: Successful end-to-end tests before and after Gitaly cluster failover on the primary site, and before and after Gitaly cluster failover on the secondary site.