2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2020-05-15 17:35:47 +02:00
.TH "\FBMYSQL\-STRESS\-TE" "1" "15 May 2020" "MariaDB 10\&.6" "MariaDB Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
.SH "NAME"
2009-09-16 14:03:18 +02:00
mysql-stress-test.pl \- server stress test program
2009-05-25 11:59:47 +02:00
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql\-stress\-test\&.pl\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
\fB mysql\- stress\- test\& .pl [\fR \fB \fI options\fR \fR \fB ]\fR
2009-05-25 11:59:47 +02:00
.SH "DESCRIPTION"
.PP
The
2009-09-16 14:03:18 +02:00
\fB mysql\- stress\- test\& .pl\fR
2015-09-09 14:32:52 +02:00
Perl script performs stress\- testing of the MariaDB server\& .
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
\fB mysql\- stress\- test\& .pl\fR
requires a version of Perl that has been built with threads support\& .
2009-05-25 11:59:47 +02:00
.PP
Invoke
2009-09-16 14:03:18 +02:00
\fB mysql\- stress\- test\& .pl\fR
2009-05-25 11:59:47 +02:00
like this:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
2009-09-16 14:03:18 +02:00
shell> \fB mysql\- stress\- test\& .pl [\fR \fB \fI options\fR \fR \fB ]\fR
2009-05-25 11:59:47 +02:00
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
2009-09-16 14:03:18 +02:00
\fB mysql\- stress\- test\& .pl\fR
2009-05-25 11:59:47 +02:00
supports the following options:
2009-09-16 14:03:18 +02:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: help option
. \" help option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- help\fR
.sp
2009-09-16 14:03:18 +02:00
Display a help message and exit\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: abort-on-error option
. \" abort-on-error option: mysql-stress-test.pl
2010-04-28 15:06:11 +02:00
\fB \- \- abort\- on\- error=\fR \fB \fI N\fR \fR
2009-05-25 11:59:47 +02:00
.sp
2010-04-28 15:06:11 +02:00
Causes the program to abort if an error with severity less than or equal to N was encountered\& . Set to 1 to abort on any error\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: check-tests-file option
. \" check-tests-file option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- check\- tests\- file\fR
.sp
2009-09-16 14:03:18 +02:00
Periodically check the file that lists the tests to be run\& . If it has been modified, reread the file\& . This can be useful if you update the list of tests to be run during a stress test\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: cleanup option
. \" cleanup option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- cleanup\fR
.sp
2009-09-16 14:03:18 +02:00
Force cleanup of the working directory\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: log-error-details option
. \" log-error-details option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- log\- error\- details\fR
.sp
2009-09-16 14:03:18 +02:00
Log error details in the global error log file\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: loop-count option
. \" loop-count option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- loop\- count=\fR \fB \fI N\fR \fR
.sp
2009-09-16 14:03:18 +02:00
In sequential test mode, the number of loops to execute before exiting\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: mysqltest option
. \" mysqltest option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- mysqltest=\fR \fB \fI path\fR \fR
.sp
The path name to the
\fB mysqltest\fR
2009-09-16 14:03:18 +02:00
program\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: server-database option
. \" server-database option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- server\- database=\fR \fB \fI db_name\fR \fR
.sp
2010-04-28 15:06:11 +02:00
The database to use for the tests\& . The default is
test\& .
2009-09-16 14:03:18 +02:00
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: server-host option
. \" server-host option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- server\- host=\fR \fB \fI host_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The host name of the local host to use for making a TCP/IP connection to the local server\& . By default, the connection is made to
2009-05-25 11:59:47 +02:00
localhost
2009-09-16 14:03:18 +02:00
using a Unix socket file\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: server-logs-dir option
. \" server-logs-dir option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- server\- logs\- dir=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
This option is required\& .
2009-05-25 11:59:47 +02:00
\fI path\fR
2009-09-16 14:03:18 +02:00
is the directory where all client session logs will be stored\& . Usually this is the shared directory that is associated with the server used for testing\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: server-password option
. \" server-password option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- server\- password=\fR \fB \fI password\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The password to use when connecting to the server\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: server-port option
. \" server-port option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- server\- port=\fR \fB \fI port_num\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The TCP/IP port number to use for connecting to the server\& . The default is 3306\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: server-socket option
. \" server-socket option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- server\- socket=\fR \fB \fI file_name\fR \fR
.sp
For connections to
2015-09-09 14:32:52 +02:00
localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\& . The default is
2009-09-16 14:03:18 +02:00
/tmp/mysql\& .sock\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: server-user option
. \" server-user option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- server\- user=\fR \fB \fI user_name\fR \fR
.sp
2015-09-09 14:32:52 +02:00
The MariaDB user name to use when connecting to the server\& . The default is
2009-09-16 14:03:18 +02:00
root\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: sleep-time option
. \" sleep-time option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- sleep\- time=\fR \fB \fI N\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The delay in seconds between test executions\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: stress-basedir option
. \" stress-basedir option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- stress\- basedir=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
This option is required\& .
2009-05-25 11:59:47 +02:00
\fI path\fR
2009-09-16 14:03:18 +02:00
is the working directory for the test run\& . It is used as the temporary location for result tracking during testing\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: stress-datadir option
. \" stress-datadir option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- stress\- datadir=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The directory of data files to be used during testing\& . The default location is the
data
2009-05-25 11:59:47 +02:00
directory under the location given by the
\fB \- \- stress\- suite\- basedir\fR
2009-09-16 14:03:18 +02:00
option\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: stress-init-file option
. \" stress-init-file option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- stress\- init\- file[=\fR \fB \fI path\fR \fR \fB ]\fR
.sp
\fI file_name\fR
2010-04-28 15:06:11 +02:00
is the location of the file that contains the list of tests to be run once to initialize the database for the testing\& . If missing, the default file is
2009-09-16 14:03:18 +02:00
stress_init\& .txt
in the test suite directory\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: stress-mode option
. \" stress-mode option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- stress\- mode=\fR \fB \fI mode\fR \fR
.sp
2009-09-16 14:03:18 +02:00
This option indicates the test order in stress\- test mode\& . The
2009-05-25 11:59:47 +02:00
\fI mode\fR
value is either
random
to select tests in random order or
seq
2009-09-16 14:03:18 +02:00
to run tests in each thread in the order specified in the test list file\& . The default mode is
random\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: stress-suite-basedir option
. \" stress-suite-basedir option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- stress\- suite\- basedir=\fR \fB \fI path\fR \fR
.sp
2009-09-16 14:03:18 +02:00
This option is required\& .
2009-05-25 11:59:47 +02:00
\fI path\fR
is the directory that has the
2009-09-16 14:03:18 +02:00
t
2009-05-25 11:59:47 +02:00
and
\fI r\fR
2009-09-16 14:03:18 +02:00
subdirectories containing the test case and result files\& . This directory is also the default location of the
stress\- test\& .txt
file that contains the list of tests\& . (A different location can be specified with the
2009-05-25 11:59:47 +02:00
\fB \- \- stress\- tests\- file\fR
2009-09-16 14:03:18 +02:00
option\& .)
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: stress-tests-file option
. \" stress-tests-file option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- stress\- tests\- file[=\fR \fB \fI file_name\fR \fR \fB ]\fR
.sp
2009-09-16 14:03:18 +02:00
Use this option to run the stress tests\& .
2009-05-25 11:59:47 +02:00
\fI file_name\fR
2009-09-16 14:03:18 +02:00
is the location of the file that contains the list of tests\& . If
2009-05-25 11:59:47 +02:00
\fI file_name\fR
is omitted, the default file is
2009-09-16 14:03:18 +02:00
stress\- test\& .txt
in the stress suite directory\& . (See
\fB \- \- stress\- suite\- basedir\fR \& .)
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: suite option
. \" suite option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- suite=\fR \fB \fI suite_name\fR \fR
.sp
2009-09-16 14:03:18 +02:00
Run the named test suite\& . The default name is
2009-05-25 11:59:47 +02:00
main
(the regular test suite located in the
2009-09-16 14:03:18 +02:00
mysql\- test
directory)\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: test-count option
. \" test-count option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- test\- count=\fR \fB \fI N\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The number of tests to execute before exiting\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: test-duration option
. \" test-duration option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- test\- duration=\fR \fB \fI N\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The duration of stress testing in seconds\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: threads option
. \" threads option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- threads=\fR \fB \fI N\fR \fR
.sp
2009-09-16 14:03:18 +02:00
The number of threads\& . The default is 1\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" mysql-stress-test.pl: verbose option
. \" verbose option: mysql-stress-test.pl
2009-05-25 11:59:47 +02:00
\fB \- \- verbose\fR
.sp
2009-09-16 14:03:18 +02:00
Verbose mode\& . Print more information about what the program does\& .
.RE
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2020-05-15 17:35:47 +02:00
Copyright \(co 2007, 2010, Oracle and/or its affiliates, 2010-2020 MariaDB Foundation
2009-05-25 11:59:47 +02:00
.PP
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
.PP
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.PP
2019-05-11 20:29:06 +02:00
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see http://www.gnu.org/licenses/.
2009-09-16 14:03:18 +02:00
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).