github.com/qlik-oss/gopherciser@v0.18.6/docs/availability-testing.md (about)

     1  # Using Gopherciser for availability testing
     2  
     3  An availability test is used to apply a low, constant workload towards a deployment in order to:
     4  * Make sure that the deployment is up and running
     5  * Identify long-term performance trends
     6  * Detect concurrency-related problems
     7  * Evaluate the response time for key user actions
     8  
     9  Do the following to set up an availability test using Gopherciser:
    10  
    11  1. Create a test scenario.
    12  
    13     When creating an availability test scenario, keep the following in mind:
    14     * Keep the user flow low.
    15     * Make sure to include key (important) actions.
    16    
    17     Save the test scenario as a script file (`.json` file).  
    18  
    19  2. Create a script file (for example, a batch file, `.bat`, in case of Microsoft Windows, or a shell script file, `.sh`, in case of Linux) that executes the availability test scenario.
    20  
    21     Example of file contents (in case of a Microsoft Windows batch file):
    22     ```
    23     C:\performancetests\gopherciser\gopherciser execute -c C:\performancetests\gopherciser\Scenarios\AvailabilityTestScript.json
    24     ```
    25    
    26  3. Select a scheduling mechanism (for example, the Task Scheduler in Microsoft Windows or the cron job scheduler in Linux) and configure it to run the batch / shell script file.
    27  
    28     **Note:** As the availability test scenario is to run on a regular basis, make sure to schedule enough time in between the executions, so that the next iteration is not started before the previous one has finished.
    29  
    30  4. After each iteration, copy the test log file to a folder of your choice.
    31  
    32  5. Create an availability test analyzer app that reloads the data from the test log file after each iteration.
    33  
    34  6. (Optional:) Implement alerting based on metrics of interest (such as response times, errors, or failing actions).
    35  
    36     The following figure shows an example setup where Qlik NPrinting® and Grafana are used for alerting.
    37  
    38     ![Availability testing](images/availability-testing.png)