Can you run performance tests in production?
Imagine that we have to run a test that we’ve already designed with a good load scenario, test cases, test data, all automated and prepared in the load simulation tool that we want to use, BUT we don’t have a testing infrastructure that compares to that of production. This usually happens when the production infrastructure is a large server, such as an AS400 or any other mainframe, a cluster composed of multiple machines, or a complex configuration, making it expensive to prepare an exclusive testing environment.
Where Should We Execute the Performance Test?
Surely the development server, or the one intended for functional testing, may not have the features that the production server has. What are our options in this case?
Well, the best option is to do performance testing in production!
We’ve been asked many times if you can run performance testing in production. What is the problem? Well, we assume many risks. What if you run a test of this kind on a system but then it affects the other systems that are in production? More we’ve been told that the AS400 does not fail, but this is not so, as it has happened to us more than once. That’s the main risk.
Moreover, a major problem is that the results we get are impacted by other applications that are in production on the same server.
However, this approach has a great advantage: we ensure that the test infrastructure is similar to that of production because they’re exactly the same! In this, we are including everything that relates to hardware, database software (including versions of each component, their configuration, etc.) and other systems that have to coexist in production (from antivirus software to the company’s other information systems).
Therefore, what we thought was a serious problem, is actually the ideal situation!
Do initial performance testing on another machine wherever you can to minimize the risk of finding serious problems that affect the performance of applications that are already in production. Try to solve the problems arising there under the load and then move to production. Whoever controls the test must have looked over the basic indicators: CPU, memory, disk and network, and be clear about what thresholds are no longer acceptable. Once those levels are reached, stop the test.
We could also consider running performance tests at times when there is less of a load, like at night or during weekends. The problem with this is that more than one person is needed to operate the simulation tool. If you really want to get good results from a performance test, it is necessary to have experts in infrastructure, someone from the development team, etc.
Have you faced this situation before? What approach did you take?
Recommended for You
A Look at WOPR’s History From Within
How was the Workshop on Performance and Reliability (WOPR) born? What is the vision behind it? Find out in this article, featuring Eric Proegler and Paul Holland. By Natalie Rodgers WOPR is still making significant contributions even after 29 editions. The first one was held…
Cloud Performance Challenges
Hurdles to overcome with cloud computing and performance The other day I came across this paper and today I want to highlight some of the main aspects of cloud performance challenges. First of all, we all know how important cloud computing is for today’s demanding business requirements. Performance considerations…