Skip to content

Commit

Permalink
dho-qa: Add siege config file and document running siege
Browse files Browse the repository at this point in the history
Adds siege.conf file for siege configuration options
Adds docstring to main function in generate_objects.py describing how to run
the static content load test.
  • Loading branch information
Kyle Marsh committed Jul 8, 2011
1 parent 3a3cbb3 commit 951dc0f
Show file tree
Hide file tree
Showing 3 changed files with 395 additions and 2 deletions.
3 changes: 1 addition & 2 deletions generate_objects.conf
@@ -1,3 +1,2 @@
- [3, 20, 5]
- [3, 30, 2]
- [10, 2000, 200]

12 changes: 12 additions & 0 deletions generate_objects.py
Expand Up @@ -91,6 +91,18 @@ def generate_objects(bucket, quantity, mean, stddev, seed, checksum=False):


def main():
'''To run the static content load test:
./generate_objects.py -a S3_ACCESS_KEY -s S3_SECRET_KEY -O urls.txt --seed 1234 generate_objects.conf && siege -rc ./siege.conf -r 5
This creates a bucket with your S3 credentials and fills it with
garbage objects as described in generate_objects.conf. It writes a
list of URLS to those objects to ./urls.txt. siege then reads the
./siege.conf config file which tells it to read from ./urls.txt and
log to ./siege.log and hammers each url in urls.txt 5 times (-r flag).
Results are printed to the terminal and written in CSV format to
./siege.log
'''
(options, args) = parse_opts();

#SETUP
Expand Down

0 comments on commit 951dc0f

Please sign in to comment.