load-test: walking-together scenario (100-participant cursor + URL load) - #165
Open
spencerc99 wants to merge 1 commit into
Open
load-test: walking-together scenario (100-participant cursor + URL load)#165spencerc99 wants to merge 1 commit into
spencerc99 wants to merge 1 commit into
Conversation
Models a real walking-together participant under load: continuous cursor movement (awareness), periodic keyed-map roster upsert, and periodic URL shares to the chat array. Lets us load-test ~100 active participants — the scenario that took the room down before the keyed-map fix. Also fixes the stale root package.json load-test script paths (load-test/ -> tools/load-test/, where the harness was moved). Validated locally against a wrangler dev worker at 100 users: 0 client errors, 100% propagation, no DO overload/503/memory failure. The only server-side event was the per-connection message-rate limit (1000 msg/sec) closing some very-chatty synthetic clients, which auto-reconnect.
commit: |
Owner
Author
Code reviewNo issues found. Checked for bugs and project-instruction compliance. |
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.
Summary
Adds a
walking-togetherscenario to the load-test harness so we can verify the page holds up with ~100 active participants — the scenario that crashed the room before the keyed-map roster fix.Each virtual user behaves like a real participant: continuous cursor movement (awareness, 10Hz), periodic keyed-map roster upsert, and periodic URL shares to the chat array.
Also fixes the stale root
package.jsonload-testscript paths (load-test/→tools/load-test/, where the harness was moved in an earlier refactor but the scripts weren't updated).Results (local wrangler dev, 100 users, transient mode)
How to run
Doc-bounded-ness is covered by the companion soak test (
smoke:partykit:soak), which measures struct count from a connected client (the load-test admin-inspect can't read live doc size in transient mode).