Commit 8c864605 authored by Nick Gaskill's avatar Nick Gaskill Committed by Ben Prescott @bprescott_↙ ☺

Apply 4 suggestion(s) to 2 file(s)

parent 4b3d734c
...@@ -56,8 +56,8 @@ On some systems you may need to install an additional package (for example, ...@@ -56,8 +56,8 @@ On some systems you may need to install an additional package (for example,
## Typical failure scenarios ## Typical failure scenarios
The following is an example of a new GitLab installation failing because the extension hasn't been installed The following is an example of a new GitLab installation failing because the extension hasn't been
first. installed first.
```shell ```shell
---- Begin output of "bash" "/tmp/chef-script20210513-52940-d9b1gs" ---- ---- Begin output of "bash" "/tmp/chef-script20210513-52940-d9b1gs" ----
...@@ -91,8 +91,8 @@ This query will grant the user superuser permissions, ensuring any database exte ...@@ -91,8 +91,8 @@ This query will grant the user superuser permissions, ensuring any database exte
can be installed through migrations. can be installed through migrations.
``` ```
In order to recover from failed migrations, the extension needs to be installed manually using a superuser, and To recover from failed migrations, the extension must be installed manually by a superuser, and the
the GitLab upgrade completed by [re-running the database migrations](../administration/raketasks/maintenance.md#run-incomplete-database-migrations): GitLab upgrade completed by [re-running the database migrations](../administration/raketasks/maintenance.md#run-incomplete-database-migrations):
```shell ```shell
sudo gitlab-rake db:migrate sudo gitlab-rake db:migrate
......
...@@ -143,21 +143,28 @@ but we can't guarantee compatibility. ...@@ -143,21 +143,28 @@ but we can't guarantee compatibility.
#### Exclusive use of GitLab databases #### Exclusive use of GitLab databases
Databases created or used for GitLab, Geo, Gitaly Cluster or other components Databases created or used for GitLab, Geo, Gitaly Cluster, or other components should be for the
should be for the exclusive use of GitLab. Do not make direct changes to the database, exclusive use of GitLab. Do not make direct changes to the database, schemas, users, or other
schemas, users or other properties except when following procedures in the GitLab documentation properties except when following procedures in the GitLab documentation or following the directions
or following the directions of GitLab Support or other GitLab engineers. of GitLab Support or other GitLab engineers.
- The main GitLab application currently uses three schemas: the default `public` schema, plus it - The main GitLab application currently uses three schemas:
will automatically create `gitlab_partitions_static` and `gitlab_partitions_dynamic`.
No other schemas should be manually created. - The default `public` schema
- GitLab may create new schemas as part of Rails database migrations. This will happen when performing - `gitlab_partitions_static` (automatically created)
a GitLab upgrade. The GitLab database account requires access to do this. - `gitlab_partitions_dynamic` (automatically created)
- GitLab creates and modifies tables during the upgrade process, and also as part
of normal operations to manage partitioned tables. No other schemas should be manually created.
- You should not modify the GitLab schema, for example adding triggers, modifying tables.
Database migrations are tested against the schema definition in the GitLab code base. GitLab version - GitLab may create new schemas as part of Rails database migrations. This happens when performing
upgrades may fail if the schema is modified. a GitLab upgrade. The GitLab database account requires access to do this.
- GitLab creates and modifies tables during the upgrade process, and also as part of normal
operations to manage partitioned tables.
- You should not modify the GitLab schema (for example, adding triggers or modifying tables).
Database migrations are tested against the schema definition in the GitLab code base. GitLab
version upgrades may fail if the schema is modified.
## Puma settings ## Puma settings
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment