kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edoardo Comar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-6863) Kafka clients should try to use multiple DNS resolved IP addresses if the first one fails
Date Fri, 04 May 2018 13:14:00 GMT
Edoardo Comar created KAFKA-6863:
------------------------------------

             Summary: 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.1.0, 1.0.0
            Reporter: Edoardo Comar
            Assignee: Edoardo Comar
             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)

Mime
View raw message