Oracle 5.0 Reference Manual page 2643

Table of Contents

Advertisement

Mysqlnd replication and load balancing plugin (mysqlnd_ms)
}
Keyword
strategy
remember_failed
max_retries
"slave_0": {
"host": "192.168.78.136",
"port": "3306"
}
},
"failover": {"strategy": "master" }
}
Description
Failover policy. Possible values:
(default), master,
loop_before_master
A value of
disabled
failover.
Setting
instructs the plugin to try
master
to connect to a master in case of a slave
connection error. If the master connection
attempt fails, the plugin exists the failover loop
and returns an error to the user.
If using
loop_before_master
request is made, the plugin tries to connect to
other slaves before failing over to a master.
If multiple master are given and multi master
is enabled, the plugin also loops over the list
of masters and attempts to connect before
returning an error to the user.
Remember failures for the duration of a web
request. Default: false.
If set to
the plugin will remember failed
true
hosts and skip the hosts in all future load
balancing made for the duration of the current
web request.
Maximum number of connection attempts
before skipping host. Default:
The setting is used to prevent hosts from
being dropped of the host list upon the
first failure. If set to
n >
keep the node in the node list even after
a failed connection attempt. The node
will not be removed immediately from the
slave respectively master lists after the
first connection failure but instead be tried
to connect to up to
n
balancing rounds before being removed.
2623
disabled
disables automatic
and a slave
(no limit).
0
0, the plugin will
times in future load
Version
Since 1.4.0.
Since 1.4.0.
The feature
is only
available
together
with the
and
random
roundrobin
load
balancing
filter. Use of
the setting is
recommended.
Since 1.4.0.
The feature
is only
available
together
with the
and
random
roundrobin
load
balancing
filter.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents