AMRestAuthNSim.scala simulation tests authentication rates using the REST
API. It measures the throughput and response times of an AM server
performing REST authentications when AM is configured to use CTS-based
To run the simulation:
Make sure the userstore is provisioned, and the Directory Services cache is primed.
See Test user generation.
Set environment variables that specify the host on which to run the test, the number of concurrent threads to spawn when running the test, the duration of the test (in seconds), the first part of the user ID, and the user password, and the number of users for the test:
$ export TARGET_HOST=cdm.example.com $ export CONCURRENCY=100 $ export DURATION=60 $ export USER_PREFIX=user. $ export USER_PASSWORD=T35tr0ck123 $ export USER_POOL=n-users
where n-users is
1000000for a small cluster,
10000000for a medium cluster, and
100000000for a large cluster.
Configure AM for CTS-based sessions:
Log in to the Identity Platform admin UI as the
amadminuser. For details, see AM Services.
Access the AM admin UI.
Select the top level realm.
Make sure the Use Client-based Sessions option is disabled.
If it’s not disabled, disable it, and then select Save Changes.
Change to the /path/to/forgeops/docker/gatling directory.
Run the simulation:
$ gradle clean; gradle gatlingRun-am.AMRestAuthNSim
When the simulation is complete, the name of a file containing the test results appears near the end of the output.
Open the file containing the test results in a browser to review the results.