Skip to content

Commit

Permalink
Increase shared memory in postgres upgrade runbook
Browse files Browse the repository at this point in the history
postgres uses shm for IPC, so this helps with the performance.
  • Loading branch information
barrucadu committed Oct 16, 2023
1 parent 1d427b3 commit f6c5620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/runbooks/upgrade-to-a-new-version-of-postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Replace `podman` with `docker` in the following commands if you're using that.
6. Bring up a new database container with the dump bind-mounted into it:

```bash
sudo podman run --rm --name="$CONTAINER" -v "$(pwd):/backup" -v "${VOLUME_DIR}:/var/lib/postgresql/data" -e "POSTGRES_DB=${POSTGRES_DB}" -e "POSTGRES_USER=${POSTGRES_USER}" -e "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" "postgres:${TAG}"
sudo podman run --rm --name="$CONTAINER" -v "$(pwd):/backup" -v "${VOLUME_DIR}:/var/lib/postgresql/data" -e "POSTGRES_DB=${POSTGRES_DB}" -e "POSTGRES_USER=${POSTGRES_USER}" -e "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}" --shm-size=1g "postgres:${TAG}"
```

7. In another shell, restore the dump:
Expand Down

0 comments on commit f6c5620

Please sign in to comment.