AWS plugin returns privateDns field or ip address as hostname for discovered instances in cluster. PrivateDns always has ip-xx format. Is there any way to use own hostnames for instances discovered with AWS plugin? The best way I see is private ip name lookup instead of using privateDns fields.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
instead:Private IP addresses and private DNS records are the only two options supported by AWS peer discovery.There is a different implementation that's not AWS specific and can use preconfigured DNS A/AAAA records and reverse lookups for discovery
http://www.rabbitmq.com/cluster-formation.html#peer-discovery-dns
On Mon, Feb 19, 2018 at 4:29 PM, Alexander Shlygin <z.rest...@gmail.com> wrote:
AWS plugin returns privateDns field or ip address as hostname for discovered instances in cluster. PrivateDns always has ip-xx format. Is there any way to use own hostnames for instances discovered with AWS plugin? The best way I see is private ip name lookup instead of using privateDns fields.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
The lookup method string tries to parse the hostname as an IPv4 or IPv6 string and return the resulting IP address. It is automatically tried first when native is not in the Methods list. To skip it in this case, the pseudo lookup method nostring can be inserted anywhere in the Methods list.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
NODENAME=rabbit@`ip addr show eth0 | grep -oP 'inet \K((\d{1,3}.){1,3}\d{1,3})'`along with cluster_formation.aws.use_private_ip = true in the config file. By this way I didn't have to change my custom hostname and the auto discovery works without any issues.USE_LONGNAME=trueNODENAME=rabbit@`hostname -i`