This directory is named
ndb_
,
where nodeid
_fsnodeid
is the data node's
node ID. It contains the following files and directories:
Files:
data-
nodeid
.dat
undo-
nodeid
.dat
Directories:
LCP
: This directory holds 3
subdirectories, named 0
,
1
, and 2
,
which contain local checkpoint data files (one per
checkpoint — see
Configuring MySQL Cluster Parameters for Local Checkpoints).
These subdirectories each contain a number of files
whose names follow the pattern
T
,
where N
FM
.DataN
is a table ID and
and M is a fragment number. Each data node typically
has one primary fragment and one backup fragment. This
means that, for a MySQL Cluster having 2 data nodes,
and with
NoOfReplicas
= 2
, M
is
either 0 to 1. For a 4-node cluster with
NoOfReplicas
= 2
, M
is
either 0 or 2 on node group 1, and either 1 or 3 on
node group 2.
In MySQL Cluster NDB 7.0 and later, when using
ndbmtd there may be more than one
primary fragment per node. In this case,
M
is a number in the range
of 0 to the number of LQH worker threads in the entire
cluster, less 1. The number of fragments on each data
node is equal to the number of LQH on that node times
NoOfReplicas
.
Increasing
MaxNoOfExecutionThreads
does not change the number of fragments used by
existing tables; only newly-created tables
automatically use the new fragment count. To force
the new fragment count to be used by an existing
table after increasing
MaxNoOfExecutionThreads
,
you must perform an
ALTER
TABLE ... REORGANIZE PARTITION
statement
(just as when adding new node groups in MySQL
Cluster NDB 7.0 and later).
Directories named D1
and
D2
, each of which contains 2
subdirectories:
DBDICT
: Contains data
dictionary information. This is stored in:
The file P0.SchemaLog
A set of directories T0
,
T1
,
T2
, ..., each of which
contains an S0.TableList
file.
Directories named D8
,
D9
, D10
,
and D11
, each of which
contains a directory named
DBLQH
.
In each case, the DBLQH
directory contains N
files named S0.Fraglog
,
S1.FragLog
,
S2.FragLog
, ...,
S
,
where N
.FragLogN
is equal to the
value of the
NoOfFragmentLogFiles
configuration parameter.
The DBLQH
directories also
contain the redo log files.
DBDIH
: This directory
contains the file
P
,
which records information such as the last GCI,
restart status, and node group membership of each
node; its structure is defined in
X
.sysfilestorage/ndb/src/kernel/blocks/dbdih/Sysfile.hpp
in the MySQL Cluster source tree. In addition, the
S
files keep records of the fragments belonging to
each table.
X
.FragList