Anyevent-MP cluster starting

Konstantin A. Pustovalov lamoz at adriver.ru
Wed Apr 30 12:55:57 CEST 2014


Hi list!

This is my first post here, so be kind :)

I'm trying to get involved into AEMP. Now talking about v2.0 from CVS.
The first learning task for me to approach is to start a cluster of 
mp-nodes. I started with one seed node and two non-seed. Seed is just a 
seed, it does not do anything useful besides being seed. Non-seeds are 
chat server and chat client from the Intro manual.

All is working fine if I start seed, wait for it to start and then run 
server and client. Restarting seed seems to be ok after server and 
client have discovered each other.
Things go wrong when client and server are started before seed. Chatting 
does not happen at all (and I get no visible indication of errors). Now 
the question is: what is the recommended way of starting the cluster of 
MP-nodes?

How I do expect it to work (probably horribly wrong). I start seeds and 
non-seeds in nearly one moment, it deviates a little depending on 
compilation time and ssh/operator/supervisor lag. Non-seed nodes just 
trying to reconnect to seed ones in case of first unsuccessful attempt. 
In other words I start seed, chat server and chat client somehow in 
bundle and let them find each other. So seeds can start after non-seeds, 
but within some window. Application sets timeout (say, 30sec)  and just 
fails if timeout fires before expected connectivity is met (chat client 
and server see one seed).

So how would you guys propose me to start aemp cluster? Why is my 
expectations are wrong?



More information about the anyevent mailing list