Skip to content

loyaltylion changes#1

Open
clarkdave wants to merge 3 commits intomasterfrom
loyaltylion/changes
Open

loyaltylion changes#1
clarkdave wants to merge 3 commits intomasterfrom
loyaltylion/changes

Conversation

@clarkdave
Copy link
Copy Markdown
Member

No description provided.

our rabbitmq consul setup likes to set the ServiceAddress to be its own
node name, which is the internal dns record. this breaks the
expectations of cloud map, which wants IP addresses

we can use Node.Address here instead which will be the IP address of
the node, and therefore the service address too (we don't have multiple
network interfaces for our nodes)

this also changes the service instance ID to the node name, which we
know is unique and is easier to identify
by default, consul-aws only creates 1:1 services with those registered
in consul, but we leverage tags to distinguish between difference kinds
of service instances (e.g. primary and replica database nodes)

this change takes tags into account when creating the list of services,
resulting in one service per tag+service combination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants