Project

General

Profile

1 4902 daigle
#!/bin/bash
2
3
#############################################################################
4
# Run a series of load tests against a metacat instance.
5
#
6
# 3 April 2009 Michael Daigle (daigle@nceas.ucsb.edu)
7
#############################################################################
8
9 4906 daigle
######################
10 4902 daigle
# squery-load-test.py dictionary-letter iterations delay test-server
11 4906 daigle
######################
12 4902 daigle
13 4910 daigle
./squery-load-test.py m 50 4 dev.nceas.ucsb.edu 2>&1 &
14 4902 daigle
15 4910 daigle
./squery-load-test.py n 50 4 dev.nceas.ucsb.edu 2>&1 &
16 4902 daigle
17 4910 daigle
./squery-load-test.py o 50 4 dev.nceas.ucsb.edu 2>&1 &
18 4902 daigle
19 4910 daigle
./squery-load-test.py p 50 4 dev.nceas.ucsb.edu 2>&1 &
20 4902 daigle
21 4906 daigle
######################
22
# insert-load-test.py dictionary-letter iterations delay test-server
23
######################
24 4902 daigle
25 4910 daigle
./insert-load-test.py a 50 4 dev.nceas.ucsb.edu 2>&1 &
26 4906 daigle
27 4910 daigle
./insert-load-test.py b 50 4 dev.nceas.ucsb.edu 2>&1 &
28 4906 daigle
29 4910 daigle
./insert-load-test.py c 50 4 dev.nceas.ucsb.edu 2>&1 &
30 4906 daigle
31 4910 daigle
./insert-load-test.py d 50 4 dev.nceas.ucsb.edu 2>&1 &
32 4906 daigle
33
######################
34
# read-load-test.py prefix iterations delay test-server
35
######################
36
37 4910 daigle
./read-load-test.py a 50 4 dev.nceas.ucsb.edu 2>&1 &
38 4906 daigle
39 4910 daigle
./read-load-test.py b 50 4 dev.nceas.ucsb.edu 2>&1 &
40 4906 daigle
41 4910 daigle
./read-load-test.py c 50 4 dev.nceas.ucsb.edu 2>&1 &
42 4906 daigle
43 4910 daigle
./read-load-test.py d 50 4 dev.nceas.ucsb.edu 2>&1 &
44 4906 daigle
45 4910 daigle
######################
46
# read-get-load-test.py prefix iterations delay test-server
47
######################
48
49
./read-get-load-test.py a 50 4 dev.nceas.ucsb.edu 2>&1 &
50
51
./read-get-load-test.py b 50 4 dev.nceas.ucsb.edu 2>&1 &
52
53
./read-get-load-test.py c 50 4 dev.nceas.ucsb.edu 2>&1 &
54
55
./read-get-load-test.py d 50 4 dev.nceas.ucsb.edu 2>&1 &
56
57
sleep 4
58 4906 daigle
echo
59
echo "Running the following load tests:"
60
ps auxwww |grep load-test.py |grep -v grep