--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Patrik Nordwall
Typesafe - The software stack for applications that scale
Twitter: @patriknw
Excellent, thanks Patrik!On Thu, May 24, 2012 at 5:18 PM, Patrik Nordwall <patrik....@gmail.com> wrote:
Hi Bruno,Thanks for your interest in the clustering and for reporting.I will try to reproduce you issue tomorrow, with our new excellent multi node test framework.On Thu, May 24, 2012 at 5:03 PM, bruno darrigues <bruno.d...@gmail.com> wrote:Hi guys,
i am playing with a cluster junit test. i start a cluster with 4 nodes
Node0, Node1, Node2, Node3. Each register a MembershipChangeListener,
and after all converged i stop node0 and ... gossip failed to elect a
new leader.
hi Patrick
the pb is i saw a loop in my logs due to the node0 get down, (wich i
haven't in the node 0 still up). but i think it is due to my
misunderstood of the api.
it is difficult to see the attention in your test director because the
config files are in different folders so for an old non scala
programmer it is hard lolll.
What i am understand :
in the first jvm i have to launch a node (ie an ActorSystem ?) and
create a Cluster via Cluster socle = Cluster.get(system0).
on the second jvm, wich sequence i have to do to join my new
ActorSystem to the previous node ? Using the Node class ?
Is the node-to-join in the application.conf is already take into
account or may i have to define it in the config parse string for Node
1 ?
What i want to prototype with akka cluster is a business load
balancing based on consistent hash map. i think there is already all i
need for this.
In a first step each a new node just have to know his rignt and left
neigbourghs (via gossip members ?).
Howver as it is the leader who set the new node to the up state, is it
possible to define an intermediate "business" state like node=READY
before the state UP. My need is , when a node is joinning the ring
cluster, the already actives nodes , take into account the new one and
could tell him somethnig like "welcome guy, i manage some business
actor which you ll have to manage now", And only when the new node has
finished to migrate them could say to leader, "ok my ready now" and
the leader set him UP.
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Helle again Patrick,
is this sequnece of clustering init look right (in java in multi jvm
simultation )?
Cluster socleNode0system0 = Cluster.get(system0);
BasicConfigurator.configure();
Config config = ConfigFactory.load();
ActorSystem system0 =
ActorSystem.create("Node0",config.getConfig("Node0").withFallback(config));
Address socleNode0 = new Address("akka", "Node0", "127.0.0.1",
2552);
socleNode0system0.registerListener(new
MembershipChangeListener(){LOG.info("MemberChangeListner node 0 " + currentMemberRing);
public void notify(SortedSet<Member> currentMemberRing) {
}
});
socleNode0.join(socleNode0); // if i didn t declare this line
registerListner didn t init
next step is to remote ActorFor for business process based on
consistent hashp map ;-)...
>
> plus de détails »
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
On Tue, May 29, 2012 at 5:48 PM, bruno darrigues <bruno.d...@gmail.com> wrote:
Helle again Patrick,
is this sequnece of clustering init look right (in java in multi jvm
simultation )?
Cluster socleNode0system0 = Cluster.get(system0);
BasicConfigurator.configure();
Config config = ConfigFactory.load();
ActorSystem system0 =
ActorSystem.create("Node0",config.getConfig("Node0").withFallback(config));
Address socleNode0 = new Address("akka", "Node0", "127.0.0.1",
2552);
socleNode0system0.registerListener(new
MembershipChangeListener(){LOG.info("MemberChangeListner node 0 " + currentMemberRing);
public void notify(SortedSet<Member> currentMemberRing) {
}
});
socleNode0.join(socleNode0); // if i didn t declare this line
registerListner didn t initok, that's strange, I will investigate
my next step will be a litlle more tricky and i want to have your
advice. When a new node is joigning or leave, my leader to recalculate
a stragegy plan, send it to existing nodes and only when existing
nodes are synchronize with the new one, the leader set the incoing
node to up.
is there a way to overwrite the gossip methode to set node to up ?
is
there a leader listner method ?
may i have to develop a custom
protocol to synchronize up nodes ?
>
> plus de détails »
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.