@514labs/moose-lib 0.6.259 → 0.6.260-ci-5-g3b5261dd
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/dist/browserCompatible.js +11 -1
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +11 -1
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/compilerPlugin.js.map +1 -1
- package/dist/compilerPlugin.mjs.map +1 -1
- package/dist/dmv2/index.js +11 -1
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +11 -1
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -2
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +42 -3
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +42 -3
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -108,7 +108,17 @@ var init_commons = __esm({
|
|
|
108
108
|
username,
|
|
109
109
|
password,
|
|
110
110
|
database,
|
|
111
|
-
application: "moose"
|
|
111
|
+
application: "moose",
|
|
112
|
+
// Connection pool configuration for high load (100+ concurrent users)
|
|
113
|
+
max_open_connections: 50,
|
|
114
|
+
// Increased from default 10 to handle 100 concurrent users
|
|
115
|
+
request_timeout: 6e4,
|
|
116
|
+
// 60s timeout for HTTP requests (queries and inserts)
|
|
117
|
+
keep_alive: {
|
|
118
|
+
enabled: true,
|
|
119
|
+
idle_socket_ttl: 2e3
|
|
120
|
+
// 2s idle time (lower than default to prevent socket hang-ups)
|
|
121
|
+
}
|
|
112
122
|
// Note: wait_end_of_query is configured per operation type, not globally
|
|
113
123
|
// to preserve SELECT query performance while ensuring INSERT/DDL reliability
|
|
114
124
|
});
|
|
@@ -2830,7 +2840,21 @@ async function getTemporalClient(temporalUrl, namespace, clientCert, clientKey,
|
|
|
2830
2840
|
);
|
|
2831
2841
|
let connectionOptions = {
|
|
2832
2842
|
address: temporalUrl,
|
|
2833
|
-
connectTimeout: "
|
|
2843
|
+
connectTimeout: "30s",
|
|
2844
|
+
// Increased from 3s to handle high load
|
|
2845
|
+
// Add gRPC keepalive to prevent connection drops
|
|
2846
|
+
channelArgs: {
|
|
2847
|
+
"grpc.keepalive_time_ms": 3e4,
|
|
2848
|
+
// Send keepalive every 30s
|
|
2849
|
+
"grpc.keepalive_timeout_ms": 15e3,
|
|
2850
|
+
// Wait 15s for keepalive response
|
|
2851
|
+
"grpc.keepalive_permit_without_calls": 1,
|
|
2852
|
+
// Allow keepalive without active calls
|
|
2853
|
+
"grpc.http2.max_pings_without_data": 0,
|
|
2854
|
+
// No limit on pings without data
|
|
2855
|
+
"grpc.http2.min_time_between_pings_ms": 1e4
|
|
2856
|
+
// Min 10s between pings
|
|
2857
|
+
}
|
|
2834
2858
|
};
|
|
2835
2859
|
if (clientCert && clientKey) {
|
|
2836
2860
|
console.log("Using TLS for secure Temporal");
|