Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic 100 quote per second tsung conf
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd"> | ||
<tsung loglevel="notice" version="1.0"> | ||
|
||
<!-- Quote throughput requirement --> | ||
<!-- 100 users, 100 quotes per second--> | ||
|
||
<!-- Client side setup --> | ||
<clients> | ||
<client host="localhost" use_controller_vm="true"/> | ||
</clients> | ||
|
||
<!-- Server side setup --> | ||
<servers> | ||
<server host="192.168.251.4" port="80" type="tcp"></server> | ||
</servers> | ||
|
||
<load> | ||
<!-- 100 clients in total, one arriving every second --> | ||
<arrivalphase phase="1" duration="100" unit="second"> | ||
<users maxnumber="100" arrivalrate="1" unit="second"></users> | ||
</arrivalphase> | ||
</load> | ||
|
||
<sessions> | ||
|
||
<!-- Makes one quote request per second for 200 seconds --> | ||
<session name="quote_only" probability="20" type="ts_http"> | ||
<for from="1" to="200" incr="1" var="counter"> | ||
<setdynvars sourcetype="random_string" length="4"> | ||
<var name="stock_symbol"/> | ||
</setdynvars> | ||
|
||
<!-- Get quote --> | ||
<request subst="true"> | ||
<match do="log" when="match" skip_headers="http">response contents="error"</match> | ||
<http url="/" method="POST" version="1.1" contents="action=QUOTE&stock_symbol=%%_stock_symbol%%&username=tsung&submit="></http> | ||
</request> | ||
<thinktime value="1" random="false"></thinktime> | ||
</for> | ||
</session> | ||
|
||
</sessions> | ||
</tsung> |