Skip to content

Commit d18a294

Browse files
committed
Merge branch 'nik-config-j-restore' into 'master'
Add default `parallelJobs` in `logical-restore` See merge request postgres-ai/database-lab!140
2 parents 8492561 + 7582bbb commit d18a294

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

configs/config.example.logical_generic.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ retrieval:
187187
# tables:
188188
# - test
189189

190-
# The number of parallel jobs to get a dump.
190+
# Use parallel jobs to dump faster.
191191
# It's ignored if "restore" is present because "pg_dump | pg_restore" is always single-threaded.
192192
parallelJobs: 2
193193

@@ -210,9 +210,13 @@ retrieval:
210210
# The location of the archive file (or directory, for a directory-format archive) to be restored.
211211
dumpLocation: "/var/lib/dblab/db.dump"
212212

213-
# The Docker image containing the tools required to restore
213+
# The Docker image containing the tools required to restore.
214214
dockerImage: "postgres:12-alpine"
215215

216+
# Use parallel jobs to restore faster.
217+
parallelJobs: 2
218+
219+
216220
# Restore data even if the Postgres directory (`global.dataDir`) is not empty.
217221
# Note the existing data might be overwritten.
218222
forceInit: false

configs/config.example.logical_rds.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ retrieval:
190190
# tables:
191191
# - test
192192

193-
# The number of parallel jobs to get a dump.
193+
# Use parallel jobs to dump faster.
194194
# It's ignored if "restore" is present because "pg_dump | pg_restore" is always single-threaded.
195195
parallelJobs: 2
196196

@@ -213,9 +213,12 @@ retrieval:
213213
# The location of the archive file (or directory, for a directory-format archive) to be restored.
214214
dumpLocation: "/var/lib/dblab/db.dump"
215215

216-
# The Docker image containing the tools required to restore
216+
# The Docker image containing the tools required to restore.
217217
dockerImage: "postgres:12-alpine"
218218

219+
# Use parallel jobs to restore faster.
220+
parallelJobs: 2
221+
219222
# Restore data even if the Postgres directory (`global.dataDir`) is not empty.
220223
# Note the existing data might be overwritten.
221224
forceInit: false

0 commit comments

Comments
 (0)