Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Update config examples for 0.7.0
Browse files Browse the repository at this point in the history
The config examples used incorrect logger configuration and were difficult to
read. This change fixes them to use 0.7.0 logger configuration, defaults to
debug to make it easier for new users to understand why their cluster won't
start up, and adjust the formatting to make for easier readability.
  • Loading branch information
jcarr-sailthru authored and michaelklishin committed May 18, 2017
1 parent 37fab3d commit 7c32cd6
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,32 +256,31 @@ The following configuration example enables the autoscaling based cluster discov

```erlang
[
{rabbit, [
{log_levels, [{autocluster, info}, {connection, info}]}
]},
{autocluster, [
{backend, aws},
{aws_autoscaling, true},
{aws_ec2_region, "us-west-2"}
]}
].
{autocluster, [
{autocluster_log_level, debug},
{backend, aws},
{aws_autoscaling, true},
{aws_ec2_region, "us-west-2"}
]}
].
```

For non-autoscaling group based clusters, the following configuration demonstrates how to limit EC2 instances in the cluster to nodes with the tags ``region=us-west-2`` and ``service=rabbitmq``. It also specifies the AWS access key and AWS secret key.

```erlang
[
{rabbit, [
{log_levels, [{autocluster, info}, {connection, info}]}
]},
{autocluster, [
{backend, aws},
{aws_ec2_tags, [{"region", "us-west-2"}, {"service", "rabbitmq"}]},
{aws_ec2_region, "us-east-1"},
{aws_access_key, "AKIDEXAMPLE"},
{aws_secret_key, "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY"}
]}
].
{autocluster, [
{autocluster_log_level, debug},
{backend, aws},
{aws_ec2_tags, [
{"region", "us-west-2"},
{"service", "rabbitmq"}
]},
{aws_ec2_region, "us-east-1"},
{aws_access_key, "AKIDEXAMPLE"},
{aws_secret_key, "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY"}
]}
].
```

When using environment variables, the tags must be provided in JSON format:
Expand Down

0 comments on commit 7c32cd6

Please sign in to comment.