GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — docker-compose: Start all three databases from db-only-migrate by marcleblanc2 · Pull Request #1485 · sourcegraph/deploy-sourcegraph-docker Conversation
|
| Setting | Before | After |
|---|---|---|
mem_limit |
2g | 4g |
shm_size |
not set | 1g |
/conf mount |
missing | ../<db>/conf:/conf/ |
| Health check | 3 retries, 15s start period | 10 retries, 1h start period |
stop_grace_period |
not set | 120s |
Risk: low to medium. Customers run this file during upgrades, backups, and restores. The databases get the settings they already have in the full deployment, on the same volumes.
docker compose -f db-only-migrate.docker-compose.yaml config --services lists pgsql, codeintel-db, and codeinsights-db, and nothing else (Compose 2.18.1 and 5.7.1). On main it lists the first two
Each of the three resolves to the same configuration from this file and from docker-compose.yaml. On Compose 5.7.1 the output is identical; on 2.18.1 it lists each service's two mounts in the other order
Ran the backup steps from the docs on a test machine (Docker 29.9.3, Compose 5.7.1): a full deployment, down, then this file alone on the same volumes
main |
This PR | |
|---|---|---|
| Containers started | pgsql, codeintel-db |
pgsql, codeintel-db, codeinsights-db; healthy in 6 seconds, nothing else running |
| Other clients connected to the databases | 0 | 0 |
The three pg_dump commands from the docs |
The third fails: No such container: codeinsights-db |
All three exit 0 |
docker compose -f docker-compose.yaml run --rm --no-deps migrator |
Fails: lookup codeinsights-db ... no such host |
Schema(s) are up-to-date! |
Restoring this PR's three dumps into empty volumes brings back the same row counts
Build: build 16870: passed, the smoke test job took 507 seconds. After the rebase onto the 8.2.0 images, build 16903 passed in 458 seconds
Closes FE-580
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The file left out codeinsights-db, which the backup and restore docs dump, and its copies of pgsql and codeintel-db had drifted from docker-compose.yaml. It now extends all three services from that file.
e1b6797 to
7966f87
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.