Oracle 5.0 Reference Manual page 2625

Table of Contents

Advertisement

Mysqlnd replication and load balancing plugin (mysqlnd_ms)
may be empty. It is possible to allow no slaves. However, this is only recommended with synchronous
clusters, please see also
of asynchronous MySQL replication clusters.
The master and slave server lists can be optionally indexed by symbolic names for the servers they
describe. Alternatively, an array of descriptions for slave and master servers may be used.
Example 20.266. List of anonymous slaves
"slave": [
{
"host": "192.168.3.24",
"port": "3305"
},
{
"host": "192.168.3.65",
"port": "3309"
}
]
An anonymous server list is encoded by the
used for indexing the slave or master servers of a server list, and done so using the
type.
Example 20.267. Master list using symbolic names
"master": {
"master_0": {
"host": "localhost"
}
}
It is recommended to index the server lists with symbolic server names. The alias names will be shown
in error messages.
The order of servers is preserved and taken into account by mysqlnd_ms. If, for example, you
configure round robin load balancing strategy, the first
that appears first in the slave server list.
A configured server can be described with the host, port, socket, db, user,
connect_flags. It is mandatory to set the database server host using the
settings are optional.
Example 20.268. Keywords to configure a server
{
"myapp": {
"master": {
"master_0": {
"host": "db_server_host",
"port": "db_server_port",
"socket": "db_server_socket",
"db": "database_resp_schema",
"user": "user",
"password": "password",
"connect_flags": 0
}
},
"slave": {
"slave_0": {
"host": "db_server_host",
supported
clusters. The main part of the documentation focusses on the use
JSON array
2605
type. Optionally, symbolic names may be
statement will be executed on the slave
SELECT
host
JSON object
and
password
keyword. All other

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents