<div dir="ltr">Simple. global/whereis_name/1<br><br><div class="gmail_quote">2008/9/11 devdoer bird <span dir="ltr"><<a href="mailto:devdoer2@gmail.com">devdoer2@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr"><div>Thanks. It works for me. but I have some more questions.</div>
<div> </div>
<div>If we have a center server, how can we let other client know where it is?</div>
<div> </div>
<div>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?</div>
<div>The solution I found d is we can save the client nodes informaton into a persistent storage. </div>
<div>Does someone have a better way to solve these problems?<br></div>
<div>Any suggestion is helpful,Thanks.<br></div>
<div class="gmail_quote">2008/9/10 Edwin Fine <span dir="ltr"><<a href="mailto:erlang-questions_efine@usa.net" target="_blank">erlang-questions_efine@usa.net</a>></span><div><div></div><div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
<div dir="ltr">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.<br>
<br>
<div class="gmail_quote">
<div>2008/9/10 devdoer bird <span dir="ltr"><<a href="mailto:devdoer2@gmail.com" target="_blank">devdoer2@gmail.com</a>></span><br></div>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0pt 0pt 0pt 0.8ex;border-left:rgb(204,204,204) 1px solid">
<div dir="ltr">Thanks. If I have 100 machines ,I have to edt the config files on all 100 machines, that's unacceptable. Are there any solutions?
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">2008/9/10 Nicolas Charpentier <span dir="ltr"><<a href="mailto:nc-dated-1226207874.43c4c5@charpi.net" target="_blank">nc-dated-1226207874.43c4c5@charpi.net</a>></span>
<div><br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:rgb(204,204,204) 1px solid">devdoer bird wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:rgb(204,204,204) 1px solid">...
<div><br>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?<br>
<br></div></blockquote><br><br>Hi,<br><br>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.<br>
To be able to load an application, it have to be stopped.<br>Don't forget to update the config file for the next node restart.<br><br>I never tried to do that but the documentation seems to say that it's possible<br>
<br><br>Regards,<br><br>----<br>Nicolas<br><a href="http://charpi.net/" target="_blank">http://charpi.net</a><br></blockquote></div></div><br></div></div></div><br>
<div>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></blockquote></div><br></div></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br></div>