@514labs/moose-lib 0.6.253-ci-8-g891f768b → 0.6.253-ci-3-gb5916f32
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.js
CHANGED
|
@@ -116,7 +116,17 @@ var init_commons = __esm({
|
|
|
116
116
|
username,
|
|
117
117
|
password,
|
|
118
118
|
database,
|
|
119
|
-
application: "moose"
|
|
119
|
+
application: "moose",
|
|
120
|
+
// Connection pool configuration for high load (100+ concurrent users)
|
|
121
|
+
max_open_connections: 50,
|
|
122
|
+
// Increased from default 10 to handle 100 concurrent users
|
|
123
|
+
request_timeout: 6e4,
|
|
124
|
+
// 60s timeout for HTTP requests (queries and inserts)
|
|
125
|
+
keep_alive: {
|
|
126
|
+
enabled: true,
|
|
127
|
+
idle_socket_ttl: 2e3
|
|
128
|
+
// 2s idle time (lower than default to prevent socket hang-ups)
|
|
129
|
+
}
|
|
120
130
|
// Note: wait_end_of_query is configured per operation type, not globally
|
|
121
131
|
// to preserve SELECT query performance while ensuring INSERT/DDL reliability
|
|
122
132
|
});
|
|
@@ -2922,7 +2932,21 @@ async function getTemporalClient(temporalUrl, namespace, clientCert, clientKey,
|
|
|
2922
2932
|
);
|
|
2923
2933
|
let connectionOptions = {
|
|
2924
2934
|
address: temporalUrl,
|
|
2925
|
-
connectTimeout: "
|
|
2935
|
+
connectTimeout: "30s",
|
|
2936
|
+
// Increased from 3s to handle high load
|
|
2937
|
+
// Add gRPC keepalive to prevent connection drops
|
|
2938
|
+
channelArgs: {
|
|
2939
|
+
"grpc.keepalive_time_ms": 3e4,
|
|
2940
|
+
// Send keepalive every 30s
|
|
2941
|
+
"grpc.keepalive_timeout_ms": 15e3,
|
|
2942
|
+
// Wait 15s for keepalive response
|
|
2943
|
+
"grpc.keepalive_permit_without_calls": 1,
|
|
2944
|
+
// Allow keepalive without active calls
|
|
2945
|
+
"grpc.http2.max_pings_without_data": 0,
|
|
2946
|
+
// No limit on pings without data
|
|
2947
|
+
"grpc.http2.min_time_between_pings_ms": 1e4
|
|
2948
|
+
// Min 10s between pings
|
|
2949
|
+
}
|
|
2926
2950
|
};
|
|
2927
2951
|
if (clientCert && clientKey) {
|
|
2928
2952
|
console.log("Using TLS for secure Temporal");
|