You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Edoardo Comar (JIRA)" <ji...@apache.org> on 2018/05/04 13:14:00 UTC
[jira] [Created] (KAFKA-6863) Kafka clients should try to use
multiple DNS resolved IP addresses if the first one fails
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)