[erlang-questions] How to dynamically add one node to erlang's distrubted application?

Kevin A. Smith kevin@REDACTED
Wed Sep 10 13:46:26 CEST 2008


Would using Erlang's network file loader (erl_prim_loader) in  
combination with one or more boot servers address the problem? This  
would allow you to load code and config from a centralized set of  
servers. You could push dynamic updates out to the nodes while at the  
same time updating the centralized files for any new nodes or nodes  
which have to be restarted.

--Kevin
On Sep 10, 2008, at 5:22 AM, Edwin Fine wrote:

> 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 <devdoer2@REDACTED>
> 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 <nc-dated-1226207874.43c4c5@REDACTED>
>
> 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?
>
>
>
> Hi,
>
> 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 possible
>
>
> Regards,
>
> ----
> Nicolas
> http://charpi.net
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list