Permalink
Browse files

* extended arrival phases

 * add no cache header
 * small inline comments
  • Loading branch information...
1 parent 8bf85be commit d2091938d745e857caf57c6545954d74b5254bec @till committed Oct 29, 2010
Showing with 26 additions and 10 deletions.
  1. +26 −10 tsung/templates/default/tsung.xml.erb
View
36 tsung/templates/default/tsung.xml.erb
@@ -12,20 +12,28 @@
<load>
- <!-- several arrival phases can be set: for each phase,
- you can set the mean inter-arrival time between
- new clients and the phaseduration
- -->
-
- <arrivalphase phase="1" duration="15" unit="minute">
+ <!-- 1 user/second for 5 minutes -->
+ <arrivalphase phase="1" duration="5" unit="minute">
<users interarrival="1" unit="second"></users>
</arrivalphase>
- <arrivalphase phase="2" duration="30" unit="second">
- <users interarrival="0.125" unit="second"></users>
+ <!-- 10 users/second for 10 minutes -->
+ <arrivalphase phase="2" duration="10" unit="minute">
+ <users interarrival="0.1" unit="second"></users>
+ </arrivalphase>
+
+ <!-- ~85 users per second for 15 minutes -->
+ <arrivalphase phase="3" duration="15" unit="minute">
+ <users interarrival="0.01" unit="second"></users>
</arrivalphase>
- <arrivalphase phase="3" duration="25" unit="minute">
+ <!-- 10 users/second for 25 minutes -->
+ <arrivalphase phase="4" duration="25" unit="minute">
+ <users interarrival="0.1" unit="second"></users>
+ </arrivalphase>
+
+ <!-- 1 user/second for 5 minutes -->
+ <arrivalphase phase="5" duration="5" unit="minute">
<users interarrival="1" unit="second"></users>
</arrivalphase>
@@ -37,13 +45,15 @@
<user_agent probability="100">easybib/tsung load test</user_agent>
</option>
+ <!-- darshan's lists -->
<option name="file_server" id="listids" value="/home/ubuntu/.tsung/listids.csv" />
</options>
<sessions>
<session name="http-get" probability="100" type="ts_http">
+ <!-- generate a random user id (this will lead to 404s, but that's alright) -->
<setdynvars sourcetype="random_number" start="1" end="2000000">
<var name="useridint" />
</setdynvars>
@@ -53,12 +63,17 @@
</setdynvars>
<request>
- <http url="/" method="GET" version="1.1"></http>
+ <http url="/" method="GET" version="1.1">
+ <http_header name="cache-control" value="no-cache"/>
+ </http>
</request>
+ <thinktime value="2" random="true"/>
+
<request subst="true">
<http url="/lists/_design/lists/_view/userid?key=%%_useridint%%&amp;include_docs=true" method="GET" version="1.1">
<www_authenticate userid="<%=node["bigcouch_user"]%>" passwd="<%=node["bigcouch_pass"]%>"/>
+ <http_header name="cache-control" value="no-cache"/>
</http>
</request>
@@ -67,6 +82,7 @@
<request subst="true">
<http url="/citations/%%_listidstring%%" method="GET" version="1.1">
<www_authenticate userid="<%=node["bigcouch_user"]%>" passwd="<%=node["bigcouch_pass"]%>"/>
+ <http_header name="cache-control" value="no-cache"/>
</http>
</request>

0 comments on commit d209193

Please sign in to comment.