This section provides detailed information about MySQL server
system variables that are specific to MySQL Cluster and the
NDB
storage engine. For system
variables not specific to MySQL Cluster, see
Section 5.1.3, “Server System Variables”. For general
information on using system variables, see
Section 5.1.5, “Using System Variables”.
Version Introduced | 4.1.2 | |
Variable Name | have_ndbcluster |
|
Variable Scope | Global | |
Dynamic Variable | No | |
Permitted Values | ||
Type | boolean |
YES
if mysqld supports
NDBCLUSTER
tables.
DISABLED
if
--skip-ndbcluster
is used.
Version Introduced | 4.1.8 | |
Command-Line Format | --ndb_autoincrement_prefetch_sz |
|
Config-File Format | ndb_autoincrement_prefetch_sz |
|
Option Sets Variable | Yes, ndb_autoincrement_prefetch_sz
|
|
Variable Name | ndb_autoincrement_prefetch_sz |
|
Variable Scope | Both | |
Dynamic Variable | Yes |
Determines the probability of gaps in an autoincremented
column. Set it to 1
to minimize this.
Setting it to a high value for optimization — makes
inserts faster, but decreases the likelihood that
consecutive autoincrement numbers will be used in a batch of
inserts. Default value: 32
. Minimum
value: 1
.
Command-Line Format | --ndb_cache_check_time |
|
Config-File Format | ndb_cache_check_time |
|
Option Sets Variable | Yes, ndb_cache_check_time
|
|
Variable Name | ndb_cache_check_time |
|
Variable Scope | Global | |
Dynamic Variable | Yes | |
Permitted Values | ||
Type | numeric |
|
Default | 0 |
The number of milliseconds that elapse between checks of MySQL Cluster SQL nodes by the MySQL query cache. Setting this to 0 (the default and minimum value) means that the query cache checks for validation on every query.
The recommended maximum value for this variable is 1000, which means that the check is performed once per second. A larger value means that the check is performed and possibly invalidated due to updates on different SQL nodes less often. It is generally not desirable to set this to a value greater than 2000.
Version Introduced | 4.1.8 | |
Command-Line Format | --ndb-force-send |
|
Config-File Format | ndb_force_send |
|
Option Sets Variable | Yes, ndb_force_send
|
|
Variable Name | ndb_force_send |
|
Variable Scope | Both | |
Dynamic Variable | Yes | |
Permitted Values | ||
Type | boolean |
|
Default | TRUE |
Forces sending of buffers to
NDB
immediately, without
waiting for other threads. Defaults to
ON
.
Command-Line Format | --ndb_index_stat_cache_entries |
|
Config-File Format | ndb_index_stat_cache_entries |
|
Permitted Values | ||
Type | numeric |
|
Default | 32 |
|
Range | 0-4294967295 |
Sets the granularity of the statistics by determining the
number of starting and ending keys to store in the
statistics memory cache. Zero means no caching takes place;
in this case, the data nodes are always queried directly.
Default value: 32
.
Command-Line Format | --ndb_index_stat_enable |
|
Config-File Format | ndb_index_stat_enable |
|
Permitted Values | ||
Type | boolean |
|
Default | ON |
Use NDB
index statistics in
query optimization. Defaults to ON
.
Command-Line Format | --ndb_index_stat_update_freq |
|
Config-File Format | ndb_index_stat_update_freq |
|
Permitted Values | ||
Type | numeric |
|
Default | 20 |
|
Range | 0-4294967295 |
How often to query data nodes instead of the statistics
cache. For example, a value of 20
(the
default) means to direct every
20th query to the data nodes.
Version Introduced | 4.1.9 | |
Command-Line Format | --ndb-optimized-node-selection |
4.1.9-5.1.22-ndb-6.33 |
Config-File Format | ndb_optimized_node_selection |
Causes an SQL node to use the “closest” data
node as transaction coordinator. For this purpose, a data
node having a shared memory connection with the SQL node is
considered to be “closest” to the SQL node; the
next closest (in order of decreasing proximity) are: TCP
connection to localhost
; SCI connection;
TCP connection from a host other than
localhost
.
This option is enabled by default. Set to
0
or OFF
to disable
it, in which case the SQL node uses each data node in the
cluster in succession. When this option is disabled each SQL
thread attempts to use a given data node 8 times before
proceeding to the next one.
Added in MySQL 4.1.9.
ndb_report_thresh_binlog_epoch_slip
Command-Line Format | --ndb_report_thresh_binlog_epoch_slip |
|
Config-File Format | ndb_report_thresh_binlog_epoch_slip |
|
Permitted Values | ||
Type | numeric |
|
Default | 3 |
|
Range | 0-256 |
This is a threshold on the number of epochs to be behind
before reporting binlog status. For example, a value of
3
(the default) means that if the
difference between which epoch has been received from the
storage nodes and which epoch has been applied to the binlog
is 3 or more, a status message will be sent to the cluster
log.
ndb_report_thresh_binlog_mem_usage
Command-Line Format | --ndb_report_thresh_binlog_mem_usage |
|
Config-File Format | ndb_report_thresh_binlog_mem_usage |
|
Permitted Values | ||
Type | numeric |
|
Default | 10 |
|
Range | 0-10 |
This is a threshold on the percentage of free memory
remaining before reporting binlog status. For example, a
value of 10
(the default) means that if
the amount of available memory for receiving binlog data
from the data nodes falls below 10%, a status message will
be sent to the cluster log.
Version Introduced | 4.1.8 | |
Variable Name | ndb_use_exact_count |
|
Variable Scope | Both | |
Dynamic Variable | Yes | |
Permitted Values | ||
Type | boolean |
|
Default | ON |
Forces NDB
to use a count of
records during SELECT COUNT(*)
query
planning to speed up this type of query. The default value
is ON
. For faster queries overall,
disable this feature by setting the value of
ndb_use_exact_count
to
OFF
.
Version Introduced | 4.1.18 | |
Command-Line Format | --ndb_use_transactions |
|
Config-File Format | ndb_use_transactions |
|
Variable Name | ndb_use_transactions |
|
Variable Scope | Both | |
Dynamic Variable | Yes | |
Permitted Values | ||
Type | boolean |
|
Default | ON |
You can disable NDB
transaction
support by setting this variable's values to
OFF
(not recommended). The default is
ON
.
User Comments
Add your own comment.