mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
aca43bd8f9
ndb/tools/ndb_size.pl: disable 5.1-dd reporting as it's not ready yet. support BLOB tables with mostly accurate space estimate (our estimates will be slightly higher due to the fact we also calculate an ORDERED index on the BLOB table, something that NDB doesn't have). now have subroutine do_table that does the calculations for a table. We call this with a "fake" blob table to get estimates for blob usage. ndb/tools/ndb_size.tmpl: Add column in columns table for if column is VARSIZED
231 lines
5.5 KiB
Cheetah
231 lines
5.5 KiB
Cheetah
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/>
|
|
<meta name="keywords" content="MySQL Cluster" />
|
|
<title>MySQL Cluster size estimate for <TMPL_VAR NAME="db" ESCAPE="HTML"></title>
|
|
<style type="text/css">
|
|
table { border-collapse: collapse }
|
|
td,th { border: 1px solid black }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>MySQL Cluster analysis for <TMPL_VAR NAME="db" escape="html"></h1>
|
|
<p>This is an automated analysis of the <TMPL_VAR NAME="DSN" escape="html"> database for migration into <a href="http://www.mysql.com/">MySQL</a> Cluster. No warranty is made to the accuracy of the information.</p>
|
|
|
|
<p>This information should be valid for MySQL 4.1 and 5.0. Since 5.1 is not a final release yet, the numbers should be used as a guide only.</p>
|
|
|
|
<p>5.1-dd is for tables stored on disk. The ndb_size.pl estimates are <b>experimental</b> and should not be trusted. Notably we don't take into account indexed columns being in DataMemory versus non-indexed on disk.</p>
|
|
|
|
<h2>Parameter Settings</h2>
|
|
<p><b>NOTE</b> the configuration parameters below do not take into account system tables and other requirements.</p>
|
|
<table>
|
|
<tr>
|
|
<th>Parameter</th>
|
|
<TMPL_LOOP NAME=releases>
|
|
<th><TMPL_VAR NAME=rel></th>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<TMPL_LOOP NAME=Parameters>
|
|
<tr>
|
|
<td><TMPL_VAR NAME=name></td>
|
|
<TMPL_LOOP NAME=releases>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
</TMPL_LOOP>
|
|
</table>
|
|
|
|
<h2>Memory usage because of parameters</h2>
|
|
|
|
<p>Usage is in kilobytes. Actual usage will vary as you should set the parameters larger than those listed in the table above.</p>
|
|
<table>
|
|
<tr>
|
|
<th>Parameter</th>
|
|
<TMPL_LOOP NAME=releases>
|
|
<th><TMPL_VAR NAME=rel></th>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<TMPL_LOOP NAME=ParamMemory>
|
|
<tr>
|
|
<td><TMPL_VAR NAME=name></td>
|
|
<TMPL_LOOP NAME=releases>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
</TMPL_LOOP>
|
|
</table>
|
|
|
|
<h2>Table List</h2>
|
|
<ul>
|
|
<TMPL_LOOP NAME="tables">
|
|
<li><a href="#<TMPL_VAR NAME="table">"><TMPL_VAR NAME="table"></a></li>
|
|
</TMPL_LOOP>
|
|
</ul>
|
|
|
|
<hr/>
|
|
|
|
<TMPL_LOOP NAME="tables">
|
|
<h2><a name="<TMPL_VAR NAME="table">"><TMPL_VAR NAME="table"></a></h2>
|
|
<table>
|
|
<tr>
|
|
<th>Column</th>
|
|
<th>Type</th>
|
|
<th>VARSIZE</th>
|
|
<th>Size</th>
|
|
<th>Key</th>
|
|
<TMPL_LOOP NAME=releases>
|
|
<th><TMPL_VAR NAME=rel> NDB Size</th>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<TMPL_LOOP NAME="columns">
|
|
<tr>
|
|
<td><TMPL_VAR NAME=name></td>
|
|
<td><TMPL_VAR NAME=type></td>
|
|
<td><TMPL_IF NAME=is_varsize>YES<TMPL_ELSE> </TMPL_IF></td>
|
|
<td><TMPL_VAR NAME=size></td>
|
|
<td><TMPL_VAR NAME=key></td>
|
|
<TMPL_LOOP NAME=datamemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
</TMPL_LOOP>
|
|
</table>
|
|
|
|
<p> </p>
|
|
|
|
<h3>Indexes</h3>
|
|
|
|
<p>We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH</p>
|
|
<table>
|
|
<tr>
|
|
<th>Index</th>
|
|
<th>Type</th>
|
|
<th>Columns</th>
|
|
<TMPL_LOOP NAME=releases>
|
|
<th><TMPL_VAR NAME=rel> IdxMem</th>
|
|
</TMPL_LOOP>
|
|
<TMPL_LOOP NAME=releases>
|
|
<th><TMPL_VAR NAME=rel> DatMem</th>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<TMPL_LOOP NAME="indexes">
|
|
<tr>
|
|
<td><TMPL_VAR NAME=name></td>
|
|
<td><TMPL_VAR NAME=type></td>
|
|
<td><TMPL_VAR NAME=columns></td>
|
|
<TMPL_LOOP NAME=indexmemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
<TMPL_LOOP NAME=datamemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
</TMPL_LOOP>
|
|
</table>
|
|
|
|
<h3>DataMemory Usage</h3>
|
|
<table>
|
|
<tr>
|
|
<th> </th>
|
|
<TMPL_LOOP NAME=releases>
|
|
<th><TMPL_VAR NAME=rel></th>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Nr Varsized Attributes</th>
|
|
<TMPL_LOOP NAME=nrvarsize>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Row Overhead</th>
|
|
<TMPL_LOOP NAME=RowOverhead>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Varsized Overhead</th>
|
|
<TMPL_LOOP NAME=nrvarsize_mem>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Column DataMemory/Row</th>
|
|
<TMPL_LOOP NAME=RowDataMemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Index DataMemory/Row</th>
|
|
<TMPL_LOOP NAME=IndexDataMemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Total DataMemory/Row</th>
|
|
<TMPL_LOOP NAME=TotalDataMemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Rows per 32kb page</th>
|
|
<TMPL_LOOP NAME=RowPerPage>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Current number of rows</th>
|
|
<TMPL_LOOP NAME=count>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Total DataMemory (kb)</th>
|
|
<TMPL_LOOP NAME=DataMemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>IndexMemory Usage</h3>
|
|
<table>
|
|
<tr>
|
|
<th> </th>
|
|
<TMPL_LOOP NAME=releases>
|
|
<th><TMPL_VAR NAME=rel></th>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>IndexMemory/Row</th>
|
|
<TMPL_LOOP NAME=RowIndexMemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Rows per 8kb page</th>
|
|
<TMPL_LOOP NAME=RowPerIndexPage>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Current number of rows</th>
|
|
<TMPL_LOOP NAME=count>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
<tr>
|
|
<th>Total IndexMemory (kb)</th>
|
|
<TMPL_LOOP NAME=IndexMemory>
|
|
<td><TMPL_VAR NAME=val></td>
|
|
</TMPL_LOOP>
|
|
</tr>
|
|
</table>
|
|
|
|
<hr/>
|
|
</TMPL_LOOP>
|
|
|
|
<p>This is the output of ndb_size.pl.</p>
|
|
</body>
|
|
</html>
|
|
|