Oracle 5.0 Reference Manual page 2620

Table of Contents

Advertisement

Mysqlnd replication and load balancing plugin (mysqlnd_ms)
• Do not set the quality of service. All nodes have all the data. This automatically gives you the highest
possible service quality (strong consistency).
• Do not enable client-side global transaction injection. It is neither required to help with server-side fail
over nor to assist the quality of service filter choosing an appropriate node.
Disabling built-in read-write splitting.
• Set
mysqlnd_ms.disable_rw_split=1
• Do not use
SQL hints
Configure masters only.
• Set
mysqlnd_ms.multi_master=1.
• Do not configure any slaves.
• Set
failover=loop_before_master
empty slave list and to make the failover logic loop over all configured masters before emitting an
error.
Please, note the warnings about automatic failover given in the previous sections.
Example 20.262. Multiple primaries - multi master (php.ini)
mysqlnd_ms.enable=1
mysqlnd_ms.config_file=/path/to/mysqlnd_ms_plugin.ini
mysqlnd_ms.multi_master=1
mysqlnd_ms.disable_rw_split=1
Example 20.263. Synchronous update anywhere cluster
"myapp": {
"master": {
"master_1": {
"host": "localhost",
"socket": "\/tmp\/mysql57.sock"
},
"master_2": {
"host": "192.168.2.28",
"port": 3306
}
},
"slave": {
},
"filters": {
"roundrobin": {
}
},
"failover": {
"strategy": "loop_before_master",
"remember_failed": true
}
}
}
If running an update everywhere cluster that has no built-in partitioning to avoid hot spots and high
collision rates, consider using the node groups filter to keep updates on a frequently accessed table on
one of the nodes. This may help to reduce collision rates and thus improve performance.
to enforce the use of slaves
in the plugins configuration file to avoid warnings about the
2600

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents