summaryrefslogtreecommitdiffstats
path: root/testsuites/performance/src/main/resources/testplans/README.perf.md
blob: 653a05aaae76ed37b0d3f992c55b3a9dfa10daa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Performance Test for Policy Distribution
## Steps to Run performance test
1. Download Apache JMeter
Download JMeter 5.x.x from https://jmeter.apache.org/download_jmeter.cgi, and extracted it locally.

2. Run the setup-components script found within simulator setup in the stability test folder.
This will launch MariaDB, PDPSimulator, PAP, Policy-API and DMaaP Simulator as docker containers.

3. Launch the policy distribution service by running the start script found within setup folder
in the stability test folder.

4. Run the JMeter performance test from testplans folder.
```
./run_test.sh
```
Search for 'get policy failed' in the log file to see if there is any errors found during the performance test.

## JMeter properties
We can configure the following properties when running the JMeter performance test for policy distribution
| Property Name | Default Value | Description |
|---------------|-------------|---------------|
| host | 10.2.0.27 | PAP/API service host name or ip  |
| watchedfolder | /tmp/policy_distribution/distributionmounts | Directory that is mounted to distribution watched folder |
| duration | 259200 | Number of seconds for how long to run the tests |
|PAP_PORT|7000| Port that pap service is exposing|
|API_PORT|6969| Port that API service is exposing|
|DISTRIBUTION_HOST| 127.0.0.1 | Distribution service host name or ip |
|DISTRIBUTION_PORT| 6969 | Distribution service port |