Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Consul Configuration

Gavin M. Roy edited this page May 24, 2016 · 17 revisions

The following settings impact the configuration of the consul backend for the autocluster plugin:

Consul Scheme
The URI scheme to use when connecting to Consul
Consul Host
The hostname to use when connecting to Consul's API
Consul Port
The port to use when connecting to Consul's API
Consul ACL Token
The Consul access token to use when registering the node with Consul (optional)
Consul Service Name
The name of the service to register with Consul for automatic clustering
Consul Service Prefix
A prefix that is prepending to the service name when registering with Consul for automatic clustering (optional)
Consul Service Port
Used to set a port for the service in Consul, allowing for the automatic clustering service registration to double as a general RabbitMQ service registration. Note: Set the SERVICE_PORT to an empty value to disable port announcement and health checking. For example: SERVICE_PORT=""
Consul Service TTL
Used to specify the Consul health check TTL interval that is used to let Consul know that RabbitMQ is alive an healthy.

Configuration Details

Setting Environment Variable Setting Key Type Default
Consul Scheme CONSUL_SCHEME consul_scheme string http
Consul Host CONSUL_HOST consul_host string localhost
Consul Port CONSUL_PORT consul_port integer 8500
Consul ACL CONSUL_ACL consul_acl string  
Consul Service CONSUL_SERVICE consul_service string rabbitmq
Consul Service Prefix CONSUL_SERVICE_PREFIX consul_service_prefix string  
Consul Service Port CONSUL_SERVICE_PORT consul_service_port integer 5672
Consul Service TTL CONSUL_SERVICE_TTL consul_service_ttl integer 30

Example rabbitmq.config

[{autocluster,
  [
    {consul_host, "localhost"},
    {consul_port, 8500},
    {consul_acl, "example-acl-token"},
    {consul_service, "rabbitmq-test"},
    {cluster_name, "test"}
  ]}
].
  • Home
  • Configuration
    • [General Settings](General Settings)
    • [AWS](AWS Configuration)
    • [Consul](Consul Configuration)
    • [DNS](DNS Configuration)
    • [etcd](etcd Configuration)
    • [k8s](k8s Configuration)
  • Development
  • Roadmap
Clone this wiki locally