Skip to content

Commit fda814c

Browse files
committed
feat(webapp): add compute migration env config
1 parent e2b15fe commit fda814c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

apps/webapp/app/env.server.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ const EnvironmentSchema = z
158158
WORKER_SCHEMA: z.string().default("graphile_worker"),
159159
WORKER_CONCURRENCY: z.coerce.number().int().default(10),
160160
WORKER_POLL_INTERVAL: z.coerce.number().int().default(1000),
161+
// JSON map of container-region masterQueue -> compute-backing masterQueue.
162+
// Absence of an entry means that region is never migrated (e.g. EU until it
163+
// has a compute backing). Example: {"us-east-1":"us-east-1-next"}
164+
COMPUTE_BACKING_MAP: z.string().default("{}"),
165+
// How often each replica reloads the global flags snapshot from the DB.
166+
// Sets kill/ramp propagation latency.
167+
GLOBAL_FLAGS_RELOAD_INTERVAL_MS: z.coerce.number().int().default(5000),
168+
// Max time the first trigger blocks waiting for the initial flags load
169+
// before falling back to defaults (off = container, the safe direction).
170+
GLOBAL_FLAGS_READY_TIMEOUT_MS: z.coerce.number().int().default(5000),
161171
WORKER_ENABLED: z.string().default("true"),
162172
GRACEFUL_SHUTDOWN_TIMEOUT: z.coerce.number().int().default(60000),
163173
DISABLE_SSE: z.string().optional(),

0 commit comments

Comments
 (0)