Launch week: the Season Pass & Fundamentals Week are 50% off — ends in 12d 09h 20mSee the sale

Category: Load Testing

Simulating Workload With ostress And Agent Jobs

This question comes up a lot
Especially during Office Hours, and the answer is usually... not great. You can spend a lot of money on people and complicated software to design, run, and monitor workloads against test environments, or you can throw together tests with some free tools like SQL Query Stress or Microsoft's RML Utilities.

Read more about Simulating Workload With ostress And Agent Jobs 3 comments — Join the discussion
Production DBA

Are You Load Testing for Best Case Scenario, or Worst Case?

In preparation for a recent load testing engagement, we started talking about the company's goals. The DBA said something really insightful:
"We want to get to 1,000 page requests per second, which is around 5,000 batch requests per second. We're testing with all of our caching turned off, because we want to simulate what might happen on Black Friday if our caching layer fails - we still want to be able to sell stuff."

Read more about Are You Load Testing for Best Case Scenario, or Worst Case? 3 comments — Join the discussion

Using Stack Overflow Queries to Generate Workloads

One of my favorite questions is, "How can I generate workloads to run against SQL Server for testing?"

Step 1: get the StackOverflow.com database. This database has a relatively simple schema, just a few tables, real-world data distributions, and enough rows that you can generate seriously slow queries. You can use any size, small medium or large, and they'll all work.

Read more about Using Stack Overflow Queries to Generate Workloads 6 comments — Join the discussion

Generating test data without complicated T-SQL

Sometimes you need garbage
Not because DBAs are the IT equivalent of Oscar the Grouch, but maybe you want to post a question on a forum, and you don't want to use your own data. At least, you probably shouldn't just post your own data without masking it. But masking data is annoying, and by the time you get everything in order, someone's breathing down your neck for an answer.

Read more about Generating test data without complicated T-SQL 7 comments — Join the discussion

SQL Server load testing: synchronized tests versus random ones

Our QA department uses Mercury TestDirector to do load testing of our .NET web apps.  The basic idea is that TestDirector runs through a set of URLs to load test an application, and it can gradually scale up the number of simultaneous sessions until the datacenter is filled with smoke.  When the fire alarms go off, subtract one from the number of sessions, and that's the maximum load the application can sustain.  (Okay, not really, but you get the idea.)

Read more about SQL Server load testing: synchronized tests versus random ones 7 comments — Join the discussion