Hello:
I have been unsuccesul in trying to get Appia to work for
my situation, so I am trying Jgroups.
I have two controllers located on two different subnets.
On each controller, local tcp port 8800 is tunneled to
port 7800 on the remote machine.
I have set up this sequencer.xml file for my controllers
(They are both the same):
<config>
<TCP start_port="7800" />
<TCPPING
initial_hosts="localhost[7800],localhost[8800]"
port_range="1" timeout="3000"
num_initial_members="2"
up_thread="true" down_thread="true" />
<MERGE2 min_interval="5000" max_interval="20000" />
<FD max_tries="4" timeout="15000" />
<VERIFY_SUSPECT timeout="1500"
down_thread="false" up_thread="false" />
<pbcast.NAKACK down_thread="true" up_thread="true"
gc_lag="100" retransmit_timeout="3000" />
<pbcast.STABLE desired_avg_gossip="20000"
down_thread="false" up_thread="false" />
<pbcast.GMS join_timeout="5000"
join_retry_timeout="2000" shun="false"
print_local_addr="false" down_thread="true"
up_thread="true" />
<SEQUENCER down_thread="false" up_thread="false" />
</config>
Does this config look correct or is there something missing?
I started the controller on server 2. Then, I started the controller on
server1.
I see these messages on server 1 when it starts up:
15:14:32,881 INFO jgroups.blocks.ConnectionTable server socket created on
127.0.0.1:7800
15:14:32,903 DEBUG jgroups.blocks.ConnectionTable
ConnectionTable.Connection.Receiver started
15:14:32,904 INFO jgroups.blocks.ConnectionTable created socket to
127.0.0.1:8800
15:14:32,904 DEBUG jgroups.blocks.ConnectionTable
ConnectionTable.Connection.Sender thread started
This looks good in that it listen on port 7800 and sends on port 8800.
Next, I see this:
15:14:35,926 DEBUG continuent.hedera.channel Channel joined, local
membership set to: Member(address=cbs1.jammconsulting.com/127.0.0.1:7800,
uid=cbsweb)
15:14:35,930 DEBUG continuent.hedera.gms JGroups reported new view:
[127.0.0.1:7800|0] [127.0.0.1:7800]
15:14:37,936 INFO controller.virtualdatabase.cbsweb Group cbsweb connected
to Member(address=cbs1.jammconsulting.com/127.0.0.1:7800, uid=cbsweb)
15:14:37,936 INFO controller.virtualdatabase.cbsweb First controller in
group cbsweb
This says there is only 1 controller in the group. That may just be a
startup problem.
Now, I see this:
15:14:42,884 DEBUG jgroups.blocks.ConnectionTable accepted connection from
/127.0.0.1:49091
15:14:42,885 DEBUG jgroups.blocks.ConnectionTable
ConnectionTable.Connection.Receiver started
15:14:42,885 INFO jgroups.blocks.ConnectionTable created socket to
127.0.0.1:7800
15:14:42,885 INFO jgroups.blocks.ConnectionTable input_cookie is bela
15:14:42,886 DEBUG jgroups.blocks.ConnectionTable
ConnectionTable.Connection.Sender thread started
15:14:42,886 DEBUG jgroups.blocks.ConnectionTable 127.0.0.1:7800 is already
there, will reuse connection
15:14:42,886 DEBUG jgroups.blocks.ConnectionTable
ConnectionTable.Connection.Receiver started
15:14:42,887 DEBUG jgroups.stack.NakReceiverWindow seqno 0 is smaller than
1); discarding message
15:14:50,686 DEBUG jgroups.blocks.ConnectionTable
ConnectionTable.Connection.Receiver started
15:14:50,686 INFO jgroups.blocks.ConnectionTable created socket to
127.0.0.1:8800
15:14:50,686 DEBUG jgroups.blocks.ConnectionTable
ConnectionTable.Connection.Sender thread started
15:14:51,913 DEBUG jgroups.blocks.ConnectionTable accepted connection from
/127.0.0.1:34473
15:14:52,023 INFO jgroups.blocks.ConnectionTable input_cookie is bela
15:14:52,023 DEBUG jgroups.blocks.ConnectionTable 127.0.0.1:7800 is already
there, will reuse connection
15:14:52,024 DEBUG jgroups.blocks.ConnectionTable
ConnectionTable.Connection.Receiver started
15:14:56,399 DEBUG jgroups.stack.NakReceiverWindow seqno 1 is smaller than
2); discarding message
15:15:32,024 DEBUG jgroups.stack.NakReceiverWindow seqno 2 is smaller than
4); discarding message
15:15:36,632 DEBUG jgroups.stack.NakReceiverWindow seqno 3 is smaller than
4); discarding message
15:16:14,554 DEBUG jgroups.stack.NakReceiverWindow seqno 4 is smaller than
9); discarding message
15:16:29,895 DEBUG jgroups.stack.NakReceiverWindow seqno 5 is smaller than
10); discarding message
15:16:38,927 DEBUG jgroups.stack.NakReceiverWindow seqno 6 is smaller than
12); discarding message
15:17:03,853 DEBUG jgroups.stack.NakReceiverWindow seqno 7 is smaller than
13); discarding message
15:17:43,358 DEBUG jgroups.stack.NakReceiverWindow seqno 8 is smaller than
17); discarding message
15:18:14,316 DEBUG jgroups.stack.NakReceiverWindow seqno 9 is smaller than
19); discarding message
15:18:30,908 DEBUG jgroups.stack.NakReceiverWindow seqno 10 is smaller than
21); discarding message
15:18:47,449 DEBUG jgroups.stack.NakReceiverWindow seqno 11 is smaller than
21); discarding message
15:18:47,781 DEBUG jgroups.stack.NakReceiverWindow seqno 12 is smaller than
21); discarding message
15:19:11,122 DEBUG jgroups.stack.NakReceiverWindow seqno 13 is smaller than
23); discarding message
15:19:42,356 DEBUG jgroups.stack.NakReceiverWindow seqno 14 is smaller than
27); discarding message
15:20:13,073 DEBUG jgroups.stack.NakReceiverWindow seqno 15 is smaller than
29); discarding message
It looks to me that since the remote controller is using 127.0.0.1 port 7800
for its
group endpoint and the local controller is also using 127.0.0.1 port 7800,
the controller
cannot tell the difference between itself and the remote controller.
Any ideas how to fix this?
Thanks,
Neil
--
Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia