0

無法連接來自lamda功能的DAX api調用在連接時出錯。在aws VPC中將DAX連接到lamda功能VPC

TART RequestId: 91744a72-6b81-11e7-b7b9-81ab3e1f67f1 Version: $LATEST 
[2017-07-18 06:23:09.356] NO-REQUEST-ID ERROR c.a.d.c.SocketTubePool - error connecting to /172.31.20.237:8111 java.net.ConnectException: Connection timed out (Connection timed out) 
[2017-07-18 06:23:09.356] NO-REQUEST-ID ERROR c.a.d.c.SocketTubePool - error connecting to /172.31.20.237:8111 java.net.ConnectException: Connection timed out (Connection timed out) 
[2017-07-18 06:23:09.364] NO-REQUEST-ID ERROR c.a.d.c.SocketTubePool - error connecting to /172.31.20.237:8111 java.net.ConnectException: Connection timed out (Connection timed out) 
[2017-07-18 06:23:09.364] NO-REQUEST-ID ERROR c.a.d.c.c.Cluster - caught exception during cluster refresh: java.io.IOException: failed to configure cluster endpoints from hosts: [dax122.fwef.clusefwefwetercfg.dax.use1.cache.amazonaws.com:8111] 
java.io.IOException: failed to configure cluster endpoints from hosts: [dax122.fwef.clusefwefwetercfg.dax.use1.cache.amazonaws.com:8111] 

回答

1

這是連接超時異常。如果端口8111在入站規則中打開,您應該檢查AWS防火牆設置。

這些設置位於安全策略部分的AWS儀表板中。

3

您可以檢查用於啓動DAX羣集的安全組的安全組配置嗎?您需要授權用於啓動集羣的安全組上的TCP端口8111上的入站流量,並使用用於lambda函數配置的安全組作爲源。請參閱documentation獲取更多幫助。