@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/dist/index.d.ts CHANGED
@@ -78,6 +78,13 @@ declare const SettingsSchema: z.ZodObject<{
78
78
  startupDependencyRetryAttempts: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
79
79
  startupDependencyRetryInitialDelayMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
80
80
  startupDependencyRetryMaxDelayMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
81
+ turnWorkerConcurrencyMode: z.ZodDefault<z.ZodEnum<{
82
+ fixed: "fixed";
83
+ "resource-based": "resource-based";
84
+ }>>;
85
+ turnWorkerMaxConcurrentTurns: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
86
+ turnWorkerTargetCpuUsage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
87
+ turnWorkerTargetMemoryUsage: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
81
88
  observabilityStructuredLogs: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
82
89
  observabilityMetricsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
83
90
  observabilityOtlpEndpoint: z.ZodOptional<z.ZodString>;
package/dist/index.js CHANGED
@@ -166,6 +166,10 @@ var SettingsSchema = z.object({
166
166
  startupDependencyRetryAttempts: z.coerce.number().int().positive().default(30),
167
167
  startupDependencyRetryInitialDelayMs: z.coerce.number().int().positive().default(1e3),
168
168
  startupDependencyRetryMaxDelayMs: z.coerce.number().int().positive().default(5e3),
169
+ turnWorkerConcurrencyMode: z.enum(["fixed", "resource-based"]).default("fixed"),
170
+ turnWorkerMaxConcurrentTurns: z.coerce.number().int().positive().max(2e3).default(16),
171
+ turnWorkerTargetCpuUsage: z.coerce.number().positive().max(1).default(0.8),
172
+ turnWorkerTargetMemoryUsage: z.coerce.number().positive().max(0.8).default(0.75),
169
173
  observabilityStructuredLogs: EnvBoolean.default(false),
170
174
  observabilityMetricsEnabled: EnvBoolean.default(true),
171
175
  observabilityOtlpEndpoint: z.string().url().optional(),
@@ -1088,6 +1092,10 @@ function getSettings() {
1088
1092
  "OPENGENI_STARTUP_DEPENDENCY_RETRY_INITIAL_DELAY_MS"
1089
1093
  ),
1090
1094
  startupDependencyRetryMaxDelayMs: optional("OPENGENI_STARTUP_DEPENDENCY_RETRY_MAX_DELAY_MS"),
1095
+ turnWorkerConcurrencyMode: optional("OPENGENI_TURN_WORKER_CONCURRENCY_MODE"),
1096
+ turnWorkerMaxConcurrentTurns: optional("OPENGENI_TURN_WORKER_MAX_CONCURRENT_TURNS"),
1097
+ turnWorkerTargetCpuUsage: optional("OPENGENI_TURN_WORKER_TARGET_CPU_USAGE"),
1098
+ turnWorkerTargetMemoryUsage: optional("OPENGENI_TURN_WORKER_TARGET_MEMORY_USAGE"),
1091
1099
  observabilityStructuredLogs: optional("OPENGENI_OBSERVABILITY_STRUCTURED_LOGS"),
1092
1100
  observabilityMetricsEnabled: optional("OPENGENI_OBSERVABILITY_METRICS_ENABLED"),
1093
1101
  observabilityOtlpEndpoint: optional("OPENGENI_OTEL_EXPORTER_OTLP_ENDPOINT") ?? optional("OTEL_EXPORTER_OTLP_ENDPOINT"),