Use all 4 vCPUs and add Chunky for worldgen pre-generation - #12
Open
OpenSource-For-Freedom wants to merge 1 commit into
Open
Use all 4 vCPUs and add Chunky for worldgen pre-generation#12OpenSource-For-Freedom wants to merge 1 commit into
OpenSource-For-Freedom wants to merge 1 commit into
Conversation
The droplet was resized from 2 to 4 vCPUs, but the container carried a hard `cpus: 2.0` cap, so the two new cores would have gone entirely unused. Worldgen had been sitting at ~197% of 2 cores with load 3.95, which is the actual reason exploring felt slow after Terralith landed. Raise the cap to 3.5 and leave 0.5 for the host, so sshd/tailscaled, auditd and the deploy timer stay responsive while the server is busy. Add Chunky 1.3.146 (Forge, 1.20.1, pinned, no dependencies) so chunks can be built ahead of time instead of on the critical path while a player is flying. It is server-only and inert until an op runs a command, so the player pack is unchanged and nobody has to re-import anything.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Speeds up world generation after the droplet resize.
Two changes
1. Raise the container CPU cap from 2.0 to 3.5.
The droplet went from 2 to 4 vCPUs, but
docker-compose.ymlpinned the container atcpus: 2.0. Without this the resize buys nothing at all: the container was measured pegged at ~197% of 2 cores with load average 3.95 during worldgen, which is the real reason exploring felt slow once Terralith started generating new terrain.3.5 rather than 4.0 deliberately. The host still needs cycles for sshd/tailscaled, auditd, Docker and the deploy timer. Handing the entire box to the JVM makes the admin plane unresponsive exactly when the server is busiest, which is when you most need to get into it.
2. Add Chunky 1.3.146 -
https://cdn.modrinth.com/data/fALzjamp/versions/4FTDk9wv/Chunky-1.3.146.jarVerified against the Modrinth API before pinning: release channel,
loaders: [forge], lists1.20.1, 333 KB, no dependencies.Chunky pre-builds chunks instead of generating them while a player is flying through them. This is the fix that actually matters long-term: pre-generated terrain costs nothing to explore later.
Player impact: none
Chunky is
client_side: optional / server_side: optionaland is an admin tool, not gameplay. It does nothing until an op runs a command. It is not in the player pack, so nobody re-imports anything and no client changes.How it gets used after merge
Run when nobody is playing:
It checkpoints to disk, so a restart resumes rather than starting over.
Security / supply chain
REMOVE_OLD_MODS=TRUEstill holds; no floating refs introduced.Sizing note
Pre-generation permanently grows the world save, roughly 1 GB per 1500-block radius in the overworld. The disk auto-grew to 154 GB on resize with 148 GB free, so radius 3000 is comfortable. Do not set 20000 casually.
Verified before pushing
docker compose configrenders; effectivecpus: 3.5s-4vcpu-8gb-amd,nproc= 4, root fs 154 GB