Skip to content

feat(sentinel): bound cold starts and qualify concurrent game joins - #904

Merged
ValgulNecron merged 2 commits into
masterfrom
test/878-wake-join-burst
Nov 14, 2026
Merged

ValgulNecron merged 2 commits into
masterfrom
test/878-wake-join-burst

Conversation

@Baylem

@Baylem Baylem commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Closes #878. Parent tracker #867. This PR targets master as the first PR in native stack #957. #900 and #886 have landed. #911 builds directly on this PR. #909 carries a copy of the standalone join client for its own rollout rehearsal.

The operator reserves fleet wake slots durably and updates wake status. Explicit stops take precedence, reconciliation releases old reservations and a restart can recover between reservation and wake acknowledgement. The operations guide covers pool sizing, game-specific join objectives, prewarming and qualification of additional games.

The isolated wake qualification boots Minecraft Java over TCP and Teeworlds over UDP on both Service and Hostport paths. Concurrent game clients join across parked servers while the operator restarts. CI collects join success, retries, p95/p99 and worker CPU, memory and I/O pressure. The uploaded reports apply to those game versions and the tested CI hardware. Current checks

Measured cold-wake qualification

On the single-node Kind runner, all 12 real client joins finished within 300 seconds across two separate Minecraft Java 1.21.4 worlds and Teeworlds 0.7.5. The operator restarted 0.492 seconds into the first burst and 0.600 seconds into the second. A 500 ms fleet sampler observed all three starts in each round and a maximum of one starting StatefulSet at once. The Kubernetes watch recorded one game Pod UID per target per round, zero container restarts and no deletions. All six wake tokens were acknowledged and no lifecycle owner remained.

Round Game and transport Exposure Joined Retries p95 / p99 join
1 Minecraft Java TCP Service 4/4 26 65.822 s / 65.822 s
1 Teeworlds UDP Hostport 2/2 6 79.559 s / 79.559 s
2 Minecraft Java TCP Hostport 2/2 26 56.972 s / 56.972 s
2 Minecraft Java TCP Service 2/2 12 33.386 s / 33.386 s
2 Teeworlds UDP Service 2/2 8 104.878 s / 104.878 s

Peak sampled Kind-node cgroup memory was 4.51 GiB and 4.58 GiB by round. Peak 10-second CPU pressure (PSI some) was 33.54% and 32.32%. Memory PSI some stayed at 0.00% and I/O PSI some peaked at 0.18% and 0.00%. Kubernetes reported no memory, disk or PID pressure. There were two to four clients per cohort, so both nearest-rank percentiles select the slowest observed join. One Teeworlds CR still reported Starting immediately after its first successful join. Executed CI job · Raw reports and admission timeline

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 53780b5 and a82b642.

Files selected for processing: 19

  • .github/workflows/ci.yaml
  • changelog/unreleased/904-wake-admission.md
  • charts/gameplane/templates/operator.yaml
  • charts/gameplane/values.yaml
  • docs/architecture.md
  • docs/wake-qualification.md
  • operator/cmd/main.go
  • operator/internal/controller/gameserver_controller.go
  • operator/internal/controller/gameserver_idle.go
  • operator/internal/controller/gameserver_wake_admission.go
  • operator/internal/controller/gameserver_wake_admission_test.go
  • test/e2e/buckets.sh
  • test/e2e/cold_wake_fleet_e2e_test.go
  • test/e2e/gamebot_helpers_e2e_test.go
  • test/e2e/suite-components.json
  • test/e2e/test_wake_burst.py
  • test/e2e/testdata/wake-burst/Dockerfile
  • test/e2e/testdata/wake-burst/teeworlds-join.py
  • test/e2e/wake_burst.py
Pre-merge checks: Passed 1 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Passed Passed checks: 1 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Baylem Baylem added area: e2e kind-based end-to-end suite area: operator controller-runtime operator and CRDs type: feature New capability or user-facing addition labels Nov 11, 2026
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

CI Report - a82b642

run 43538278068 - attempt 1

0 failed - 33 passed - 0 skipped - 35m37s elapsed

Test selection: full (selection-rule change) - per-suite table

Coverage

Module Measured Gate Margin
web L94.22 S92.4 B86.75 F90.59 L92 S92 B82 F76 +0.40

Changed

Area Files +/-
test/ 8 +734/-5
operator/ 5 +240/-1
docs/ 2 +148/-0
.github/ 1 +17/-0
charts/ 2 +6/-0
changelog/ 1 +5/-0

Slowest jobs

Job Duration
e2e telemetry / arm64 (kind) 23m24s
e2e web live / amd64 (kind) 15m18s
e2e restricted-workloads / arm64 (kind) 14m53s
e2e operator / arm64 (kind) 14m4s
e2e web live / arm64 (kind) 13m33s

e2e buckets run

api-agent, api-auth, api-mods, api-rbac, api-roles, bot-fast, multicluster, network-isolation, operator, optional-components, postgres-availability, ratelimit, restricted-workloads, telemetry, upgrade

@Baylem
Baylem changed the base branch from master to fix/native-api-credential-boundary November 11, 2026 06:15
@Baylem
Baylem changed the base branch from fix/native-api-credential-boundary to fix/883-884-mode-scoped-rbac November 11, 2026 06:18
@Baylem
Baylem marked this pull request as ready for review November 11, 2026 12:18
@Baylem
Baylem requested a review from ValgulNecron as a code owner November 11, 2026 12:18
@ValgulNecron

Copy link
Copy Markdown
Collaborator

Hey, could you please add changelog entry?

@Baylem

Baylem commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

Added the requested unreleased changelog entry.

CI passed on b404c207. The diff through 2c4cb0e6 changes only the changelog entry and its index link. I canceled the repeat CI run because this update changes only Markdown.

@Baylem Baylem self-assigned this Nov 12, 2026
@Baylem
Baylem added this pull request to stack #948 November 12, 2026 15:55
@Baylem
Baylem removed this pull request from stack #948 November 13, 2026 20:25
@Baylem
Baylem changed the base branch from fix/883-884-mode-scoped-rbac to master November 13, 2026 20:25
Carry the reviewed wake admission and qualification changes from 48191ee onto the merged RBAC base.

Signed-off-by: Baylem <zelathis@gmail.com>
@Baylem
Baylem force-pushed the test/878-wake-join-burst branch from 48191ee to 6ce152e Compare November 13, 2026 20:27
@Baylem
Baylem added this pull request to stack #957 November 13, 2026 20:27
Keep the cold wake fleet and restored rollout rehearsal registered with their original component and path selectors.

Signed-off-by: Baylem <zelathis@gmail.com>
@ValgulNecron
ValgulNecron merged commit 1190d1a into master Nov 14, 2026
115 checks passed
@ValgulNecron
ValgulNecron deleted the test/878-wake-join-burst branch November 22, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e kind-based end-to-end suite area: operator controller-runtime operator and CRDs type: feature New capability or user-facing addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(sentinel): bound concurrent cold starts and verify client reconnects

2 participants