[erlang-questions] How to dynamically add one node to erlang's distrubted application?
Fri Sep 12 04:55:47 CEST 2008
Thanks. It works for me. but I have some more questions.
If we have a center server, how can we let other client know where it is?
We can pass the center server information to each node at each node's
startup,but if we want to change the center server Eg. for its poor
performance,how can we let other nodes know "the center server is changed"
,suppose we don't know how many client nodes are alive either?
The solution I found d is we can save the client nodes informaton into a
Does someone have a better way to solve these problems?
Any suggestion is helpful,Thanks.
2008/9/10 Edwin Fine <>
> I do have a suggestion. Write a program that takes the configurations for
> all 100 (1000, 10000) machines from a file or database, generates the
> configuration files, and then distributes them to the nodes using an agent
> or something similar. The config files are kept under configuration
> management centrally and pushed out to nodes when changes are made.
> 2008/9/10 devdoer bird <>
>> Thanks. If I have 100 machines ,I have to edt the config files on all 100
>> machines, that's unacceptable. Are there any solutions?
>> 2008/9/10 Nicolas Charpentier <>
>>> devdoer bird wrote:
>>>> Now I want to add one more node to the system .How can I do this
>>>> using erlang's distributed applicaiton mechanism? Do I have to edit the
>>>> config file on all 3 nodes to add the 4th node and restart all of them?
>>> if you can't stop your nodes because others mandatory applications are
>>> running you can try to use application:load/2 on all your nodes. The second
>>> param is the distribution parameter which overload kernel value.
>>> To be able to load an application, it have to be stopped.
>>> Don't forget to update the config file for the next node restart.
>>> I never tried to do that but the documentation seems to say that it's
>> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions