我在阿里云ECS服务器上的服务器上运行的点火服务器(与亚马逊AWS相同),当我检查日志时,我发现了一些警告,似乎服务器尝试连接其他节点与外部IP( outter ip似乎也是阿里云服务器) 但我的服务器配置了静态IP发现:
<!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. -->
<property name="discoverySpi">
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="ipFinder">
<!-- Uncomment static IP finder to enable static-based discovery of initial nodes. -->
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">-->
<property name="addresses">
<list>
<!-- In distributed environment, replace with actual host IP address. -->
<value>172.24.113.216:47500..47509</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
警告日志如下:
[01:21:09,355][WARNING][grid-nio-worker-tcp-rest-1-#35][GridTcpRestProtocol] Closing NIO session because of unhandled exception [cls=class o.a.i.i.util.nio.GridNioException, msg=Failed to parse incoming packet (invalid packet start) [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=1, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-1, igniteInstanceName=null, finished=false, hashCode=407415574, interrupted=false, runner=grid-nio-worker-tcp-rest-1-#35]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/120.55.13.109:40648, createTime=1527787269297, closeTime=0, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527787269297, lastSndTime=1527787269297, lastRcvTime=1527787269348, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5@306c3eeb], routerClient=false], directMode=false]], accepted=true]], b=73]]
[01:21:09,356][WARNING][grid-nio-worker-tcp-rest-1-#35][GridTcpRestProtocol] Closed client session due to exception [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=1, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-1, igniteInstanceName=null, finished=false, hashCode=407415574, interrupted=false, runner=grid-nio-worker-tcp-rest-1-#35]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/120.55.13.109:40648, createTime=1527787269297, closeTime=1527787269348, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527787269297, lastSndTime=1527787269297, lastRcvTime=1527787269348, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5@306c3eeb], routerClient=false], directMode=false]], accepted=true]], msg=Failed to parse incoming packet (invalid packet start) [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=1, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-1, igniteInstanceName=null, finished=false, hashCode=407415574, interrupted=false, runner=grid-nio-worker-tcp-rest-1-#35]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/120.55.13.109:40648, createTime=1527787269297, closeTime=0, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527787269297, lastSndTime=1527787269297, lastRcvTime=1527787269348, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5@306c3eeb], routerClient=false], directMode=false]], accepted=true]], b=73]]
[01:21:31,096][INFO][grid-timeout-worker-#23][IgniteKernal]
Metrics for local node (to disable set 'metricsLogFrequency' to 0)
[01:08:24,828][WARNING][grid-nio-worker-tcp-rest-0-#34][GridTcpRestProtocol] Closing NIO session because of unhandled exception [cls=class o.a.i.i.util.nio.GridNioException, msg=Failed to parse incoming packet (invalid packet start) [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-0, igniteInstanceName=null, finished=false, hashCode=1820163947, interrupted=false, runner=grid-nio-worker-tcp-rest-0-#34]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/119.23.174.205:56168, createTime=1527786504794, closeTime=0, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527786504794, lastSndTime=1527786504794, lastRcvTime=1527786504815, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5@306c3eeb], routerClient=false], directMode=false]], accepted=true]], b=73]]
[01:08:24,831][WARNING][grid-nio-worker-tcp-rest-0-#34][GridTcpRestProtocol] Closed client session due to exception [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-0, igniteInstanceName=null, finished=false, hashCode=1820163947, interrupted=false, runner=grid-nio-worker-tcp-rest-0-#34]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/119.23.174.205:56168, createTime=1527786504794, closeTime=1527786504825, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527786504794, lastSndTime=1527786504794, lastRcvTime=1527786504815, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5@306c3eeb], routerClient=false], directMode=false]], accepted=true]], msg=Failed to parse incoming packet (invalid packet start) [ses=GridSelectorNioSessionImpl [worker=ByteBufferNioClientWorker [readBuf=java.nio.HeapByteBuffer[pos=0 lim=7 cap=8192], super=AbstractNioClientWorker [idx=0, bytesRcvd=0, bytesSent=0, bytesRcvd0=0, bytesSent0=0, select=true, super=GridWorker [name=grid-nio-worker-tcp-rest-0, igniteInstanceName=null, finished=false, hashCode=1820163947, interrupted=false, runner=grid-nio-worker-tcp-rest-0-#34]]], writeBuf=null, readBuf=null, inRecovery=null, outRecovery=null, super=GridNioSessionImpl [locAddr=/172.24.113.216:11211, rmtAddr=/119.23.174.205:56168, createTime=1527786504794, closeTime=0, bytesSent=0, bytesRcvd=7, bytesSent0=0, bytesRcvd0=7, sndSchedTime=1527786504794, lastSndTime=1527786504794, lastRcvTime=1527786504815, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=GridTcpRestParser [marsh=JdkMarshaller [clsFilter=o.a.i.i.IgniteKernal$5@306c3eeb], routerClient=false], directMode=false]], accepted=true]], b=73]]
[01:08:31,046][INFO][grid-timeout-worker-#23][IgniteKernal]
172.24.113.216是我的私有子网ip,但在上面的日志中,rmtAddr = / 120.55.13.109:40648和rmtAddr = / 119.23.174.205:56168不是我自己拥有的IP,它是两个公共IP的阿里ECS云(我不知道这两个节点是否与我一起保存私网,因为它不属于我自己),所以,为什么 warinng发生了,警告代表什么,这是不是意味着我的节点尝试连接其他节点,即使我配置了静态发现,似乎我有丢失缓存数据的风险?
答案 0 :(得分:2)
172.24.113.216:11211
是用于Memcached [1]和Redis [2]协议实现的服务器端端口。所以它是相反的 - 来自120.55.13.109
尝试连接到您的一个节点。