Welcome!

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

Related Topics: @DevOpsSummit, Microservices Expo, Containers Expo Blog, @CloudExpo

@DevOpsSummit: Article

Ten Performance Strategies | @DevOpsSummit #APM #DevOps #Microservices

Test Early and Often

At some point you've probably heard the term "test early and often." If you are in an Agile organization, that term perfectly captures the philosophy of iterative development and the commitment to rooting out defects sooner rather than later.

But do you know the origin of the phrase?

The original form of the saying was actually "Vote early - and vote often." It appeared in print as far back as 1858 as a tongue-in-cheek commentary on the democratic ideal that every person gets an equal vote. For you history buffs out there, it's more closely associated with corruption in the voting process in the early 1900s. Local thugs would make men grow beards before voting day. After they voted once, they'd shave it to a moustache, rendering them unrecognizable so they could vote again. Finally they would vote a third time, clean-shaven. The end-result: a high-level politician in bed with organized crime. Some people believe that Al Capone himself coined the phrase, though it was more likely popularized by Chicago mayor William Hale Thompson.

It's nice - maybe even ironic - that a phrase which had such unscrupulous origins is now a hallmark characteristic of a process that exemplifies teamwork and quality. It's in that modern spirit that we wanted to share these 10 strategies to help you test early - and test often.

1. Performance Test Automation

Test automation is often set up without performance testing in mind, but that doesn't make the practice any less relevant for performance testers. Automation is probably the single most important activity to testing often. An automation system helps you configure entire series and libraries of tests to run by themselves, on a set schedule or as needed. They plug seamlessly into your continuous integration system if you have one, but even if you don't, a strong suite of automated tests will help you prevent regressions and increase test coverage.

One way to get started with automation for performance testing is to leverage whatever has been done for functional testing. Dig into that test suite and look for opportunities to modify test scenarios for high scale and concurrency. You don't need to reinvent the wheel, and you can walk away with a great foundation for automated performance testing.

2. Make Performance Unit Tests

Performance tests don't have to be limited to large-scale peak-load tests. In the spirit of testing early, you can start building unit tests for performance almost as early as you have code. In fact,performance test-driven development (TDD) is a practice that involves creating performance expectations and executable tests for a code module even before the code is written. You define a service level agreement, or SLA, for a component that dictates how it is to perform - seconds to load, response time, scalability requirements, etc.

If you want to test early, start identifying specific code paths that could be bottlenecks and build small unit tests that exercise their scalability. Good places to look include complicated database queries or key transactions like user login or cart checkout. These scenarios can also form the basis for your test automation library, which will get populated as the platform gets built.

3. Be Modular

As you combine the concepts of performance unit testing with automation, you end up with a modular library of building blocks that you can mix and match into a wide variety of different testing scenarios. Each of these building blocks may be simple and straightforward on its own, but you can piece them together into quite complex interactions that fully exercise a system in a complete and realistic way.

Here's the power of this approach. Let's say after a new build you hear from Operations that a particular transaction path is "acting up" in production. Maybe you notice customers complaining or the metrics just look off. You can quickly assemble a scenario from your modular unit tests to recreate this transaction, letting you quickly troubleshoot what's going and get to a resolution as fast as possible. Modularity helps you adapt, react, and explore the system more thoroughly.

4. Synthetic Users

One way to test often is to integrate your testing procedure with your production environment and have test scenarios running all the time. You can do this with synthetic users. A synthetic user executes a specific transaction path within a live environment on a specified frequency. To the system, synthetic users look like any other users. In reality, they are fully instrumented and marked up so they can report the metrics of the experience they are executing.

A synthetic user acts as a canary in a coal-mine. It runs through its defined path and tells you where it gets into trouble - before a real user gets into trouble. That way you can see problems before they become critical. Check out more about synthetic users here.

5. Exploratory Testing

When an app - or even a feature - is still in its early stages, it can be hard to build rigorous tests around it. Code is changing rapidly, entire sections are incomplete, and there's no guarantee that what you are testing will ever make it into production. But you can still test.

The method here is called exploratory testing, and it is a process that combines learning, test design, and test execution all into one connected set of activities. As a tester, you start to use the app, or feature, or module, without any real direction or purpose. You are an explorer. As you use the app, you can study the code to understand how it works, and you look for places to test - complicated algorithms, messy code, critical functions. As you explore, you build tests and exercise those tests. The process helps you get familiar with the landscape and create a suite of tests early on in the process. It also helps you get to know the product better than the development team.

6. Use the Cloud

Performance tests are often limited by the hardware you have available. Load testers know this too well - you can't test too often if you are waiting for production resources to free up in the middle of the night on a Sunday when usage is very low. Fortunately, the cloud can push things wide open.

First and foremost, you can use the cloud to drive load on the system. In fact, this may be an even better way of running a load test than you are doing right now because when the load is generated in the cloud, you can be sure it is going through all the same network layers, load balancers, and security firewalls that your users have to go through when accessing your system. You can spread load sources across multiple geographies for the most realistic tests. It's easy to scale it up and down, or to target specific functionality, and it's flexible because you don't have to have all of that hardware sitting idle, waiting for Sunday night to come along. Incorporating cloud testing into your collection of testing tools can give you powers you never had before.

7. Make Everyone Responsible

You can only do so much as an individual person or an isolated team. If you really want to test early and often, you have to get everyone else involved. Start right now by raising awareness about performance testing, and educate people on what performance testing means. A great way to do this is to share the results of your performance tests on a regular basis so people know which needle you are trying to move. Also, you can integrate your performance testing with other systems like automation and continuous integration.

Many of the other tips in this list are better done as a cohesive part of an Agile team and to get there, you have to make everyone feel a sense of shared ownership over the performance of the system. Quality is on everyone's mind these days, but if they are only thinking about functional testing then your organization just isn't where it needs to be. Performance should be part ofeveryone's job description.

8. Partner With Developers

Look through many of these tips and one thing may be clear: testing is a lot easier when you know the code. Whether or not you know how to code, you should have a good understanding of what's happening under the hood of the application your team is creating.

Teamwork is so critical to Agile, but often performance engineers are left in their own separate silo. If this is the case in your organization, you have to proactively build a bridge to your development team. One effective way to do that is to include performance requirements on the Agile task board. Define performance behaviors up front so developers are thinking about them, and offer to help them think through requirements, challenges, and solutions. Get to know the code they are writing. A strong partnership with your dev team will greatly improve quality.

9. Shared Test Scenarios

As is true with almost anything, the more you can leverage from work you've already done, the better. That means finding ways to take advantage of all the tests you've created and all the infrastructure you've invested in to allow you to test more often.

The Neotys suite of products supports shared test scenarios, which means you can take a specific scenario you've developed in Test and push that out as a simulated user test executed by a synthetic user. The same scenario used for load testing can be migrated into production for performance monitoring. Component tests created by developers or embedded testers can be used as the basis for creating larger load test scenarios. The ability to share test scenarios across teams and environments greatly increases your coverage and flexibility.

10. Stay Laser-Focused on KPIs

Finally, as a performance tester you should know what your key performance indicators (KPIs) are and stay laser-focused on them. All of these strategies in this article can be overwhelming if you don't really know what you want out of them. Your KPIs tell you.

Whether you are load testing in a hurry or have all the time you need, your KPIs keep you on track with respect to page load times, scalability requirements, transaction rates, and the user experience. To best employ these strategies for testing early and often, you'll want to define your KPIs, vet them with the team, measure your success against them, and share those results on a regular basis.

Photo Credit: E. Benjamin Andrews - Andrews, E. Benjamin. History of the United States, volume V. Charles Scribner's Sons, New York. 1912.

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.
"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.
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.
"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.