DB performance report
Change-Id: Ic3da24e88d8cfc995f40eca52be14639d554289e
@ -1,3 +1,5 @@
|
|||||||
|
.. _db_performance:
|
||||||
|
|
||||||
======================
|
======================
|
||||||
SQL Database Test Plan
|
SQL Database Test Plan
|
||||||
======================
|
======================
|
||||||
|
44
doc/source/test_results/db/mysql/index.rst
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
.. raw:: pdf
|
||||||
|
|
||||||
|
PageBreak oneColumn
|
||||||
|
|
||||||
|
===============================
|
||||||
|
SQL 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 | MySQL 5.6.28 |
|
||||||
|
+-----------------+--------------------------------------------+
|
||||||
|
| HA | Galera |
|
||||||
|
+-----------------+--------------------------------------------+
|
||||||
|
|
||||||
|
|
||||||
|
Reports
|
||||||
|
^^^^^^^
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
mysql-galera-direct/index
|
||||||
|
mysql-galera-haproxy/index
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.. references:
|
||||||
|
|
||||||
|
.. _Sysbench: https://github.com/akopytov/sysbench
|
After Width: | Height: | Size: 19 KiB |
169
doc/source/test_results/db/mysql/mysql-galera-direct/index.rst
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
MySQL + 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
|
||||||
|
- 69112.8
|
||||||
|
- 46075.2
|
||||||
|
- 3291.1
|
||||||
|
*
|
||||||
|
- 40
|
||||||
|
- 74157.2
|
||||||
|
- 49438.2
|
||||||
|
- 3531.3
|
||||||
|
*
|
||||||
|
- 60
|
||||||
|
- 67909.4
|
||||||
|
- 45273.0
|
||||||
|
- 3233.8
|
||||||
|
*
|
||||||
|
- 80
|
||||||
|
- 65218.1
|
||||||
|
- 43478.9
|
||||||
|
- 3105.6
|
||||||
|
*
|
||||||
|
- 120
|
||||||
|
- 58895.1
|
||||||
|
- 39263.7
|
||||||
|
- 2804.4
|
||||||
|
*
|
||||||
|
- 160
|
||||||
|
- 57187.0
|
||||||
|
- 38125.3
|
||||||
|
- 2723.0
|
||||||
|
*
|
||||||
|
- 200
|
||||||
|
- 51120.9
|
||||||
|
- 34081.6
|
||||||
|
- 2434.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
- 69112.8
|
||||||
|
- 1247.3
|
||||||
|
*
|
||||||
|
- 40
|
||||||
|
- 74157.2
|
||||||
|
- 1942.5
|
||||||
|
*
|
||||||
|
- 60
|
||||||
|
- 67909.4
|
||||||
|
- 2302.5
|
||||||
|
*
|
||||||
|
- 80
|
||||||
|
- 65218.1
|
||||||
|
- 2414.2
|
||||||
|
*
|
||||||
|
- 120
|
||||||
|
- 58895.1
|
||||||
|
- 2423.0
|
||||||
|
*
|
||||||
|
- 160
|
||||||
|
- 57187.0
|
||||||
|
- 2421.0
|
||||||
|
*
|
||||||
|
- 200
|
||||||
|
- 51120.9
|
||||||
|
- 2326.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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.2
|
||||||
|
- 6.1
|
||||||
|
- 19.6
|
||||||
|
*
|
||||||
|
- 40
|
||||||
|
- 3.5
|
||||||
|
- 11.4
|
||||||
|
- 42.9
|
||||||
|
*
|
||||||
|
- 60
|
||||||
|
- 4.3
|
||||||
|
- 18.7
|
||||||
|
- 56.5
|
||||||
|
*
|
||||||
|
- 80
|
||||||
|
- 4.1
|
||||||
|
- 25.9
|
||||||
|
- 155.9
|
||||||
|
*
|
||||||
|
- 120
|
||||||
|
- 4.3
|
||||||
|
- 42.8
|
||||||
|
- 572.9
|
||||||
|
*
|
||||||
|
- 160
|
||||||
|
- 5.2
|
||||||
|
- 58.8
|
||||||
|
- 485.3
|
||||||
|
*
|
||||||
|
- 200
|
||||||
|
- 6.6
|
||||||
|
- 82.2
|
||||||
|
- 745.9
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.. references:
|
||||||
|
|
||||||
|
.. _Sysbench: https://github.com/akopytov/sysbench
|
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 21 KiB |
@ -0,0 +1,213 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="580"
|
||||||
|
height="350"
|
||||||
|
viewBox="0 0 580.00001 350"
|
||||||
|
id="svg2"
|
||||||
|
version="1.1"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
sodipodi:docname="topology.svg">
|
||||||
|
<defs
|
||||||
|
id="defs4">
|
||||||
|
<marker
|
||||||
|
inkscape:isstock="true"
|
||||||
|
style="overflow:visible"
|
||||||
|
id="marker5392"
|
||||||
|
refX="0"
|
||||||
|
refY="0"
|
||||||
|
orient="auto"
|
||||||
|
inkscape:stockid="Arrow1Mend">
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
transform="matrix(-0.4,0,0,-0.4,-4,0)"
|
||||||
|
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
id="path5394" />
|
||||||
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:isstock="true"
|
||||||
|
style="overflow:visible"
|
||||||
|
id="marker4607"
|
||||||
|
refX="0"
|
||||||
|
refY="0"
|
||||||
|
orient="auto"
|
||||||
|
inkscape:stockid="Arrow1Mend">
|
||||||
|
<path
|
||||||
|
transform="matrix(-0.4,0,0,-0.4,-4,0)"
|
||||||
|
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
id="path4609"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:stockid="Arrow1Lend"
|
||||||
|
orient="auto"
|
||||||
|
refY="0"
|
||||||
|
refX="0"
|
||||||
|
id="Arrow1Lend"
|
||||||
|
style="overflow:visible"
|
||||||
|
inkscape:isstock="true">
|
||||||
|
<path
|
||||||
|
id="path4244"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
style="fill:#44aa00;fill-opacity:1;fill-rule:evenodd;stroke:#44aa00;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
transform="matrix(-0.8,0,0,-0.8,-10,0)"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</marker>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="0.98994949"
|
||||||
|
inkscape:cx="323.60285"
|
||||||
|
inkscape:cy="205.89558"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-width="1280"
|
||||||
|
inkscape:window-height="752"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
units="px"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" />
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-71.73098,-42.362206)">
|
||||||
|
<rect
|
||||||
|
style="fill:#b3ff80;fill-opacity:0.59215686;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4140"
|
||||||
|
width="115.15739"
|
||||||
|
height="78.286819"
|
||||||
|
x="112.12693"
|
||||||
|
y="91.202057" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
x="126.16592"
|
||||||
|
y="139.84961"
|
||||||
|
id="text4142"
|
||||||
|
sodipodi:linespacing="125%"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan4144"
|
||||||
|
x="126.16592"
|
||||||
|
y="139.84961">Node-1</tspan></text>
|
||||||
|
<rect
|
||||||
|
y="91.202057"
|
||||||
|
x="304.05591"
|
||||||
|
height="78.286819"
|
||||||
|
width="115.15739"
|
||||||
|
id="rect4146"
|
||||||
|
style="fill:#b3ff80;fill-opacity:0.59215686;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<text
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
id="text4148"
|
||||||
|
y="139.84961"
|
||||||
|
x="318.09491"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="139.84961"
|
||||||
|
x="318.09491"
|
||||||
|
id="tspan4150"
|
||||||
|
sodipodi:role="line">Node-2</tspan></text>
|
||||||
|
<rect
|
||||||
|
y="91.202057"
|
||||||
|
x="495.98492"
|
||||||
|
height="78.286819"
|
||||||
|
width="115.15739"
|
||||||
|
id="rect4152"
|
||||||
|
style="fill:#b3ff80;fill-opacity:0.59215686;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<text
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
id="text4154"
|
||||||
|
y="139.84961"
|
||||||
|
x="510.02386"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="139.84961"
|
||||||
|
x="510.02386"
|
||||||
|
id="tspan4156"
|
||||||
|
sodipodi:role="line">Node-3</tspan></text>
|
||||||
|
<rect
|
||||||
|
y="278.95343"
|
||||||
|
x="280.25034"
|
||||||
|
height="77.794151"
|
||||||
|
width="157.09094"
|
||||||
|
id="rect4158"
|
||||||
|
style="fill:none;fill-opacity:0.59215686;stroke:#000000;stroke-width:3.49285102;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<text
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
id="text4160"
|
||||||
|
y="325.35477"
|
||||||
|
x="302.04288"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="325.35477"
|
||||||
|
x="302.04288"
|
||||||
|
id="tspan4162"
|
||||||
|
sodipodi:role="line">sysbench</tspan></text>
|
||||||
|
<rect
|
||||||
|
style="fill:none;fill-opacity:0.59215686;stroke:#808080;stroke-width:1.99999976;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.32704408"
|
||||||
|
id="rect4225"
|
||||||
|
width="578"
|
||||||
|
height="348"
|
||||||
|
x="72.73098"
|
||||||
|
y="43.362206" />
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 227.14286,120.07649 76.42857,0"
|
||||||
|
id="path4591"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4593"
|
||||||
|
d="m 227.14286,140.07649 76.42857,0"
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4595"
|
||||||
|
d="m 419.14286,120.07649 76.42857,0"
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 419.14286,140.07649 76.42857,0"
|
||||||
|
id="path4597"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path5390"
|
||||||
|
d="m 359.89706,278.74779 1.01015,-104.04571"
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker5392)" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 8.5 KiB |
After Width: | Height: | Size: 19 KiB |
170
doc/source/test_results/db/mysql/mysql-galera-haproxy/index.rst
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
MySQL + Galera + HAproxy performance report
|
||||||
|
-------------------------------------------
|
||||||
|
|
||||||
|
This scenario is executed with `Sysbench`_ tool. There is one instance of
|
||||||
|
tool per tester node, each running in N threads. Galera cluster is located
|
||||||
|
behind HAproxy. Tester tools all point to HAProxy endpoint.
|
||||||
|
|
||||||
|
.. 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
|
||||||
|
- 49331.4
|
||||||
|
- 32887.6
|
||||||
|
- 2349.1
|
||||||
|
*
|
||||||
|
- 40
|
||||||
|
- 56479.8
|
||||||
|
- 37653.2
|
||||||
|
- 2689.5
|
||||||
|
*
|
||||||
|
- 60
|
||||||
|
- 56265.1
|
||||||
|
- 37510.2
|
||||||
|
- 2679.2
|
||||||
|
*
|
||||||
|
- 80
|
||||||
|
- 58458.7
|
||||||
|
- 38972.5
|
||||||
|
- 2783.7
|
||||||
|
*
|
||||||
|
- 120
|
||||||
|
- 55108.4
|
||||||
|
- 36739.3
|
||||||
|
- 2624.1
|
||||||
|
*
|
||||||
|
- 160
|
||||||
|
- 17298.6
|
||||||
|
- 11532.5
|
||||||
|
- 823.7
|
||||||
|
*
|
||||||
|
- 200
|
||||||
|
- 11732.2
|
||||||
|
- 7821.8
|
||||||
|
- 558.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
|
||||||
|
- 49331.4
|
||||||
|
- 917.4
|
||||||
|
*
|
||||||
|
- 40
|
||||||
|
- 56479.8
|
||||||
|
- 1115.2
|
||||||
|
*
|
||||||
|
- 60
|
||||||
|
- 56265.1
|
||||||
|
- 1073.0
|
||||||
|
*
|
||||||
|
- 80
|
||||||
|
- 58458.7
|
||||||
|
- 1153.9
|
||||||
|
*
|
||||||
|
- 120
|
||||||
|
- 55108.4
|
||||||
|
- 1178.3
|
||||||
|
*
|
||||||
|
- 160
|
||||||
|
- 17298.6
|
||||||
|
- 2050.1
|
||||||
|
*
|
||||||
|
- 200
|
||||||
|
- 11732.2
|
||||||
|
- 2058.9
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
- 4.8
|
||||||
|
- 8.5
|
||||||
|
- 23.3
|
||||||
|
*
|
||||||
|
- 40
|
||||||
|
- 6.1
|
||||||
|
- 14.9
|
||||||
|
- 27.2
|
||||||
|
*
|
||||||
|
- 60
|
||||||
|
- 5.4
|
||||||
|
- 22.4
|
||||||
|
- 64.8
|
||||||
|
*
|
||||||
|
- 80
|
||||||
|
- 7.3
|
||||||
|
- 28.7
|
||||||
|
- 78.6
|
||||||
|
*
|
||||||
|
- 120
|
||||||
|
- 9.4
|
||||||
|
- 45.7
|
||||||
|
- 113.8
|
||||||
|
*
|
||||||
|
- 160
|
||||||
|
- 13.4
|
||||||
|
- 194.5
|
||||||
|
- 1069.3
|
||||||
|
*
|
||||||
|
- 200
|
||||||
|
- 14.9
|
||||||
|
- 358.9
|
||||||
|
- 4071.6
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.. references:
|
||||||
|
|
||||||
|
.. _Sysbench: https://github.com/akopytov/sysbench
|
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 21 KiB |
@ -0,0 +1,297 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="580"
|
||||||
|
height="350"
|
||||||
|
viewBox="0 0 580.00001 350"
|
||||||
|
id="svg2"
|
||||||
|
version="1.1"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
sodipodi:docname="topology.svg">
|
||||||
|
<defs
|
||||||
|
id="defs4">
|
||||||
|
<marker
|
||||||
|
inkscape:isstock="true"
|
||||||
|
style="overflow:visible"
|
||||||
|
id="marker5392"
|
||||||
|
refX="0"
|
||||||
|
refY="0"
|
||||||
|
orient="auto"
|
||||||
|
inkscape:stockid="Arrow1Mend">
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
transform="matrix(-0.4,0,0,-0.4,-4,0)"
|
||||||
|
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
id="path5394" />
|
||||||
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:stockid="Arrow1Mend"
|
||||||
|
orient="auto"
|
||||||
|
refY="0"
|
||||||
|
refX="0"
|
||||||
|
id="marker5386"
|
||||||
|
style="overflow:visible"
|
||||||
|
inkscape:isstock="true"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<path
|
||||||
|
id="path5388"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
transform="matrix(-0.4,0,0,-0.4,-4,0)"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:isstock="true"
|
||||||
|
style="overflow:visible"
|
||||||
|
id="marker5380"
|
||||||
|
refX="0"
|
||||||
|
refY="0"
|
||||||
|
orient="auto"
|
||||||
|
inkscape:stockid="Arrow1Mend"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
transform="matrix(-0.4,0,0,-0.4,-4,0)"
|
||||||
|
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
id="path5382" />
|
||||||
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:isstock="true"
|
||||||
|
style="overflow:visible"
|
||||||
|
id="marker4607"
|
||||||
|
refX="0"
|
||||||
|
refY="0"
|
||||||
|
orient="auto"
|
||||||
|
inkscape:stockid="Arrow1Mend">
|
||||||
|
<path
|
||||||
|
transform="matrix(-0.4,0,0,-0.4,-4,0)"
|
||||||
|
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
id="path4609"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:stockid="Arrow1Mend"
|
||||||
|
orient="auto"
|
||||||
|
refY="0"
|
||||||
|
refX="0"
|
||||||
|
id="Arrow1Mend"
|
||||||
|
style="overflow:visible"
|
||||||
|
inkscape:isstock="true"
|
||||||
|
inkscape:collect="always">
|
||||||
|
<path
|
||||||
|
id="path4250"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
transform="matrix(-0.4,0,0,-0.4,-4,0)"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</marker>
|
||||||
|
<marker
|
||||||
|
inkscape:stockid="Arrow1Lend"
|
||||||
|
orient="auto"
|
||||||
|
refY="0"
|
||||||
|
refX="0"
|
||||||
|
id="Arrow1Lend"
|
||||||
|
style="overflow:visible"
|
||||||
|
inkscape:isstock="true">
|
||||||
|
<path
|
||||||
|
id="path4244"
|
||||||
|
d="M 0,0 5,-5 -12.5,0 5,5 0,0 Z"
|
||||||
|
style="fill:#44aa00;fill-opacity:1;fill-rule:evenodd;stroke:#44aa00;stroke-width:1pt;stroke-opacity:1"
|
||||||
|
transform="matrix(-0.8,0,0,-0.8,-10,0)"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</marker>
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="0.98994949"
|
||||||
|
inkscape:cx="323.60285"
|
||||||
|
inkscape:cy="205.89558"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:window-width="1280"
|
||||||
|
inkscape:window-height="752"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
units="px"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0" />
|
||||||
|
<metadata
|
||||||
|
id="metadata7">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-71.73098,-42.362206)">
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#Arrow1Mend)"
|
||||||
|
d="M 355.57369,195.79345 552.55344,152.3569"
|
||||||
|
id="path4235"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<rect
|
||||||
|
style="fill:#b3ff80;fill-opacity:0.59215686;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect4140"
|
||||||
|
width="115.15739"
|
||||||
|
height="78.286819"
|
||||||
|
x="112.12693"
|
||||||
|
y="73.202057" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
x="126.16592"
|
||||||
|
y="121.84962"
|
||||||
|
id="text4142"
|
||||||
|
sodipodi:linespacing="125%"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan4144"
|
||||||
|
x="126.16592"
|
||||||
|
y="121.84962">Node-1</tspan></text>
|
||||||
|
<rect
|
||||||
|
y="73.202057"
|
||||||
|
x="304.05591"
|
||||||
|
height="78.286819"
|
||||||
|
width="115.15739"
|
||||||
|
id="rect4146"
|
||||||
|
style="fill:#b3ff80;fill-opacity:0.59215686;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<text
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
id="text4148"
|
||||||
|
y="121.84962"
|
||||||
|
x="318.09491"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="121.84962"
|
||||||
|
x="318.09491"
|
||||||
|
id="tspan4150"
|
||||||
|
sodipodi:role="line">Node-2</tspan></text>
|
||||||
|
<rect
|
||||||
|
y="73.202057"
|
||||||
|
x="495.98492"
|
||||||
|
height="78.286819"
|
||||||
|
width="115.15739"
|
||||||
|
id="rect4152"
|
||||||
|
style="fill:#b3ff80;fill-opacity:0.59215686;stroke:#000000;stroke-width:3;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<text
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
id="text4154"
|
||||||
|
y="121.84962"
|
||||||
|
x="510.02386"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="121.84962"
|
||||||
|
x="510.02386"
|
||||||
|
id="tspan4156"
|
||||||
|
sodipodi:role="line">Node-3</tspan></text>
|
||||||
|
<rect
|
||||||
|
y="303.93655"
|
||||||
|
x="280.10129"
|
||||||
|
height="64.96006"
|
||||||
|
width="157.38901"
|
||||||
|
id="rect4158"
|
||||||
|
style="fill:none;fill-opacity:0.59215686;stroke:#000000;stroke-width:3.19478345;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
|
||||||
|
<text
|
||||||
|
sodipodi:linespacing="125%"
|
||||||
|
id="text4160"
|
||||||
|
y="343.35477"
|
||||||
|
x="302.04288"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
xml:space="preserve"><tspan
|
||||||
|
y="343.35477"
|
||||||
|
x="302.04288"
|
||||||
|
id="tspan4162"
|
||||||
|
sodipodi:role="line">sysbench</tspan></text>
|
||||||
|
<rect
|
||||||
|
style="fill:none;fill-opacity:0.59215686;stroke:#808080;stroke-width:1.99999976;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.32704408"
|
||||||
|
id="rect4225"
|
||||||
|
width="578"
|
||||||
|
height="348"
|
||||||
|
x="72.73098"
|
||||||
|
y="43.362206" />
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 227.14286,102.07649 76.42857,0"
|
||||||
|
id="path4591"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4593"
|
||||||
|
d="m 227.14286,122.07649 76.42857,0"
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path4595"
|
||||||
|
d="m 419.14286,102.07649 76.42857,0"
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
d="m 419.14286,122.07649 76.42857,0"
|
||||||
|
id="path4597"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<rect
|
||||||
|
style="fill:#e580ff;fill-opacity:0.59215686;stroke:#000000;stroke-width:3.06309605;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect5372"
|
||||||
|
width="144.38872"
|
||||||
|
height="65.091743"
|
||||||
|
x="287.86411"
|
||||||
|
y="195.44176" />
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:23.59143066px;line-height:125%;font-family:'Droid Serif';-inkscape-font-specification:'Droid Serif';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
x="311.13425"
|
||||||
|
y="236.27859"
|
||||||
|
id="text5374"
|
||||||
|
sodipodi:linespacing="125%"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan5376"
|
||||||
|
x="311.13425"
|
||||||
|
y="236.27859">HAproxy</tspan></text>
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path5378"
|
||||||
|
d="M 363.93767,195.79345 166.95792,152.3569"
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker5380)" />
|
||||||
|
<path
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker5386)"
|
||||||
|
d="m 363.93767,195.79345 0,-42.4264"
|
||||||
|
id="path5384"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cc" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
id="path5390"
|
||||||
|
d="m 362.92752,305.90008 0,-42.4264"
|
||||||
|
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker5392)" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 12 KiB |
@ -11,3 +11,4 @@ Test Results
|
|||||||
|
|
||||||
mq_ha/index
|
mq_ha/index
|
||||||
container_repositories/index
|
container_repositories/index
|
||||||
|
db/mysql/index
|
||||||
|