Mysqlnd replication and load balancing plugin (
mysqlnd_ms
)
2637
MYSQLND_MS_QUERY_USE_SLAVE
(integer)
If
mysqlnd_ms_is_select
returns
MYSQLND_MS_QUERY_USE_SLAVE
for a given query, the built-in
read/write split mechanism recommends sending the query to a
MySQL replication slave server.
MYSQLND_MS_QUERY_USE_LAST_USED
(integer)
If
mysqlnd_ms_is_select
returns
MYSQLND_MS_QUERY_USE_LAST_USED
for a given query, the built-
in read/write split mechanism recommends sending the query to the
last used server.
mysqlnd_ms_set_qos
, quality of service filter and service level related
MYSQLND_MS_QOS_CONSISTENCY_EVENTUAL
(integer)
Use to request the service level eventual consistency from the
mysqlnd_ms_set_qos
. Eventual consistency is the default
quality of service when reading from an asynchronous MySQL
replication slave. Data returned in this service level may or may not
be stale, depending on whether the selected slaves happen to have
replicated the latest changes from the MySQL replication master or
not.
MYSQLND_MS_QOS_CONSISTENCY_SESSION
(integer)
Use to request the service level session consistency from the
mysqlnd_ms_set_qos
. Session consistency is defined as read
your writes. The client is guaranteed to see his latest changes.
MYSQLND_MS_QOS_CONSISTENCY_STRONG
(integer)
Use to request the service level strong consistency from the
mysqlnd_ms_set_qos
. Strong consistency is used to ensure all
clients see each others changes.
MYSQLND_MS_QOS_OPTION_GTID
(integer)
Used as a service level option with
mysqlnd_ms_set_qos
to
parameterize session consistency.
MYSQLND_MS_QOS_OPTION_AGE
(integer)
Used as a service level option with
mysqlnd_ms_set_qos
to
parameterize eventual consistency.
Other
The plugins version number can be obtained using
MYSQLND_MS_VERSION
or
MYSQLND_MS_VERSION_ID
.
MYSQLND_MS_VERSION
is the string representation of the numerical
version number
MYSQLND_MS_VERSION_ID
, which is an integer such as 10000. Developers can
calculate the version number as follows.
Version (part)
Example
Major*10000
1*10000 = 10000
Minor*100
0*100 = 0
Patch
0 = 0
MYSQLND_MS_VERSION_ID
10000
MYSQLND_MS_VERSION
(string)
Plugin version string, for example, “1.0.0-prototype”.
MYSQLND_MS_VERSION_ID
(integer)
Plugin version number, for example, 10000.
20.7.6.8. Mysqlnd_ms Functions
Copyright 1997-2012 the PHP Documentation Group. [2230]
20.7.6.8.1.
mysqlnd_ms_get_last_gtid
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysqlnd_ms_get_last_gtid
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...