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: .github/ISSUE_TEMPLATE/bug_report.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ assignees: ''
21
21
-[ ] Region: [e.g. us-east-1]
22
22
-[ ] Was the solution modified from the version published on this repository?
23
23
-[ ] If the answer to the previous question was yes, are the changes available on GitHub?
24
-
-[ ] Have you checked your [service quotas](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) for the sevices this solution uses?
24
+
-[ ] Have you checked your [service quotas](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) for the services this solution uses?
25
25
-[ ] Were there any errors in the CloudWatch Logs?
Copy file name to clipboardExpand all lines: NOTICE.txt
+19-6Lines changed: 19 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,32 +6,45 @@ THIRD PARTY COMPONENTS
6
6
**********************
7
7
This software includes third party software subject to the following copyrights:
8
8
9
-
@fortawesome/fontawesome-svg-core under the Massachusetts Institute of Technology (MIT) license
10
-
@fortawesome/free-brands-svg-icons under the Creative Commons Attribution 4.0 International license and the Massachusetts Institute of Technology (MIT) license
11
-
@fortawesome/free-solid-svg-icons under the Creative Commons Attribution 4.0 International license and the Massachusetts Institute of Technology (MIT) license
12
-
@fortawesome/react-fontawesome under the Massachusetts Institute of Technology (MIT) license
13
-
aws-sdk under the Apache License Version 2.0
9
+
@aws-amplify/pubsub under the Apache License 2.0
10
+
@aws-amplify/ui-components under the Apache License 2.0
11
+
@aws-amplify/ui-react under the Apache License 2.0
12
+
@aws-cdk/assert under the Apache License 2.0
13
+
@aws-solutions-constructs/aws-cloudfront-s3 under the Apache License 2.0
14
+
@types/jest under the Massachusetts Institute of Technology (MIT) License
15
+
@types/node under the Massachusetts Institute of Technology (MIT) License
14
16
aws-amplify under the Apache License Version 2.0
17
+
aws-cdk under the Apache License Version 2.0
18
+
aws-cdk-lib under the Apache License 2.0
19
+
aws-sdk under the Apache License Version 2.0
15
20
axios under the Massachusetts Institute of Technology (MIT) license
16
21
axios-mock-adapter under the Massachusetts Institute of Technology (MIT) license
17
22
bootstrap under the Massachusetts Institute of Technology (MIT) license
23
+
bootstrap-icons under the Massachusetts Institute of Technology (MIT) license
18
24
brace under the Massachusetts Institute of Technology (MIT) license
25
+
chart.js under the Massachusetts Institute of Technology (MIT) license
26
+
chartjs-adapter-moment under the Massachusetts Institute of Technology (MIT) license
27
+
constructs under the Apache License 2.0
28
+
false under the Apache License Version 2.0
19
29
jest under the Massachusetts Institute of Technology (MIT) license
20
30
jetty-alpn-client under the Apache License Version 2.0 and the Eclipse Public License 1.0
21
31
jetty-alpn-openjdk8-client under the Apache License Version 2.0 and the Eclipse Public License 1.0
22
32
jetty-client under the Apache License Version 2.0 and the Eclipse Public License 1.0
23
33
jetty-http under the Apache License Version 2.0 and the Eclipse Public License 1.0
24
34
jetty-io under the Apache License Version 2.0 and the Eclipse Public License 1.0
25
35
jetty-util under the Apache License Version 2.0 and the Eclipse Public License 1.0
36
+
js-yaml under the Massachusetts Institute of Technology (MIT) license
26
37
moment under the Massachusetts Institute of Technology (MIT) license
27
38
react under the Massachusetts Institute of Technology (MIT) license
28
39
react-ace under the Massachusetts Institute of Technology (MIT) license
29
40
react-dom under the Massachusetts Institute of Technology (MIT) license
30
41
react-router-dom under the Massachusetts Institute of Technology (MIT) license
31
-
react-router-hash-link under the Massachusetts Institute of Technology (MIT) license
32
42
react-scripts under the Massachusetts Institute of Technology (MIT) license
33
43
reactstrap under the Massachusetts Institute of Technology (MIT) license
34
44
nanoid under the Massachusetts Institute of Technology (MIT) license
35
45
taurus under the Apache License Version 2.0
46
+
ts-jest under the Massachusetts Institute of Technology (MIT) License
47
+
ts-node under the Massachusetts Institute of Technology (MIT) License
48
+
typescript under the Apache License 2.0
36
49
uuid under the Massachusetts Institute of Technology (MIT) license
37
50
xml-js under the Massachusetts Institute of Technology (MIT) license
Copy file name to clipboardExpand all lines: README.md
+31-20Lines changed: 31 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Distributed Load Testing on AWS
2
2
3
-
The Distributed Load Testing Solution leverages managed, highly available and highly scalable AWS services to effortlessly create and simulate thousands of connected users generating a selected amount of transactions per second. As a result, developers can understand the behavior of their applications at scale and at load to identify any bottleneck problems before they deploy to Production.
3
+
The Distributed Load Testing Solution leverages managed, highly available and highly scalable AWS services to effortlessly create and simulate thousands of connected users generating a selected amount of transactions per second, originating from up to 5 simultaneous AWS regions. As a result, developers can understand the behavior of their applications at scale and at load to identify any bottleneck problems before they deploy to Production.
4
4
5
5
## On this Page
6
6
@@ -15,7 +15,7 @@ The Distributed Load Testing Solution leverages managed, highly available and hi
15
15
16
16
## Deployment
17
17
18
-
The solution is deployed using a CloudFormation template with a lambda backed custom resource. For details on deploying the solution please see the details on the solution home page: [Distributed Load Testing](https://aws.amazon.com/solutions/implementations/distributed-load-testing-on-aws/)
18
+
The solution is deployed using a CloudFormation template with a lambda backed custom resource. To simulate users from regions other than the region the solution is initially deployed in, a regional template must be deployed within the other desired regions. For details on deploying the solution please see the details on the solution implementation guide: [Distributed Load Testing](https://docs.aws.amazon.com/solutions/latest/distributed-load-testing-on-aws/deployment.html)
19
19
20
20
## Source Code
21
21
@@ -26,11 +26,22 @@ A NodeJS Lambda function for the API microservices. Integrated with Amazon API G
26
26
ReactJS Single page application to provide a GUI to the solutions. Authenticated through Amazon Cognito this dashboard allows users to Create tests and view the final results.
27
27
28
28
**source/custom-resource**<br/>
29
-
A NodeJS Lambda function used as a CloudFormation custom resource for configuring Amazon S3 bucket notifications and to send anonymous metrics.
29
+
A NodeJS Lambda function used as a CloudFormation custom resource for sending anonymous metrics, configuration for regional testing infrastructure, and iot configuration.
30
+
31
+
**source/infrastructure**<br/>
32
+
A Typescript [AWS Cloud Development Kit (AWS CDK)](https://aws.amazon.com/cdk/)[v2](https://docs.aws.amazon.com/cdk/v2/guide/home.html) package that defines the infrastructure resources to run the Distributed Load Testing on AWS solution.
33
+
34
+
It also uses the [AWS Solutions Constructs](https://aws.amazon.com/solutions/constructs/)[aws-cloudfront-s3](https://docs.aws.amazon.com/solutions/latest/constructs/aws-cloudfront-s3.html) package to define the CloudFront distribution and the S3 bucket that stores the content that makes up the UI.
35
+
36
+
**source/real-time-data-publisher**<br/>
37
+
A NodeJS Lambda function used to publish the real time load test data to an IoT topic.
30
38
31
39
**source/results-parser**<br/>
32
40
A NodeJS Lambda function used to write the xml output from the docker images to Amazon DynamoDB and generate the final results for each test.
33
41
42
+
**source/solution-utils**<br/>
43
+
A NodeJS package that contains commonly used functionality that is imported by other packages in this solution.
44
+
34
45
**source/task-canceler**<br/>
35
46
A NodeJS Lambda function used to stop tasks for a test that has been cancelled.
36
47
@@ -48,19 +59,20 @@ To make changes to the solution, download or clone this repository, update the s
48
59
49
60
### Prerequisites
50
61
51
-
* Node.js 14.x or later
62
+
- Node.js 14.x or later
63
+
- S3 bucket that includes the AWS region as a suffix in the name. For example, `my-bucket-us-east-1`. The bucket and CloudFormation stack must be in the same region. The solution's CloudFormation template will expect the source code to be located in a bucket matching that name.
52
64
53
65
### Running unit tests for customization
54
66
55
-
* Clone the repository and make the desired code changes.
67
+
- Clone the repository and make the desired code changes.
* Run unit tests to make sure the updates pass the tests.
75
+
- Run unit tests to make sure the updates pass the tests.
64
76
65
77
```bash
66
78
cd$BASE_DIRECTORY/deployment
@@ -70,35 +82,34 @@ chmod +x ./run-unit-tests.sh
70
82
71
83
### Building distributable for customization
72
84
73
-
* Configure the environment variables.
85
+
- Configure the environment variables.
74
86
75
87
```bash
76
-
export DIST_BUCKET_PREFIX=my-bucket-name # bucket where customized code will reside
88
+
export REGION=aws-region-code # the AWS region to launch the solution (e.g. us-east-1)
89
+
export BUCKET_PREFIX=my-bucket-name # prefix of the bucket name without the region code
90
+
export BUCKET_NAME=$BUCKET_PREFIX-$REGION# full bucket name where the code will reside
77
91
export SOLUTION_NAME=my-solution-name
78
92
export VERSION=my-version # version number for the customized code
79
-
export REGION=aws-region-code # the AWS region to launch the solution (e.g. us-east-1)
80
93
export PUBLIC_ECR_REGISTRY=public.ecr.aws/awssolutions/distributed-load-testing-on-aws-load-tester # replace with the container registry and image if you want to use a different container image
81
-
export PUBLIC_ECR_TAG=v2.0 # replace with the container image tag if you want to use a different container image
94
+
export PUBLIC_ECR_TAG=v3.0.0 # replace with the container image tag if you want to use a different container image
82
95
```
83
96
84
-
> **Note:** When you define `DIST_BUCKET_PREFIX`, a randomized value is recommended. You will need to create an S3 bucket where the name is `<DIST_BUCKET_PREFIX>-<REGION>`. The solution's CloudFormation template will expect the source code to be located in a bucket matching that name.
> **Note**: The _build-s3-dist_ script expects the bucket name as one of its parameters, and this value should not include the region suffix. In addition to that, the version parameter will be used to tag the npm packages, and therefore should be in the [Semantic Versioning format](https://semver.org/spec/v2.0.0.html).
105
+
> **Note**: The _build-s3-dist_ script expects the bucket name **without the region suffix** as one of its parameters.
95
106
96
-
* Deploy the distributable to the Amazon S3 bucket in your account.
107
+
- Deploy the distributable to the Amazon S3 bucket in your account.
108
+
- Make sure you are uploading the files in `deployment/global-s3-assets` and `deployment/regional-s3-assets` to `$BUCKET_NAME/$SOLUTION_NAME/$VERSION`.
97
109
98
-
* Make sure you are uploading the distributable to the `<DIST_BUCKET_PREFIX>-<REGION>` bucket.
99
-
* Get the link of the solution template uploaded to your Amazon S3 bucket.
110
+
- Get the link of the solution template uploaded to your Amazon S3 bucket.
100
111
101
-
* Deploy the solution to your account by launching a new AWS CloudFormation stack using the link of the solution template in Amazon S3.
112
+
- Deploy the solution to your account by launching a new AWS CloudFormation stack using the link of the solution template in Amazon S3.
102
113
103
114
## Creating a custom container build
104
115
@@ -111,4 +122,4 @@ This solution collects anonymous operational metrics to help AWS improve the qua
111
122
***
112
123
113
124
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.<br />
0 commit comments