Skip to content

feat(scripts): server metrics reconnect a user's devices by default and keep the 20-client storm behind --stress - #41372

Merged
juliusmarminge merged 2 commits into
mainfrom
perf/server-metrics-reconnect
Nov 23, 2026
Merged

juliusmarminge merged 2 commits into
mainfrom
perf/server-metrics-reconnect

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The default clients run ended with 20 clients dropping and reconnecting at once. That is an upper bound no user hits daily, and it was the only reconnect number we had.

Stacked on #41371.

  • The default reconnect is now a user's devices: 3 clients, each holding the shell, VCS status and the same 10 thread subscriptions, drop at once and come back. It records time to every subscription's snapshot and the loop delay across it (clients.reconnect).
  • --stress adds the 20-client storm (clients.storm, one thread each), unchanged otherwise. The drop-and-reconnect steps are shared in reconnectAll.
  • Files from before still decode, since storm is optional.
  • The reconnect has no A/A run yet, so until it gets one it uses the storm's noise floors (200 ms to resubscribe; p99 delay informational).

Cups, one run (--only clients --threads 0 --stress, load 13, other processes 1.6 cores): reconnect of 3×10 in 758 ms with p99/max delay 42/42 ms; storm of 20×1 in 1074 ms with 31/42 ms.

Model: Claude Opus 5.5, harness: Claude Code in T3 Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 23, 2026
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-working branch from fdf7f10 to 3f93f69 Compare November 23, 2026 10:31
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from fd9cf26 to fa3dd5f Compare November 23, 2026 10:31
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for d77ac4b.

This comment will update automatically after the next completed run.

@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from fa3dd5f to cfa006c Compare November 23, 2026 14:02
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-working branch from 3f93f69 to 416b181 Compare November 23, 2026 14:02
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from cfa006c to d742e66 Compare November 23, 2026 14:15
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-working branch from 416b181 to ac44961 Compare November 23, 2026 14:15
@juliusmarminge
juliusmarminge changed the base branch from perf/server-metrics-working to main November 23, 2026 14:20
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from d742e66 to d77ac4b Compare November 23, 2026 14:21
@juliusmarminge
juliusmarminge changed the base branch from main to perf/server-metrics-working November 23, 2026 14:21
Base automatically changed from perf/server-metrics-working to main November 23, 2026 14:22
juliusmarminge and others added 2 commits November 23, 2026 06:22
…nd keep the 20-client storm behind --stress

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…til it has an A/A run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@juliusmarminge
juliusmarminge force-pushed the perf/server-metrics-reconnect branch from d77ac4b to dc9c942 Compare November 23, 2026 14:23
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@juliusmarminge
juliusmarminge merged commit f1e3906 into main Nov 23, 2026
33 checks passed
@juliusmarminge
juliusmarminge deleted the perf/server-metrics-reconnect branch November 23, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant