Videos, demos, webinars

Codemotion 2019 Amsterdam: Performance Testing for DevOps in the Cloud

At Codemotion Amsterdam, Lars Wolff talks about how to introduce and execute load test and performance testing in DevOps teams and how they benefit from regular test practice.

Slides

  • slides from presentation
  • plus some bonus extras
 

Test Case

The example test case from the presentation, see below to run it.

 
// System under Test – the target system you'll generate traffic against
definition.setTarget("testapp.loadtest.party");

// your Load Generator Cluster
definition.setTestOptions({
cluster: { sizing: "preflight", },
});

// user base of 10.000 unique users
// doing a user journey
// in highest hour in a week
var $userBase = 10000;

var $newUserPerSecond = $userBase / 60 / 60;

definition.setArrivalPhases([
// for 5 minutes
// start RATE new clients/users per second
{ duration: 5 * 60, rate: $newUserPerSecond }, // 100%

{ duration: 5 * 60, rate: $newUserPerSecond * 2 }, // 200%
{ duration: 5 * 60, rate: $newUserPerSecond * 3 }, // 300%
{ duration: 5 * 60, rate: $newUserPerSecond * 4 }, // 200%
]);

// the user Journey
definition.session("flower-shop-user-journey", function(session) {
session.get("/flowers", {
tag: "flower-list"
});

session.wait(30); // wait for 30 seconds

var flower = session.ds.generate("random_number", { range: [1000, 9999]});
session.get("/flowers/:flowerId", {
tag: "flower-detail",
params: {
flowerId: flower
}
});

session.wait(30); // wait for 30 seconds

session.post("/flower-cart/add", {
tag: "add-flower-to-cart",
payload: JSON.stringify({
"item": {
"qty": session.ds.generate("random_number", { range: [1, 9]}),
"flower_id": flower
}
})
});
});

Run the example test case

Just copy & paste it to app.stormforger.com and start a load test

And then, you can checkout how to define non-functional requirements.

Happy Load Testing

Sign up for our newsletter

Exclusive insights and strategies for cloud pros. Delivered straight to your inbox.


AUTHOR
CloudBolt
  Learn more

Related Blogs

 
thumbnail
How StormForge automated Kubernetes rightsizing across hundreds of clusters

A global enterprise software company used Kubecost to see what its Kubernetes workloads cost, but engineers rarely changed anything. It…

 
thumbnail
Kubernetes for Black Friday: Scaling Up for the Peak and Back Down After 

Black Friday falls on November 27 this year, and if you run the platform behind an online store, you’ve probably…

 
thumbnail
How a cloud MSP cut AWS invoicing time by 50% with CloudBolt

A global enterprise software company used Kubecost to see what its Kubernetes workloads cost, but engineers rarely changed anything. It…