@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.js
CHANGED
|
@@ -124,7 +124,17 @@ var init_commons = __esm({
|
|
|
124
124
|
username,
|
|
125
125
|
password,
|
|
126
126
|
database,
|
|
127
|
-
application: "moose"
|
|
127
|
+
application: "moose",
|
|
128
|
+
// Connection pool configuration for high load (100+ concurrent users)
|
|
129
|
+
max_open_connections: 50,
|
|
130
|
+
// Increased from default 10 to handle 100 concurrent users
|
|
131
|
+
request_timeout: 6e4,
|
|
132
|
+
// 60s timeout for HTTP requests (queries and inserts)
|
|
133
|
+
keep_alive: {
|
|
134
|
+
enabled: true,
|
|
135
|
+
idle_socket_ttl: 2e3
|
|
136
|
+
// 2s idle time (lower than default to prevent socket hang-ups)
|
|
137
|
+
}
|
|
128
138
|
// Note: wait_end_of_query is configured per operation type, not globally
|
|
129
139
|
// to preserve SELECT query performance while ensuring INSERT/DDL reliability
|
|
130
140
|
});
|
|
@@ -2931,7 +2941,21 @@ async function getTemporalClient(temporalUrl, namespace, clientCert, clientKey,
|
|
|
2931
2941
|
);
|
|
2932
2942
|
let connectionOptions = {
|
|
2933
2943
|
address: temporalUrl,
|
|
2934
|
-
connectTimeout: "
|
|
2944
|
+
connectTimeout: "30s",
|
|
2945
|
+
// Increased from 3s to handle high load
|
|
2946
|
+
// Add gRPC keepalive to prevent connection drops
|
|
2947
|
+
channelArgs: {
|
|
2948
|
+
"grpc.keepalive_time_ms": 3e4,
|
|
2949
|
+
// Send keepalive every 30s
|
|
2950
|
+
"grpc.keepalive_timeout_ms": 15e3,
|
|
2951
|
+
// Wait 15s for keepalive response
|
|
2952
|
+
"grpc.keepalive_permit_without_calls": 1,
|
|
2953
|
+
// Allow keepalive without active calls
|
|
2954
|
+
"grpc.http2.max_pings_without_data": 0,
|
|
2955
|
+
// No limit on pings without data
|
|
2956
|
+
"grpc.http2.min_time_between_pings_ms": 1e4
|
|
2957
|
+
// Min 10s between pings
|
|
2958
|
+
}
|
|
2935
2959
|
};
|
|
2936
2960
|
if (clientCert && clientKey) {
|
|
2937
2961
|
console.log("Using TLS for secure Temporal");
|