Skip to content

Commit bfb13cd

Browse files
committed
Increase database connection timeouts for improved stability
1 parent 93cd463 commit bfb13cd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/src/database.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class Database {
1313
logger.info('Connecting to the database', mongodbUri);
1414
try {
1515
this.mongoose = await mongoose.connect(mongodbUri, {
16-
socketTimeoutMS: 90000,
17-
connectTimeoutMS: 60000,
18-
serverSelectionTimeoutMS: 30000,
16+
socketTimeoutMS: 360000,
17+
connectTimeoutMS: 360000,
18+
serverSelectionTimeoutMS: 60000,
1919
retryWrites: true,
2020
readPreference: 'primaryPreferred',
2121
retryReads: true,

0 commit comments

Comments
 (0)