Massimiliano pinto doc update 2.1 (#125)
* Update Nagios-Plugins.md * Update MM-Monitor.md * Update Nagios-Plugins.md * Update Nagios-Plugins.md * Update Galera-Cluster-Connection-Routing-Tutorial.md * Update Galera-Cluster-Connection-Routing-Tutorial.md * Update RabbitMQ-Setup-And-MaxScale-Integration.md * Update MaxScale-Tutorial.md * Update Cache.md * Update Transaction-Performance-Monitoring-Filter.md * Update RabbitMQ-Consumer-Client.md * Update Building-MaxScale-from-Source-Code.md * Update MariaDB-MaxScale-Installation-Guide.md * Update Install-MariaDB-MaxScale-Using-a-Tarball.md * Update RabbitMQ-Setup-And-MaxScale-Integration.md * Update RabbitMQ-Consumer-Client.md
This commit is contained in:

committed by
GitHub

parent
33b809eec1
commit
695ba19965
@ -654,7 +654,8 @@ created, under which the actual instance specific cache directories are created.
|
||||
|
||||
Specifies whether RocksDB should collect statistics that later can be queried
|
||||
using `maxadmin`. It should be noted, though, that collecting RocksDB statistics
|
||||
is not without a cost. From the [RocksDB Documentation](https://github.com/facebook/rocksdb/wiki/Statistics)
|
||||
is not without a cost.
|
||||
From the [RocksDB Documentation](https://github.com/facebook/rocksdb/wiki/Statistics)
|
||||
|
||||
_The overhead of statistics is usually small but non-negligible. We usually
|
||||
observe an overhead of 5%-10%._
|
||||
|
@ -1,8 +1,10 @@
|
||||
#RabbitMQ Consumer Client
|
||||
# RabbitMQ Consumer Client
|
||||
|
||||
## Overview
|
||||
|
||||
This utility tool is used to read messages from a RabbitMQ broker sent by the [RabbitMQ Filter](RabbitMQ-Filter.md) and forward these messages into an SQL database as queries.
|
||||
This utility tool is used to read messages from a RabbitMQ broker sent by the
|
||||
[RabbitMQ Filter](RabbitMQ-Filter.md) and forward these messages into an
|
||||
SQL database as queries.
|
||||
|
||||
## Command Line Arguments
|
||||
|
||||
@ -14,7 +16,9 @@ The **RabbitMQ Consumer Client** only has one command line argument.
|
||||
|
||||
## Installation
|
||||
|
||||
To install the RabbitMQ Consumer Client you ca either use the provided packages or you can compile it from source code. The source code is included as a part of the MariaDB MaxScale source code and can be found in the `rabbitmq_consumer` folder.
|
||||
To install the RabbitMQ Consumer Client you can either use the provided packages
|
||||
or you can compile it from source code. The source code is included as a part of the
|
||||
MariaDB MaxScale source code and can be found in the `rabbitmq_consumer` folder.
|
||||
|
||||
## Building from source
|
||||
|
||||
@ -48,9 +52,12 @@ include and library directories 'in buildvars.inc'
|
||||
|
||||
## Configuration
|
||||
|
||||
The consumer client requires that the `consumer.cnf` configuration file is either be present in the `etc` folder of the installation directory or in the folder specified by the `-c` argument.
|
||||
The consumer client requires that the `consumer.cnf` configuration file is either
|
||||
be present in the `etc` folder of the installation directory or in the folder
|
||||
specified by the `-c` argument.
|
||||
|
||||
The source broker, the destination database and the message log file can be configured into the separate `consumer.cnf` file.
|
||||
The source broker, the destination database and the message log file can be
|
||||
configured into the separate `consumer.cnf` file.
|
||||
|
||||
| Option | Description |
|
||||
|-----------|---------------------------------------------|
|
||||
|
@ -2,11 +2,17 @@
|
||||
|
||||
## Overview
|
||||
|
||||
The Transaction Performance Monitoring (TPM) filter is a filter module for MaxScale that monitors every SQL statement that passes through the filter. The filter groups a series of SQL statements into a transaction by detecting 'commit' or 'rollback' statements. It logs all committed transactions with necessary information, such as timestamp, client, SQL statements, latency, etc., which can be used later for transaction performance analysis.
|
||||
The Transaction Performance Monitoring (TPM) filter is a filter module for MaxScale
|
||||
that monitors every SQL statement that passes through the filter.
|
||||
The filter groups a series of SQL statements into a transaction by detecting
|
||||
'commit' or 'rollback' statements. It logs all committed transactions with necessary
|
||||
information, such as timestamp, client, SQL statements, latency, etc., which
|
||||
can be used later for transaction performance analysis.
|
||||
|
||||
## Configuration
|
||||
|
||||
The configuration block for the TPM filter requires the minimal filter options in it's section within the maxscale.cnf file, stored in /etc/maxscale.cnf.
|
||||
The configuration block for the TPM filter requires the minimal filter
|
||||
options in it's section within the maxscale.cnf file, stored in /etc/maxscale.cnf.
|
||||
|
||||
```
|
||||
[MyLogFilter]
|
||||
@ -32,7 +38,8 @@ The TPM filter accepts a number of optional parameters.
|
||||
|
||||
### Filename
|
||||
|
||||
The name of the output file created for performance logging. The default filename is **tpm.log**.
|
||||
The name of the output file created for performance logging.
|
||||
The default filename is **tpm.log**.
|
||||
|
||||
```
|
||||
filename=/tmp/SqlQueryLog
|
||||
@ -40,7 +47,10 @@ filename=/tmp/SqlQueryLog
|
||||
|
||||
### Source
|
||||
|
||||
The optional `source` parameter defines an address that is used to match against the address from which the client connection to MaxScale originates. Only sessions that originate from this address will be logged.
|
||||
The optional `source` parameter defines an address that is used
|
||||
to match against the address from which the client connection
|
||||
to MaxScale originates. Only sessions that originate from this
|
||||
address will be logged.
|
||||
|
||||
```
|
||||
source=127.0.0.1
|
||||
@ -48,7 +58,10 @@ source=127.0.0.1
|
||||
|
||||
### User
|
||||
|
||||
The optional `user` parameter defines a user name that is used to match against the user from which the client connection to MaxScale originates. Only sessions that are connected using this username are logged.
|
||||
The optional `user` parameter defines a user name that is used
|
||||
to match against the user from which the client connection to
|
||||
MaxScale originates. Only sessions that are connected using
|
||||
this username are logged.
|
||||
|
||||
```
|
||||
user=john
|
||||
@ -56,7 +69,8 @@ user=john
|
||||
|
||||
### Delimiter
|
||||
|
||||
The optional `delimiter` parameter defines a delimiter that is used to distinguish columns in the log. The default delimiter is **`:::`**.
|
||||
The optional `delimiter` parameter defines a delimiter that is used to
|
||||
distinguish columns in the log. The default delimiter is **`:::`**.
|
||||
|
||||
```
|
||||
delimiter=:::
|
||||
@ -64,7 +78,9 @@ delimiter=:::
|
||||
|
||||
### Query_delimiter
|
||||
|
||||
The optional `query_delimiter` defines a delimiter that is used to distinguish different SQL statements in a transaction. The default query delimiter is **`@@@`**.
|
||||
The optional `query_delimiter` defines a delimiter that is used to
|
||||
distinguish different SQL statements in a transaction.
|
||||
The default query delimiter is **`@@@`**.
|
||||
|
||||
```
|
||||
query_delimiter=@@@
|
||||
@ -72,7 +88,11 @@ query_delimiter=@@@
|
||||
|
||||
### Named_pipe
|
||||
|
||||
**`named_pipe`** is the path to a named pipe, which TPM filter uses to communicate with 3rd-party applications (e.g., [DBSeer](http://dbseer.org)). Logging is enabled when the router receives the character '1' and logging is disabled when the router receives the character '0' from this named pipe. The default named pipe is **`/tmp/tpmfilter`** and logging is **disabled** by default.
|
||||
**`named_pipe`** is the path to a named pipe, which TPM filter uses to
|
||||
communicate with 3rd-party applications (e.g., [DBSeer](http://dbseer.org)).
|
||||
Logging is enabled when the router receives the character '1' and logging is
|
||||
disabled when the router receives the character '0' from this named pipe.
|
||||
The default named pipe is **`/tmp/tpmfilter`** and logging is **disabled** by default.
|
||||
|
||||
named_pipe=/tmp/tpmfilter
|
||||
|
||||
@ -89,7 +109,8 @@ Similarly, the following command disables the logging:
|
||||
|
||||
### Example 1 - Log Transactions for Performance Analysis
|
||||
|
||||
You want to log every transaction with its SQL statements and latency for future transaction performance analysis.
|
||||
You want to log every transaction with its SQL statements and latency
|
||||
for future transaction performance analysis.
|
||||
|
||||
Add a filter with the following definition:
|
||||
|
||||
@ -111,7 +132,8 @@ passwd=mypasswd
|
||||
filters=PerformanceLogger
|
||||
```
|
||||
|
||||
After the filter reads the character '1' from its named pipe, the following is an example log that is generated from the above TPM filter with the above configuration:
|
||||
After the filter reads the character '1' from its named pipe, the following
|
||||
is an example log that is generated from the above TPM filter with the above configuration:
|
||||
|
||||
|
||||
```
|
||||
@ -120,4 +142,4 @@ After the filter reads the character '1' from its named pipe, the following is a
|
||||
...
|
||||
```
|
||||
|
||||
Note that 3 and 5 are latencies of each transaction in milliseconds.
|
||||
Note that 3 and 5 are latencies of each transaction in milliseconds.
|
||||
|
Reference in New Issue
Block a user