You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/load-testing/concept-azure-load-testing-vnet-injection.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ ms.service: load-testing
7
7
author: ntrogh
8
8
ms.author: nicktrog
9
9
ms.topic: conceptual
10
-
ms.date: 08/03/2022
10
+
ms.date: 08/22/2023
11
11
---
12
12
13
13
# Scenarios for deploying Azure Load Testing in a virtual network
14
14
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.
16
16
17
17
This functionality enables the following usage scenarios:
Copy file name to clipboardExpand all lines: articles/load-testing/how-to-high-scale-load.md
+39-14Lines changed: 39 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,25 @@
1
1
---
2
-
title: Configure Azure Load Testing for high-scale load tests
2
+
title: Configure high-scale load tests
3
3
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.
5
5
services: load-testing
6
6
ms.service: load-testing
7
7
ms.author: nicktrog
8
8
author: ntrogh
9
-
ms.date: 07/18/2022
9
+
ms.date: 08/22/2023
10
10
ms.topic: how-to
11
11
12
12
---
13
13
14
14
# Configure Azure Load Testing for high-scale load
15
15
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.
19
17
20
18
## Prerequisites
21
19
22
20
- 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.
23
21
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).
25
23
26
24
## Determine requests per second
27
25
@@ -38,9 +36,9 @@ To achieve a target number of requests per second, configure the total number of
38
36
39
37
## Test engine instances and virtual users
40
38
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.
42
40
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.
44
42
45
43
The total number of virtual users for a load test is then: VUs = (# threads) * (# test engine instances).
46
44
@@ -50,9 +48,13 @@ For example, to simulate 1,000 virtual users, set the number of threads in the A
50
48
51
49
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.
52
50
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:
54
56
55
-
In this section, you configure the scaling settings of your load test.
57
+
# [Azure portal](#tab/portal)
56
58
57
59
1. Sign in to the [Azure portal](https://portal.azure.com) by using the credentials for your Azure subscription.
58
60
@@ -72,9 +74,32 @@ In this section, you configure the scaling settings of your load test.
72
74
73
75
1. Select **Apply** to modify the test and use the new configuration when you rerun it.
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
+
75
100
## Monitor engine instance metrics
76
101
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.
78
103
79
104
Azure Load Testing reports four resource metrics for each instance:
80
105
@@ -98,13 +123,13 @@ To view the engine resource metrics:
98
123
99
124
### Troubleshoot unhealthy engine instances
100
125
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:
102
127
103
128
- 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.
104
129
105
130
- Ensure that your script is effective, with no redundant code.
106
131
107
-
- If the engine health status is unknown, re-run the test.
132
+
- If the engine health status is unknown, rerun the test.
0 commit comments