GET /Hello DoraGET /idThe id of the instancePOST /sessionSets up the cookies for a sticky sessionPOST /stress_testers?cpu=1&io=1Starts the stress tester with 1 cpu and 1 io processGET /stress_testersGets all the stress testers processesDELETE /stress_testersKill all the stress testers processesGET /find/:filenameFinds a file in your instanceGET /sigtermDisplays all possible sigtermsGET /delay/:secondsWaits for n secondsGET /sigterm/:signalSends the specfied signalGET /logspew/:bytesSpews out n bytes to the logsGET /loglines/:linecountWrites n lines to stdout, each line contains a timestamp with nanosecondsGET /echo/:destination/:outputEchos out the output to the destinationGET /env/:namePrints out the env variable
There is a helper script in this directory: get_instance_cookie_jars.sh
- specify number of expected instances with
-e # - specify maximum number of tries with
-m #
The script will create cookie jars in the current directory, using the filename pattern cookie_jar_<instance_id>.cjar
To direct a curl request to a particular instance, specify -b <cookie_jar_file> on the curl command line.
Or, to set up a sticky session manually:
- Get your sticky session by running:
curl -d '' dora.yourdomain.com/session -c instance_1- Run with a different filename for each instance, and repeat the curl command until you get a new ID
curl -d '' dora.yourdomain.com/session -c instance_2- Then you can target whatever instance you want for example:
curl dora.yourdomain.com/stress_testers -b instance_2