Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336743 - Load-testing and user creation scripts
Summary: Load-testing and user creation scripts
Status: RESOLVED INVALID
Alias: None
Product: Orion
Classification: ECD
Component: Releng (show other bugs)
Version: 0.2   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-09 13:22 EST by Denis Roy CLA
Modified: 2013-02-25 11:57 EST (History)
2 users (show)

See Also:


Attachments
Stress Test shell script (5.25 KB, text/plain)
2011-02-09 13:22 EST, Denis Roy CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Roy CLA 2011-02-09 13:22:37 EST
Created attachment 188612 [details]
Stress Test shell script

I'm attaching a script I wrote to stress-test an Orion server.  It should run unchanged on a typical Linux environment.  It expects a userlist.txt file, which contains id:password pairs, one per line.

To create random users, I use curl to log into my Orion instance as admin (this is described on the server admin guide) and use the following one-liner:

for (( c=1; c<=10000; c++ )) do a=$(./generate-rand-string.sh); b=$(./generate-rand-string.sh); echo "$a@${b}.com:abcde123" >> userlist.txt; echo "$a@${b}.com"; curl -b curl_cookies.txt -d "login=$a@{$b}.com" -d "password=abcde123" http://localhost/users; done

The above line also creates the userlist.txt file expected by the stress-test script.  generate-rand-string.sh is nothing more than a script that generates 12 bytes of random alphanumeric goodness.
Comment 1 Denis Roy CLA 2013-02-25 11:50:17 EST
Not sure why I even opened this.
Comment 2 Ken Walker CLA 2013-02-25 11:57:23 EST
I wrote something similar in Java (yeesh) to test user pagination I added to the admin page.  Just randomly made things though.