Lock-Free MMO Backend Engineering at Scale
Gypsum Server is our proprietary, horizontally scalable MMO server cluster written in Go on top of Conduit and zero-copy FlatBuffers serialization. Engineered from the ground up to power Sovran Gate, Gypsum Server eliminates mutexes, heap allocations on the routing hot path, and external database bottlenecks so massive coalition city sieges execute with deterministic tick pacing.
Like Conduit, the Gypsum 3D Engine, and this website itself, Gypsum Server is designed, implemented, and verified end-to-end using Agentic AI governed by strict architectural specifications and automated verification suites.
Gypsum Server Service Tiers & Session Architecture
Gypsum Server partitions the MMO backend into four specialized Conduit Node Groups and Service Roles, ensuring that external internet traffic, account authentication, differential file patching, and world simulation remain cleanly isolated:
1. Gateway Tier: Encrypted Ingress, Session Isolation & Live Shard Discovery
Players and launchers connect exclusively to the Gateway Node Group. Each Gateway enforces a strict pre-authentication gate that drops unrecognized traffic until credentials are verified. Once signed in, the player’s internal session token stays inside the Gateway’s memory and never crosses the internet. Gateways also maintain a lock-free in-memory shard directory updated via threshold multicast from every Shard Director—delivering instant live status, load tiers (Low, Medium, High, Full), operator locks, and Conduit Markdown realm descriptions with zero per-login backend fan-out.
2. Replicated Login Tier: Fast In-Memory Accounts & One-Time Handoffs
Rather than leaving Conduit’s Root Node (Node 0) idle, Node Group 0 serves as the Login Node Group, running the primary Login service on Root Node 0 alongside replicated peer nodes:
- In-Memory Accounts with Server-Side Pagination & Chunked Sync: Account records live in a lock-free in-memory store backed by a checksummed Write-Ahead Log (WAL). Server-side paginated queries across accounts, active sessions, and audit history—paired with constant-time status summaries and chunked peer replication—let operators browse, filter, and manage 100,000+ accounts smoothly without pulling the entire table into desktop memory.
- Simultaneous Peer Cutover: Account updates replicate across peer Login nodes with a coordinated future timestamp. Every peer switches to the new record at the exact same instant—no read/write locks required.
- “Last Login Wins” & Crash Cleanup: Duplicate logins automatically disconnect stale sessions across Gateways, and Conduit’s push-based status events clean up sessions immediately if a Gateway ever drops offline.
- Single-Use One-Time Tokens: When the launcher finishes patching and starts the Gypsum 3D Client, it requests a single-use cryptographic token—handing off the authenticated session cleanly without asking the player to sign in twice.
3. Patcher Tier: Six Modular Groups, Flat Targets & Zero-Downtime Releases
The Patcher Node Group organizes client updates into six independent groups (Client Binaries, UI Archives, 3D World Zones, Visual Skins, Compiled Shaders, and Hotfix Overrides) mapped to clean flat client targets with empty-manifest protection so required binaries or shaders can never be wiped accidentally. Operators stage changed 64 KiB chunks across all nodes through the streamlined three-view Deploy Patches workspace inside Gypsum Server Admin, verify integrity hashes, and flip every Patcher to the new release simultaneously with zero downtime—with one-click Sync Replicas healing if a node rejoins late.
4. Named Log Channels Across All Six Service Tiers
Every Gypsum Server service—Gateway, Login, Patcher, Shard, Chat, and Zone—sends structured logs through Conduit’s asynchronous logging pipeline instead of writing to standard terminal output. Dedicated diagnostic channels and readable reason codes can be filtered or toggled live across the cluster without restarting a single server.
The Dual-Shard 18-Container LXC Cluster Topology (Avalon & Hyperion)
In addition to a single-machine local development harness, Gypsum Server runs our live Avalon and Hyperion realms inside a production-grade 18-container Linux LXC (Incus) dual-shard topology engineered for 20,480 concurrent player connections within a strict 24 Physical Core (48 vCPU) / 192 GiB RAM hardware budget—splitting the world simulation budget evenly 50/50 across both isolated shards.
Hardware Budget & Two-Way NUMA Socket Isolation
On dual-socket server hardware (48 Physical Cores / 96 Threads and 384 GiB DDR4 ECC RAM across two NUMA nodes), Gypsum Server enforces two-way NUMA socket isolation:
- Socket 0 (NUMA Node 0 — 24 Cores / 192 GiB RAM): Dedicated to the Linux host operating system, Go compilation pipelines, and Agentic AI engineering workflows so build activity never steals CPU cache or memory bandwidth from the live game cluster.
- Socket 1 (NUMA Node 1 — 24 Cores / 192 GiB RAM): Strictly reserved for the 15-container LXC MMO cluster with swap disabled. Of the 48 hardware threads and 192 GiB RAM on Socket 1, 46 vCPUs and 166 GiB RAM are allocated directly to the 15 containers, leaving 2 vCPUs and 26 GiB of dedicated headroom for kernel network bridging and packet processing.
Avalon LXC Container Breakdown
| Container Tier | Containers | Conduit Nodes | Total vCPUs | Total RAM | Primary Responsibility |
|---|---|---|---|---|---|
| Edge Load Balancer | 1 | Edge L4 Proxy | 2 vCPUs | 2 GiB | Distributes incoming TLS connections across all 5 Gateway containers via least-connection balancing. |
| Gateway Node Group | 5 | Leaf Nodes 1–5 | 10 vCPUs | 20 GiB | Terminates TLS and isolates internal session tokens for up to 20,480 concurrent players (4,096 per container). |
| Login Node Group | 3 | Root Node 0 + Leaf Nodes 6–7 | 6 vCPUs | 12 GiB | 3-way replicated lock-free Copy-on-Write account store, per-container WAL persistence, and One-Time Token handoffs. |
| Patcher Node Group | 3 | Leaf Nodes 8–10 | 6 vCPUs | 36 GiB | High-memory SHA-256 manifest indexing, parallel 64 KiB chunk streaming, and two-phase hot atomic patch staging. |
| Avalon Core | 1 | Leaf Node 11 | 4 vCPUs | 12 GiB | Runs the static Avalon Shard Director and dynamically supervised Shard Chat Server with audit logs. |
| Avalon Static Zones | 1 | Leaf Node 12 | 15 vCPUs | 60 GiB | Heavy-compute node supervising 5 persistent open-world Static Zone Servers (Core Worlds, Cities & Plots). |
| Avalon Instanced Zones | 1 | Leaf Node 13 | 5 vCPUs | 16 GiB | Elastic simulation node dynamically spawning on-demand Instanced Zone Servers for dungeons and raids. |
| Total Cluster Footprint | 15 Containers | Nodes 0–13 + LB | 46 vCPUs | 166 GiB | 12 Static Daemons + 3 Dynamic Service Templates across 4 Isolated Node Groups |
Sub-Two-Second Rapid Bounces Without Root Privileges
To give our engineers and Agentic AI agents immediate feedback against the full 15-container Avalon topology, the LXC cluster separates immutable code from node-local state:
Shared Read-Only Binary & Config Mount
All 14 Conduit containers mount compiled server binaries, cluster configurations, and TLS certificates read-only from a user-owned host prefix—eliminating the need to copy executables into 14 separate container filesystems.
Isolated Per-Container Writable Quotas
Each container maintains its own isolated writable root disk quota for node-local Write-Ahead Logs, account snapshots, chat audit logs, and versioned patch trees—preventing any cross-container I/O contention.
Safe Binary Swaps (Zero Busy-File Errors)
Updates swap new binaries into place atomically rather than overwriting running executables. Active containers keep running cleanly on the previous binary until restarted.
~1.5-Second Parallel Cluster Bounce
Without requiring root privileges, a single command rebuilds the server suite, swaps the host binaries, restarts Root Node 0, and bounces all 13 Leaf containers in parallel in roughly 1.5 seconds.
Workstation-to-Server SSH Deploys
Engineers working on a laptop or desktop can compile the server locally and stream one compressed bundle over SSH to provision, start, or rapid-bounce a remote 15-container LXC host—no Go compiler or Git checkout needed on the server.
Gypsum Server Admin Workbench & Hardened SSH
Hardened key-based SSH access on Root Node 0 lets Gypsum Server Admin (built on Conduit's shared desktop framework) connect directly or over a jump host to manage Login accounts, active sessions, Patcher releases, and replica sync—complete with offline runbooks and a built-in Antigravity AI assistant guarded by read-only Ask/Plan safety.
Gypsum Server Admin: Live MMO Operations Showcase
Running live game operations calls for different workflows than managing low-level broker nodes. Built on Conduit’s shared desktop shell, Gypsum Server Admin focuses every panel on live Login, Patcher, and Shards operations—connecting locally or over verified SSH tunnels into Root Node 0 using config-derived authentication tokens instead of shared operator passwords.
Multi-Shard Directory, Maintenance Locks & Realm Metadata
- Live Avalon & Hyperion Visibility: Inspects every configured shard’s online status, smoothed load tier (
Low,Medium,High,Full), live capacity, and configured static world zones from one view. - Instant Maintenance Locks & Markdown Lore: Toggles in-memory maintenance locks with custom player-facing reasons that broadcast immediately to Gateways, and previews cluster-propagated Markdown realm descriptions across online, locked, and offline states.
WebP • Expand100,000+ Account Management & Active Session Control
- Server-Side Paged Browsing & Race-Free Filtering: Search bars, status filters, and First/Prev/Next/Last pagination controls query bounded pages directly from the primary Login service—keeping account and audit-history tables snappy past 100,000+ accounts while cancelling superseded queries during rapid typing.
- Staged Drafts & Safe Hashing: New accounts and edits stay in local drafts until applied, where the Login tier validates inputs, hashes passwords securely with per-account salts on the server, and replicates changes across peers simultaneously.
- Live Session Auditing, Eviction & Pinned Tabs: Operators inspect account permissions, sequenced write-ahead audit trails, and active player sessions across replicated Login nodes, using Conduit’s shared preview and pinned tab workflow to keep multiple workspaces open side by side.
WebP • ExpandStreamlined Deploy Patches & Six-Group Safety
- Guided Three-Step Deployment: Maps local build folders to flat patch-group targets via drag-and-drop or a single parent build root, previews exact file deltas locally, and commits updates atomically across every Patcher replica.
- Empty-Directory Wipe Protection & Smart File Reuse: Core groups block accidental empty-directory deploys while clearable override layers can be intentionally pruned, and unchanged files transfer zero bytes across releases.
WebP • ExpandCluster-Wide Replica Consensus & One-Click Sync Replicas Healing
- Real-Time Drift Detection: Compares aggregate SHA-256 digests across every online Patcher instance—reporting
IN_SYNCwhen peers match and immediately surfacingDRIFTin Services Tree if any replica falls behind. - Automated Delta Healing: Clicking Sync Replicas pulls only missing verified chunks from an authoritative peer, validates the staged digest, and commits atomically across lagging nodes—aborting cleanly if any check fails.
WebP • ExpandBuilt-In Antigravity AI & Hardened Service Boundaries
- Interactive AI Operator: Embeds an Antigravity AI assistant with dedicated Login, Patcher, and Shards tools, bundled operational skills, and built-in offline runbooks.
- Two-Layer Read-Only Safety: In Ask and Plan modes, live cluster writes (account changes, session kicks, shard locks, patch deploys, and replica syncs) are hidden and blocked at runtime—while local staging previews remain available before switching to Agent mode.
- Clean Public vs. Internal Boundary: External Linux, macOS, and Windows game clients receive only the public Gateway protocol, keeping internal cluster messages and named diagnostic log channels strictly inside the backend.
WebP • ExpandRead our latest Paginated Login Scale & Workbench Refinements Dispatch, explore the 7-Screen Visual Tour of Gypsum Server Admin, or dive into our Dual-Shard Discovery & Streamlined Patch Deployment Dispatch.
