Documentation
Installing
A · Server jar recommended
Drop Chorus-Server-1.20.1-0.23.0.jar in your server folder and
rename it to whatever jar your pack already starts —
fabric-server-launch.jar, fabric-server-launcher.jar,
server.jar, whatever the pack's run.bat /
start.sh / panel points at. Start the server the way you always have.
On that first start Chorus installs itself into mods/, adds fabric-api
if the pack lacks it, creates plugins/ support, writes
config/chorus.properties, benchmarks storage, tunes the JVM, then hands
off to the normal Fabric server.
B · Mod jar
Drop Chorus-1.20.1-complete-0.23.0.jar into mods/ and leave your server jar alone.
Same engine, same plugin support; you do the updating, and you don't get the
launcher's boot caching.
Updating
Replace the one jar. It removes the old Chorus from mods/ and installs
the new one itself. With the mod jar, swap the file in mods/ as usual.
Storage
On first boot Chorus measures your disk — fsync latency and sequential write, done so
the page cache cannot fake it — and records the verdict as disk.class.
Preloading and async-save behaviour scale with it. HDD hosts get a startup warning:
modern modded servers need solid-state storage.
Commands
| Command | Alias | Shows |
|---|---|---|
/chorus | /ctps | TPS and MSPT, heap, GC, the server's own per-thread-group core usage (not the machine's), async subsystem stats, resolved pool sizing. |
/chorus top | — | Which mods and which machines are eating the tick — by name and by position. |
/chorus clusters | — | The discovered machine-network map and the parallelism ceiling it implies. |
/chorus ram | — | Heap and RSS, per-dimension chunks / entities / block entities, structure-cache and anchor stats. |
/chorus ram full | — | The above plus a class histogram. |
/chorus anchor | — | Chunk anchors. Op-only, permission level 2. |
/chorus ai [on|off] | — | The mob-brain throttle: status, or switch it live. Op-only; persists to chorus.properties. |
Chunk anchors
The chunk-loader block, as a command. Stand in the chunk you want kept alive and run
/chorus anchor. The chunk lights up — a white box around its footprint,
four blue corner pillars — and stays fully loaded and ticking through
restarts with nobody within a thousand blocks. Run it again in the same chunk to
release it.
| Subcommand | Effect |
|---|---|
/chorus anchor | Toggle the chunk you are standing in |
/chorus anchor add [r] | Anchor a (2r+1)² square around you, up to anchor.maxRadius |
/chorus anchor remove [r] | Release them again |
/chorus anchor list | Every anchor on the server, with owner and coords |
/chorus anchor show | Re-light the outlines near you |
Anchors use the same engine-level ticket vanilla /forceload uses, so they
are full entity-ticking chunks and every mod respects them. Chorus keeps its own
registry alongside (config/chorus-anchors.txt) to track ownership, draw
the outline, and never release a chunk somebody force-loaded by other
means. They are independent of idle unloading: an empty dimension still
sheds its 2,209 spawn chunks while your anchored base inside it keeps running.
/forceload, a ticking chunk needs a border-loaded halo, so one
isolated anchor holds roughly a 29×29 area (~840 chunks, only the middle ticking).
Anchors near each other share that halo — anchoring a whole base
costs barely more than anchoring one chunk of it. /chorus ram shows the
real count.
Mob AI throttle
Fabric has no activation range: every mob in a ticking chunk re-evaluates its goals
and ticks its Brain every tick regardless of distance. Chorus scales that by
distance. Within ai.nearBlocks (24) of a player nothing changes; beyond
it a mob thinks every 2 ticks, then every 4 (ai.maxInterval), one step
per ai.bandBlocks (24). Movement, navigation and the look/jump controls
tick every tick, running goals keep running, and anything in combat, riding, ridden
or leashed to a player is never throttled.
Measured with nobody online, so every mob sits at the ceiling: the AI slice of the
entity phase drops by half or more, ON → OFF → ON on the same crowd. (Those rounds ran
under Immersive Optimization's idle schedule; the relative result holds, absolute
milliseconds are being re-measured at full rate.) /chorus shows the
entity phase split into ai / move / push and the share of brain ticks
rested per window.
ai.maxInterval=8 or 16 trades far-away
behaviour for TPS. If a farm ever looks wrong, /chorus ai off restores
vanilla instantly, and the change survives restarts.
Chunk post-processing
Generating a chunk already runs on worker threads. What lags the server is the tail
each chunk pays on the main thread when it becomes ticking — neighbour-shape updates
for every worldgen-marked position plus materialising pending block entities, measured
at 3–8 ms per chunk on a big pack. Chorus rations it: up to
chunk.postBudgetMs (4) per tick, growing with the backlog to
chunk.postBudgetMaxMs (15); chunks past the budget finish on the following
ticks, oldest first. A chunk starts ticking a few ticks before its fences connect;
nothing else changes, and a chunk unloaded while queued keeps its lists on disk exactly
as vanilla would after a crash.
/chorus shows the main-thread chunk phase and its parts
(post-gen … [n over budget, n caught up, n waiting]) plus the worst
tick-to-tick gap — a synchronous chunk load, a GC pause or an autosave stall happens
between ticks and never shows in MSPT, so Chorus measures the gap and warns on any
stall over a second.
Plugins
Chorus embeds a Bukkit/Spigot/Paper API implementation for Fabric. Put plugins in
plugins/ next to mods/ and start the server — no rewrites,
no scheduler API to learn. Plugin code keeps the single-main-thread contract it was
written against; the parallelism happens underneath it.
config/chorus.properties
The only tuning surface, written for you on first boot. Read-only keys are things
Chorus measured, listed so you can see what it decided. Startup arguments work too:
-Dchorus.cores=24.
Async subsystems
| Key | Default | Meaning |
|---|---|---|
asyncPath | true | Off-thread mob pathfinding |
asyncLos | true | Off-thread line-of-sight and targeting |
asyncSpawn | true | Off-thread mob spawn selection |
asyncTracker | true | Off-thread entity tracker updates |
asyncSave | true | Off-thread cold-chunk saves |
asyncLocate | true | Off-thread /locate structure scans |
Parallel engine
| Key | Default | Meaning |
|---|---|---|
beParallel | true | The parallel block-entity engine |
waves | true | Intra-cluster wave scheduling |
waves.minCluster | 5 | Smallest cluster worth splitting into waves |
carto | true | Conflict cartographer (machine-network discovery) |
carto.rebuild | 600 | Seconds between cluster-map rebuilds |
parallelExplosions | true | Parallel explosion ray casts |
preload | true | Predictive chunk preloading |
preload.lookahead | 0 | Chunks ahead of a moving player. 0 = derive from disk class |
path.queueCap | 256 | Cap on queued async path requests |
report | 200 | Ticks between engine report lines in the log |
Mob AI
| Key | Default | Meaning |
|---|---|---|
ai.throttle | true | Scale mob brain ticks by distance from the nearest player |
ai.nearBlocks | 24 | Within this many blocks of a player, nothing changes |
ai.bandBlocks | 24 | Each further band doubles the interval: 2 ticks, then 4 |
ai.maxInterval | 4 | Ceiling on ticks between brain updates. 8 or 16 is the aggressive, DAB-style setting |
Chunks
| Key | Default | Meaning |
|---|---|---|
chunk.postBudget | true | Ration chunk post-processing (shape updates, pending block entities) per tick instead of paying it all at once |
chunk.postBudgetMs | 4 | Milliseconds per tick spent on post-processing with an empty backlog |
chunk.postBudgetMaxMs | 15 | Ceiling as the backlog grows (+0.25 ms per queued chunk) |
Compatibility
| Key | Default | Meaning |
|---|---|---|
compat.immersiveOptimization | true | Set Immersive Optimization’s optimizeForceLoadedChunks to false at boot so anchors tick at full rate. false keeps its default |
Core budget
| Key | Default | Meaning |
|---|---|---|
cores | 0 | Cores Chorus may use. 0 = auto-detect |
cores.min | 1 | Lower clamp on the auto-detected value |
cores.max | 0 | Upper clamp. 0 = unclamped |
threads.be | 0 | Pin the block-entity pool. 0 = derive from the core budget |
threads.fork | 0 | Pin the wave fork pool |
threads.async | 0 | Pin the general async pool |
threads.save | 0 | Pin the save pool |
Memory
| Key | Default | Meaning |
|---|---|---|
dimSpawnUnload | true | Release a dimension’s spawn region while it is empty |
dimSpawnUnload.graceSec | 120 | Player-empty seconds before that release |
idle.graceSec | 300 | Server-empty seconds before whole-server idle mode |
idle.overworldSpawn | true | Release the overworld spawn region too when idle |
idle.restoreRamp | true | Ramp restore 4 → 8 → 11 instead of one burst |
structureCache.evict | true | Evict idle structure templates |
structureCache.ttlSec | 300 | How long an unused template survives |
JVM auto-tune
| Key | Default | Meaning |
|---|---|---|
autoTune.jvm | true | Let Chorus write -Xms/-Xmx and GC flags into your argument file |
tune.heapOverrideMB | 0 | Pin the heap yourself. 0 = let Chorus size it |
tune.ramVisibleMB | read-only | RAM measured as visible, container limits included |
tune.heapTargetMB | read-only | What it decided on |
tune.bootSeconds | read-only | Last measured boot time |
Disk profile
| Key | Default | Meaning |
|---|---|---|
disk.class | measured | NVME | SSD | HDD, decided on first boot |
disk.syncUs | measured | fsync latency in microseconds |
disk.seqMBps | measured | Sequential write in MB/s |
Chunk anchors
| Key | Default | Meaning |
|---|---|---|
anchor.maxRadius | 4 | Largest radius /chorus anchor add will accept |
anchor.showSec | 20 | Seconds the outline stays lit after a command |
anchor.alwaysShow | false | Keep anchor outlines permanently visible |
anchor.renderRange | 96 | Blocks within which outlines are drawn |
Boot (server jar only)
| Key | Default | Meaning |
|---|---|---|
boot.chorusMixin | true | Swap in the parallel Chorus-Mixin transformer. Only on an exact base-version match; unknown packs keep stock Mixin |
boot.prewarm | true | Pre-transform the learned class list on worker threads. Interlocked — the engine arms workers only once the launcher confirms Chorus-Mixin is active |
boot.classCache | true | Content-addressed cache of post-Mixin bytecode |
Heap and JVM flags
Chorus measures the RAM actually visible to the server — container limits included —
and writes tuned flags into whichever argument file your launcher really
reads: variables.txt for ServerPackCreator packs,
user_jvm_args.txt for Forge-style scripts and most panels. It marks what
it wrote, backs the file up once, and verifies on the next boot. You never edit
run.bat.
The managed set is an -Xms/-Xmx pair sized to the box, plus:
The heap-free-ratio pair matters most. With G1's defaults a Minecraft server commits
its way up to -Xmx and never gives a byte back — the
threshold is never crossed. At 40 the committed heap tracks real usage, so idle RAM
returns to the OS as page cache for your region files. Measured on a live 447-mod
pack: committed 5.24 GB → 4.03 GB, RSS 6.5 GB → ~4 GB.
To take it back: set tune.heapOverrideMB, or delete the
# chorus-managed line from the argument file for full manual control.
Host tuning optional
Chorus never requires host changes. If you administer your own Linux box, these help — extras, not prerequisites:
- zram swap (zstd, ~50% of RAM) as the first swap tier. Compressed-RAM swap absorbs the JVM's cold pages at microsecond latency where disk swap thrashes — the GC touches pages during marking, and disk-backed swap fights that in a way zram does not.
vm.page-cluster=0(zram readahead off) andvm.swappiness=10.- A real swapfile on NVMe as the second tier, lower priority than zram.
- On Windows, the default pagefile on an NVMe drive fills the same role.
Known incompatibilities
| Mod | Status | What to do |
|---|---|---|
lithium (explosions) | auto-handled | Detected at boot. Chorus stands down and logs how to hand explosions to Chorus instead if you would rather. |
immersive_optimization | auto-handled | Its optimizeForceLoadedChunks default throttles force-loaded chunks up to 1-in-20 with nobody near, which quietly undoes /chorus anchor. Chorus sets it to false at boot (backup kept beside the file, one log line) and leaves the rest alone. compat.immersiveOptimization=false keeps their default. |
opac_fixes | works on 1.1.4 | 1.1.x crashed at boot with the Bukkit layer present (its own reflection). 1.1.4 boots clean; if you are on an older build, update it or remove it. |
emi_loot | upstream bug | Its block-loot sync packet can drop clients at join on very large packs. Set parseBlockLoot = false in config/emi_loot_config.toml; chest, mob and gameplay loot sync still work. |