Home Carrier Builds Comparison
Post
Cancel

Carrier Builds Comparison

Configuring Performance Thresholds and Baselines in Carrier - Step-by-Step Guide

This user-friendly guide aims to help you efficiently configure performance thresholds and baselines in Carrier for your performance tests, resulting in reduced analysis time. By following these steps, you can easily receive email notifications with comparisons to baselines and thresholds, ensuring increased visibility and transparency. Based on configured SLAs, the build status is available inside the backend tests table in the Carrier UI after the tests.

Note: You need to configure Email integration inside the project first. Carrier has default templates for email notifications that can be overridden. You can upload your own inside Carrier “Email” integrations.

Options for Thresholds and Baselines

  • Thresholds: Set thresholds for various performance metrics like throughput and response time. Define the threshold values based on your application’s performance requirements and SLAs.

Updated thresholds

  1. All test Error rate threshold < 10

    Note: The total error rate should be less than 10%. If it exceeds 10 percent + deviation, the build will fail.

  2. Individual Response Time threshold value to be less than 3

    Note: Every request’s response time should be less than 3 seconds. If it exceeds 3 seconds + deviation, the build will fail.

  3. All test Throughput > 3 requests per second

    Note: The total throughput should be more than 3 requests per second. If it is less than 3 requests + deviation, the build will fail.

  • Baseline: Setting baselines allows you to compare test results against a predefined performance standard. Choose the appropriate baseline for your test to assess deviations from expected performance.

By following these steps and configuring thresholds and baselines, you can easily track the performance of your application and identify areas for improvement to deliver optimal user experiences.

Step 0: Open Test Parameters

  1. Open your test “Settings” with the desired name (e.g., “DemoWithTransactions”).
  2. Set or collect the following test parameters:
    • Test Type: Choose the appropriate test type (e.g., Validation).
    • Environment: Specify the environment for the test (e.g., Testing). Add Backend Test
    • VUSERS: Set the number of virtual users for the test.
    • EMAIL: Set the email recipients’ addresses for the test. Add Backend Test

Step 1: Set the Baseline for Comparison

  1. Run the “DemoWithTransactions” tests with parameters from “Step 0: Open Test Parameters”.
  2. Set the test run as a “Baseline”. Set Baseline Baseline Baseline

Step 2: Enable Baseline QualityGate Checkbox

  1. Open the “DemoWithTransactions” test “Settings”.
  2. Turn on the PROCESSING -> QualityGate checkbox if enabled.
  3. Activate the Baseline checkbox.
  4. Expand the PROCESSING -> ADVANCED SETTINGS section.
  5. Activate the “Summary results” checkbox.
  6. Activate the “Per request results” checkbox.
  7. Set the “Check throughput” deviation value (e.g., 5). Enable Comparison

Note: Deviation boxes are used to specify the acceptable level of differences to not fail the build.

Step 3: Start the Test Run

  1. Click on the “Update And Start” button at the top of the page to start the test run.
  2. Check the build status after the test. Build Status
  3. Check the email notification. Status Email

Step 4: Get Test Metrics

  1. After the test run is completed, you will receive an email with the following test metrics comparison to the Baseline:
    • Ttl (total requests)
    • Thrghpt (throughput total), req/sec
    • Error rate, %
    • Pct95 (response by 95th percentile max), seconds Summary Comparison
  2. Inside the email, review the next metrics in comparison to the Baseline:
    • Success Rate
    • RPS/TPS Rate (throughput) Chart Email

Step 5: Configure Thresholds

  1. Navigate to the “Thresholds” panel in the Backend tab.
  2. Click the “+” button to add a new threshold.
  3. Fill in the data for the “Throughput” threshold:
    • Test: Enter the test name (e.g., “DemoWithTransactions”).
    • Test Environment: Specify the environment (e.g., Testing).
    • Scope: Choose “All” to apply the threshold to all virtual users.
    • Target: Choose the target metric - Throughput.
    • Aggregation: Set the aggregation method - Maximum.
    • Comparison: Choose the comparison operator (e.g., >=)
    • Threshold Value: Set the threshold value for the target metric (e.g. 1). Throughput Threshold
  4. Fill in the data for the “Response Time” threshold:
    • Test: Enter the test name (e.g., “DemoWithTransactions”).
    • Test Environment: Specify the environment (e.g., Testing).
    • Scope: Choose “Every” to apply the threshold to all virtual users.
    • Target: Choose the target metric - Response Time.
    • Aggregation: Set the aggregation method - “Percentile 95”
    • Comparison: Choose the comparison operator (e.g., <=).
    • Threshold Value: Set the threshold value for the target metric (e.g. 0.5). Response Time Threshold
  5. Click the Save button. Thresholds

Step 6: Start the Test Run Again

  1. Click on the “Update And Start” button at the top of the page to start the test run again.

Step 7: Check the Test Result

  1. Once the test is finished, check the test result in the Carrier UI.
  2. Verify the status in the UI and the status in the letter to assess if the test meets the configured thresholds and baseline expectations.
    • Email Summary Email Summary
    • Build Status Build Status
    • Report Status Report Status

Step 8: Update Thresholds

  1. Set the “Response Time” threshold value to be less than 3

    Note: Every request’s response time should be less than 3 seconds. If it exceeds 3 seconds + deviation, the build will fail.

  2. Set the “Error rate” threshold < 10

    Note: The total error rate should be less than 10%. If it exceeds 10 percent + deviation, the build will fail.

  3. Set the “Throughput” > 3 requests per second

    Note: The total throughput should be more than 3 requests per second. If it is less than 3 requests + deviation, the build will fail.

    Updated Thresholds

Step 9: Start the Test Run Again

  1. Click on the “Update And Start” button at the top of the page to start the test run again.
  2. Validate results Updated Thresholds

Step 10: Update Error Deviation

  1. Open the “DemoWithTransactions” test “Settings”.
  2. Expand the PROCESSING -> ADVANCED SETTINGS section.
  3. Set the “Check error rate” deviation value to 5 Enable Comparison

Step 11: Start the Test Run Again

  1. Click on the “Update And Start” button at the top of the page to start the test run again.

Step 12: Check the Test Result

  1. Once the test is finished, check the test result in the Carrier UI.
  2. Verify the status in the UI and the status in the letter to assess if the test meets the configured thresholds and baseline expectations.
    • Report Status Report Status
    • Build Status Build Status

Congratulations! You have successfully configured the comparison. It will help you effectively compare test results with baselines and thresholds, ensuring your application meets the desired performance standards and SLAs.

This post is licensed under CC BY 4.0 by the author.