agrs-sequelize-sdk 1.1.1 → 1.1.3
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 +15 -19
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -31,26 +31,22 @@ class DBModels {
|
|
|
31
31
|
// idle: 10000,
|
|
32
32
|
// },
|
|
33
33
|
pool: {
|
|
34
|
-
max:
|
|
35
|
-
min:
|
|
36
|
-
acquire:
|
|
37
|
-
idle:
|
|
38
|
-
evict: 30000, // Added eviction running time
|
|
39
|
-
handleDisconnects: true, // Add automatic handling of disconnected connections
|
|
40
|
-
},
|
|
41
|
-
retry: {
|
|
42
|
-
max: 3,
|
|
43
|
-
timeout: 6000, // Increase timeout to 60 seconds
|
|
44
|
-
match: [
|
|
45
|
-
/Connection terminated/,
|
|
46
|
-
/Connection timed out/,
|
|
47
|
-
/Operation timeout/,
|
|
48
|
-
/unknown timed out/,
|
|
49
|
-
/TimeoutError/,
|
|
50
|
-
],
|
|
51
|
-
backoffBase: 1000,
|
|
52
|
-
backoffExponent: 1.5,
|
|
34
|
+
max: 5, // Fewer connections for debugging
|
|
35
|
+
min: 1,
|
|
36
|
+
acquire: 30000,
|
|
37
|
+
idle: 10000,
|
|
53
38
|
},
|
|
39
|
+
|
|
40
|
+
// retry: {
|
|
41
|
+
// // Add retry logic for failed connections
|
|
42
|
+
// max: 3,
|
|
43
|
+
// timeout: 30000,
|
|
44
|
+
// match: [
|
|
45
|
+
// /Connection terminated/,
|
|
46
|
+
// /Connection timed out/,
|
|
47
|
+
// /Operation timeout/,
|
|
48
|
+
// ],
|
|
49
|
+
// },
|
|
54
50
|
}
|
|
55
51
|
);
|
|
56
52
|
|