Oracle 5.0 Reference Manual page 2633

Table of Contents

Advertisement

Mysqlnd replication and load balancing plugin (mysqlnd_ms)
Filter:
object
roundrobin
weights can be assigned to reflect differently sized machines, to
prefer co-located slaves which have a low network latency or, to
configure a standby failover server. In the latter case, you may want
to assign the standby server a very low weight in relation to the
other servers. For example, given the configuration above
will get only some eight percent of the requests in the average. As
long as
and
slave1
slave2
similar to a standby failover server. Upon failure of
slave2, the usage of
slave3
on failover before using
Valid weight values range from 1 to 65535.
Unknown arguments are ignored by the filter. No warning or error is
given.
The filter expects one or more servers as input. Outputs one server.
A filter sequence such as random,
warning and an error message to be set on the connection handle
when executing a statement.
List of filter arguments.
Keyword
Description
E nables or disabled random once load
sticky
balancing policy. See above.
A ssigns a load balancing weight/priority to a
weight
server. Please, see above for a description.
If using the
roundrobin
configured slave servers to pick a server for statement execution.
If the plugin reaches the end of the list, it wraps around to the
beginning of the list and picks the first configured slave server.
Example 20.279.
roundrobin
{
"myapp": {
"master": {
"master_0": {
"host": "localhost"
}
},
"slave": {
"slave_0": {
"host": "192.168.78.136",
"port": "3306"
}
},
"filters": [
"roundrobin"
]
}
}
Expects one or more servers as input. Outputs one server. A filter
sequence such as roundrobin,
and an error message to be set on the connection handle when
executing a statement.
2613
are running, it will be used sparsely,
increases. Please, check the notes
this way.
weight
roundrobin
filter, the plugin iterates over the list of
filter
may cause a warning
random
slave3
and
slave1
may cause a
Version
Since 1.2.0.
Since 1.4.0.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents