Configure SLA#

PRO

SLA (service-level agreement) is non-functional requirements that determine the criteria for the success of the tests performed.

In PFLB Platform, you can add SLA for different scopes: tests, groups, transactions, requests and system metrics.

To add an SLA, follow these steps:

  1. Open the test.

  2. Go to the Load profile tab.

  3. Click SLA. The window opens:

    ../_images/um_add_sla.en.png
  4. Go to the required tab, click + Add SLA, and configure the SLA:

  5. Click Save.

To delete SLA, click delete_button.

You can also add or edit SLA after the test is completed:

  1. Go to the Test runs page and open the test run.

  2. Click SLA. The window opens:

    ../_images/um_view_sla_status.en.png
  3. Edit or add SLA.

  4. Click Save. The metric value will be recalculated.

Test#

../_images/um_sla_test.en.png
  1. Select one of the metrics for the test:

    • Average response time. Average system response time to a request or transaction.

    • Error rate. Errors are calculated only when executing all requests, excluding transactions.

    • Percentile 95. The value which is greater than 95% of response time for the test.

    • Request per second. Number of requests sent per second.

  2. Select one of the conditions: <= or >.

  3. Enter a threshold of the metric (SLA).

  4. In the fields Start and End, enter the period for which PFLB Platform calculates the metric at the end of the test if needed.

Group#

../_images/um_sla_group.en.png
  1. Select the group.

  2. Select one of the metrics:

    • Average response time. Average system response time to a group.

    • Error rate. Errors are calculated only when executing the group.

    • Percentile 95. The value which is greater than 95% of response time for the group.

    • Request per second. Number of requests sent per second.

  3. Select one of the conditions: <= or >.

  4. Enter a threshold of the metric (SLA).

  5. In the fields Start and End, enter the period for which PFLB Platform calculates the metric at the end of the test if needed.

Transaction#

../_images/um_sla_transaction.en.png
  1. Select the transaction and group.

  2. Select one of the metrics:

    • Average response time. Average system response time to transaction.

    • Error rate. Errors are calculated only when executing a transaction, excluding requests.

    • Percentile 95. The value which is greater than 95% of response time for the transaction.

    • Request per second. Number of requests sent per second.

  3. Select one of the conditions: <= or >.

  4. Enter a threshold of the metric (SLA).

  5. In the fields Start and End, enter the period for which PFLB Platform calculates the metric at the end of the test if needed.

Request#

../_images/um_sla_request.en.png
  1. Select the request, transaction, and group of the test.

  2. Select one of the metrics:

    • Average response time. Average system response time to a request.

    • Error rate. Errors are calculated only when executing the request.

    • Percentile 95. The value which is greater than 95% of response time for the request.

    • Request per second. Number of requests sent per second.

  3. Select one of the conditions: <= or >.

  4. Enter a threshold of the metric (SLA).

  5. In the fields Start and End, enter the period for which PFLB Platform calculates the metric at the end of the test if needed.

System metrics#

../_images/um_sla_system_metrics.en.png

To add an SLA with system metrics, follow these steps:

  1. Enter the host name of the testing system.

  2. Select one of the metrics:

    • Average cpu usage,

    • Average memory usage.

  3. Select one of the conditions: <= or >.

  4. Enter a threshold of the metric (SLA).

  5. In the fields Start and End, enter the period for which PFLB Platform calculates the metric at the end of the test if needed.

View SLA status#

The SLA fulfillment status is displayed after the test is completed in the Test runs page. For more information, see View the performed tests.

To view the SLA metric value, follow these steps:

  1. In the Test runs page, open the test run.

  2. Click SLA. If the test results match SLA, the metric value is highlighted in green, otherwise it is highlighted in red:

    ../_images/um_view_sla_status.en.png