Mysqlnd replication and load balancing plugin (
mysqlnd_ms
)
2619
update everywhere clusters that have no built-in partitioning. The
filter is a multi filter which returns zero, one or multiple of its input
servers. Thus, it must be followed by other filters to reduce the
number of candidates down to one for statement execution.
Keyword
Description
Version
user
defined
node
group
name
One or more node groups must be defined. A
node group can have an arbitrary user defined
name. The name is used in combination with
a SQL hint to restrict query execution to the
nodes listed for the node group. To run a
query on any of the servers of a node group,
the query must begin with the SQL hint
/
*user defined node group name*/
.
Please note, no white space is allowed
around
user defined node group name
.
Because
user defined node group
name
is used as-is as part of a SQL hint, you
should choose the name that is compliant with
the SQL language.
Each node group entry must contain a list of
master
servers. Additional
slave
servers are
allowed. Failing to provide a list of
master
for
a node group
name_of_group
may cause
an error of type
E_RECOVERABLE_ERROR
like
(mysqlnd_ms) No masters configured
in node group 'name_of_group' for
'node_groups' filter
.
The list of master and slave servers must
reference corresponding entries in the
global master
respectively
slave
server
list. Referencing an unknown server in
either of the both server lists may cause
an
E_RECOVERABLE_ERROR
error like
(mysqlnd_ms) Unknown master
'server_alias_name' (section
'name_of_group') in 'node_groups'
filter configuration
.
Example 20.283. Manual partitioning
{
"myapp": {
"master": {
"master_0": {
"host": "localhost",
"socket": "\/tmp\/mysql.sock"
}
},
"slave": {
"slave_0": {
"host": "192.168.2.28",
"port": 3306
},
"slave_1": {
"host": "127.0.0.1",
"port": 3311
}
},
Since 1.5.0.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...