How To Set SLA In NeoLoad For Automated Performance Validation

How To Set SLA In NeoLoad For Automated Performance Validation

How to use SLA Goals as Escalations | SaaSJet Help Center

Setting Service Level Agreements (SLAs) in NeoLoad enables performance engineers to establish automated pass or fail criteria based on response times and error rates during test execution. By defining strict thresholds for specific user paths or entire scenarios, teams can instantly validate system reliability against production non-functional requirements without manual result analysis.

Preparing Your Performance Testing Scope and Metrics

Establishing effective SLAs requires a thorough understanding of your application architecture, expected user concurrency, and agreed-upon business metrics. Before configuring thresholds within NeoLoad, you must define the scope of your performance test, isolate critical user transactions from secondary actions, and gather baseline performance indicators from APM tools or previous testing cycles.



  • Essential gear and software: NeoLoad Controller, NeoLoad Load Generator, NeoLoad Design and Monitoring modules, and an integrated APM or log analysis tool.
  • Mandatory prerequisite knowledge: Familiarity with percentile-based response time metrics (such as 90th or 95th percentiles), throughput calculations, error rate tolerances, and basic JavaScript if custom validation rules are required.
  • Estimated setup and configuration duration: 15 to 30 minutes per test scenario, depending on the complexity of the transaction breakdown and the number of distinct SLAs needed.

Step-by-Step Guide to Configuring SLAs in NeoLoad



Step 1: Access the SLA Configuration Panel in the Design Module

Launch your NeoLoad project, open the Design section, and navigate to the Populations or User Paths panel where you want to apply your constraints. Select the specific User Path, Action, or Request that requires validation, right-click to open its properties, and locate the SLA tab. Alternatively, you can configure global SLAs at the scenario level within the Runtime section, which applies overarching boundaries to the entire test run rather than isolated transactions.

Pro-Tip: Always establish SLAs at the individual transaction level for critical user journeys, such as checkout or login flows, before applying broad scenario-level constraints. This granularity isolates performance bottlenecks much faster during post-test analysis.



Step 2: Define SLA Performance Indicators and Threshold Types

Select the performance metric you wish to monitor from the available drop-down menu. Common indicators include Average Response Time, Maximum Response Time, Error Rate (percentage or absolute count), Hits per Second, and Response Time Percentiles like the 90th or 95th percentile. Once the indicator is selected, choose whether the SLA will be evaluated across the entire test duration or during steady-state intervals, and specify the comparison operator, such as greater than or less than.

Warning: Avoid setting maximum response time thresholds without pairing them with a percentile metric. A single network glitch or garbage collection pause can cause an isolated spike that falsely fails an otherwise healthy test run.



Step 3: Establish Warning and Failed Threshold Values

Input the numerical thresholds for your selected indicators based on your non-functional requirements documents. NeoLoad requires you to define two distinct boundary levels for most metrics: a Warning threshold and a Failed threshold. The Warning level alerts the testing team to potential degradation without stopping the pipeline, while the Failed level automatically marks the test status as failed, signaling that the build does not meet production readiness standards.



Step 4: Apply SLAs to Runtime Scenarios and Monitor Real-Time Status

Switch to the Runtime section of NeoLoad and open your execution scenario configuration settings. Verify that your newly created SLAs are correctly mapped to the target populations and load policies. During test execution, NeoLoad evaluates these rules in real-time, displaying color-coded status indicators in the monitoring dashboard so operators can immediately see if response times or error rates breach acceptable parameters.


Now Set Custom SLA Policy and Business Hours for Different Customer ...

Now Set Custom SLA Policy and Business Hours for Different Customer ...

Comparative Overview of NeoLoad SLA Parameters and Evaluation Methods



SLA Metric Type Recommended Threshold Range Evaluation Scope Primary Test Objective
Error Rate Less than 0.5% (Warning), Greater than 1% (Failed) Scenario or User Path Ensure system stability and prevent unhandled exceptions under load.
90th Percentile Response Time Under 2000ms (Warning), Over 3000ms (Failed) Critical Transaction Guarantee acceptable user experience for the majority of requests.
Average Throughput Within 10% of baseline capacity Global Scenario Validate system capacity and infrastructure scaling limits.
Maximum Response Time Under 5000ms (Warning), Over 8000ms (Failed) Individual Request Catch severe latency spikes and database locking issues.

Troubleshooting Common SLA Configuration Failures in NeoLoad



Unrealistic Thresholds Causing Constant Test Failures



  • Root Cause: Setting Failed thresholds too aggressively without accounting for initial ramp-up periods or cold-start caching behaviors.
  • Actionable Fix: Exclude the ramp-up phase from SLA evaluation by utilizing steady-state timing intervals, or adjust percentile metrics to absorb minor initial latency spikes.


Global Versus Local SLA Confusion



  • Root Cause: Applying conflicting rules where a global scenario SLA overrides or contradicts granular user path SLAs.
  • Actionable Fix: Audit your test design to ensure user path SLAs target specific business transactions, while scenario SLAs govern overarching health metrics like total error rates.


Missing APM Correlation Data During Threshold Breaches



  • Root Cause: Setting SLAs on metrics that lack sufficient context, making it difficult to determine the root cause of a failure.
  • Actionable Fix: Integrate NeoLoad with an APM solution to automatically capture server-side traces whenever an SLA threshold is breached during execution.

Frequently Asked Questions



Can I set SLAs dynamically during a running NeoLoad test?

No, SLAs must be defined during the design and scenario configuration phases prior to test execution. If you need to change evaluation criteria, you must stop the test, modify the thresholds in the project settings, and restart the scenario.



What is the difference between a Warning and a Failed SLA in NeoLoad?

A Warning SLA alerts operators to performance degradation in real-time without altering the final test result status. A Failed SLA marks the test execution as failed, which is particularly useful for breaking CI/CD build pipelines when performance degrades past acceptable boundaries.



How do percentiles improve NeoLoad SLA accuracy?

Percentiles eliminate the skewing effect of statistical outliers, such as a single slow network packet or client-side latency. Using a 95th percentile SLA ensures your pass/fail criteria reflect the actual experience of the vast majority of your users.



Can NeoLoad SLAs integrate with CI/CD pipeline tools like Jenkins?

Yes, NeoLoad provides native plugins and command-line interfaces for CI/CD tools. When a test run fails its defined SLA criteria, NeoLoad returns a non-zero exit code that automatically halts the deployment pipeline and triggers failure notifications.



Are SLAs applied per load generator or across the entire scenario?

SLAs can be configured at multiple levels, including individual requests, specific user paths, population groups, or across the entire global scenario, depending on the scope of your monitoring requirements.

Master enterprise performance validation by integrating precise SLAs into your automated testing pipelines and ensuring flawless production readiness with NeoLoad today.


99.99% Uptime SLA: How Much Downtime Per Year? - SLA & Downtime calculator

99.99% Uptime SLA: How Much Downtime Per Year? - SLA & Downtime calculator

Read also: Why the Demand for a Custom iOS App is Skyrocketing in 2024
close