Merge lp:~hrvojem/percona-server/bug1092106-5.5 into lp:percona-server/5.5

Proposed by Hrvoje Matijakovic
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 398
Proposed branch: lp:~hrvojem/percona-server/bug1092106-5.5
Merge into: lp:percona-server/5.5
Diff against target: 147 lines (+34/-33)
2 files modified
doc/source/conf.py (+1/-1)
doc/source/diagnostics/slow_extended_55.rst (+33/-32)
To merge this branch: bzr merge lp:~hrvojem/percona-server/bug1092106-5.5
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+143257@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/source/conf.py'
2--- doc/source/conf.py 2013-01-09 14:03:13 +0000
3+++ doc/source/conf.py 2013-01-15 09:08:23 +0000
4@@ -266,5 +266,5 @@
5 intersphinx_mapping = {
6 'ps51' : ('http://www.percona.com/doc/percona-server/5.1/', None),
7 'xtrabackup' : ('http://www.percona.com/doc/percona-xtrabackup', None),
8- 'ptoolkit' : ('http://www.percona.com/doc/percona-toolkit/2.0/', None)
9+ 'ptoolkit' : ('http://www.percona.com/doc/percona-toolkit/2.1/', None)
10 }
11
12=== modified file 'doc/source/diagnostics/slow_extended_55.rst'
13--- doc/source/diagnostics/slow_extended_55.rst 2012-12-14 09:58:23 +0000
14+++ doc/source/diagnostics/slow_extended_55.rst 2013-01-15 09:08:23 +0000
15@@ -8,7 +8,7 @@
16
17 The ability to log queries with microsecond precision is essential for measuring the work the |MySQL| server performs. The standard slow query log in |MySQL| 5.0 has only 1-second granularity, which is too coarse for all but the slowest queries. |MySQL| 5.1 has microsecond resolution, but does not have the extra information about query execution that is included in the |Percona Server|.
18
19-You can use Percona-Toolkit's pt-query-digest tool to aggregate similar queries together and report on those that consume the most execution time.
20+You can use *Percona-Toolkit*'s `pt-query-digest <http://www.percona.com/doc/percona-toolkit/2.1/pt-query-digest.html>`_ tool to aggregate similar queries together and report on those that consume the most execution time.
21
22
23 Version Specific Information
24@@ -33,6 +33,15 @@
25 System Variables
26 ================
27
28+.. variable:: log_slow_admin_statements
29+
30+ :cli: Yes
31+ :conf: Yes
32+ :scope: Global
33+ :dyn: yes
34+
35+When this variable is enabled, administrative statements will be logged to the slow query log. Upstream version of the |MySQL| server has implemented command line option with same name. Significant difference is that this feature is implemented as variable in |Percona Server|, that means it can be enabled/disabled dynamically without restarting the server.
36+
37 .. variable:: log_slow_filter
38
39 :cli: Yes
40@@ -113,7 +122,7 @@
41 :scope: Global, session
42 :dyn: Yes
43
44-Specifies that queries replayed by the slave SQL thread on a |MySQL| slave will be logged. The standard |MySQL| server will not log any queries executed by the slave's SQL thread.
45+Specifies that slow queries replayed by the slave SQL thread on a |MySQL| slave will be logged. Upstream version of the |MySQL| server has implemented command line option with same name. Significant difference is that this feature is implemented as variable in |Percona Server|, that means it can be enabled/disabled dynamically without restarting the server.
46
47 To start the logging from the slave thread, you should change the global value: set global :variable:`log_slow_slave_statements` ``=ON``; and then execute: ``STOP SLAVE; START SLAVE;``. This will destroy and recreate the slave SQL thread, so it will see the newly set global value.
48
49@@ -132,27 +141,37 @@
50
51 If ``TRUE``, statements executed by stored procedures are logged to the slow if it is open.
52
53+.. note::
54+
55+ Support for logging stored procedures doesn't involve triggers, so they won't be logged even if this feature is enabled.
56+
57 .. variable:: log_slow_verbosity
58
59- :cli: Yes
60- :conf: Yes
61- :scope: Global, session
62- :dyn: Yes
63 :version 5.5.8-20.0: Added ``profiling`` and ``profiling_use_getrusage``
64+ :cli: Yes
65+ :conf: Yes
66+ :scope: Global, session
67+ :dyn: Yes
68
69 Specifies how much information to include in your slow log. The value is a comma-delimited string, and can contain any combination of the following values:
70
71 * ``microtime``:
72- Log queries with microsecond precision (mandatory).
73+ Log queries with microsecond precision.
74
75 * ``query_plan``:
76- Log information about the query``s execution plan (optional).
77+ Log information about the query's execution plan.
78
79 * ``innodb``:
80- Log |InnoDB| statistics (optional).
81+ Log |InnoDB| statistics.
82+
83+ * ``minimal``:
84+ Equivalent to enabling just ``microtime``.
85+
86+ * ``standard``:
87+ Equivalent to enabling ``microtime,innodb``.
88
89 * ``full``:
90- Equivalent to all other values OR``ed together.
91+ Equivalent to all other values OR'ed together.
92
93 * ``profiling``:
94 Enables profiling of all queries in all connections.
95@@ -160,25 +179,13 @@
96 * ``profiling_use_getrusage``:
97 Enables usage of the getrusage function.
98
99-Values are OR``ed together.
100-
101-For example, to enable microsecond query timing and |InnoDB| statistics, set this option to ``microtime,innodb``. To turn all options on, set the option to ``full``.
102-
103-.. variable:: long_query_time
104-
105- :cli: Yes
106- :conf: Yes
107- :scope: Global, session
108- :dyn: Yes
109-
110-Specifies the time threshold for filtering queries out of the slow query log. The unit of time is seconds. This option has the same meaning as in a standard |MySQL| server, with the following changes:
111-
112-The option accepts fractional values. If set to 0.5, for example, queries longer than 1/2 second will be logged.
113-
114-Before version 1.01 of this feature, the value was an integer, and the unit of time was microseconds, not seconds.
115+Values are OR'ed together.
116+
117+For example, to enable microsecond query timing and |InnoDB| statistics, set this option to ``microtime,innodb`` or ``standard``. To turn all options on, set the option to ``full``.
118
119 .. variable:: slow_query_log_timestamp_always
120
121+ :version 5.5.10-20.1: Introduced (renamed from :variable:`log_slow_timestamp_every`)
122 :cli: Yes
123 :conf: Yes
124 :scope: Global
125@@ -186,12 +193,9 @@
126 :vartype: Boolean
127 :default: FALSE
128 :range: TRUE/FALSE
129- :version 5.5.10-20.1: Introduced (renamed from :variable:`log_slow_timestamp_every`)
130
131 If ``TRUE``, a timestamp is printed on every slow log record. Multiple records may have the same time.
132
133-**NOTE:** This variable has been renamed from log_slow_timestamp_every since 5.5.10-20.1.
134-
135 .. variable:: slow_query_log_timestamp_precision
136
137 :version 5.5.10-20.1: Introduced (renamed from ``slow_query_log_microseconds_timestamp``)
138@@ -211,9 +215,6 @@
139
140 # Time: 090402 9:23:36.123456 # User@Host: XXX @ XXX [10.X.X.X]
141
142-**NOTE:** This variable has been renamed from :variable:`slow_query_log_microseconds_timestamp` since 5.5.10-20.1.
143-
144-
145 .. variable:: slow_query_log_use_global_control
146
147 :cli: Yes

Subscribers

People subscribed via source and target branches