Skip to content

feat(controller): allocate private servers per owner - #55

Merged
TheMeinerLP merged 2 commits into
mainfrom
feat/v2-private-cells
Nov 25, 2026
Merged

TheMeinerLP merged 2 commits into
mainfrom
feat/v2-private-cells

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

Problem

Players and groups cannot get a server of their own. Everything in a pool is shared, and a pool that scales by
buffer would either keep idle servers around or never start one for a single owner.

Approach

A pool can now declare a private section (quota per owner, idle timeout). Such a pool is never autoscaled:
nothing runs until an owner asks. POST /v1/private-servers returns the owner's running server or starts one;
an owner who is at the quota gets a 409. GET lists them, DELETE drains one. A server that stays empty for the
idle timeout is stopped and a private.idle-stop event is published. grus private create|list wraps this.

The owner is stored as the instance label grus.olf/owner. Instances can no longer overwrite grus.olf/ labels
when they report their own labels.

World persistence is spec only (README and code comment): a later version snapshots the instance directory to a
template on stop.

Testing

Controller, model, autoscaler, API, client and CLI tests with a fake clock and fake driver, no sleeps. The
OpenAPI document and the web types are regenerated (separate commit). The web commit only touches the generated
types file.

Pools with a private section are created on demand through
/v1/private-servers, limited per owner, and stopped after they stayed
empty for the idle timeout. Adds grus private create and list.
@TheMeinerLP
TheMeinerLP merged commit fcafc0d into main Nov 25, 2026
7 checks passed
@TheMeinerLP
TheMeinerLP deleted the feat/v2-private-cells branch November 25, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant