On 01/02/16 12:46, Galder Zamarreño wrote:
Hey Paul/Tristan,
Say you have Infinispan Server installed locally, and you want to
quickly start an instance with a lower FD_ALL.timeout,
GMS.join_timeout, MERGE3.min_interval adn MERGE3.max_interval without
touching the XML configuration.
Is it possible to do that? Can you pass modified parameters for these
options via system properties?
Yes, when you have
<MERGE3 max_interval="${merge3.max_interval:30000}"/>,
you can use -Dmerge3.max_interval=2000 to start.
Or, if you want to do this programmatically:
JChannel ch;
MERGE3 merge3=(MERGE3_ch.getProtocolStack().findProtocol(MERGE3.class);
merge3.setMaxInterval(2000); // or merge3.setValue("max_interval", 2000);
I'm not looking to modify them in a particular stack but
modifying
them all stacks would be fine for me.
The context for this is testing topology changes for JS client.
Having a cluster started and running tests continously is very
convenient for me. With that in mind, a very easy way to test
topology changes that does not involve restarting a process is to
suspend/resume a process (Node's child processes make this pretty
easy to do). My intention is try to tweak the parameters above so
that timeouts are lower and hence I can quickly force a topology
change.
Cheers, -- Galder Zamarreño Infinispan, Red Hat
_______________________________________________ infinispan-dev
mailing list infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Bela Ban, JGroups lead (
http://www.jgroups.org)