RabbitMQ Applier¶
The RabbitMQ applier plugin, named rabbitmq, applies replication events to a RabbitMQ server. This can be used to create advanced replication solutions, to visualize data, or to build triggers.
Loading¶
To load this plugin, start drizzled with:
--plugin-add=rabbitmq
Loading the plugin may not enable or configure it. See the plugin’s Configuration and Variables.
See also
Plugin Options for more information about adding and removing plugins.
Configuration¶
These command line options configure the plugin when drizzled is started. See Command Line Options for more information about specifying command line options.
- --rabbitmq.exchange ARG¶
- Default:
ReplicationExchange
- Variable:
Name of RabbitMQ exchange to publish to
- --rabbitmq.host ARG¶
- Default:
localhost
- Variable:
Host name to connect to
- --rabbitmq.password ARG¶
- Default:
guest
- Variable:
RabbitMQ password
- --rabbitmq.port ARG¶
- Default:
5672
- Variable:
Port to connect to
- --rabbitmq.routingkey ARG¶
- Default:
ReplicationRoutingKey
- Variable:
Name of RabbitMQ routing key to use
- --rabbitmq.use-replicator ARG¶
- Default:
default_replicator
- Variable:
Name of the replicator plugin to use (default=’default_replicator’)
- --rabbitmq.username ARG¶
- Default:
guest
- Variable:
RabbitMQ username
- --rabbitmq.virtualhost ARG¶
- Default:
/
- Variable:
RabbitMQ virtualhost
Variables¶
These variables show the running configuration of the plugin. See variables for more information about querying and setting variables.
rabbitmq_exchange- Scope:
Global
- Dynamic:
No
- Option:
Name of RabbitMQ exchange to publish to
rabbitmq_host- Scope:
Global
- Dynamic:
No
- Option:
Host name to connect to
rabbitmq_password- Scope:
Global
- Dynamic:
No
- Option:
RabbitMQ password
rabbitmq_port- Scope:
Global
- Dynamic:
No
- Option:
Port to connect to
rabbitmq_routingkey- Scope:
Global
- Dynamic:
No
- Option:
Name of RabbitMQ routing key to use
rabbitmq_username- Scope:
Global
- Dynamic:
No
- Option:
RabbitMQ username
rabbitmq_virtualhost- Scope:
Global
- Dynamic:
No
- Option:
RabbitMQ virtualhost
Implementation Details¶
drizzled will not sart if the rabbitmq server is not available.
If the rabbitmq server goes away, the plugin will try to reconnect and resend the message 3 times, after that, the transaction is rolled back.
Version¶
This documentation applies to rabbitmq 0.1 (Drizzle 7.0).
To see which version of the rabbitmq plugin a Drizzle server is running,
execute:
SELECT MODULE_VERSION FROM DATA_DICTIONARY.MODULES WHERE MODULE_NAME='rabbitmq'