kanidm/tools/orca
Firstyear b58370adc8
Configurable thread count (#2847)
* added `thread_count` configuration for the server
* added `thread_count` to orca

---------

Co-authored-by: Sebastiano Tocci <sebastiano.tocci@proton.me>
2024-06-21 11:47:36 +10:00
..
names-dataset 20230224 2437 orca remodel (#2591) 2024-03-09 16:09:15 +10:00
src Configurable thread count (#2847) 2024-06-21 11:47:36 +10:00
build.rs 20240221 2489 cleanup api v1 (#2573) 2024-02-27 09:25:02 +00:00
Cargo.toml illumos support (#2838) 2024-06-15 05:20:11 +00:00
README.md 20240409 rework orca markov (#2699) 2024-04-16 23:35:16 +00:00

Orca - A Kanidm Load Testing Tool

Make a profile.toml

orca setup-wizard --idm-admin-password ... \
  --admin-password ... \
  --control-uri 'https://localhost:8443' \
  --profile ./profile.toml

Test the connection

orca conntest --profile ./profile.toml

Generate a State File

orca generate --profile ./profile.toml --state ./state.json

Run the test preflight to populate the sample data

orca populate --state ./state.json

Run the load test

orca run --state ./state.json

Design Choices

What is a profile?

A profile defines the connection parameters and test randomisation seed. From a profile you define the parameters of the test you wish to perform.

What is a state file?

A statefile is the fully generated state of all entries that will be created and then used in the load test. The state file can be recreated from a profile and it's seed at anytime. The reason to seperate these is that state files may get quite large, when what you really just need is the ability to recreate them when needed.

This state file also contains all the details about accounts and entries so that during test execution orca knows what it can and can not interact with.

Why have a separate generate and preflight?

Because generating the data is single thread limited, this would also bottleneck entry creation. By generating the data first, we can then execute preflight entry creation in parallel.