From 0b126a35426e62f80313a495900d6cc45de6c5a2 Mon Sep 17 00:00:00 2001 From: Ilya Shakhat Date: Fri, 1 Apr 2016 18:22:28 +0300 Subject: [PATCH] Add MariaDB performance report Change-Id: I3ea5caa24d41ce7b9136c8d3293c60057d81e984 --- doc/source/test_results/db/index.rst | 13 ++ doc/source/test_results/db/mariadb/index.rst | 41 ++++ .../mariadb-galera-direct/cpu_consumption.svg | 4 + .../mariadb/mariadb-galera-direct/index.rst | 170 ++++++++++++++ .../mariadb/mariadb-galera-direct/latency.svg | 4 + .../mariadb-galera-direct/throughput.svg | 4 + .../mariadb-galera-direct/topology.svg | 213 ++++++++++++++++++ doc/source/test_results/db/mysql/index.rst | 8 +- doc/source/test_results/index.rst | 2 +- 9 files changed, 453 insertions(+), 6 deletions(-) create mode 100644 doc/source/test_results/db/index.rst create mode 100644 doc/source/test_results/db/mariadb/index.rst create mode 100644 doc/source/test_results/db/mariadb/mariadb-galera-direct/cpu_consumption.svg create mode 100644 doc/source/test_results/db/mariadb/mariadb-galera-direct/index.rst create mode 100644 doc/source/test_results/db/mariadb/mariadb-galera-direct/latency.svg create mode 100644 doc/source/test_results/db/mariadb/mariadb-galera-direct/throughput.svg create mode 100644 doc/source/test_results/db/mariadb/mariadb-galera-direct/topology.svg diff --git a/doc/source/test_results/db/index.rst b/doc/source/test_results/db/index.rst new file mode 100644 index 0000000..5148e56 --- /dev/null +++ b/doc/source/test_results/db/index.rst @@ -0,0 +1,13 @@ +.. raw:: pdf + + PageBreak oneColumn + +=============================== +SQL Database performance report +=============================== + +.. toctree:: + :maxdepth: 3 + + mysql/index + mariadb/index diff --git a/doc/source/test_results/db/mariadb/index.rst b/doc/source/test_results/db/mariadb/index.rst new file mode 100644 index 0000000..fa89f62 --- /dev/null +++ b/doc/source/test_results/db/mariadb/index.rst @@ -0,0 +1,41 @@ +.. raw:: pdf + + PageBreak oneColumn + +=================================== +MariaDB Database performance report +=================================== + +Environment description +^^^^^^^^^^^^^^^^^^^^^^^ + +This report is generated for :ref:`db_performance` test plan with +`Sysbench`_ tool. The data is collected in +:ref:`intel_mirantis_performance_lab`. + + +Software +~~~~~~~~ + ++-----------------+--------------------------------------------+ +| Parameter | Value | ++-----------------+--------------------------------------------+ +| OS | Ubuntu 14.04.3 | ++-----------------+--------------------------------------------+ +| DB | MariaDB | ++-----------------+--------------------------------------------+ +| HA | Galera | ++-----------------+--------------------------------------------+ + + +Reports +^^^^^^^ + +.. toctree:: + :maxdepth: 2 + + mariadb-galera-direct/index + +.. references: + +.. _Sysbench: https://github.com/akopytov/sysbench diff --git a/doc/source/test_results/db/mariadb/mariadb-galera-direct/cpu_consumption.svg b/doc/source/test_results/db/mariadb/mariadb-galera-direct/cpu_consumption.svg new file mode 100644 index 0000000..f005f64 --- /dev/null +++ b/doc/source/test_results/db/mariadb/mariadb-galera-direct/cpu_consumption.svg @@ -0,0 +1,4 @@ + +Pygal0.00.010000.010000.020000.020000.030000.030000.040000.040000.050000.050000.060000.060000.070000.070000.080000.080000.090000.090000.0100000.0100000.0110000.0110000.0120000.0120000.020.020.040.040.060.060.080.080.0100.0100.0120.0120.0140.0140.0160.0160.0180.0180.0200.0200.0threads20: 76531.6513.5180.09840621240: 115498.71666788.537.592727861460: 119388.383333163.523.367905869280: 119065.783333238.524.5476798622120: 123311.916667388.59.01923076923160: 103132.283333538.582.8177633003200: 93633.1666667688.5117.55679243720: 660.46263522913.5457.56540456740: 1170.8516779988.5455.69887103160: 1555.34395896163.5454.29275201880: 1775.32324127238.5453.488270194120: 1959.71912202388.5452.813919715160: 2128.01930837538.5452.198432478200: 2170.6932578688.5452.042370433queries per secCPU, % \ No newline at end of file diff --git a/doc/source/test_results/db/mariadb/mariadb-galera-direct/index.rst b/doc/source/test_results/db/mariadb/mariadb-galera-direct/index.rst new file mode 100644 index 0000000..d1c0429 --- /dev/null +++ b/doc/source/test_results/db/mariadb/mariadb-galera-direct/index.rst @@ -0,0 +1,170 @@ +MariaDB + Galera performance report +----------------------------------- + +This scenario is executed with `Sysbench`_ tool. There is one instance of +tool per tester node, each running in N threads. The tool is configured +to point to one of DB nodes in Galera cluster directly. + +.. image:: topology.* + + +Throughput +^^^^^^^^^^ + +The following chart shows the number of queries, read queries and transactions +depending on total thread count. + +.. image:: throughput.* + + +.. list-table:: Throughput + :header-rows: 1 + + * + - threads + - queries per sec + - read queries per sec + - transactions per sec + * + - 20 + - 76531.6 + - 51021.1 + - 3644.3 + * + - 40 + - 115498.7 + - 76999.3 + - 5499.9 + * + - 60 + - 119388.4 + - 79592.3 + - 5685.1 + * + - 80 + - 119065.8 + - 79377.4 + - 5669.7 + * + - 120 + - 123311.9 + - 82208.2 + - 5871.9 + * + - 160 + - 103132.3 + - 68755.2 + - 4910.9 + * + - 200 + - 93633.2 + - 62422.7 + - 4458.5 + + + +Throughput and server CPU consumption +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following chart shows how DB server CPU consumption depends on number +of concurrent threads and throughput. + +.. image:: cpu_consumption.* + + +.. list-table:: CPU consumption + :header-rows: 1 + + * + - threads + - queries per sec + - CPU, % + * + - 20 + - 76531.6 + - 660.5 + * + - 40 + - 115498.7 + - 1170.9 + * + - 60 + - 119388.4 + - 1555.3 + * + - 80 + - 119065.8 + - 1775.3 + * + - 120 + - 123311.9 + - 1959.7 + * + - 160 + - 103132.3 + - 2128.0 + * + - 200 + - 93633.2 + - 2170.7 + + + +Operation latency +^^^^^^^^^^^^^^^^^ + +The following chart shows how operation latency depends on number of +concurrent threads. + +.. image:: latency.* + + +.. list-table:: Latency + :header-rows: 1 + + * + - threads + - min latency, ms + - avg latency, ms + - max latency, ms + * + - 20 + - 3.3 + - 5.5 + - 148.4 + * + - 40 + - 3.3 + - 7.3 + - 182.4 + * + - 60 + - 3.5 + - 10.6 + - 349.2 + * + - 80 + - 3.7 + - 14.1 + - 212.5 + * + - 120 + - 4.0 + - 20.6 + - 312.5 + * + - 160 + - 4.4 + - 32.7 + - 284.3 + * + - 200 + - 3.9 + - 45.1 + - 942.5 + + + +.. references: + +.. _Sysbench: https://github.com/akopytov/sysbench \ No newline at end of file diff --git a/doc/source/test_results/db/mariadb/mariadb-galera-direct/latency.svg b/doc/source/test_results/db/mariadb/mariadb-galera-direct/latency.svg new file mode 100644 index 0000000..9f261c5 --- /dev/null +++ b/doc/source/test_results/db/mariadb/mariadb-galera-direct/latency.svg @@ -0,0 +1,4 @@ + +Pygal0.00.0100.0100.0200.0200.0300.0300.0400.0400.0500.0500.0600.0600.0700.0700.0800.0800.0900.0900.020.020.040.040.060.060.080.080.0100.0100.0120.0120.0140.0140.0160.0160.0180.0180.0200.0200.0threads20: 3.2913.8461538462458.40657378940: 3.3490.7692307692458.38264984760: 3.55167.692307692458.28216928680: 3.66244.615384615458.229536612120: 4.02398.461538462458.057284223160: 4.38552.307692308457.885031835200: 3.92706.153846154458.10513210920: 148.3713.8461538462388.98886113540: 182.4390.7692307692372.69187124660: 349.18167.692307692292.90552174880: 212.52244.615384615358.294442422120: 312.48398.461538462310.46569582160: 284.27552.307692308323.963584392200: 942.49706.1538461549.0192307692320: 5.48513.8461538462457.35631269740: 7.277590.7692307692456.49863934560: 10.555167.692307692454.93042488980: 14.1175244.615384615453.225843959120: 20.62398.461538462450.114535188160: 32.7175552.307692308444.326137209200: 45.105706.153846154438.398980361min latency, msmax latency, msavg latency, ms \ No newline at end of file diff --git a/doc/source/test_results/db/mariadb/mariadb-galera-direct/throughput.svg b/doc/source/test_results/db/mariadb/mariadb-galera-direct/throughput.svg new file mode 100644 index 0000000..1baca94 --- /dev/null +++ b/doc/source/test_results/db/mariadb/mariadb-galera-direct/throughput.svg @@ -0,0 +1,4 @@ + +Pygal0.00.010000.010000.020000.020000.030000.030000.040000.040000.050000.050000.060000.060000.070000.070000.080000.080000.090000.090000.0100000.0100000.0110000.0110000.0120000.0120000.020.020.040.040.060.060.080.080.0100.0100.0120.0120.0140.0140.0160.0160.0180.0180.0200.0200.0threads20: 76531.6513.5180.09840621240: 115498.71666788.537.592727861460: 119388.383333163.523.367905869280: 119065.783333238.524.5476798622120: 123311.916667388.59.01923076923160: 103132.283333538.582.8177633003200: 93633.1666667688.5117.55679243720: 3644.3513.5446.65308990240: 5499.8833333388.5439.86725614660: 5685.13333333163.5439.18978208580: 5669.71666667238.5439.246162067120: 5871.88333333388.5438.506822404160: 4910.95538.5442.021032433200: 4458.5688.5443.67567825820: 51021.133333313.5273.39240531640: 76999.388.5178.38817277260: 79592.3333333163.5168.9052425580: 79377.4333333238.5169.691149032120: 82208.2333333388.5159.3386871160: 68755.1666667538.5208.537627519200: 62422.7333333688.5231.695842519queries per sectransactions per secread queries per sec \ No newline at end of file diff --git a/doc/source/test_results/db/mariadb/mariadb-galera-direct/topology.svg b/doc/source/test_results/db/mariadb/mariadb-galera-direct/topology.svg new file mode 100644 index 0000000..1962051 --- /dev/null +++ b/doc/source/test_results/db/mariadb/mariadb-galera-direct/topology.svg @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + Node-1 + + Node-2 + + Node-3 + + sysbench + + + + + + + + diff --git a/doc/source/test_results/db/mysql/index.rst b/doc/source/test_results/db/mysql/index.rst index 298053a..55780f2 100644 --- a/doc/source/test_results/db/mysql/index.rst +++ b/doc/source/test_results/db/mysql/index.rst @@ -2,9 +2,9 @@ PageBreak oneColumn -=============================== -SQL Database performance report -=============================== +================================= +MySQL Database performance report +================================= Environment description ^^^^^^^^^^^^^^^^^^^^^^^ @@ -37,8 +37,6 @@ Reports mysql-galera-direct/index mysql-galera-haproxy/index - - .. references: .. _Sysbench: https://github.com/akopytov/sysbench diff --git a/doc/source/test_results/index.rst b/doc/source/test_results/index.rst index 7dfb10a..8e2bc72 100644 --- a/doc/source/test_results/index.rst +++ b/doc/source/test_results/index.rst @@ -12,7 +12,7 @@ Test Results mq/rabbitmq/index mq_ha/index container_repositories/index - db/mysql/index + db/index keystone/index container_platforms/index