Oracle 5.0 Reference Manual page 2663

Table of Contents

Advertisement

Mysqlnd replication and load balancing plugin (mysqlnd_ms)
Statistic Description
Number of
trx_autocommit_on
autocommit
figure may be used to monitor activity related to the plugin
configuration setting trx_stickiness. If, for example, you want
to know if a certain API call invokes the
trx_autocommit(), which is a requirement for trx_stickiness,
you may call the user API function in question and check if the statistic
has changed. The statistic is modified only by the plugins internal
subclassed
trx_autocommit()
Number of
trx_autocommit_off
autocommit
Number of statements redirected to the master while
trx_master_forced
trx_stickiness=master
Number of successful SQL injections in autocommit mode as part of
gtid_autocommit_injections_success
the plugins client-side
Number of failed SQL injections in autocommit mode as part of the
gtid_autocommit_injections_failure
plugins client-side
Number of successful SQL injections in commit mode as part of the
gtid_commit_injections_success
plugins client-side
Number of failed SQL injections in commit mode as part of the plugins
gtid_commit_injections_failure
client-side
global transaction id
Number of successful SQL injections when implicit commit is detected
gtid_implicit_commit_injections_success
as part of the plugins client-side
commit happens, for example, when autocommit has been turned off,
a query is executed and autocommit is enabled again. In that case,
the statement will be committed by the server and SQL to maintain
is injected before the autocommit is re-enabled. Another sequence
causing an an implicit commit is begin(), query(), begin(). The
second call to
by the first call to begin().
actual PHP user API calls.
Number of failed SQL injections when implicit commit is detected as
gtid_implicit_commit_injections_failure
part of the plugins client-side
commit happens, for example, when autocommit has been turned off,
a query is executed and autocommit is enabled again. In that case,
the statement will be committed by the server and SQL to maintain is
injected before the autocommit is re-enabled.
Examples
Example 20.299.
mysqlnd_ms_get_stats
<?php
printf("mysqlnd_ms.enable = %d\n", ini_get("mysqlnd_ms.enable"));
printf("mysqlnd_ms.collect_statistics = %d\n", ini_get("mysqlnd_ms.collect_statistics"));
var_dump(mysqlnd_ms_get_stats());
?>
The above example will output:
mysqlnd_ms.enable = 1
mysqlnd_ms.collect_statistics = 1
array(26) {
["use_slave"]=>
string(1) "0"
mode activations via API calls. This
method.
mode deactivations via API calls.
and
autocommit
global transaction id
global transaction id
global transaction id
emulation.
global transaction id
will implicitly commit the transaction started
begin()
begin()
global transaction id
example
2643
library function
mysqlnd
mode is disabled.
emulation.
emulation.
emulation.
emulation. Implicit
refers to internal library calls not
emulation. Implicit
Version
Since 1.0.0.
Since 1.0.0.
Since 1.0.0.
Since 1.2.0.
Since 1.2.0.
Since 1.2.0.
Since 1.2.0.
Since 1.2.0.
Since 1.2.0.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents