Skip to content

Commit 7bcb314

Browse files
Merge pull request #248972 from ntrogh/alt-freshness-0823
[Azure Load Testing] Content freshness August
2 parents 5aead2a + 895889b commit 7bcb314

File tree

2 files changed

+41
-16
lines changed

2 files changed

+41
-16
lines changed

articles/load-testing/concept-azure-load-testing-vnet-injection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ ms.service: load-testing
77
author: ntrogh
88
ms.author: nicktrog
99
ms.topic: conceptual
10-
ms.date: 08/03/2022
10+
ms.date: 08/22/2023
1111
---
1212

1313
# Scenarios for deploying Azure Load Testing in a virtual network
1414

15-
In this article, you'll learn about the scenarios for deploying Azure Load Testing in a virtual network (VNET). This deployment is sometimes called VNET injection.
15+
In this article, you learn about the scenarios for deploying Azure Load Testing in a virtual network (VNET). This deployment is sometimes called VNET injection.
1616

1717
This functionality enables the following usage scenarios:
1818

articles/load-testing/how-to-high-scale-load.md

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
---
2-
title: Configure Azure Load Testing for high-scale load tests
2+
title: Configure high-scale load tests
33
titleSuffix: Azure Load Testing
4-
description: Learn how to configure Azure Load Testing to run high-scale load tests by simulating large amounts of virtual users.
4+
description: Learn how to configure test engine instances in Azure Load Testing to run high-scale load tests. Monitor engine health metrics to find an optimal configuration for your load test.
55
services: load-testing
66
ms.service: load-testing
77
ms.author: nicktrog
88
author: ntrogh
9-
ms.date: 07/18/2022
9+
ms.date: 08/22/2023
1010
ms.topic: how-to
1111

1212
---
1313

1414
# Configure Azure Load Testing for high-scale load
1515

16-
In this article, learn how to set up a load test for high-scale load with Azure Load Testing.
17-
18-
Configure multiple test engine instances to scale out the number of virtual users for your load test and simulate a high number of requests per second. To achieve an optimal load distribution, you can monitor the test instance health metrics in the Azure Load Testing dashboard.
16+
In this article, you learn how to configure your load test for high-scale with Azure Load Testing. Configure multiple test engine instances to scale out the number of virtual users for your load test and simulate a high number of requests per second. To achieve an optimal load distribution, you can monitor the test instance health metrics in the Azure Load Testing dashboard.
1917

2018
## Prerequisites
2119

2220
- An Azure account with an active subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
2321

24-
- An existing Azure Load Testing resource. To create an Azure Load Testing resource, see the quickstart [Create and run a load test](./quickstart-create-and-run-load-test.md).
22+
- An existing Azure load testing resource. To create an Azure load testing resource, see the quickstart [Create and run a load test](./quickstart-create-and-run-load-test.md).
2523

2624
## Determine requests per second
2725

@@ -38,9 +36,9 @@ To achieve a target number of requests per second, configure the total number of
3836
3937
## Test engine instances and virtual users
4038

41-
In the Apache JMeter script, you can specify the number of parallel threads. Each thread represents a virtual user that accesses the application endpoint in parallel. We recommend that you keep the number of threads in a script below a maximum of 250.
39+
In the Apache JMeter script, you can specify the number of parallel threads. Each thread represents a virtual user that accesses the application endpoint. We recommend that you keep the number of threads in a script below a maximum of 250.
4240

43-
In Azure Load Testing, *test engine* instances are responsible for running the Apache JMeter script. You can configure the number of instances for a load test. All test engine instances run in parallel.
41+
In Azure Load Testing, *test engine* instances are responsible for running the Apache JMeter script. All test engine instances run in parallel. You can configure the number of instances for a load test.
4442

4543
The total number of virtual users for a load test is then: VUs = (# threads) * (# test engine instances).
4644

@@ -50,9 +48,13 @@ For example, to simulate 1,000 virtual users, set the number of threads in the A
5048

5149
The location of the Azure Load Testing resource determines the location of the test engine instances. All test engine instances within a Load Testing resource are hosted in the same Azure region.
5250

53-
## Configure your test plan
51+
## Configure test engine instances
52+
53+
You can specify the number of test engine instances for each test. Your test script runs in parallel across each of these instances to simulate load to your application.
54+
55+
To configure the number of instances for a test:
5456

55-
In this section, you configure the scaling settings of your load test.
57+
# [Azure portal](#tab/portal)
5658

5759
1. Sign in to the [Azure portal](https://portal.azure.com) by using the credentials for your Azure subscription.
5860

@@ -72,9 +74,32 @@ In this section, you configure the scaling settings of your load test.
7274

7375
1. Select **Apply** to modify the test and use the new configuration when you rerun it.
7476

77+
# [Azure Pipelines / GitHub Actions](#tab/pipelines+github)
78+
79+
For CI/CD workflows, you configure the number of engine instances in the [YAML test configuration file](./reference-test-config-yaml.md). You store the load test configuration file alongside the JMeter test script file in the source control repository.
80+
81+
1. Open the YAML test configuration file for your load test in your editor of choice.
82+
83+
1. Configure the number of test engine instances in the `engineInstances` setting.
84+
85+
The following example configures a load test that runs across 10 parallel test engine instances.
86+
87+
```yaml
88+
version: v0.1
89+
testId: SampleTestCICD
90+
displayName: Sample test from CI/CD
91+
testPlan: SampleTest.jmx
92+
description: Load test website home page
93+
engineInstances: 10
94+
```
95+
96+
1. Save the YAML configuration file, and commit the changes to source control.
97+
98+
---
99+
75100
## Monitor engine instance metrics
76101
77-
To make sure that the test engine instances themselves aren't a performance bottleneck, you can monitor resource metrics of the test engine instance. A high resource usage for a test instance might negatively influence the results of the load test.
102+
To make sure that the test engine instances, themselves aren't a performance bottleneck, you can monitor resource metrics of the test engine instance. A high resource usage for a test instance might negatively influence the results of the load test.
78103
79104
Azure Load Testing reports four resource metrics for each instance:
80105
@@ -98,13 +123,13 @@ To view the engine resource metrics:
98123
99124
### Troubleshoot unhealthy engine instances
100125
101-
If one or multiple instances show a high resource usage, it could impact the test results. To resolve the issue, try one or more of the following steps:
126+
If one or multiple instances show a high resource usage, it could affect the test results. To resolve the issue, try one or more of the following steps:
102127
103128
- Reduce the number of threads (virtual users) per test engine. To achieve a target number of virtual users, you might increase the number of engine instances for the load test.
104129
105130
- Ensure that your script is effective, with no redundant code.
106131
107-
- If the engine health status is unknown, re-run the test.
132+
- If the engine health status is unknown, rerun the test.
108133
109134
## Next steps
110135

0 commit comments

Comments
 (0)