Tech Blog

Testing

Imitate live Workload to Performance or Stage Environment on Windows setup

By Shabir shariff3 min read
← Back to blog

Application performance is an important factor in customer satisfaction. Poor application performance will impact the functionality and lead to frustrated customers which in turn will cause loss in revenue.

Determining the workload for the performance testing is an important activity in which we determine the actions performed by the users, how many users will login to the application and the time that should be added to the scripts in order to ensure we have a realistic load during the performance test. However performing the Load test with the analysed workload can always have discrepancies in comparison to the live traffic or live workload  in our performance testing Hence to overcome this we used the GoReplay tool to capture the live workload and and replay the same in the performance or stage environment

GoReplay is an open source tool, which captures load in the form of requests;  the captured requests can be replayed to mimic a live environment in the stage/performance environment. 

We have created a performance test environment with below design flow to achieve an effective performance test. Here our system captures the live load and Load generation machines replay the load to the Stage performance machines.

How to Install and Capture live traffic with GoReplay tool on Windows environment.

Prerequisites:

  1. Live environment and stage environment should be exactly the replica(i.e the Machine size, Operating system, Database etc)

      Note: Having the exact replica of the database server would involve privacy rights(Such as GDPR).

  • Open command prompt and change directory where the GoReplay application is present.
  • Run the below command to generate requests_0.gor file(it will capture the traffic and save it).

Goreplay --input-raw :80 --output-file requests.gor --output-file-size-limit 1024m --output-file-queue-limit 0

Replay the captured traffic on Windows environment with GoReplay tool

  1. Run the below command to relay the captured traffic

Goreplay --input-file "requests_0.gor" --output-http "https://DNS"

With the GoReplay tool it’s easy to detect the performance issues at the early stage of the performance test and we can ensure that we  do effective performance testing for the application  located at different locations by capturing the peak load.

Keep reading

You may be interested in

Browse all articles →
Software Testing: Challenges and Solutions
February 8, 20244 min read

Software Testing: Challenges and Solutions

Introduction – Testing software is a crucial aspect of the development process. It makes sure that the product’s functionality works as expected, fulfills the user requirements, and makes sure it works without errors. In this blog, we will list down some of the most common challenges faced in software testing and conclude with how to […]

By Saboor ChandshahaRead More →
Streamlining Software Quality: The Power of Automating Black Box Testing
February 8, 20244 min read

Streamlining Software Quality: The Power of Automating Black Box Testing

Introduction :  In the dynamic realm of software development, ensuring the robustness and reliability of applications is of paramount importance. Black box testing, a technique that assesses software functionality without requiring knowledge of its internal code, plays a vital role in identifying potential defects. As the complexity of software systems continues to escalate, the manual […]

By Anthony Gilchrist G SRead More →
Implementing best practices for end-to-end testing in cloud migration
January 31, 20245 min read

Implementing best practices for end-to-end testing in cloud migration

Importance of End-to-End Testing Assume an organization’s core systems are now hosted on the cloud—a complex ecosystem linked by data threads. End-to-end testing is the foundation upon which the reliability and performance of this interconnected web is built. This rigorous testing technique makes it possible to detect vulnerabilities, optimize operations, and improve user experience. Active […]

By Rahul ChakravartiRead More →