MARIADB-STRESS-TEST(1)
๐ MARIADB-STRESS-TEST ๐
okay bestie, so you know that one page in the MariaDB Database System manual? the mariadb-stress-test.pl one? yeah. we're doing that. sit down, hydrate, let's go ๐ซถ
โจ NAME โจ
mariadb-stress-test.pl โ the server stress test program. she's here to put your MariaDB server through it. lovingly. on purpose. ๐ฆ
๐ธ SYNOPSIS ๐ธ
mariadb-stress-test.pl [options]
๐ DESCRIPTION ๐
so mariadb-stress-test.pl is this Perl script and her whole job is stress-testing the MariaDB server. she shows up, she runs a ton of stuff at your server, and your server either thrives or tells on itself. either way you learn something. no cap. ๐
heads up tho: mariadb-stress-test.pl needs a version of Perl that was built with threads support. no threads, no vibes. that's just the deal.
you invoke her like this:
shell> mariadb-stress-test.pl [options]
and here's every single option she supports, no gatekeeping, we're going through all of them together. ๐
๐ OPTIONS ๐
--helpโ she prints a help message and dips. that's it, that's the whole thing. ๐--abort-on-error=Nโ this makes the program bail if it runs into an error whose severity is less than or equal toN. so if you set it to1, she aborts on literally any error. zero chill mode, honestly iconic. ๐--check-tests-fileโ she'll periodically peek at the file that lists the tests to run, and if somebody changed it, she rereads it. super useful if you're updating the list of tests mid-stress-test and you don't wanna restart everything. main character behavior fr. โจ--cleanupโ force a cleanup of the working directory. tidy queen. ๐ง--log-error-detailsโ logs the error details into the global error log file. receipts. she keeps receipts. ๐--loop-count=Nโ in sequential test mode, this is how many loops she runs before exiting.--mariadb-test=pathโ the path name to themariadb-testprogram.--server-database=db_nameโ the database to use for the tests. default istest. classic.--server-host=host_nameโ the host name of the local host, used for making a TCP/IP connection to the local server. by default tho, the connection is made tolocalhostusing a Unix socket file. so like, if you don't say anything, she's going the socket route. ๐--server-logs-dir=pathโ this option is required. ๐คpathis the directory where all client session logs get stored. usually it's the shared directory associated with the server you're testing. don't skip her, she will not run without her.--server-password=passwordโ the password used when connecting to the server. ๐คซ--server-port=port_numโ the TCP/IP port number for connecting to the server. default is3306. you knew that. i knew that. we all knew that.--server-socket=file_nameโ for connections to localhost, this is the Unix socket file to use. or, on Windows, the name of the named pipe to use. default is/tmp/mariadb.sock. ๐ง--server-user=user_nameโ the MariaDB user name to use when connecting to the server. default isroot. yes,root. we're being bold today. ๐--sleep-time=Nโ the delay, in seconds, between test executions. lil breather. ๐ฎโ๐จ--stress-basedir=pathโ also required.pathis the working directory for the test run, and it gets used as the temporary location for result tracking during testing.--stress-datadir=pathโ the directory of data files used during testing. the default location is thedatadirectory under the location given by the--stress-suite-basediroption. ๐--stress-init-file[=path]โfile_nameis the location of the file containing the list of tests that get run once, to initialize the database for the testing. if it's missing, the default file isstress_init.txtin the test suite directory. ๐ฑ--stress-mode=modeโ this one tells you the test order in stress-test mode.modeis eitherrandom, which selects tests in random order, orseq, which runs tests in each thread in the order specified in the test list file. default mode israndom. chaos but scheduled. ๐ฒ--stress-suite-basedir=pathโ required, bestie.pathis the directory that holds thetandrsubdirectories, which contain the test case and result files. this directory is also the default location of thestress-test.txtfile that contains the list of tests. (you can point somewhere else with the--stress-tests-fileoption, if you're feeling spicy.) ๐ถ๏ธ--stress-tests-file[=file_name]โ use this to run the stress tests.file_nameis the location of the file containing the list of tests. iffile_nameis omitted, the default file isstress-test.txtin the stress suite directory. (see--stress-suite-basedir.) ๐--suite=suite_nameโ run the named test suite. the default name ismain, which is the regular test suite located in themariadb-testdirectory.--test-count=Nโ the number of tests to execute before exiting. ๐ข--test-duration=Nโ the duration of stress testing, in seconds. โฑ๏ธ--threads=Nโ the number of threads. default is1. one. single. thread. pump those numbers up if you want the real chaos. ๐งต--verboseโ verbose mode! she prints more information about what the program is doing. she's an open book, an oversharer, and honestly? we love that for her. ๐ฌ
๐ COPYRIGHT ๐
Copyright ยฉ 2007, 2010, Oracle and/or its affiliates, 2010-2025 MariaDB Foundation
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.
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.
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/.
not me putting the legal stuff in here too โ but bestie, every word stays. that's the rule. ๐
๐ SEE ALSO ๐
For more information, please refer to the MariaDB Documentation, available online at https://mariadb.com/docs/
๐ AUTHOR ๐
MariaDB Foundation (http://www.mariadb.org/). the whole foundation. the legends. ๐ซก
okay that's the whole page, you're officially unstoppable ๐ โจ
MariaDB 11.8 ยท 5 March 2025 ยท MARIADB-STRESS-TEST(1) โ mwah, go stress-test responsibly bestie, ily, byeeee ๐๐ฆ๐
๐ฆ where this page comes from
- alpine 3.24: mariadb-doc 11.8.9-r0 ยท GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 ยท GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 ยท GPL-2.0-only
- centos-stream 10: mariadb11.8-test 3:11.8.8-1.el10 ยท ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- centos-stream 9: mariadb-test 3:11.8.8-1.module_el9+1370+ec5ecc2e ยท ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 43: mariadb11.8-test 3:11.8.8-1.fc43 ยท ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 43: mariadb12.3-test 3:12.3.2-2.fc43 ยท ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb-test 3:11.8.6-2.fc44 ยท ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb-test 3:11.8.8-3.fc44 ยท ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb12.3-test 3:12.3.2-2.fc44 ยท ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: mariadb-test 11.8.8-160000.1.1 ยท SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb-test 11.8.8-160000.1.1 ยท SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb-test 11.8.8-160000.1.1 ยท SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb-test 11.8.8-160000.1.1 ยท SUSE-GPL-2.0-with-FLOSS-exception
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms