Simulate sudden traffic surges

Spike Testing

Model sudden, dramatic increases in traffic — like a product going viral or a flash sale starting. Verify your auto-scaling works, your caches hold, and your users get served.
Instant traffic ramp-up scenarios
Test auto-scaling and CDN behavior
Measure recovery time after spikes
Identify cascade failures
Custom spike patterns and durations
Real-time monitoring during spikes
spike-test.js
import http from 'k6/http';
import { sleep } from 'k6';

export const options = {
  stages: [
    { duration: '30s', target: 10 },   // Warm up
    { duration: '10s', target: 200 },   // SPIKE!
    { duration: '1m', target: 200 },    // Hold spike
    { duration: '10s', target: 10 },    // Recovery
    { duration: '30s', target: 10 },    // Verify recovery
    { duration: '10s', target: 0 },     // Ramp down
  ],
};

export default function () {
  http.get('https://myapp.com/api/products');
  sleep(1);
}

Frequently asked questions

Related guides

Stress Test Your Website
Step the request rate up until a threshold breaks, and find the last rate your site handled.
Soak Testing
Run extended soak tests to find memory leaks, connection pool exhaustion, and performance degradation over time.
Capacity Planning
Use load testing for infrastructure capacity planning. Determine how many users your servers can handle and when to scale.

Run this as a plan

Put the scenario in your app's Config/load-plan.json and run it from the narduk-app CLI.
loadtest.dev — Part of the Narduk Enterprises network