Add different max for private db connection

This commit is contained in:
Ajay
2023-07-24 13:56:09 -04:00
parent 79515ccc8b
commit 2fc31655ff
3 changed files with 3 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ addDefaults(config, {
fallbackOnFail: true,
stopRetryThreshold: 800
},
postgresPrivateMax: 10,
dumpDatabase: {
enabled: false,
minTimeBetweenMs: 180000,

View File

@@ -30,6 +30,7 @@ if (config.postgres?.enabled) {
createDbIfNotExists: config.createDatabaseIfNotExist,
postgres: {
...config.postgres,
max: config.postgresPrivateMax ?? config.postgres.max,
database: "privateDB"
},
postgresReadOnly: config.postgresReadOnly ? {

View File

@@ -84,6 +84,7 @@ export interface SBSConfig {
maxRewardTimePerSegmentInSeconds?: number;
postgres?: CustomWritePostgresConfig;
postgresReadOnly?: CustomPostgresReadOnlyConfig;
postgresPrivateMax?: number;
dumpDatabase?: DumpDatabase;
diskCacheURL: string;
crons: CronJobOptions;