Welcome!

@DevOpsSummit Authors: Automic Blog, Pat Romanski, Angsuman Dutta, Karthick Viswanathan, Liz McMillan

Related Topics: @DevOpsSummit, Java IoT, Agile Computing

@DevOpsSummit: Article

How to Create the Most Realistic Load Tests | @DevOpsSummit #DevOps

The whole point of performance testing is to know that your app can handle whatever is thrown at it

You may have heard the phrase, "You've got to fake it till you make it."

Not with load testing.

Performance testing is one of the most important things you can do when building a web or mobile app, and it's only becoming more vital as the expectations of users are going up. People demand access to anything, anywhere, anytime, and they'll switch to a competitive solution if the app they're trying to use is slow or clunky.

Performance is critical to the success of your web and mobile apps - and will be for a long time in the future. It's not a matter of if you have to do it. It's about how to do it best.

So, how do you do it best? You make your test scenarios as real as possible. If you have ever listened to the performance testing horror stories from Brad Stoner, you've heard the importance of realistic testing scenarios

Why Is Realism So Important?
The whole point of performance testing is to know that your app can handle whatever is thrown at it. But application architecture, and in particular application delivery, is very complex. There are a lot of variables that impact the user's ultimate experience. Some are more obvious, like the specific device in use, or the task the user is trying to accomplish. Others are less apparent, hidden under abstraction layers or deep in the network layer.

You'll also want to consider the impact of other software running on the platform, the local environment, the ISP, and more. Not to mention the effect of 3rd-party services integrated with the app.

The list goes on. If your performance tests are overly simple, it means you aren't testing places that could impact the experience. It's like only testing a car on an empty highway and not taking the realities of street driving into account: potholes, traffic, other drivers, or suddenly-appearing pedestrians. Without realistic tests, you are not preparing for scenarios that are likely to happen and will be detrimental to your users (and your business). Plus you will be wasting a ton of time, effort, and money on useless tests.

So we've decided to put together a few ways that will show you how you can make your performance testing more realistic.

Don't Fake It - Realistic Load Test Scenarios Should Include...
Geography

Geographically speaking, where are your users? What are the predominant regions and how are people distributed between then? A user's geographic location plays a very important role in the experience they have and includes many factors that allow you to simulate load. The number of hops and the backbone speeds in the path between the website and the client system are just a couple of attributes involved in determining how fast packets will travel and how many packets are dropped.

Geographic diversity also shows you a range of user experience patterns, since people around the world may behave differently, especially when it comes to how people use desktops versus phones. Another important benefit of geographically dispersed load testing is the ability to distribute load across lots of places so your servers are handling traffic from a broader range of endpoints. Finally, using 3rd party locations forces you to execute your load tests outside of your data center, so they exercise the full data pathway from device to server.

Devices and Browsers
The web browser is the key blind spot for gaining true end-to-end visibility into application performance. Increased usage of client-side scripting means you must monitor the processing that takes place within the browser. It's the only way to get full visibility into performance. Browser test cases measure events that happen in the rendered page and are visible to the user. They can even measure things like: "After the user does A, how long does it take for button B to become enabled?"

Furthermore, you should monitor devices. Why? Because the variability in devices is growing rapidly. You need to look for software changes in each device and monitor their evolution and updates, which also impact performance. Here's the bottom line: With a little effort and maintenance, you can accurately find out if any clients are reacting poorly to your code, and work flexibly with your product to fix browser- or device-specific issues.

User Behavior
Accurately recreating the way users interact with your site is a key part of building realistic load tests. This usually starts with how you record scenarios in the first place. As users traverse through the app, you'll capture their clicks and form submissions and use this stream as the basis for future load tests. When you do this, you need to make sure the recording is parameterized in a way so that variables are randomized and represent what happens most often for people. All scenarios must be designed to be representative, replaying scenarios accurately with all the elements of users experience like popups or interruptions. So for example, if the user you are recording waits 10 seconds to click a button, you could turn this into a parameter that randomly waits between 5 and 20 seconds.

For even more realism, use Google Analytics to get a sense of the variability of parameters in actual users. While recording a scenario, you may need to specify some parameters that will be used for further test runs to help with repeatability. It is not a good practice to play back a test with the exact same recorded data for each user because it does not simulate real-life conditions. You should load test using special variables and store the desired data. Your requests can use this data during test runs.

User Paths
Sometimes, testers only test a limited set of paths through the application. This is often due to a limitation of the load testing software they are using. Take, for example, a chat window. This is small component on a typical web-based application, and as such, it's a part of the app that rarely gets tested. Other examples include infrastructure packages like Java Messaging Service or 3rd-party services like ad networks. If your load testing software doesn't help you incorporate these elements, you may have no idea how long those ads are making your users wait.

From the developer perspective, these experiences are somewhat separated from the application. But, this is not the case from the user's perspective. Think comprehensively about the way a user navigates through the app. Also talk to users. Ask about frustrations. This may lead to insights about how to build your performance tests with more realism.

Network Behavior
Knowledge about network latency and bandwidth is needed for any application that isn't local, because bumps and burps in the network can have a real adverse impact on your users. Monitoring network bandwidth and web application performance from multiple locations helps isolate problems in the network tier.

Bandwidth bottlenecks cause network queues to develop and data to be lost, impacting the performance of applications. This is especially true for mobile and cloud apps. High jitter, increased latency, and packet loss all work to degrade application performance. Use emulators and other monitoring functions to get a picture of the range of network characteristics. Then build that behavior directly into your load tests. Use your load testing platform to actually introduce network problems that users typically encounter, so you know what happens when they do.

Connection Parameters
Modern web browsers send requests to the server using several simultaneous connections. These parallel requests download images, scripts, CSS files and other resources located on the page. Different devices and browsers maintain different policies about how many concurrent requests are allowed. For example, phones generally restrict more than desktops or laptops do. You'll need to simulate an appropriate number of parallel requests during your tests. For example, if you are running an emulated mobile test from a server-based load simulator, make sure to set up some connection limitations. Try to send requests exactly like your browser did when you recorded your scenario. This makes the simulation all the more closer to real-world conditions.

Welcome to the Real World
It all boils down to one thing: keeping it real is paramount to load testing. We've given you a list of attributes to consider so that you can represent what actually happens for most users. If you can simulate what a user is most likely to experience, you'll be a step ahead of the game. With the rising demand for perfection in web application performance, there's no replacement for realistic load testing.

Image Credit: Jean-Etienne Minh-Duy Poirrier

More Stories By Tim Hinds

Tim Hinds is the Product Marketing Manager for NeoLoad at Neotys. He has a background in Agile software development, Scrum, Kanban, Continuous Integration, Continuous Delivery, and Continuous Testing practices.

Previously, Tim was Product Marketing Manager at AccuRev, a company acquired by Micro Focus, where he worked with software configuration management, issue tracking, Agile project management, continuous integration, workflow automation, and distributed version control systems.

@DevOpsSummit Stories
In his session at 20th Cloud Expo, Mike Johnston, an infrastructure engineer at Supergiant.io, discussed how to use Kubernetes to set up a SaaS infrastructure for your business. Mike Johnston is an infrastructure engineer at Supergiant.io with over 12 years of experience designing, deploying, and maintaining server and workstation infrastructure at all scales. He has experience with brick and mortar data centers as well as cloud providers like Digital Ocean, Amazon Web Services, and Rackspace. His expertise is in automating deployment, management, and problem resolution in these environments, allowing his teams to run large transactional applications with high availability and the speed the consumer demands.
All organizations that did not originate this moment have a pre-existing culture as well as legacy technology and processes that can be more or less amenable to DevOps implementation. That organizational culture is influenced by the personalities and management styles of Executive Management, the wider culture in which the organization is situated, and the personalities of key team members at all levels of the organization. This culture and entrenched interests usually throw a wrench in the works because of misaligned incentives.
SYS-CON Events announced today that Calligo, an innovative cloud service provider offering mid-sized companies the highest levels of data privacy and security, has been named "Bronze Sponsor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalised support service from its globally located cloud platforms. Through its four pillars of focus, Calligo delivers a platform that businesses can trust to deliver the high level of service and protection they expect and is lacking in many cloud offerings.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big Data are challenging the existing design patterns of the Data Center. The increase in complexity of managing legacy systems alongside new systems is beyond the ability of most IT departments. This leads to multiple tiers of storage and high economic costs, during a time in which IT is expected to do more with less.
DX World EXPO, LLC., a Lighthouse Point, Florida-based startup trade show producer and the creator of "DXWorldEXPO® - Digital Transformation Conference & Expo" has announced its executive management team. The team is headed by Levent Selamoglu, who has been named CEO. "Now is the time for a truly global DX event, to bring together the leading minds from the technology world in a conversation about Digital Transformation," he said in making the announcement.
"With Digital Experience Monitoring what used to be a simple visit to a web page has exploded into app on phones, data from social media feeds, competitive benchmarking - these are all components that are only available because of some type of digital asset," explained Leo Vasiliou, Director of Web Performance Engineering at Catchpoint Systems, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"At the keynote this morning we spoke about the value proposition of Nutanix, of having a DevOps culture and a mindset, and the business outcomes of achieving agility and scale, which everybody here is trying to accomplish," noted Mark Lavi, DevOps Solution Architect at Nutanix, in this SYS-CON.tv interview at @DevOpsSummit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Kubernetes is an open source system for automating deployment, scaling, and management of containerized applications. Kubernetes was originally built by Google, leveraging years of experience with managing container workloads, and is now a Cloud Native Compute Foundation (CNCF) project. Kubernetes has been widely adopted by the community, supported on all major public and private cloud providers, and is gaining rapid adoption in enterprises. However, Kubernetes may seem intimidating and complex to learn. This is because Kubernetes is more of a toolset than a ready solution. Hence it’s essential to know when and how to apply the appropriate Kubernetes constructs.
"DX encompasses the continuing technology revolution, and is addressing society's most important issues throughout the entire $78 trillion 21st-century global economy," said Roger Strukhoff, Conference Chair. "DX World Expo has organized these issues along 10 tracks with more than 150 of the world's top speakers coming to Istanbul to help change the world."
"I think DevOps is now a rambunctious teenager – it’s starting to get a mind of its own, wanting to get its own things but it still needs some adult supervision," explained Thomas Hooker, VP of marketing at CollabNet, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"I will be talking about ChatOps and ChatOps as a way to solve some problems in the DevOps space," explained Himanshu Chhetri, CTO of Addteq, in this SYS-CON.tv interview at @DevOpsSummit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We are an IT services solution provider and we sell software to support those solutions. Our focus and key areas are around security, enterprise monitoring, and continuous delivery optimization," noted John Balsavage, President of A&I Solutions, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Your homes and cars can be automated and self-serviced. Why can't your storage? From simply asking questions to analyze and troubleshoot your infrastructure, to provisioning storage with snapshots, recovery and replication, your wildest sci-fi dream has come true. In his session at @DevOpsSummit at 20th Cloud Expo, Dan Florea, Director of Product Management at Tintri, provided a ChatOps demo where you can talk to your storage and manage it from anywhere, through Slack and similar services with Tintri's web services architecture and APIs. Impress your DevOps team with smart and autonomous infrastructure.
DevOps at Cloud Expo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait for long development cycles that produce software that is obsolete at launch. DevOps may be disruptive, but it is essential.
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devices - computers, smartphones, tablets, and sensors - connected to the Internet by 2020. This number will continue to grow at a rapid pace for the next several decades. With major technology companies and startups seriously embracing IoT strategies, now is the perfect time to attend @ThingsExpo in Silicon Valley. Learn what is going on, contribute to the discussions, and ensure that your enterprise...
As enterprise cloud becomes the norm, businesses and government programs must address compounded regulatory compliance related to data privacy and information protection. The most recent, Controlled Unclassified Information and the EU’s GDPR have board level implications and companies still struggle with demonstrating due diligence. Developers and DevOps leaders, as part of the pre-planning process and the associated supply chain, could benefit from updating their code libraries and design by incorporating changes.
"I'm here to leverage my secret sauce, which is using outsourced development and the company that I utilize is delaPlex Software and they've basically allowed me to win Fortune 500 companies," noted Justin Witz, CTO of FRA and PlanTools, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
In his opening keynote at 20th Cloud Expo, Michael Maximilien, Research Scientist, Architect, and Engineer at IBM, discussed the full potential of the cloud and social data requires artificial intelligence. By mixing Cloud Foundry and the rich set of Watson services, IBM's Bluemix is the best cloud operating system for enterprises today, providing rapid development and deployment of applications that can take advantage of the rich catalog of Watson services to help drive insights from the vast trove of private and public data available to enterprises.
SYS-CON Events announced today that EnterpriseTech has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. EnterpriseTech is a professional resource for news and intelligence covering the migration of high-end technologies into the enterprise and business-IT industry, with a special focus on high-tech solutions in new product development, workload management, increased efficiency, and maximizing competitive edge.
DevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm. In their Day 3 Keynote at 20th Cloud Expo, Chris Brown, a Solutions Marketing Manager at Nutanix, and Mark Lavi, a Nutanix DevOps Solution Architect, explored the ways that Nutanix technologies empower teams to react faster than ever before and connect teams in ways that were either too complex or simply impossible with traditional infrastructures.
"We began as LinuxAcademy.com about five years ago as a very small outfit. Since then we've transitioned into more of a DevOps training company - the technologies and the tooling around DevOps," explained Doug Vanderweide, an instructor at Linux Academy, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"NetApp's vision is how we help organizations manage data - delivering the right data in the right place, in the right time, to the people who need it, and doing it agnostic to what the platform is," explained Josh Atwell, Developer Advocate for NetApp, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of engineers can navigate the Carrier Ecosystem for your IT team acting as an extension of your business, producing a hassle-free experience.