Services/TrackingProtection/Shavar Server - Testing: Difference between revisions

Add loadtest notes
(Add loadtest notes)
(Add loadtest notes)
Line 248: Line 248:


'''SUMMARY'''
'''SUMMARY'''
Shavar server can be loadtested using a tool like [https://github.com/mostlygeek/beeswithmachineguns/ beeswithmachineguns] or [https://github.com/JoeDog/siege seige].


'''EXAMPLE'''   
Shavar server can be loadtested using a tool like:
* [https://github.com/mostlygeek/beeswithmachineguns/ beeswithmachineguns] or
* [https://github.com/JoeDog/siege seige]
 
'''Example with Seige'''   
 
The following test will:
* create -c [# of concurrent users]
* execute -r [# of repetitions (hits)]
    
    
<code>                         
<code>                         
  siege -b -i -v -c 1000 -r 1000 'https://<shavar-stage-url-here>/downloads?client=LOADTEST&appver=36.0a1&pver=2.2 POST < blist.txt'
  siege -b -i -v -c 1000 -r 1000 'https://<shavar-stage-url-here>/downloads?client=LOADTEST&appver=36.0a1&pver=2.2 POST < blist.txt'
</code>
'''Example with beeswithmachineguns''' 
The following test will
* instantiate -s [# of bees]
* of -t [AWS instance size]
* using -k <SSH keypair (pem file) name>
<code>                       
./bees up -s 20 -k loads -t t2.medium
</code>
once bees are running, the following test will create:
* -c [# of concurrent users]
* for a test of duration -w [seconds]
* using siege engine --use-siege
<code>
./bees attack --use-siege -c 20 -w 300s -u 'http://<shavar-stage-url-here>/downloads POST mozpub-track-digest256;a:1424217132'
</code>
</code>


Confirmed users
487

edits