Re: [jgroups-users] question about tcp partial hosts list -- issue 1903
Questions/problems related to using JGroups <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.general |
|---|---|
| Message-ID | <[email protected]> |
Did you set TCPPING.send_cache_on_join to true?
On 19/04/16 21:26, Questions/problems related to using JGroups wrote:
> Hi Bela,
>
> Now that I've upgraded to 3.6.8.Final, am trying to use this feature:
> https://issues.jboss.org/browse/JGRP-1903
>
> Outputting the addresses in the view, I start the first node with the
> initial hosts containing all of the other ones (I don't know if that
> matters or not) and get view:
>
> view: localhost-6125
>
> I then start the 2nd node with only its address and the 1st node's
> address and get this on both:
>
> view: localhost-6125
> localhost-31915
>
> When I start the 3rd node with only its address and the 1st node's
> address I see this on coordinator:
>
> view: localhost-6125
> localhost-31915
> localhost-63473
>
> On 2nd node:
>
> view: localhost-6125
> localhost-31915
> dcf0af3a-fd6d-cd1b-db81-5d33da72b506
>
> On 3rd:
>
> view: localhost-6125
> d7c9ac09-6b1d-06ee-f9a3-49aff96c8ab4
> localhost-63473
>
> So the 2nd and 3rd node cannot get an IP address for each other, leading
> to problems in the cluster (the way I have it now, the 3rd node will see
> this and abort startup). The stack I'm using is below -- is there
> something I'm missing to use the new feature?
>
> Yes, I know I can use the more compact way of setting this up, but I ran
> into https://sourceforge.net/p/javagroups/mailman/message/34981748/ :)
>
> stack.addProtocol(new TCP()
> .setValue("oob_thread_pool_keep_alive_time", 5000)
> .setValue("timer_keep_alive_time", 3000)
> .setValue("bind_addr", InetAddress.getByName(<address>))
> .setValue("bind_port", bindingPort)
> .setValue("thread_pool_min_threads", 1)
> .setValue("thread_pool_keep_alive_time", 5000)
> .setValue("send_buf_size", 640000)
> .setValue("oob_thread_pool_queue_max_size", 100)
> .setValue("oob_thread_pool_max_threads", 8)
> .setValue("thread_pool_queue_enabled", false)
> .setValue("sock_conn_timeout", 300)
> .setValue("oob_thread_pool_min_threads", 1)
> .setValue("oob_thread_pool_queue_enabled", false)
> .setValue("max_bundle_timeout", 30)
> .setValue("thread_pool_queue_max_size", 100)
> .setValue("recv_buf_size", 5000000))
> .addProtocol(new TCPPING()
> .setValue("initial_hosts", <read hosts>)
> .setValue("port_range", 0))
> .addProtocol(new MERGE3()
> .setValue("min_interval", 10000)
> .setValue("max_interval", 30000))
> .addProtocol(new FD_SOCK())
> .addProtocol(new FD_ALL2()
> .setValue("timeout", getJGroupsTotalTimeout() * 1000L))
> .addProtocol(new VERIFY_SUSPECT()
> .setValue("timeout", 1500))
> .addProtocol(new BARRIER())
> .addProtocol(new NAKACK2()
> .setValue("use_mcast_xmit", false))
> .addProtocol(new UNICAST3())
> .addProtocol(new STABLE()
> .setValue("desired_avg_gossip", 50000)
> .setValue("max_bytes", 4000000)
> .setValue("stability_delay", 1000))
> .addProtocol(<custom auth protocol>)
> .addProtocol(new GMS()
> .setValue("join_timeout", 3000))
> .addProtocol(new MFC()
> .setValue("max_credits", 2000000)
> .setValue("min_credits", 800000))
> .addProtocol(new FRAG2())
> .addProtocol(new STATE_TRANSFER());
> stack.init();
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>
>
>
> _______________________________________________
> javagroups-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/javagroups-users
>
--
Bela Ban, JGroups lead (http://www.jgroups.org)
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z