'all' (default): Monolithic mode — serves HTTP/GraphQL/WebSocket traffic AND runs all background worker loops.
'api': Stateless API/WebSocket edge — serves HTTP/GraphQL/WebSocket traffic ONLY; skips background schedulers,
queue dispatchers, and janitors so event-loop responsiveness is isolated from heavy background jobs.
'worker': Background worker replica — runs ScheduledJobsService, IntegrationSyncWorkerService,
StartTaskGraphDispatcher, StartWorkQueueHost, SessionJanitor, and orphan reconcilers while keeping
only lightweight healthcheck/metrics HTTP endpoints active.
Supported MJServer horizontal scaling roles (
MJ_SERVER_ROLE).'all'(default): Monolithic mode — serves HTTP/GraphQL/WebSocket traffic AND runs all background worker loops.'api': Stateless API/WebSocket edge — serves HTTP/GraphQL/WebSocket traffic ONLY; skips background schedulers, queue dispatchers, and janitors so event-loop responsiveness is isolated from heavy background jobs.'worker': Background worker replica — runsScheduledJobsService,IntegrationSyncWorkerService,StartTaskGraphDispatcher,StartWorkQueueHost,SessionJanitor, and orphan reconcilers while keeping only lightweight healthcheck/metrics HTTP endpoints active.