One issue I've run into is that at least with the setup my company is using now, any time we restart an instance it gets a different host name, which means the Erlang node name changes, which means the existing Mnesia tables are no good. I'm not familiar enough with AWS to know if there's something different to be done.<div>
<br></div><div>dan<br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 11:42 AM, dokondr <span dir="ltr"><<a href="mailto:dokondr@gmail.com">dokondr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Torben, thanks for detailed answer!<br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 11:37 AM, Torben Hoffmann <span dir="ltr"><<a href="mailto:torben.lehoff@gmail.com" target="_blank">torben.lehoff@gmail.com</a>></span> wrote:<br>
<div>... <br></div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">Mnesia in AWS is not a bit problem, but you have to deal with the
fact that your instance can disappear and everything is lost, so you
need do a bit of thinking about how to deal with that. I bet some of
the Mnesia gurus can help you with some pointers there.<br></div></blockquote></div><div><br>This should be a general problem, not just Mnesia. What is Amazon idea what user should do with his data stored in DBMS, e.x. MySql, when instance disappear? <br>
<br>Have anybody tried to run Erlang ETS / DETS key-value storage on Amazon AWS? How to scale ETSDETS to several instances in this case?<br></div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><blockquote type="cite">
2) My app today consists of several standalone processes that
communicate by means of simple files. I move from files to
key-value store, but would like to preserve independent processes
communicating with each other. What is a natural Erlang way to do
this? How this natural way will be able to scale in AWS?<br>
</blockquote></div>
Erlang is all about message passing directly between processes -
forget about the files. It scales extremely well in AWS. Disclaimer:
we have not tried to do inter-machine communication with our newest
architecture, but I doubt it will be much of an issue.</div></blockquote></div><div><br>Will I need some external Message Queue product (such as RabbitMQ) for two Erlang machines to communicate? I know about general mechanism of message passing between Erlang processes in the same or several machines. But what about "store-and-forward" mechanism between machines, is it supported? As I understand, I myself will have to implement persistent store to save messages between instance restarts, Erlang OTP does not have this "out of the box", correct?<br>
</div><div><br>Thanks,<br>Dmitri<br></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>