This pack contains actions for testing st2 performance
delay- delay x secondschain_delay_10- delay x seconds 10 times in an action chainchain_delay_20- delay x seconds 20 times in an action chainmistral_delay_10- delay x seconds 10 times in a simple Mistral workflow chainmistral_delay- delay x seconds, y times, with z concurrency with Mistralmistral_parallel_delay- delay x seconds, y times, with full concurrency with Mistralmistral_list_delay- delay x seconds, y times, with full concurrency with Mistral in a manner most like Connect workflows
delay20- limit concurrency to 1 (not currently used)
start_*- rules to start actions based on sensor triggers
- watches
.../packs/performancedirectory forrun_*files run_xyzfiles contains json parameters, where "mode" is one ofchain,repeat, orlist(e.g.{"seconds":1.0,"iterations":20,"concurrency":1,"mode":"list"})run_xyz.okis a semaphore file, informing sensor to read and process json filerun_delay,run_chain, andrun_mistralare currently supported
If running standalone (i.e. on native StackStorm and not as part of Composable Fabric Manager):
cd /opt/stackstorm/packs
git clone git@github.com:bri365/st2perf.git
Setup the pack virtualenv
st2 run
- manual testing
st2 run performance.chain_delay_20 seconds=0.1 - sensor/trigger/rule based testing
./chain-loop,./mistral-loop, ormistral-delay-test