Skip to content

Commit 46b7841

Browse files
committed
additional note
1 parent 978ca63 commit 46b7841

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

docs/admin/deploy/docker-compose/upgrade.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ To perform a **manual** multi-version upgrade on a Sourcegraph instance running
7272
- Check the `Site Admin > Updates` page to determine [upgrade readiness](/admin/updates/#upgrade-readiness).
7373

7474
2. **Disable Connections to the Database**:
75+
> **⚠️ Attention:** If your database is still running Postgres 12, upgrade your database to Postgres 16 in this step. For our built-in databases offerings, this can be accomplished by starting the databases using our `postgresql-16` images packaged in the deploy repos starting in version `5.10.0`. Learn more [here](/admin/postgres).
7576
- Run the following command in the directory containing your `docker-compose.yaml` file.
7677
```sh
7778
$ docker-compose stop && docker-compose up -d pgsql codeintel-db codeinsights-db

docs/admin/deploy/kubernetes/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,8 @@ If you are upgrading to **Sourcegraph 5.1 or later**, we encourage you to perfor
942942
- Check the `Site Admin > Updates` page to determine [upgrade readiness](/admin/updates/#upgrade-readiness).
943943

944944
**Step 2:**
945+
> **⚠️ Attention:** If your database is still running Postgres 12, upgrade your database to Postgres 16 in this step. For our built-in databases offerings, this can be accomplished by starting the databases using our `postgresql-16` images packaged in the deploy repos starting in version `5.10.0`. Learn more [here](/admin/postgres).
946+
945947
Scale down `deployments` and `statefulSets` that access the database, _this step prevents services from accessing the database while schema migrations are in process._
946948
The following services must have their replicas scaled to 0:
947949
- Deployments (e.g., `kubectl scale deployment <name> --replicas=0`)

docs/admin/deploy/kubernetes/upgrade.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ To perform a **manual** multi-version upgrade on a Sourcegraph instance running
133133
- Check the `Site Admin > Updates` page to determine [upgrade readiness](/admin/updates/#upgrade-readiness).
134134

135135
2. **Disable Connections to the Database**:
136+
> **⚠️ Attention:** If your database is still running Postgres 12, upgrade your database to Postgres 16 in this step. For our built-in databases offerings, this can be accomplished by starting the databases using our `postgresql-16` images packaged in the deploy repos starting in version `5.10.0`. Learn more [here](/admin/postgres).
136137
- The following services must have their replicas scaled to 0:
137138
- Deployments (e.g., `kubectl scale deployment <name> --replicas=0`)
138139
- precise-code-intel-worker

0 commit comments

Comments
 (0)