Oracle 5.0 Reference Manual page 2657

Table of Contents

Advertisement

MYSQLND_MS_QUERY_USE_SLAVE
(integer)
MYSQLND_MS_QUERY_USE_LAST_USED
(integer)
mysqlnd_ms_set_qos, quality of service filter and service level related
MYSQLND_MS_QOS_CONSISTENCY_EVENTUAL
(integer)
MYSQLND_MS_QOS_CONSISTENCY_SESSION
(integer)
MYSQLND_MS_QOS_CONSISTENCY_STRONG
(integer)
MYSQLND_MS_QOS_OPTION_GTID
(integer)
MYSQLND_MS_QOS_OPTION_AGE
(integer)
Other
The plugins version number can be obtained using
MYSQLND_MS_VERSION_ID
version number
calculate the version number as follows.
Version (part)
Major*10000
Minor*100
Patch
MYSQLND_MS_VERSION_ID
MYSQLND_MS_VERSION
MYSQLND_MS_VERSION_ID
(integer)
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
Mysqlnd replication and load balancing plugin (mysqlnd_ms)
If
mysqlnd_ms_is_select
MYSQLND_MS_QUERY_USE_SLAVE
read/write split mechanism recommends sending the query to a
MySQL replication slave server.
If
mysqlnd_ms_is_select
MYSQLND_MS_QUERY_USE_LAST_USED
in read/write split mechanism recommends sending the query to the
last used server.
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.
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.
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.
Used as a service level option with
parameterize session consistency.
Used as a service level option with
parameterize eventual consistency.
.
MYSQLND_MS_VERSION
MYSQLND_MS_VERSION_ID
(string)
Plugin version string, for example, "1.0.0-prototype".
Plugin version number, for example, 10000.
returns
returns
MYSQLND_MS_VERSION
is the string representation of the numerical
, which is an integer such as 10000. Developers can
Example
1*10000 = 10000
0*100 = 0
0 = 0
10000
2637
for a given query, the built-in
for a given query, the built-
mysqlnd_ms_set_qos
mysqlnd_ms_set_qos
or
to
to

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents