~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
User Statistics
===============

The :program:`logging_stats` plugin provides user statistics as
DATA_DICTIONARY tables.

.. _logging_stats_loading:

Loading
-------

This plugin is loaded by default, but it may need to be configured.  See
the plugin's :ref:`logging_stats_configuration` and
:ref:`logging_stats_variables`.

To stop the plugin from loading by default, start :program:`drizzled`
with::

   --plugin-remove=logging_stats

.. seealso:: :doc:`/options` for more information about adding and removing plugins.

.. _logging_stats_configuration:

Configuration
-------------

These command line options configure the plugin when :program:`drizzled`
is started.  See :doc:`/configuration` for more information about specifying
command line options.

.. program:: drizzled

.. option:: --logging-stats.bucket-count ARG

   :Default: 10
   :Variable: :ref:`logging_stats_bucket_count <logging_stats_bucket_count>`

   Max number of range locks to use for Scoreboard.

.. option:: --logging-stats.disable 

   :Default: 
   :Variable:

   Disable logging statistics collection.

.. option:: --logging-stats.max-user-count ARG

   :Default: 500
   :Variable: :ref:`logging_stats_max_user_count <logging_stats_max_user_count>`

   Max number of users to log.

.. option:: --logging-stats.scoreboard-size ARG

   :Default: 2000
   :Variable: :ref:`logging_stats_scoreboard_size <logging_stats_scoreboard_size>`

   Max number of concurrent sessions to log.

.. _logging_stats_variables:

Variables
---------

These variables show the running configuration of the plugin.
See `variables` for more information about querying and setting variables.

.. _logging_stats_bucket_count:

* ``logging_stats_bucket_count``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--logging-stats.bucket-count`

   Max number of range locks to use for Scoreboard.

.. _logging_stats_enable:

* ``logging_stats_enable``

   :Scope: Global
   :Dynamic: No
   :Option:

   If logging stats is enabled or not.

.. _logging_stats_max_user_count:

* ``logging_stats_max_user_count``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--logging-stats.max-user-count`

   Max number of users to log.

.. _logging_stats_scoreboard_size:

* ``logging_stats_scoreboard_size``

   :Scope: Global
   :Dynamic: No
   :Option: :option:`--logging-stats.scoreboard-size`

   Max number of concurrent sessions to log.

.. _logging_stats_examples:

Examples
--------

Sorry, there are no examples for this plugin.

.. _logging_stats_authors:

Authors
-------

Joseph Daly

.. _logging_stats_version:

Version
-------

This documentation applies to **logging_stats 0.1**.

To see which version of the plugin a Drizzle server is running, execute:

.. code-block:: mysql

   SELECT MODULE_VERSION FROM DATA_DICTIONARY.MODULES WHERE MODULE_NAME='logging_stats'


Changelog
---------

v0.1
^^^^
* First release.