Oracle 5.0 Reference Manual page 2626

Table of Contents

Advertisement

Mysqlnd replication and load balancing plugin (mysqlnd_ms)
"port": "db_server_port",
"socket": "db_server_socket"
}
}
}
}
If a setting is omitted, the plugin will use the value provided by the user API call used to open a
connection. Please, see the
The configuration file format has been changed in version 1.1.0-beta to allow for chained filters. Filters
are responsible for filtering the configured list of servers to identify a server for execution of a given
statement. Filters are configured with the
in the order of their appearance. Defining filters is optional. A configuration section in the plugins
configuration file does not need to have a
Filters replace the
pick[]
same functionality.
Example 20.269. New
{
"myapp": {
"master": {
"master_0": {
"host": "localhost"
}
},
"slave": {
"slave_0": {
"host": "192.168.78.136",
"port": "3306"
},
"slave_1": {
"host": "192.168.78.137",
"port": "3306"
}
},
"filters": {
"roundrobin": [
]
}
}
}
The function
mysqlnd_ms_set_user_pick_server
is now done with the
user
accepts a mandatory
callback
mysqlnd_ms_set_user_pick_server.
Example 20.270. The
"filters": {
"user": {
"callback": "pick_server"
}
}
The validity of the configuration file is checked both when reading the configuration file and later when
establishing a connection. The configuration file is read during PHP request startup. At this early stage
using section names example [2604]
filter
filters
setting from prior versions. The new
filter, old functionality
roundrobin
filter. Some filters accept parameters. The
parameter to set the callback previously set through the function
filter replaces
user
mysqlnd_ms_set_user_pick_server
2606
above.
keyword. Filters are executed by mysqlnd_ms
entry.
random
has been removed. Setting a callback
user
and
provide the
roundrobin
filter requires and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents