Skip to content

Commit

Permalink
fix: WEB-2246 added pool size option mongoose to handle memory
Browse files Browse the repository at this point in the history
  • Loading branch information
sairam459 committed Jun 3, 2024
1 parent cce17b2 commit 8681c66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ export class ConfigService {
pass: this.get('MONGOOSE_PASSWORD'),
maxPoolSize: this.get('MONGOOSE_POOL_SIZE') || 20,
retryAttempts: 2,
connectTimeoutMS: 30000,
connectTimeoutMS: 60000,
useUnifiedTopology: true,
useNewUrlParser: true,
socketTimeoutMS: 30000,
socketTimeoutMS: 60000,
};
if (this.get('SSL_VALIDATE') === true) {
options = {
Expand Down

0 comments on commit 8681c66

Please sign in to comment.