Uptime and Load Checks Before Launch Week
Operations · 9 min read ·
How to test that your site and app will stay up when launch traffic arrives: realistic load tests, caching, monitoring, limits and a plan for overload.
Many launches fail in an embarrassing way: the page that took months to prepare returns an error exactly when people arrive. The cause is rarely mysterious. The site was built and tested for a handful of users, and then a few hundred or a few thousand arrived within the same hour.
You can avoid this with a day or two of focused checking. This article explains what to test, how to test it safely and what to do if the worst happens anyway.
Understand the shape of launch traffic
Normal traffic is smooth: a steady trickle with daily and weekly rhythms. Launch traffic is spiky. When you send an email, post a message or are featured in a listing, many people arrive within minutes and then the curve falls away. Your system must handle the peak, not the average.
Think about where your visitors come from and when they will arrive.
- An email to your list sends traffic within the first hour.
- A post on social media produces a burst and then a tail.
- A listing or leaderboard may send steady traffic across a day.
- A press mention can arrive unexpectedly.
If you can estimate how many people you might reach and what share will click, you can estimate peak requests. If you cannot, assume a multiple of your best day so far and test at that and above.
What to check
The front door: your page and listing
The simplest way to survive a spike is to make as much as possible static. A page that is the same for every visitor can be served from a cache or a content delivery network, which reduces the load on your servers to almost nothing.
- Cache what you can. Marketing pages, images, scripts and styles should be cacheable.
- Compress and size images. Large images slow everything.
- Avoid unnecessary scripts, especially those loaded from third parties that you do not control.
- Measure real-world speed. Google's Core Web Vitals give targets for loading (Largest Contentful Paint within 2.5 seconds), responsiveness (Interaction to Next Paint of 200 milliseconds or less) and visual stability (Cumulative Layout Shift of 0.1 or less), assessed at the 75th percentile of page loads. If your page meets them calmly on a mid-range phone, a surge is far less likely to break it.
The application: sign-up and the product
Dynamic parts are where load bites: logging in, creating records, running searches, generating reports.
- Identify the expensive actions. Which database queries or computations take longest?
- Test them in volume. What happens when fifty people do them at once?
- Look at queues. If you send emails or process jobs in the background, check that the queue can keep up.
- Set sensible limits. For example, limit how many requests a single user can make, to protect everyone.
The database
Databases are often the first bottleneck. Check:
- Are the most common queries indexed?
- Is the number of connections limited, and is it enough?
- What happens when a query is slow?
- Is there a read-only copy or a cache for heavy reads?
- Do you have enough storage and headroom?
Third-party services
Your product may depend on email providers, payment gateways, authentication services and analytics. Each has limits and may fail.
- Know their rate limits and your current usage.
- Decide what happens if one is down: queue the work, show a friendly message or switch off the feature.
- Check status pages and subscribe to alerts.
Crawlers and bots
During a launch you may also see automated visitors. Search engines send crawlers to find your pages, and the standard way to give them instructions is a robots file, which is mainly for managing crawler traffic so your site is not overloaded with requests. It is not a way to hide pages and does not stop badly behaved bots. Check yours does not accidentally block the pages you want found, and use proper protections, such as rate limits and a web application firewall, for unwanted traffic.
How to run a load test
A load test sends artificial traffic to your system to see how it copes.
- Choose a test environment that matches production in shape: same software, similar data, similar settings. Testing on a tiny machine tells you little.
- Warn anyone who needs to know, including your hosting provider if their terms require it. Never test against systems you do not own.
- Pick a tool. Several free and open-source tools can simulate many users.
- Model real behaviour. Do not just hit the home page. Simulate visitors who browse, sign up, log in and perform the key action.
- Ramp up gradually. Start low, increase in steps and watch the numbers.
- Measure what matters. Response times, error rates, throughput, CPU, memory, database load and queue length.
- Find the breaking point. Note where response times climb or errors begin. That is your practical limit.
- Fix the weakest link and repeat.
Keep the test data safe and clean up afterwards. Do not use real customers' personal data in tests.
Set up monitoring before you need it
You cannot fix what you cannot see.
- Uptime checks. Automated requests every minute or so to key pages and endpoints, from outside your own network.
- Error tracking. A service that records exceptions and tells you when they spike.
- Performance metrics. Response times and resource usage over time.
- Alerts. Notifications to the person on call, by a route they will notice, with clear thresholds. Avoid so many alerts that people ignore them.
- A status page. A simple page, hosted separately from your main system, where you can post updates.
Search Console is another useful window. It lets site owners check that Google can crawl the site, track indexing problems and receive alerts about issues, so you can see if something about the launch affects how search engines see you.
Prepare for overload
Even with good preparation, you may exceed capacity. Decide in advance what you will do.
- Degrade gracefully. Turn off heavy, non-essential features first, such as live search suggestions or fancy animations.
- Queue and wait. Show a "you are in line" page rather than an error.
- Scale up. If you use a service that can add capacity quickly, know how and who approves the cost.
- Protect the core. Make sure sign-up and payment remain available even if the rest slows.
- Communicate. Post a short, honest notice and update it.
Write a one-page runbook with these steps and the names of the people who can act.
Rehearse a failure
Pick one thing and break it on purpose in a safe environment: stop a service, fill a disk, slow a database. See whether the alerts fire, whether the right person is notified and whether they know what to do. Practise rolling back a release. The goal is not to cause trouble. It is to ensure that when trouble comes, it is not the first time you have seen it.
A worked example
A small team plans to email five thousand people on launch morning. They estimate that perhaps ten per cent will click within the first hour, so about five hundred visits in sixty minutes, with a likely burst of a hundred in the first five. They decide to test for ten times that.
They discover that their home page is generated on every request and takes nearly a second under load, so they add caching and cut it to a few milliseconds. They find that sign-up sends a welcome email directly in the request, so a slow email provider makes the page hang. They move email into a background queue. In the test, the database hits its connection limit at around two hundred simultaneous users, so they raise it and add an index to a slow query.
They set up uptime checks, error alerts and a simple status page, write a one-page runbook and rehearse switching the sign-up button to a "notify me" form. On launch day, traffic peaks at about three times their estimate. The page stays fast, sign-ups complete and nobody notices that the team was holding its breath.
Checklist
- Traffic estimate and test target agreed
- Static content cached and compressed
- Core Web Vitals measured on a mid-range phone
- Expensive actions identified and tested
- Database indexes and connection limits checked
- Third-party limits and failure plans known
- Load test run with realistic behaviour
- Monitoring, alerts and status page live
- Overload plan written and rehearsed
- Rollback tested
On this site, the launches page shows scheduled launches, and the submit page is where to create your listing. If you are weighing a paid placement for launch week, the pricing page lists what each one includes. Check your capacity before you add one.
Frequently asked questions
What if I cannot afford a big test environment? Test smaller and extrapolate cautiously, or use a short-term rental of capacity for the test.
Is a content delivery network worth it? For most public marketing pages, yes. It reduces load and improves speed.
Should I plan for the worst case? Plan for a sensible multiple of your estimate, and have a graceful fallback for beyond that.
Questions and answers
- How much traffic should I plan for?
- Estimate from your audience and past data, then test well above that. Launch traffic is bursty, so plan for peaks, not averages.
- Do I need special tools to test load?
- Free and open-source load-testing tools exist, and many hosting providers offer guidance. Start simple and keep tests safe.
- Can I test against my live site?
- Be careful. Test against a copy that matches production, or agree a safe window and warn your provider if required.
- What is the cheapest way to survive a spike?
- Serve as much as possible from cache or static files, and keep dynamic pages light.