Skip to main content

How do I load and reliability test my research platform before 20 teachers log in at once?

Script a test of the pilot’s worst ten minutes: 20 teachers and roughly 500–600 students logging in within two minutes, all saving work and calling the model at once, then run it at twice that load. Plan about 10 working days for scripts, runs, fixes and a rollback drill, finished a week before the first class.

Why 20 teachers is not 20 users

Twenty teachers means 20 classrooms. At 25 to 30 students each, that is 500 to 600 sessions, and they do not arrive spread over the hour. They arrive in the 90 seconds after a teacher says "open your laptops", often at several schools on the same bell schedule.

Reliability is research validity. A session that drops mid-task, or a save that fails without telling anyone, is a missing data point in the efficacy study. A teacher who loses a class period to a frozen screen may not log in again.

Build the load model first. The rates below are a starting point; replace them with your app’s real behavior from your logs or from watching one class use it.

Event Realistic pilot load Test at (2x)
Logins at class start 600 in 2 minutes 1,200 in 2 minutes
Concurrent active sessions 600 for a 45-minute period 1,200
Autosaves (one per student every 30 seconds) 20 per second 40 per second
Model calls (one per student every 2 minutes) 5 per second 10 per second
Teacher dashboard refreshes (every 15 seconds) about 1.3 per second about 2.7 per second

The test plan, day by day

Day Step What you have at the end
1 Write the load model. Clone production into a staging environment with the same database tier, auth setup and a separate model API key. A one-page scenario and a staging copy
2–3 Script the student and teacher journeys in k6, Locust or Artillery. Add one real-browser run in Playwright to catch front-end failures. Use synthetic accounts only, never real student records. Repeatable test scripts
4 Baseline: one class of 30, then ramp to 600 over 20 minutes. Response times and errors at normal load
5 Spike: 1,200 logins in two minutes, then hold for 45 minutes. Results against the thresholds
6 Model rate-limit and failure test. Proof that throttling does not reach students
7 Save/load verification run. A record-by-record comparison of written and stored work
8 Rollback drill. A timed, written rollback procedure
9–10 Fix what failed and rerun the failed steps. A tagged pilot build that passed

Start about three weeks before the pilot. The test takes ten working days, and a failed spike test can surface a database or architecture fix that takes another five.

Pass/fail thresholds

These are the thresholds we use for classroom pilots. Tighten the response-time line if your task is timed, because latency then changes the measure itself.

Measure Pass Fail
Login success during the spike 99.5% or more within 10 seconds Any student locked out over 30 seconds
95th-percentile action response Under 2 seconds Over 4 seconds for a sustained minute
Server error rate (5xx) Under 0.5% Over 1%
Saves lost or corrupted 0 1 or more
Model responses 95th percentile under 10 seconds, no raw error shown Any unhandled 429 reaching a student
Database and server load at 2x Under 70% CPU and connections Over 90%
Rollback Under 15 minutes, data intact Longer, or never rehearsed

Model rate limits and save/load verification

Model rate limits

Model providers cap requests per minute and tokens per minute per account, and the cap depends on your usage tier. Check the limit in your provider’s console against your load model: 5 calls per second is 300 requests per minute, and at 1,500 tokens per call that is 450,000 tokens per minute.

Test two things. At 2x load, requests should queue and retry with backoff while the student sees a waiting state. Then force 429 responses from a mock and confirm nothing breaks. If your study compares prompting strategies or models, a silent fallback to another model corrupts the condition assignment, so log every retry and fallback against the session’s condition.

Save/load verification

Have each simulated student write a known sequence of answers, then compare every expected record to what the database holds. Also cut the network mid-save in Playwright, reload, and confirm the work comes back, and open one account in two tabs to catch overwrites.

When we stabilized an NSF-funded React/Firebase research platform used across several universities, making saving and loading student work 100% reliable was the fix researchers cared about most. Lost work was lost data.

The rollback plan

  1. Tag the build that passes as the pilot build and freeze features from that point.
  2. Deploy with one command and roll back with one command, and time both.
  3. Back up the database before every deploy and test one restore into staging.
  4. Put the model-calling feature behind a flag so it can be turned off without a deploy.
  5. Name who is on call for the first three class sessions, and give teachers a fallback such as a paper version of the task.

On day 8, deploy a deliberately broken build to staging, roll it back, and confirm no saved work was lost. Write the steps down so someone other than the developer can follow them.

What breaks first on a school network

  • Rate limits keyed on IP address. A whole school can share one public IP, so a limit of 100 requests per minute per IP blocks a class. Key limits on the user.
  • Content filters. District filters block unfamiliar domains, websockets and third-party asset hosts. List every domain the app calls in the technical disclosure you send district IT.
  • Cold starts. Serverless functions idle overnight, and the 8:05 class hits them cold. Keep a minimum number of instances warm during school hours.
  • Shared Chromebooks. Cached sessions log a student in as the previous user.
  • Bandwidth. One large audio file times 30 students on one access point stalls the room.

A lab load test will not catch filters. Run one session on a district device inside a school building the week before the pilot. That check was part of how we took a research prototype to a district-approved classroom pilot with 20 teachers across two districts in under 30 days.

Frequently asked questions

Can a graduate student run a load test for a research pilot?
Yes, if they have about two weeks, access to a staging copy of the platform and authority to change the code when tests fail. The scripting is the easy part. The harder part is diagnosing and fixing what the spike test reveals, which often means database or architecture changes.

What tools should I use to load test a classroom research platform?
k6, Locust and Artillery are free and handle scripted login spikes and concurrent sessions well. Add Playwright for a smaller number of real-browser sessions, which catch front-end failures and let you simulate a network drop mid-save. Use synthetic accounts, never real student records.

Should I load test against production?
No. Test against a staging clone with the same database tier and settings, and a separate model API key so you do not use up your pilot quota. If you have to touch production, do it outside school hours with synthetic accounts and delete them afterward.

How much does a load and reliability test cost?
Expect about 60 to 80 engineering hours over 10 working days, which is $5,100 to $6,800 at $85 an hour. Fixes the test turns up are extra and depend on what fails. In a Phase II budget, list it as its own line under pilot readiness.

How much headroom does a pilot platform need?
Test at twice your expected peak, so 1,200 sessions for a 600-student pilot. If the next phase is a larger efficacy study, run one test at that size too. That tells you, before you write the proposal, whether the architecture will scale or needs rework.

Related answers

Planning a pilot with 20 teachers?

We offer a free 30-minute review of your pilot plan or your proposal’s technical section. Bring the prototype’s repository or a demo, the pilot timeline, and any requirements from your funder or district. Start a conversation.