@opengeni/config 0.7.6 → 0.7.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/config",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "description": "OpenGeni runtime configuration: settings resolution, deployment knobs, and config validation shared across the server packages.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@opengeni/codex": "^0.2.7",
37
- "@opengeni/contracts": "^0.19.4",
37
+ "@opengeni/contracts": "^0.20.1",
38
38
  "zod": "^4.2.1"
39
39
  },
40
40
  "engines": {
package/src/index.ts CHANGED
@@ -208,6 +208,10 @@ const SettingsSchema = z.object({
208
208
  startupDependencyRetryAttempts: z.coerce.number().int().positive().default(30),
209
209
  startupDependencyRetryInitialDelayMs: z.coerce.number().int().positive().default(1000),
210
210
  startupDependencyRetryMaxDelayMs: z.coerce.number().int().positive().default(5000),
211
+ turnWorkerConcurrencyMode: z.enum(["fixed", "resource-based"]).default("fixed"),
212
+ turnWorkerMaxConcurrentTurns: z.coerce.number().int().positive().max(2_000).default(16),
213
+ turnWorkerTargetCpuUsage: z.coerce.number().positive().max(1).default(0.8),
214
+ turnWorkerTargetMemoryUsage: z.coerce.number().positive().max(0.8).default(0.75),
211
215
  observabilityStructuredLogs: EnvBoolean.default(false),
212
216
  observabilityMetricsEnabled: EnvBoolean.default(true),
213
217
  observabilityOtlpEndpoint: z.string().url().optional(),
@@ -1332,6 +1336,10 @@ export function getSettings(): Settings {
1332
1336
  "OPENGENI_STARTUP_DEPENDENCY_RETRY_INITIAL_DELAY_MS",
1333
1337
  ),
1334
1338
  startupDependencyRetryMaxDelayMs: optional("OPENGENI_STARTUP_DEPENDENCY_RETRY_MAX_DELAY_MS"),
1339
+ turnWorkerConcurrencyMode: optional("OPENGENI_TURN_WORKER_CONCURRENCY_MODE"),
1340
+ turnWorkerMaxConcurrentTurns: optional("OPENGENI_TURN_WORKER_MAX_CONCURRENT_TURNS"),
1341
+ turnWorkerTargetCpuUsage: optional("OPENGENI_TURN_WORKER_TARGET_CPU_USAGE"),
1342
+ turnWorkerTargetMemoryUsage: optional("OPENGENI_TURN_WORKER_TARGET_MEMORY_USAGE"),
1335
1343
  observabilityStructuredLogs: optional("OPENGENI_OBSERVABILITY_STRUCTURED_LOGS"),
1336
1344
  observabilityMetricsEnabled: optional("OPENGENI_OBSERVABILITY_METRICS_ENABLED"),
1337
1345
  observabilityOtlpEndpoint: