agrs-sequelize-sdk 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -24,28 +24,22 @@ class DBModels {
24
24
  rejectUnauthorized: false, // For self-signed or unverified certificates
25
25
  },
26
26
  },
27
- // pool: {
28
- // max: 100,
29
- // min: 0,
30
- // acquire: 30000,
31
- // idle: 10000,
32
- // },
33
27
  pool: {
34
- max: 20, // Reduced to a more reasonable number
35
- min: 5, // Keep some connections alive
36
- acquire: 60000, // Increased timeout for acquiring connections
37
- idle: 20000, // Increased idle time
38
- evict: 30000, // Added eviction running time
39
- handleDisconnects: true, // Add automatic handling of disconnected connections
28
+ max: 150, // Increase from 50, but stay under max_connections (200)
29
+ min: 5, // Increase minimum connections
30
+ acquire: 60000, // Double acquire timeout
31
+ idle: 30000, // Align with idle_in_transaction_session_timeout
40
32
  },
33
+
41
34
  retry: {
42
- // Add retry logic for failed connections
43
- max: 3,
44
- timeout: 30000,
35
+ max: 5,
36
+ timeout: 60000,
45
37
  match: [
46
38
  /Connection terminated/,
47
39
  /Connection timed out/,
48
40
  /Operation timeout/,
41
+ /password authentication failed/,
42
+ /canceling authentication/,
49
43
  ],
50
44
  },
51
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",
@@ -1,24 +0,0 @@
1
- {
2
- "development": {
3
- "username": "postgres",
4
- "password": "1234",
5
- "database": "dev-db",
6
- "host": "localhost",
7
- "port": 5432,
8
- "dialect": "postgres"
9
- },
10
- "test": {
11
- "username": "root",
12
- "password": "1234",
13
- "database": "test-db",
14
- "host": "127:0.0.1",
15
- "dialect": "postgres"
16
- },
17
- "production": {
18
- "username": "root",
19
- "password": "1234",
20
- "database": "prod-db",
21
- "host": "127:0.0.1",
22
- "dialect": "postgres"
23
- }
24
- }