From 2718f10add85b1b6c53232cce554e30157682745 Mon Sep 17 00:00:00 2001 From: Amogh-Bharadwaj Date: Tue, 2 Jan 2024 21:09:40 +0530 Subject: [PATCH] fixes default for some params --- ui/app/mirrors/create/helpers/cdc.ts | 2 +- ui/app/mirrors/create/helpers/common.ts | 2 +- ui/app/mirrors/create/helpers/qrep.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/app/mirrors/create/helpers/cdc.ts b/ui/app/mirrors/create/helpers/cdc.ts index d018a8c23..72f4321f2 100644 --- a/ui/app/mirrors/create/helpers/cdc.ts +++ b/ui/app/mirrors/create/helpers/cdc.ts @@ -113,7 +113,7 @@ export const cdcSettings: MirrorSetting[] = [ softDelete: (value as boolean) || false, })), tips: 'Allows you to mark some records as deleted without actual erasure from the database', - default: 'SQL', + default: false, type: 'switch', }, { diff --git a/ui/app/mirrors/create/helpers/common.ts b/ui/app/mirrors/create/helpers/common.ts index 5b6e0dee7..cf1579fe0 100644 --- a/ui/app/mirrors/create/helpers/common.ts +++ b/ui/app/mirrors/create/helpers/common.ts @@ -58,7 +58,7 @@ export const blankQRepSetting = { syncMode: 0, batchSizeInt: 0, batchDurationSeconds: 0, - maxParallelWorkers: 1, + maxParallelWorkers: 4, waitBetweenBatchesSeconds: 30, writeMode: undefined, stagingPath: '', diff --git a/ui/app/mirrors/create/helpers/qrep.ts b/ui/app/mirrors/create/helpers/qrep.ts index fca1f9fcb..eb1260404 100644 --- a/ui/app/mirrors/create/helpers/qrep.ts +++ b/ui/app/mirrors/create/helpers/qrep.ts @@ -66,7 +66,7 @@ export const qrepSettings: MirrorSetting[] = [ ...curr, maxParallelWorkers: parseInt(value as string, 10) || 4, })), - tips: 'PeerDB spins up parallel threads for each partition. This setting controls the number of partitions to sync in parallel. The default value is 8.', + tips: 'PeerDB spins up parallel threads for each partition. This setting controls the number of partitions to sync in parallel. The default value is 4.', default: '4', type: 'number', }, @@ -131,10 +131,10 @@ export const qrepSettings: MirrorSetting[] = [ stateHandler: (value, setter) => setter((curr: QRepConfig) => ({ ...curr, - waitBetweenBatchesSeconds: parseInt(value as string, 10) || 5, + waitBetweenBatchesSeconds: parseInt(value as string, 10) || 30, })), - tips: 'Time to wait (in seconds) between getting partitions to process.', - default: 5, + tips: 'Time to wait (in seconds) between getting partitions to process. The default is 30 seconds', + default: 30, type: 'number', }, // {