<div dir="ltr">2008/9/10 devdoer bird <span dir="ltr"><<a href="mailto:devdoer2@gmail.com">devdoer2@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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?<br><br>
<div class="gmail_quote"></div></div></blockquote><div><br>I don't have an answer to your specific question, but...<br><br>I wouldn't recommend using this feature across 100 machines. Do you really need an application to failover across 100 machines? I had trouble with this feature even across four erlang nodes. The nodes used to hang arbitrarily at various times. It was a long time ago and lots of fixes have been made for this but I'm still quite wary of it. I've found that designing my applications so that failover is handled at the application level gives me more reliability.<br>
<br>If you are using this feature to ensure that only one instance of your application is running at any one time, then you are getting a false sense of security. One node can never definitely know if it's peer is running or not. Network outages between the two nodes can make it look like the other node is down, when in reality they are both running.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><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 class="Ih2E3d">
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">devdoer bird wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">...
<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>
<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>