Skip to content

Commit

Permalink
[loadtest] Update load test documentation (#700)
Browse files Browse the repository at this point in the history
Update load test documentation
  • Loading branch information
BenjaminPelletier authored May 23, 2024
1 parent d5f4293 commit 58d636e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions monitoring/loadtest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ for the format of these values. Omitting this step will result in Client Initia
## Running in a Container
Simply build the Docker container with the Dockerfile from the root directory. All the files are added into the container

1. From the [`monitoring`](..) folder of this repository, build the monitoring image with `docker image build . -t interuss/monitoring`
1. Run Docker container
1. From the root folder of this repository, build the monitoring image with `make image`
1. Run Docker container; in general:

a. For ISA run: `docker run -e AUTH_SPEC="<auth spec>" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/ISA.py`

b. For Sub run: `docker run -e AUTH_SPEC="<auth spec>" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/Sub.py`

1. If testing local DSS instance, be sure that the loadtest (monitoring) container has access to the DSS container
1. If testing local DSS instance, be sure that the loadtest (monitoring) container has access to the DSS container:

a. For ISA run: `docker run -e AUTH_SPEC="DummyOAuth(http://host.docker.internal:8085/token,uss1)" --network="interop_ecosystem_network" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/ISA.py`
a. For ISA run: `docker run -e AUTH_SPEC="DummyOAuth(http://oauth.authority.localutm:8085/token,uss1)" --network="interop_ecosystem_network" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/ISA.py`

b. For ISA run: `docker run -e AUTH_SPEC="DummyOAuth(http://host.docker.internal:8085/token,uss1)" --network="interop_ecosystem_network" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/Sub.py`
b. For Sub run: `docker run -e AUTH_SPEC="DummyOAuth(http://oauth.authority.localutm:8085/token,uss1)" --network="interop_ecosystem_network" -p 8089:8089 interuss/monitoring locust -f loadtest/locust_files/Sub.py`

## Use
1. Navigate to http://localhost:8089
1. Start new test with number of Users to spawn and the rate to spawn them.
1. For the Host, provide the DSS Core Service endpoint used for testing. An example of such url is: http://local_infra-dss-1:8082/v1/dss/ in case local environment is setup by [run_locally.sh](../../build/dev/run_locally.sh)
1. For the Host, provide the DSS Core Service endpoint used for testing. An example of such url is: http://dss.uss1.localutm/v1/dss/ in case local environment is setup with `make start-locally`

0 comments on commit 58d636e

Please sign in to comment.