[erlang-questions] noob gen_leader question
Fri Apr 18 06:21:52 CEST 2008
My erlang nodes are setup to connect to each other automatically.
Patched version of gen_leader states that it was modified to start
only on local mode and user has to trigger the election mode. This
means each instance of gen_leader is myopic and is contained within a
single node that it is running on. How does a user trigger the
election mode so that all other the instances of gen_leader know the
existence of each other?
It starts off with global mode:
Then it goes into local mode:
initial call: gen:init_it(gen_leader,<0.62.0>,self,
On Sun, Apr 13, 2008 at 3:57 PM, Ulf Wiger (TN/EAB)
> db skrev:
> > Does worker instance of gen_leader spawn separate processes to perform a task concurrently like in pool module?
> Not by default, no. If you want to spawn processes, you
> can of course do that in the callbacks.
> Ulf W
That which we persist in doing becomes easier for us to do; not that
the nature of the thing itself is changed, but that our power to do is
-Ralph Waldo Emerson
More information about the erlang-questions