[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HA jobmanagers redirect to ip address of leader instead of hostname

Hi Jeroen,

this sounds like a bug in Flink that we return sometimes IP addresses instead of hostnames. Could you tell me which Flink version you are using? In the current version, the redirect address and the address retrieved from ZooKeeper should actually be the same.

In the future, we plan to remove the redirect message and simply forward the request to the current leader. This should hopefully avoid these kind of problems.


On Fri, Oct 26, 2018 at 1:40 PM Jeroen Steggink | knowsy <jeroen@xxxxxxxxx> wrote:

I'm having some troubles with Flink jobmanagers in a HA setup within

I have three jobmanagers, a Zookeeper cluster and a loadbalancer
(Openshift/Kubernetes Route) for the web ui / rest server on the
jobmanagers. Everything works fine, as long as the loadbalancer connects
to the leader. However, when the leader changes and the loadbalancer
connects to a non-leader, the jobmanager redirects to a leader using the
ip address of the host. Since the routing in our network is done using
hostnames, it doesn't know how to find the node using the ip address and
results in a timeout.

So I have a few questions:
1. Why is Flink using the ip addresses instead of the hostname which are
configured in the config? Other times it does use the hostname, like the
info send to Zookeeper.
2. Is there another way of coping with connections to non-leaders
instead of redirects? Maybe proxying through a non-leader to the leader?