1
|
#!/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
|
######################
|
10
|
# squery-load-test.py dictionary-letter iterations delay test-server
|
11
|
######################
|
12
|
|
13
|
./squery-load-test.py m 50 4 dev.nceas.ucsb.edu 2>&1 &
|
14
|
|
15
|
./squery-load-test.py n 50 4 dev.nceas.ucsb.edu 2>&1 &
|
16
|
|
17
|
./squery-load-test.py o 50 4 dev.nceas.ucsb.edu 2>&1 &
|
18
|
|
19
|
./squery-load-test.py p 50 4 dev.nceas.ucsb.edu 2>&1 &
|
20
|
|
21
|
######################
|
22
|
# insert-load-test.py dictionary-letter iterations delay test-server
|
23
|
######################
|
24
|
|
25
|
./insert-load-test.py a 50 4 dev.nceas.ucsb.edu 2>&1 &
|
26
|
|
27
|
./insert-load-test.py b 50 4 dev.nceas.ucsb.edu 2>&1 &
|
28
|
|
29
|
./insert-load-test.py c 50 4 dev.nceas.ucsb.edu 2>&1 &
|
30
|
|
31
|
./insert-load-test.py d 50 4 dev.nceas.ucsb.edu 2>&1 &
|
32
|
|
33
|
######################
|
34
|
# read-load-test.py prefix iterations delay test-server
|
35
|
######################
|
36
|
|
37
|
./read-load-test.py a 50 4 dev.nceas.ucsb.edu 2>&1 &
|
38
|
|
39
|
./read-load-test.py b 50 4 dev.nceas.ucsb.edu 2>&1 &
|
40
|
|
41
|
./read-load-test.py c 50 4 dev.nceas.ucsb.edu 2>&1 &
|
42
|
|
43
|
./read-load-test.py d 50 4 dev.nceas.ucsb.edu 2>&1 &
|
44
|
|
45
|
######################
|
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
|
echo
|
59
|
echo "Running the following load tests:"
|
60
|
ps auxwww |grep load-test.py |grep -v grep
|
61
|
|