2014-09-05 17 views
5

Nie jestem całkowicie pewien co do celu flagi auto-inkrementacji w pliku konfiguracyjnym hazelcast xml. Kiedy mam to wyłączone, widzę wiele wyjątków w mojej instancji serwera narzekających na to, że port nie jest otwarty (już w użyciu) dla portu 5701 (ponieważ hazelcast nie jest już przenoszony do portu 5702 itd.). Dlaczego Hazelcast potrzebuje tej właściwości, gdy korzystam z konfiguracji serwera z włączoną funkcją tcp?przeznaczenie flagi auto increment w konfiguracji hazelcast

widzę następujących w moim sprawozdaniu dziennika po uruchomieniu serwera i to wydaje się być nasłuchuje na porcie 5701 (domyślnie w konfiguracji):

Members [1] { 
     Member [127.0.0.1]:5701 this 
} 

2014-09-05 05:46:00,407 INFO c.h.c.LifecycleService [main] [127.0.0.1]:5701 [dev] [3.2.4] Address[127.0.0.1]:5701 is STARTED 
2014-09-05 05:46:00,414 INFO c.a.c.n.SendServerEmail [main] hazelcast server email notification for server 192.168.110.154 WildMetrix Hazelcast server launched at 192.168.110.154 
2014-09-05 05:46:01,336 INFO c.h.p.InternalPartitionService [hz._hzInstance_1_dev.cached.thread-1] [127.0.0.1]:5701 [dev] [3.2.4] Initializing cluster partition table first arrangement... 
2014-09-05 05:46:01,521 INFO c.h.i.DefaultAddressPicker [main] null [dev] [3.2.4] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [127.0.0.1] 
2014-09-05 05:46:01,522 INFO c.h.i.DefaultAddressPicker [main] null [dev] [3.2.4] Picked Address[127.0.0.1]:5702, using socket ServerSocket[addr=/0.0.0.0,localport=5702], bind any local is true 
2014-09-05 05:46:01,602 INFO c.h.system [main] [127.0.0.1]:5702 [dev] [3.2.4] Hazelcast 3.2.4 (20140721) starting at Address[127.0.0.1]:5702 
2014-09-05 05:46:01,602 INFO c.h.system [main] [127.0.0.1]:5702 [dev] [3.2.4] Copyright (C) 2008-2014 Hazelcast.com 
2014-09-05 05:46:01,604 INFO c.h.i.Node [main] [127.0.0.1]:5702 [dev] [3.2.4] Creating TcpIpJoiner 
2014-09-05 05:46:01,606 INFO c.h.c.LifecycleService [main] [127.0.0.1]:5702 [dev] [3.2.4] Address[127.0.0.1]:5702 is STARTING 
2014-09-05 05:46:01,619 INFO c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to possible member: Address[127.0.0.1]:5703 
2014-09-05 05:46:01,620 INFO c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to possible member: Address[127.0.0.1]:5701 
2014-09-05 05:46:01,620 INFO c.h.n.SocketConnector [hz._hzInstance_2_dev.cached.thread-2] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to /127.0.0.1:5703, timeout: 0, bind-any: true 
2014-09-05 05:46:01,621 INFO c.h.n.SocketConnector [hz._hzInstance_2_dev.cached.thread-2] [127.0.0.1]:5702 [dev] [3.2.4] Could not connect to: /127.0.0.1:5703. Reason: SocketException[Connection refused to address /127.0.0.1:5703] 
2014-09-05 05:46:01,621 INFO c.h.n.SocketConnector [hz._hzInstance_2_dev.cached.thread-2] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to /127.0.0.1:5701, timeout: 0, bind-any: true 
2014-09-05 05:46:01,628 INFO c.h.n.SocketAcceptor [hz._hzInstance_1_dev.IO.thread-Acceptor] [127.0.0.1]:5701 [dev] [3.2.4] Accepting socket connection from /127.0.0.1:46001 
2014-09-05 05:46:01,639 INFO c.h.n.TcpIpConnectionManager [hz._hzInstance_2_dev.cached.thread-2] [127.0.0.1]:5702 [dev] [3.2.4] 46001 accepted socket connection from /127.0.0.1:5701 
2014-09-05 05:46:01,639 INFO c.h.n.TcpIpConnectionManager [hz._hzInstance_1_dev.IO.thread-Acceptor] [127.0.0.1]:5701 [dev] [3.2.4] 5701 accepted socket connection from /127.0.0.1:46001 
2014-09-05 05:46:38,637 WARN c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Couldn't join to the master : Address[127.0.0.1]:5701 
2014-09-05 05:46:38,638 WARN c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Failed to connect, node joined= false, allConnected= false to all other members after 0 seconds. 
2014-09-05 05:46:38,638 WARN c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Rebooting after 10 seconds. 
2014-09-05 05:46:48,639 INFO c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to possible member: Address[127.0.0.1]:5703 
2014-09-05 05:46:48,639 INFO c.h.n.SocketConnector [hz._hzInstance_2_dev.cached.thread-1] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to /127.0.0.1:5703, timeout: 0, bind-any: true 
2014-09-05 05:46:48,640 INFO c.h.n.SocketConnector [hz._hzInstance_2_dev.cached.thread-1] [127.0.0.1]:5702 [dev] [3.2.4] Could not connect to: /127.0.0.1:5703. Reason: SocketException[Connection refused to address /127.0.0.1:5703] 
2014-09-05 05:46:48,640 INFO c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to possible member: Address[127.0.0.1]:5701 
2014-09-05 05:47:14,648 WARN c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Failed to connect, node joined= false, allConnected= false to all other members after 0 seconds. 
2014-09-05 05:47:14,648 WARN c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Rebooting after 10 seconds. 
2014-09-05 05:47:24,649 INFO c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to possible member: Address[127.0.0.1]:5703 
2014-09-05 05:47:24,649 INFO c.h.c.TcpIpJoiner [main] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to possible member: Address[127.0.0.1]:5701 
2014-09-05 05:47:24,649 INFO c.h.n.SocketConnector [hz._hzInstance_2_dev.cached.thread-2] [127.0.0.1]:5702 [dev] [3.2.4] Connecting to /127.0.0.1:5703, timeout: 0, bind-any: true 
2014-09-05 05:47:24,650 INFO c.h.n.SocketConnector [hz._hzInstance_2_dev.cached.thread-2] [127.0.0.1]:5702 [dev] [3.2.4] Could not connect to: /127.0.0.1:5703. Reason: SocketException[Connection refused to address /127.0.0.1:5703] 

Odpowiedz

3

serwer Hazelcast powinien spróbować związać na porcie podanym w właściwość portu. Jeśli domyślny port nie jest dostępny do powiązania, Hazelcast powinien zwiększyć numer portu (przy użyciu flagi z numerem portu), aż uzyska wolny port do wiązania. O ile się nie pomyli, może spróbować domyślnie powiązać trzy porty lub jeden - sprawdzi i zaktualizuje odpowiednio. Możesz ustawić auto-increment portu na false, jeśli chcesz, aby serwer Hazelcast po prostu łączył się z jednym portem, a nie zwiększał.

<port auto-increment="true" port-count="100">5701</port> 

Ponadto, upewnij się, że port 5701 nie jest używany przez inny proces i jest dostępny do związania na i że nie ma nic na temat systemu zapobiegającego serwer związać na tym porcie, takie jak każdy firewall itp

Powiązane problemy