[ https://issues.apache.org/jira/browse/KAFKA-6863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16464080#comment-16464080 ]
Manikumar commented on KAFKA-6863: ---------------------------------- Is this not related to KIP-235 / KAFKA-6195? https://cwiki.apache.org/confluence/display/KAFKA/KIP-235%3A+Add+DNS+alias+support+for+secured+connection > Kafka clients should try to use multiple DNS resolved IP addresses if the > first one fails > ----------------------------------------------------------------------------------------- > > Key: KAFKA-6863 > URL: https://issues.apache.org/jira/browse/KAFKA-6863 > Project: Kafka > Issue Type: Improvement > Components: clients > Affects Versions: 1.0.0, 1.1.0 > Reporter: Edoardo Comar > Assignee: Edoardo Comar > Priority: Major > Fix For: 2.0.0 > > > Currently Kafka clients resolve a symbolic hostname using > {{new InetSocketAddress(String hostname, int port)}} > which only picks one IP address even if the DNS has multiple records for the > hostname, as it calls > {{InetAddress.getAllByName(host)[0]}} > For some environments where the hostnames are mapped by the DNS to multiple > IPs, e.g. in clouds where the IPs point to the external load balancers, it > would be preferable that the client, on failing to connect to one of the IPs, > would try the other ones before giving up the connection. > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)