[ 
https://issues.apache.org/jira/browse/FLINK-29572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17615214#comment-17615214
 ] 

Kevin Li commented on FLINK-29572:
----------------------------------

{quote}Task Manager Log:
2022-10-08 17:22:32,983 INFO  
org.apache.flink.runtime.util.LeaderRetrievalUtils           [] - Trying to 
select the network interface and address to use by connecting to the leading 
JobManager.
2022-10-08 17:22:32,984 INFO  
org.apache.flink.runtime.util.LeaderRetrievalUtils           [] - TaskManager 
will try to connect for PT10S before falling back to heuristics
2022-10-08 17:22:33,356 DEBUG org.apache.flink.runtime.net.ConnectionUtils      
           [] - Retrieved new target address 
flink-jobmanager/172.20.133.241:6123 for akka URL 
[akka.tcp://flink@flink-jobmanager:6123/user/rpc/resourcemanager_*]
.
2022-10-08 17:22:33,357 DEBUG org.apache.flink.runtime.net.ConnectionUtils      
           [] - Trying to connect to [flink-jobmanager/172.20.133.241:6123] 
from local address [localhost/127.0.0.1] with timeout [100]
2022-10-08 17:22:33,361 DEBUG org.apache.flink.runtime.net.ConnectionUtils      
           [] - Using InetAddress.getLoopbackAddress() immediately for 
connecting address
2022-10-08 17:22:33,361 INFO  
org.apache.flink.runtime.taskexecutor.TaskManagerRunner      [] - TaskManager 
will use hostname/address 'localhost' (127.0.0.1) for communication.
2022-10-08 17:22:33,416 INFO  
org.apache.flink.runtime.rpc.akka.AkkaRpcServiceUtils        [] - Trying to 
start actor system, external address 127.0.0.1:6122, bind address 
0.0.0.0:6122.{quote}

> Flink Task Manager skip loopback interface for resource manager registration
> ----------------------------------------------------------------------------
>
>                 Key: FLINK-29572
>                 URL: https://issues.apache.org/jira/browse/FLINK-29572
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / Core
>    Affects Versions: 1.15.2
>         Environment: Flink 1.15.2
> Kubernetes with Istio Proxy
>            Reporter: Kevin Li
>            Priority: Major
>
> Currently Flink Task Manager use different local interface to bind to connect 
> to Resource Manager. First one is Loopback interface. Normally if Job Manager 
> is running on remote host/container, using loopback interface to connect will 
> fail and it will pick up correct IP address.
>  
> However, if Task Manager is running with some proxy, loopback interface can 
> connect to remote host as well. This will result 127.0.0.1 reported to 
> Resource Manager during registration, even Job Manager/Resource Manager runs 
> on remote host, and problem will happen. For us, only one Task Manager can 
> register in this case.
>  
>  
>  
> I suggest adding configuration to skip Loopback interface check if we know 
> Job/Resource Manager is running on remote host/container.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to