Oracle 5.0 Reference Manual page 2632

Table of Contents

Advertisement

Mysqlnd replication and load balancing plugin (mysqlnd_ms)
}
}
Both the
priority, a weight for a server, since PECL/mysqlnd_ms 1.4.0.
If the
weight
weight for all servers. Servers must be given an alias name in the
slave
reference servers for assigning a priority with weight.
Example 20.277. Referencing error
[E_RECOVERABLE_ERROR] mysqli_real_connect(): (mysqlnd_ms) Unknown server 's
Using a wrong alias name with
similar to the shown above.
If
weight
Example 20.278. Assigning a
{
"myapp": {
}
}
At the average a server assigned a weight of two will be selected
twice as often as a server assigned a weight of one. Different
"random": {
"sticky": "1"
}
and
random
roundrobin
argument is passed to the filter, it must assign a
respectively
server lists. The alias must be used to
master
weight
is omitted, the default weight of all servers is one.
weight
"master": {
"master1":{
"host":"localhost",
"socket":"\/var\/run\/mysql\/mysql.sock"
}
},
"slave": {
"slave1": {
"host":"192.168.2.28",
"port":3306
},
"slave2": {
"host":"192.168.2.29",
"port":3306
},
"slave3": {
"host":"192.0.43.10",
"port":3306
},
},
"filters": {
"random": {
"weights": {
"slave1":8,
"slave2":4,
"slave3":1,
"master1":1
}
}
}
2612
filters support setting a
may result in an error
for load balancing

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents