Copy PostgreSQL databases with zstd before updates
pg_dump -Fc -Z zstd:1 instead of its default gzip: on the dev Core a 1.3 GB database took 6 s and 158 MB instead of 27 s and 223 MB, and restores as fast. A pg_dump without zstd falls back to its default. The "takes a while" note now starts at 1 GB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -317,6 +317,13 @@ The Core's own scripts trace secrets, so their output goes to
|
||||
container isn't restarted and no `.coreapps-rollback-*` folder is left.
|
||||
With `BIG_DATABASE = 0`: "Keeping a copy of its database (...) in case
|
||||
the update fails; this takes a while...", then "Updated".
|
||||
10b. Dump speed: an app whose database holds 1.3 GB (e.g. a table of 4.5
|
||||
million rows with an index): `coreapp deploy --recreate` says it's
|
||||
keeping a copy (above 1 GB) and the whole update takes under a minute;
|
||||
the log on the Core shows no pg_dump error. A failing update (a wrong
|
||||
`port`) rolls back with every row. In the module, a `DUMP` command that
|
||||
fails with `-Z` is run again without it (the copy is kept, the error in
|
||||
the log); one that always fails refuses the update.
|
||||
11. Superpanel: after deploy, `/federated/apps/superpanel/data/applist.json`
|
||||
(the dashboard) and `catalog.json` have the app; `service` has
|
||||
`URL="https://hello.$DOMAIN/"` and applist the same `url`. Change
|
||||
|
||||
Reference in New Issue
Block a user