Skip to content

Commit 0e5220a

Browse files
committed
Merge branch '429-parallel-jobs' into 'master'
chore(engine): change the default number of parallel jobs in logical mode Closes #429 See merge request postgres-ai/database-lab!611
2 parents 039f25f + 729a70c commit 0e5220a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

engine/configs/config.example.logical_generic.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ retrieval:
235235

236236
# Use parallel jobs to dump faster.
237237
# It’s ignored if “immediateRestore.enabled: true” is present because “pg_dump | pg_restore” is always single-threaded.
238-
parallelJobs: 2
238+
# If your source database has 4 vCPUs or less, and you don't want to saturate them, use 2 or 1.
239+
parallelJobs: 4
239240

240241
# Options for direct restore to Database Lab Engine instance.
241242
# Uncomment this if you prefer restoring from the dump on the fly. In this case,
@@ -261,7 +262,8 @@ retrieval:
261262
dumpLocation: "/var/lib/dblab/dblab_pool/dump"
262263

263264
# Use parallel jobs to restore faster.
264-
parallelJobs: 2
265+
# If your machine with DLE has 4 vCPUs or less, and you don't want to saturate them, use 2 or 1.
266+
parallelJobs: 4
265267

266268

267269
# Restore data even if the Postgres directory (`global.dataDir`) is not empty.

engine/configs/config.example.logical_rds_iam.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ retrieval:
232232

233233
# Use parallel jobs to dump faster.
234234
# It’s ignored if “immediateRestore.enabled: true” is present because “pg_dump | pg_restore” is always single-threaded.
235-
parallelJobs: 2
235+
# If your source database has 4 vCPUs or less, and you don't want to saturate them, use 2 or 1.
236+
parallelJobs: 4
236237

237238
# Options for direct restore to Database Lab Engine instance.
238239
# Uncomment this if you prefer restoring from the dump on the fly. In this case,
@@ -258,7 +259,8 @@ retrieval:
258259
dumpLocation: "/var/lib/dblab/dblab_pool/dump"
259260

260261
# Use parallel jobs to restore faster.
261-
parallelJobs: 2
262+
# If your machine with DLE has 4 vCPUs or less, and you don't want to saturate them, use 2 or 1.
263+
parallelJobs: 4
262264

263265
# Restore data even if the Postgres directory (`global.dataDir`) is not empty.
264266
# Note the existing data will be overwritten.

0 commit comments

Comments
 (0)