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:rabbitmq_exchange

Name of RabbitMQ exchange to publish to

--rabbitmq.host ARG
Default:localhost
Variable:rabbitmq_host

Host name to connect to

--rabbitmq.password ARG
Default:guest
Variable:rabbitmq_password

RabbitMQ password

--rabbitmq.port ARG
Default:5672
Variable:rabbitmq_port

Port to connect to

--rabbitmq.routingkey ARG
Default:ReplicationRoutingKey
Variable:rabbitmq_routingkey

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 username

--rabbitmq.virtualhost ARG
Default:/
Variable:rabbitmq_virtualhost

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:--rabbitmq.exchange

    Name of RabbitMQ exchange to publish to

  • rabbitmq_host

    Scope:Global
    Dynamic:No
    Option:--rabbitmq.host

    Host name to connect to

  • rabbitmq_port

    Scope:Global
    Dynamic:No
    Option:--rabbitmq.port

    Port to connect to

  • rabbitmq_routingkey

    Scope:Global
    Dynamic:No
    Option:--rabbitmq.routingkey

    Name of RabbitMQ routing key to use

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'

Changelog

Authors

Marcus Eriksson

Table Of Contents

Previous topic

Slave Applier

Next topic

ZeroMQ Applier

This Page