Oracle 5.0 Reference Manual page 2597

Table of Contents

Advertisement

"fetch_last_gtid" : "SELECT @@GLOBAL.GTID_DONE AS trx_id FROM DUAL",
"check_for_gtid" : "SELECT GTID_SUBSET('#GTID', @@GLOBAL.GTID_DONE) AS trx_id FROM DUAL",
"report_error":true
}
}
}
20.7.6.4.8. Cache integration
Copyright 1997-2012 the PHP Documentation Group. [2230]
Databases clusters can deliver different levels of consistency. As of PECL/mysqlnd_ms 1.2.0 it is
possible to advice the plugin to consider only cluster nodes that can deliver the consistency level
requested. For example, if using asynchronous MySQL Replication with its cluster-wide eventual
consistency, it is possible to request session consistency (read your writes) at any time using
mysqlnd_ms_set_quos. Please, see also the
Example 20.246. Recap: quality of service to request read your writes
/* Request session consistency: read your writes */
if (!mysqlnd_ms_set_qos($mysqli, MYSQLND_MS_QOS_CONSISTENCY_SESSION))
die(sprintf("[%d] %s\n", $mysqli->errno, $mysqli->error));
Assuming PECL/mysqlnd has been explicitly told to deliver no consistency level higher than eventual
consistency, it is possible to replace a database node read access with a client-side cache using time-
to-live (TTL) as its invalidation strategy. Both the database node and the cache may or may not serve
current data as this is what eventual consistency defines.
Replacing a database node read access with a local cache access can improve overall performance
and lower the database load. If the cache entry is every reused by other clients than the one creating
the cache entry, a database access is saved and thus database load is lowered. Furthermore, system
performance can become better if computation and delivery of a database query is slower than a local
cache access.
Example 20.247. Plugin config: no special entries for caching
{
"myapp": {
"master": {
"master_0": {
}
},
"slave": {
"slave_0": {
}
},
}
}
Example 20.248. Caching a slave request
Mysqlnd replication and load balancing plugin (mysqlnd_ms)
Version requirement, dependencies and status
Please, find more about version requirements, extension load order
dependencies and the current status in the
"host": "localhost",
"socket": "\/tmp\/mysql.sock"
"host": "127.0.0.1",
"port": "3306"
concepts
service level and consistency
2577
section!
introduction.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents