~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

1 by James Page
Import upstream version 5.6.15
1
'\" t
2
.\"     Title: \fBmysql-stress-test.pl\fR
3
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
1.2.6 by Marc Deslauriers
Import upstream version 5.6.25
5
.\"      Date: 05/05/2015
1 by James Page
Import upstream version 5.6.15
6
.\"    Manual: MySQL Database System
7
.\"    Source: MySQL
8
.\"  Language: English
9
.\"
1.2.6 by Marc Deslauriers
Import upstream version 5.6.25
10
.TH "\FBMYSQL\-STRESS\-TE" "1" "05/05/2015" "MySQL" "MySQL Database System"
1 by James Page
Import upstream version 5.6.15
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
.ie \n(.g .ds Aq \(aq
19
.el       .ds Aq '
20
.\" -----------------------------------------------------------------
21
.\" * set default formatting
22
.\" -----------------------------------------------------------------
23
.\" disable hyphenation
24
.nh
25
.\" disable justification (adjust text to left margin only)
26
.ad l
27
.\" -----------------------------------------------------------------
28
.\" * MAIN CONTENT STARTS HERE *
29
.\" -----------------------------------------------------------------
30
.\" mysql-stress-test.pl
31
.SH "NAME"
32
mysql-stress-test.pl \- server stress test program
33
.SH "SYNOPSIS"
34
.HP \w'\fBmysql\-stress\-test\&.pl\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
35
\fBmysql\-stress\-test\&.pl [\fR\fB\fIoptions\fR\fR\fB]\fR
36
.SH "DESCRIPTION"
37
.PP
38
The
39
\fBmysql\-stress\-test\&.pl\fR
1.2.6 by Marc Deslauriers
Import upstream version 5.6.25
40
Perl script performs stress\-testing of the MySQL server\&.
1 by James Page
Import upstream version 5.6.15
41
.PP
42
\fBmysql\-stress\-test\&.pl\fR
43
requires a version of Perl that has been built with threads support\&.
44
.PP
45
Invoke
46
\fBmysql\-stress\-test\&.pl\fR
47
like this:
48
.sp
49
.if n \{\
50
.RS 4
51
.\}
52
.nf
53
shell> \fBmysql\-stress\-test\&.pl [\fR\fB\fIoptions\fR\fR\fB]\fR
54
.fi
55
.if n \{\
56
.RE
57
.\}
58
.PP
59
\fBmysql\-stress\-test\&.pl\fR
60
supports the following options:
61
.sp
62
.RS 4
63
.ie n \{\
64
\h'-04'\(bu\h'+03'\c
65
.\}
66
.el \{\
67
.sp -1
68
.IP \(bu 2.3
69
.\}
1.2.1 by James Page
Import upstream version 5.6.16
70
.\" mysql-stress-test.pl: help option
71
.\" help option: mysql-stress-test.pl
72
\fB\-\-help\fR
1 by James Page
Import upstream version 5.6.15
73
.sp
74
Display a help message and exit\&.
75
.RE
76
.sp
77
.RS 4
78
.ie n \{\
79
\h'-04'\(bu\h'+03'\c
80
.\}
81
.el \{\
82
.sp -1
83
.IP \(bu 2.3
84
.\}
1.2.1 by James Page
Import upstream version 5.6.16
85
.\" mysql-stress-test.pl: abort-on-error option
86
.\" abort-on-error option: mysql-stress-test.pl
87
\fB\-\-abort\-on\-error=\fR\fB\fIN\fR\fR
1 by James Page
Import upstream version 5.6.15
88
.sp
89
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\&.
90
.RE
91
.sp
92
.RS 4
93
.ie n \{\
94
\h'-04'\(bu\h'+03'\c
95
.\}
96
.el \{\
97
.sp -1
98
.IP \(bu 2.3
99
.\}
1.2.1 by James Page
Import upstream version 5.6.16
100
.\" mysql-stress-test.pl: check-tests-file option
101
.\" check-tests-file option: mysql-stress-test.pl
102
\fB\-\-check\-tests\-file\fR
1 by James Page
Import upstream version 5.6.15
103
.sp
104
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\&.
105
.RE
106
.sp
107
.RS 4
108
.ie n \{\
109
\h'-04'\(bu\h'+03'\c
110
.\}
111
.el \{\
112
.sp -1
113
.IP \(bu 2.3
114
.\}
1.2.1 by James Page
Import upstream version 5.6.16
115
.\" mysql-stress-test.pl: cleanup option
116
.\" cleanup option: mysql-stress-test.pl
117
\fB\-\-cleanup\fR
1 by James Page
Import upstream version 5.6.15
118
.sp
119
Force cleanup of the working directory\&.
120
.RE
121
.sp
122
.RS 4
123
.ie n \{\
124
\h'-04'\(bu\h'+03'\c
125
.\}
126
.el \{\
127
.sp -1
128
.IP \(bu 2.3
129
.\}
1.2.1 by James Page
Import upstream version 5.6.16
130
.\" mysql-stress-test.pl: log-error-details option
131
.\" log-error-details option: mysql-stress-test.pl
132
\fB\-\-log\-error\-details\fR
1 by James Page
Import upstream version 5.6.15
133
.sp
134
Log error details in the global error log file\&.
135
.RE
136
.sp
137
.RS 4
138
.ie n \{\
139
\h'-04'\(bu\h'+03'\c
140
.\}
141
.el \{\
142
.sp -1
143
.IP \(bu 2.3
144
.\}
1.2.1 by James Page
Import upstream version 5.6.16
145
.\" mysql-stress-test.pl: loop-count option
146
.\" loop-count option: mysql-stress-test.pl
147
\fB\-\-loop\-count=\fR\fB\fIN\fR\fR
1 by James Page
Import upstream version 5.6.15
148
.sp
149
In sequential test mode, the number of loops to execute before exiting\&.
150
.RE
151
.sp
152
.RS 4
153
.ie n \{\
154
\h'-04'\(bu\h'+03'\c
155
.\}
156
.el \{\
157
.sp -1
158
.IP \(bu 2.3
159
.\}
1.2.1 by James Page
Import upstream version 5.6.16
160
.\" mysql-stress-test.pl: mysqltest option
161
.\" mysqltest option: mysql-stress-test.pl
162
\fB\-\-mysqltest=\fR\fB\fIpath\fR\fR
1 by James Page
Import upstream version 5.6.15
163
.sp
164
The path name to the
165
\fBmysqltest\fR
166
program\&.
167
.RE
168
.sp
169
.RS 4
170
.ie n \{\
171
\h'-04'\(bu\h'+03'\c
172
.\}
173
.el \{\
174
.sp -1
175
.IP \(bu 2.3
176
.\}
1.2.1 by James Page
Import upstream version 5.6.16
177
.\" mysql-stress-test.pl: server-database option
178
.\" server-database option: mysql-stress-test.pl
179
\fB\-\-server\-database=\fR\fB\fIdb_name\fR\fR
1 by James Page
Import upstream version 5.6.15
180
.sp
181
The database to use for the tests\&. The default is
182
test\&.
183
.RE
184
.sp
185
.RS 4
186
.ie n \{\
187
\h'-04'\(bu\h'+03'\c
188
.\}
189
.el \{\
190
.sp -1
191
.IP \(bu 2.3
192
.\}
1.2.1 by James Page
Import upstream version 5.6.16
193
.\" mysql-stress-test.pl: server-host option
194
.\" server-host option: mysql-stress-test.pl
195
\fB\-\-server\-host=\fR\fB\fIhost_name\fR\fR
1 by James Page
Import upstream version 5.6.15
196
.sp
197
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
198
localhost
199
using a Unix socket file\&.
200
.RE
201
.sp
202
.RS 4
203
.ie n \{\
204
\h'-04'\(bu\h'+03'\c
205
.\}
206
.el \{\
207
.sp -1
208
.IP \(bu 2.3
209
.\}
1.2.1 by James Page
Import upstream version 5.6.16
210
.\" mysql-stress-test.pl: server-logs-dir option
211
.\" server-logs-dir option: mysql-stress-test.pl
212
\fB\-\-server\-logs\-dir=\fR\fB\fIpath\fR\fR
1 by James Page
Import upstream version 5.6.15
213
.sp
214
This option is required\&.
215
\fIpath\fR
216
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\&.
217
.RE
218
.sp
219
.RS 4
220
.ie n \{\
221
\h'-04'\(bu\h'+03'\c
222
.\}
223
.el \{\
224
.sp -1
225
.IP \(bu 2.3
226
.\}
1.2.1 by James Page
Import upstream version 5.6.16
227
.\" mysql-stress-test.pl: server-password option
228
.\" server-password option: mysql-stress-test.pl
229
\fB\-\-server\-password=\fR\fB\fIpassword\fR\fR
1 by James Page
Import upstream version 5.6.15
230
.sp
231
The password to use when connecting to the server\&.
232
.RE
233
.sp
234
.RS 4
235
.ie n \{\
236
\h'-04'\(bu\h'+03'\c
237
.\}
238
.el \{\
239
.sp -1
240
.IP \(bu 2.3
241
.\}
1.2.1 by James Page
Import upstream version 5.6.16
242
.\" mysql-stress-test.pl: server-port option
243
.\" server-port option: mysql-stress-test.pl
244
\fB\-\-server\-port=\fR\fB\fIport_num\fR\fR
1 by James Page
Import upstream version 5.6.15
245
.sp
246
The TCP/IP port number to use for connecting to the server\&. The default is 3306\&.
247
.RE
248
.sp
249
.RS 4
250
.ie n \{\
251
\h'-04'\(bu\h'+03'\c
252
.\}
253
.el \{\
254
.sp -1
255
.IP \(bu 2.3
256
.\}
1.2.1 by James Page
Import upstream version 5.6.16
257
.\" mysql-stress-test.pl: server-socket option
258
.\" server-socket option: mysql-stress-test.pl
259
\fB\-\-server\-socket=\fR\fB\fIfile_name\fR\fR
1 by James Page
Import upstream version 5.6.15
260
.sp
261
For connections to
262
localhost, the Unix socket file to use, or, on Windows, the name of the named pipe to use\&. The default if
263
/tmp/mysql\&.sock\&.
264
.RE
265
.sp
266
.RS 4
267
.ie n \{\
268
\h'-04'\(bu\h'+03'\c
269
.\}
270
.el \{\
271
.sp -1
272
.IP \(bu 2.3
273
.\}
1.2.1 by James Page
Import upstream version 5.6.16
274
.\" mysql-stress-test.pl: server-user option
275
.\" server-user option: mysql-stress-test.pl
276
\fB\-\-server\-user=\fR\fB\fIuser_name\fR\fR
1 by James Page
Import upstream version 5.6.15
277
.sp
278
The MySQL user name to use when connecting to the server\&. The default is
279
root\&.
280
.RE
281
.sp
282
.RS 4
283
.ie n \{\
284
\h'-04'\(bu\h'+03'\c
285
.\}
286
.el \{\
287
.sp -1
288
.IP \(bu 2.3
289
.\}
1.2.1 by James Page
Import upstream version 5.6.16
290
.\" mysql-stress-test.pl: sleep-time option
291
.\" sleep-time option: mysql-stress-test.pl
292
\fB\-\-sleep\-time=\fR\fB\fIN\fR\fR
1 by James Page
Import upstream version 5.6.15
293
.sp
294
The delay in seconds between test executions\&.
295
.RE
296
.sp
297
.RS 4
298
.ie n \{\
299
\h'-04'\(bu\h'+03'\c
300
.\}
301
.el \{\
302
.sp -1
303
.IP \(bu 2.3
304
.\}
1.2.1 by James Page
Import upstream version 5.6.16
305
.\" mysql-stress-test.pl: stress-basedir option
306
.\" stress-basedir option: mysql-stress-test.pl
307
\fB\-\-stress\-basedir=\fR\fB\fIpath\fR\fR
1 by James Page
Import upstream version 5.6.15
308
.sp
309
This option is required\&.
310
\fIpath\fR
311
is the working directory for the test run\&. It is used as the temporary location for result tracking during testing\&.
312
.RE
313
.sp
314
.RS 4
315
.ie n \{\
316
\h'-04'\(bu\h'+03'\c
317
.\}
318
.el \{\
319
.sp -1
320
.IP \(bu 2.3
321
.\}
1.2.1 by James Page
Import upstream version 5.6.16
322
.\" mysql-stress-test.pl: stress-datadir option
323
.\" stress-datadir option: mysql-stress-test.pl
324
\fB\-\-stress\-datadir=\fR\fB\fIpath\fR\fR
1 by James Page
Import upstream version 5.6.15
325
.sp
326
The directory of data files to be used during testing\&. The default location is the
327
data
328
directory under the location given by the
329
\fB\-\-stress\-suite\-basedir\fR
330
option\&.
331
.RE
332
.sp
333
.RS 4
334
.ie n \{\
335
\h'-04'\(bu\h'+03'\c
336
.\}
337
.el \{\
338
.sp -1
339
.IP \(bu 2.3
340
.\}
1.2.1 by James Page
Import upstream version 5.6.16
341
.\" mysql-stress-test.pl: stress-init-file option
342
.\" stress-init-file option: mysql-stress-test.pl
343
\fB\-\-stress\-init\-file[=\fR\fB\fIpath\fR\fR\fB]\fR
1 by James Page
Import upstream version 5.6.15
344
.sp
345
\fIfile_name\fR
346
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
347
stress_init\&.txt
348
in the test suite directory\&.
349
.RE
350
.sp
351
.RS 4
352
.ie n \{\
353
\h'-04'\(bu\h'+03'\c
354
.\}
355
.el \{\
356
.sp -1
357
.IP \(bu 2.3
358
.\}
1.2.1 by James Page
Import upstream version 5.6.16
359
.\" mysql-stress-test.pl: stress-mode option
360
.\" stress-mode option: mysql-stress-test.pl
361
\fB\-\-stress\-mode=\fR\fB\fImode\fR\fR
1 by James Page
Import upstream version 5.6.15
362
.sp
363
This option indicates the test order in stress\-test mode\&. The
364
\fImode\fR
365
value is either
366
random
367
to select tests in random order or
368
seq
369
to run tests in each thread in the order specified in the test list file\&. The default mode is
370
random\&.
371
.RE
372
.sp
373
.RS 4
374
.ie n \{\
375
\h'-04'\(bu\h'+03'\c
376
.\}
377
.el \{\
378
.sp -1
379
.IP \(bu 2.3
380
.\}
1.2.1 by James Page
Import upstream version 5.6.16
381
.\" mysql-stress-test.pl: stress-suite-basedir option
382
.\" stress-suite-basedir option: mysql-stress-test.pl
383
\fB\-\-stress\-suite\-basedir=\fR\fB\fIpath\fR\fR
1 by James Page
Import upstream version 5.6.15
384
.sp
385
This option is required\&.
386
\fIpath\fR
387
is the directory that has the
388
t
389
and
390
\fIr\fR
391
subdirectories containing the test case and result files\&. This directory is also the default location of the
392
stress\-test\&.txt
393
file that contains the list of tests\&. (A different location can be specified with the
394
\fB\-\-stress\-tests\-file\fR
395
option\&.)
396
.RE
397
.sp
398
.RS 4
399
.ie n \{\
400
\h'-04'\(bu\h'+03'\c
401
.\}
402
.el \{\
403
.sp -1
404
.IP \(bu 2.3
405
.\}
1.2.1 by James Page
Import upstream version 5.6.16
406
.\" mysql-stress-test.pl: stress-tests-file option
407
.\" stress-tests-file option: mysql-stress-test.pl
408
\fB\-\-stress\-tests\-file[=\fR\fB\fIfile_name\fR\fR\fB]\fR
1 by James Page
Import upstream version 5.6.15
409
.sp
410
Use this option to run the stress tests\&.
411
\fIfile_name\fR
412
is the location of the file that contains the list of tests\&. If
413
\fIfile_name\fR
414
is omitted, the default file is
415
stress\-test\&.txt
416
in the stress suite directory\&. (See
417
\fB\-\-stress\-suite\-basedir\fR\&.)
418
.RE
419
.sp
420
.RS 4
421
.ie n \{\
422
\h'-04'\(bu\h'+03'\c
423
.\}
424
.el \{\
425
.sp -1
426
.IP \(bu 2.3
427
.\}
1.2.1 by James Page
Import upstream version 5.6.16
428
.\" mysql-stress-test.pl: suite option
429
.\" suite option: mysql-stress-test.pl
430
\fB\-\-suite=\fR\fB\fIsuite_name\fR\fR
1 by James Page
Import upstream version 5.6.15
431
.sp
432
Run the named test suite\&. The default name is
433
main
434
(the regular test suite located in the
435
mysql\-test
436
directory)\&.
437
.RE
438
.sp
439
.RS 4
440
.ie n \{\
441
\h'-04'\(bu\h'+03'\c
442
.\}
443
.el \{\
444
.sp -1
445
.IP \(bu 2.3
446
.\}
1.2.1 by James Page
Import upstream version 5.6.16
447
.\" mysql-stress-test.pl: test-count option
448
.\" test-count option: mysql-stress-test.pl
449
\fB\-\-test\-count=\fR\fB\fIN\fR\fR
1 by James Page
Import upstream version 5.6.15
450
.sp
451
The number of tests to execute before exiting\&.
452
.RE
453
.sp
454
.RS 4
455
.ie n \{\
456
\h'-04'\(bu\h'+03'\c
457
.\}
458
.el \{\
459
.sp -1
460
.IP \(bu 2.3
461
.\}
1.2.1 by James Page
Import upstream version 5.6.16
462
.\" mysql-stress-test.pl: test-duration option
463
.\" test-duration option: mysql-stress-test.pl
464
\fB\-\-test\-duration=\fR\fB\fIN\fR\fR
1 by James Page
Import upstream version 5.6.15
465
.sp
466
The duration of stress testing in seconds\&.
467
.RE
468
.sp
469
.RS 4
470
.ie n \{\
471
\h'-04'\(bu\h'+03'\c
472
.\}
473
.el \{\
474
.sp -1
475
.IP \(bu 2.3
476
.\}
1.2.1 by James Page
Import upstream version 5.6.16
477
.\" mysql-stress-test.pl: threads option
478
.\" threads option: mysql-stress-test.pl
479
\fB\-\-threads=\fR\fB\fIN\fR\fR
1 by James Page
Import upstream version 5.6.15
480
.sp
481
The number of threads\&. The default is 1\&.
482
.RE
483
.sp
484
.RS 4
485
.ie n \{\
486
\h'-04'\(bu\h'+03'\c
487
.\}
488
.el \{\
489
.sp -1
490
.IP \(bu 2.3
491
.\}
1.2.1 by James Page
Import upstream version 5.6.16
492
.\" mysql-stress-test.pl: verbose option
493
.\" verbose option: mysql-stress-test.pl
494
\fB\-\-verbose\fR
1 by James Page
Import upstream version 5.6.15
495
.sp
496
Verbose mode\&. Print more information about what the program does\&.
497
.RE
498
.SH "COPYRIGHT"
499
.br
500
.PP
1.2.4 by Robie Basak
Import upstream version 5.6.23
501
Copyright \(co 2006, 2015, Oracle and/or its affiliates. All rights reserved.
1 by James Page
Import upstream version 5.6.15
502
.PP
503
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.
504
.PP
505
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.
506
.PP
507
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-1301 USA or see http://www.gnu.org/licenses/.
508
.sp
509
.SH "SEE ALSO"
510
For more information, please refer to the MySQL Reference Manual,
511
which may already be installed locally and which is also available
512
online at http://dev.mysql.com/doc/.
513
.SH AUTHOR
514
Oracle Corporation (http://dev.mysql.com/).