Permalink
Browse files

pgsql recorder: server port can be set with -P (listening port option…

… is now -L, and IP is -I). update for TSUN-17

SVN Revision: 679
  • Loading branch information...
1 parent c138ea1 commit af90734fa9581d2e2cd44839ecb9ebf80b5de33a @nniclausse nniclausse committed Aug 8, 2006
Showing with 27 additions and 14 deletions.
  1. +8 −5 doc/tsung.1
  2. +11 −4 doc/tsung.1.sgml
  3. +2 −2 doc/user_manual.tex
  4. +6 −3 tsung.sh.in
View
@@ -3,13 +3,13 @@
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng <steve@ggi-project.org>.
-.TH "TSUNG" "1" "13 juin 2006" "" ""
+.TH "TSUNG" "1" "08 août 2006" "" ""
.SH NAME
tsung \- A distributed multi-protocol load testing tool.
.SH SYNOPSIS
-\fBtsung\fR [ \fB-f configuration file\fR ] [ \fB-l log file\fR ] [ \fB-r command\fR ] [ \fB-p plugin\fR ] [ \fB-P port\fR ] [ \fB-i IP\fR ] [ \fBstart|stop|restart|debug|status|recorder|stop_recorder\fR ]
+\fBtsung\fR [ \fB-f configuration file\fR ] [ \fB-l log file\fR ] [ \fB-r command\fR ] [ \fB-p plugin\fR ] [ \fB-L listen port\fR ] [ \fB-I IP\fR ] [ \fB-P port\fR ] [ \fBstart|stop|restart|debug|status|recorder|stop_recorder\fR ]
.SH "DESCRIPTION"
.PP
@@ -68,11 +68,14 @@ Specifies an alternative to ssh (rsh for ex.) for starting a slave node on a rem
\fB-p\fR
Specifies the plugin used for the recorder. Default is http, available: http, pgsql
.TP
-\fB-P\fR
+\fB-L\fR
Listening port for the recorder. Default is 8090
.TP
-\fB-i\fR
-For the pgsql recorder: server IP
+\fB-I\fR
+For the pgsql recorder: server IP. default is 127.0.0.1
+.TP
+\fB-P\fR
+For the pgsql recorder: server port. Default is 5432
.SH "BUGS"
.PP
Please reports bugs to the mailing list
View
@@ -34,8 +34,9 @@ A distributed multi-protocol load testing tool.
<arg><option>-l</option> log file</arg>
<arg><option>-r</option> command</arg>
<arg><option>-p</option> plugin</arg>
+ <arg><option>-L</option> listen port</arg>
+ <arg><option>-I</option> IP</arg>
<arg><option>-P</option> port</arg>
- <arg><option>-i</option> IP</arg>
<arg>start|stop|restart|debug|status|recorder|stop_recorder</arg>
</cmdsynopsis>
</refsynopsisdiv>
@@ -130,15 +131,21 @@ A distributed multi-protocol load testing tool.
</listitem>
</varlistentry>
<varlistentry>
- <term><option>-P</option></term>
+ <term><option>-L</option></term>
<listitem>
<para> Listening port for the recorder. Default is 8090</para>
</listitem>
</varlistentry>
<varlistentry>
- <term><option>-i</option></term>
+ <term><option>-I</option></term>
+ <listitem>
+ <para> For the pgsql recorder: server IP. default is 127.0.0.1 </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-P</option></term>
<listitem>
- <para> For the pgsql recorder: server IP </para>
+ <para> For the pgsql recorder: server port. Default is 5432</para>
</listitem>
</varlistentry>
</variablelist>
View
@@ -352,10 +352,10 @@ \section{PostgreSQL benchmark approach}
to 127.0.0.0:5432.
To choose another port and/or address:
-\command{tsung -P 5432 -i 10.6.1.1 -p pgsql recorder}
+\command{tsung -L 5432 -I 10.6.1.1 -P 5433 -p pgsql recorder}
This will start a proxy listening to port 5432 and will proxy requests
-to 10.6.1.1:5432.
+to 10.6.1.1:5433.
\section{Jabber benchmark approach}
View
@@ -16,6 +16,7 @@ VERSION=@PACKAGE_VERSION@
LISTEN_PORT=8090
PGSQL_SERVER_IP=127.0.0.1
+PGSQL_SERVER_PORT=5432
NAME=tsung
CONTROLLER=tsung_controller
RECORDER=tsung_recorder
@@ -91,6 +92,7 @@ recorder() {
-tsung_recorder plugin ts_proxy_$RECORDER_PLUGIN \
-tsung_recorder proxy_log_file \"$MAIN_DIR/tsung_recorder.xml\" \
-tsung_recorder pgsql_server \"${PGSQL_SERVER_IP}\" \
+ -tsung_recorder pgsql_port ${PGSQL_SERVER_PORT} \
-tsung_recorder proxy_listen_port $LISTEN_PORT &
echo $! > /tmp/tsung_recorder.pid
}
@@ -159,16 +161,17 @@ usage() {
exit
}
-while getopts ":f:p:l:d:r:i:P:" Option
+while getopts ":f:p:l:d:r:i:P:L:I:" Option
do
case $Option in
f) CONF_OPT_FILE=$OPTARG;;
l) LOG_OPT="log_file \"$OPTARG\" ";;
d) DEBUG_LEVEL=$OPTARG;;
r) ERL_RSH=" -rsh $OPTARG ";;
p) RECORDER_PLUGIN=$OPTARG;;
- i) PGSQL_SERVER_IP=$OPTARG;;
- P) LISTEN_PORT=$OPTARG;;
+ I) PGSQL_SERVER_IP=$OPTARG;;
+ P) PGSQL_SERVER_PORT=$OPTARG;;
+ L) LISTEN_PORT=$OPTARG;;
*) usage ;;
esac
done

0 comments on commit af90734

Please sign in to comment.