2016-04-01 23 views
0

İki amazon AWS sanal makinesinde (yayın için AWS'ye özgü ayarları kullanmadan) Hazelcast v3.6 kullanıyorum. Bağlantının TCP/IP bağlantı ayarları ile çalışması gerekir (çoklu yayın değil). Sanal makinelerde bağlantı için 5701-5801 adresini açtım.
İki sanal makinede iperf kullanmayı denedim. Bir sanal makinedeki istemcinin başka bir VM'deki sunucuya bağlandığını görebiliyorum (ve istemci sunucu kurulumunu iperf için değiştirdiğimde tersi).bağlantı sorunu ile ilgili amazon hakkında AWS

Farklı VM'lerde iki Hazelcast sunucusu başlattığımda, bağlantı kurulmadı. Günlük ifadeleri ve hazelcast.xml yapılandırması aşağıda verilmiştir (Hazelcast için programsal ayarları kullanmıyorum). Söylemeyi unuttum : Hazelcast config

20160401-16:41:02.812 [cached2] InitConnectionTask INFO - [45.46.47.48]:5701 [dev] [3.6] Connecting to /22.23.24.25:5701, timeout: 0, bind-any: true 
20160401-16:41:02.812 [cached3] InitConnectionTask INFO - [45.46.47.48]:5701 [dev] [3.6] Connecting to /22.23.24.25:5703, timeout: 0, bind-any: true 
20160401-16:41:02.813 [cached1] InitConnectionTask INFO - [45.46.47.48]:5701 [dev] [3.6] Connecting to /22.23.24.25:5702, timeout: 0, bind-any: true 
20160401-16:41:02.816 [cached1] InitConnectionTask INFO - [45.46.47.48]:5701 [dev] [3.6] Could not connect to: /22.23.24.25:5702. Reason: SocketException[Connection refused to address /22.23.24.25:570 
2] 
20160401-16:41:02.816 [cached1] TcpIpJoiner INFO - [45.46.47.48]:5701 [dev] [3.6] Address[22.23.24.25]:5702 is added to the blacklist. 
20160401-16:41:02.817 [cached3] InitConnectionTask INFO - [45.46.47.48]:5701 [dev] [3.6] Could not connect to: /22.23.24.25:5703. Reason: SocketException[Connection refused to address /22.23.24.25:570 
3] 
20160401-16:41:02.817 [cached3] TcpIpJoiner INFO - [45.46.47.48]:5701 [dev] [3.6] Address[22.23.24.25]:5703 is added to the blacklist. 
20160401-16:41:02.834 [cached2] TcpIpConnectionManager INFO - [45.46.47.48]:5701 [dev] [3.6] Established socket connection between /45.46.47.48:51965 and /22.23.24.25:5701 
20160401-16:41:02.849 [hz._hzInstance_1_dev.IO.thread-in-0] TcpIpConnection INFO - [45.46.47.48]:5701 [dev] [3.6] Connection [Address[22.23.24.25]:5701] lost. Reason: java.io.EOFException[Remote socket 
closed!] 
20160401-16:41:02.851 [hz._hzInstance_1_dev.IO.thread-in-0] NonBlockingSocketReader WARN - [45.46.47.48]:5701 [dev] [3.6] hz._hzInstance_1_dev.IO.thread-in-0 Closing socket to endpoint Address[54.89.161.2 
28]:5701, Cause:java.io.EOFException: Remote socket closed! 
20160401-16:41:03.692 [cached2] InitConnectionTask INFO - [45.46.47.48]:5701 [dev] [3.6] Connecting to /22.23.24.25:5701, timeout: 0, bind-any: true 
20160401-16:41:03.693 [cached2] TcpIpConnectionManager INFO - [45.46.47.48]:5701 [dev] [3.6] Established socket connection between /45.46.47.48:60733 and /22.23.24.25:5701 
20160401-16:41:03.696 [hz._hzInstance_1_dev.IO.thread-in-1] TcpIpConnection INFO - [45.46.47.48]:5701 [dev] [3.6] Connection [Address[22.23.24.25]:5701] lost. Reason: java.io.EOFException[Remote socket 
closed!] 

Bölüm

Server listening on TCP port 5701 
TCP window size: 85.3 KByte (default) 
------------------------------------------------------------ 
------------------------------------------------------------ 
Client connecting to 22.23.24.25, TCP port 5701 
TCP window size: 1.33 MByte (default) 
------------------------------------------------------------ 
[ 5] local 172.31.17.104 port 57398 connected with 22.23.24.25 port 5701 
[ 4] local 172.31.17.104 port 5701 connected with 22.23.24.25 port 55589 
[ ID] Interval  Transfer  Bandwidth 
[ 5] 0.0-10.0 sec 662 MBytes 555 Mbits/sec 
[ 4] 0.0-10.0 sec 797 MBytes 666 Mbits/sec 


Server listening on TCP port 5701 
TCP window size: 85.3 KByte (default) 
------------------------------------------------------------ 
[ 4] local xxx.xx.xxx.xx port 5701 connected with 22.23.24.25 port 57398 
------------------------------------------------------------ 
Client connecting to 22.23.24.25, TCP port 5701 
TCP window size: 1.62 MByte (default) 
------------------------------------------------------------ 
[ 6] local 172.31.17.23 port 55589 connected with 22.23.24.25 port 5701 
[ ID] Interval  Transfer  Bandwidth 
[ 6] 0.0-10.0 sec 797 MBytes 669 Mbits/sec 
[ 4] 0.0-10.0 sec 662 MBytes 553 Mbits/sec 

Not

<?xml version="1.0" encoding="UTF-8"?> 
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.6.xsd" 
      xmlns="http://www.hazelcast.com/schema/config" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <group> 
     <name>abc</name> 
     <password>defg</password> 
    </group> 

    <network> 
     <port auto-increment="true" port-count="100">5701</port> 
     <outbound-ports> 
      <ports>0-5900</ports> 
     </outbound-ports> 
     <join> 
      <multicast enabled="false"> 
       <!--<multicast-group>224.2.2.3</multicast-group> 
       <multicast-port>54327</multicast-port>--> 
      </multicast> 
      <tcp-ip enabled="true"> 
       <member>22.23.24.25</member> 
      </tcp-ip> 
     </join> 
     <interfaces enabled="true"> 
      <interface>45.46.47.48</interface> 
     </interfaces> 
     <ssl enabled="false" /> 
     <socket-interceptor enabled="false" /> 
     <symmetric-encryption enabled="false"> 
      <algorithm>PBEWithMD5AndDES</algorithm> 
      <!-- salt value to use when generating the secret key --> 
      <salt>thesalt</salt> 
      <!-- pass phrase to use when generating the secret key --> 
      <password>thepass</password> 
      <!-- iteration count to use when generating the secret key --> 
      <iteration-count>19</iteration-count> 
     </symmetric-encryption> 
    </network> 

    <partition-group enabled="false"/> 

iperf sunucu ve istemci günlük ifadeleri: Aşağıda IP adreslerini değişti Bir pus kullandığım zaman, tehlikeli istemciden sunucuya bağlanabileceğim tek bir hazlecast sunucu düğümüne bağlanmak için lcast istemcisi, ben sadece

ile bağlantı kurabilirim
+0

Ben bu sorunu çarptık: hazelcast kaynaklarında ilişkili bir test yoktur https://github.com/hazelcast/hazelcast/issues/7895 – noctarius

+0

@noctarius danke - Eğer hazeclast çalışmak beri, belki de teyit edebilir Güvenlik ayarlarımda hangi port aralığını açmam gerekiyor. Zaten \t 5701-5801 açık. Ek aralığı hangi açılardan açmalıyım? Cevabınız wireshark deneyimlerimi yenecektir :) –

+0

5701'i açarak iyi olmalısınız (her makinede sadece bir düğüm varsa), açık bir şekilde çıkış portu rastgele seçilir ancak bu bir sorun olmamalıdır. – noctarius

cevap