GET /
Hello DoraGET /id
The id of the instancePOST /session
Sets up the cookies for a sticky sessionPOST /stress_testers?cpu=1&io=1
Starts the stress tester with 1 cpu and 1 io processGET /stress_testers
Gets all the stress testers processesDELETE /stress_testers
Kill all the stress testers processesGET /find/:filename
Finds a file in your instanceGET /sigterm
Displays all possible sigtermsGET /delay/:seconds
Waits for n secondsGET /sigterm/:signal
Sends the specfied signalGET /logspew/:bytes
Spews out n bytes to the logsGET /loglines/:linecount
Writes n lines to stdout, each line contains a timestamp with nanosecondsGET /loglines/:linecount/:tag
Writes n lines to stdout, each line contains a timestamp with nanoseconds and the given tagGET /log/sleep/count
Returns a count of the log messages logged by the log serviceGET /log/sleep/running
Returns whether the log service is runningGET /log/sleep/:logspeed/limit/:limit
Produces logspeed output with the given parametersGET /log/sleep/:logspeed
Produces logspeed output without limitGET /log/stop
Stops the log serviceGET /log/bytesize/:bytesize
Produces continuous log entries of the given bytesizeGET /echo/:destination/:output
Echos out the output to the destinationGET /env/:name
Prints out the environment variable:name
GET /env
Prints out the entire environment as a serialized Ruby hashGET /env.json
Prints out the entire environment as a JSON objectGET /largetext/:kbytes
Returns a dummy response of size:kbytes
. For testing large payloads.GET /health
Returns 500 the first 3 times you call it, "I'm alive" thereafterGET /ping/:address
Pings the given address 4 timesGET /lsb_release
Returns information about the Linux distribution of the containerGET /dpkg/:package
Returns the output ofdpkg -l
for the given packangeGET /myip
Returns the IP of the app containerGET /curl/:host/?:port?
cURLs the given host and port and returns the stdout, stderr, and status as JSON
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