<div dir="ltr">Thanks Mark,<div><br></div><div>I will learn and try to use it, I will let you know if I have any questions</div><div><br></div><div>Thanks a lot for your help</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 17, 2015 at 12:43 PM, Mark Nijhof <span dir="ltr"><<a href="mailto:mark.nijhof@cre8ivethought.com" target="_blank">mark.nijhof@cre8ivethought.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is my Dockerfile that can build Erlang: <a href="https://github.com/MarkNijhof/erlang_docker" target="_blank">https://github.com/MarkNijhof/erlang_docker</a> let me know if you have questions</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 17, 2015 at 9:06 PM, Harit Himanshu <span dir="ltr"><<a href="mailto:harit.subscriptions@gmail.com" target="_blank">harit.subscriptions@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Mark, this sounds like a very good approach to learn about distributed programming. Since I am new in this arena, do you mind sharing resources on how to achieve something you do? That ways I can get some direction on what to Google and take it forward<div><br></div><div>Thanks a lot!</div><span><font color="#888888"><div>+ Harit Himanshu</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 17, 2015 at 11:53 AM, Mark Nijhof <span dir="ltr"><<a href="mailto:mark.nijhof@cre8ivethought.com" target="_blank">mark.nijhof@cre8ivethought.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have had 14 different machines running on my 2 year old MacBook Air (granted they where not doing a whole lot) by just using docker. Each docker instance has its own IP and name ect. Worked really well. Make sure that in each docker you run tmux so yo can check both the output and do things with the machine. <div><br></div><div>What I do is put the Dockerfile in a sub folder of the project (because docker copies all things in the folder the Dockerfile is hosted in into the container and that is slow) and then map ../ to a mountpoint inside the docker container. If your host is the same as the docker container then you can build locally and just restart the process in the containers.</div><div><br></div><div><div>-Mark</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sat, Jan 17, 2015 at 8:46 PM, Christopher Meiklejohn <span dir="ltr"><<a href="mailto:cmeiklejohn@basho.com" target="_blank">cmeiklejohn@basho.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="word-wrap:break-word"><span><br><div><blockquote type="cite"><div>On Jan 17, 2015, at 8:23 PM, Harit Himanshu <<a href="mailto:harit.subscriptions@gmail.com" target="_blank">harit.subscriptions@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><br><div class="gmail_extra">This is really dumb question and I am pretty sure that there is limit to how much distributed programming could be learnt using single machine(I am using Mac in this case).<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I am reading through Programming Erlang, Chapter 14, Distributed Programming where Joe talk about how to run Name Server in distributed mode as </div><div><br></div><div><div><ol><li> I write and test my program in a regular nondistributed Erlang session. This is what we’ve been doing up to now, so it presents no new challenges.</li><li> I test my program on two different Erlang nodes running on the same computer.</li><li> I test my program on two different Erlang nodes running on two physically separated computers either in the same local area network or anywhere on the Internet.</li></ol></div></div></div></blockquote></div></div></div></div></blockquote></div></span><div>You can get pretty far using all of the networking tools provided with your operating system to simulate various network conditions. I do all of my daily distributed programming and research using a stock MacBook.</div><br><div>Consider Kyle Kingsbury’s work on Jepsen where he’s able to find bug in several major distributed databases. There are also tools such as ‘tc’ which can be used to add arbitrary latency between processes.</div><div><br></div><div>For what it’s worth, Basho does a significant amount of fault testing on a single machine by using fault-injection tools, or by facilities like ‘intercepts’ provided by Riak Test.</div><div><br></div><div>My advice is this: do everything locally on your machine until you have a reason to move to separate infrastructure; it will be easier to develop and debug.</div><div><br></div><div>- Chris</div><span><font color="#888888"><div><br></div><div><div><div>Christopher Meiklejohn</div><div>Senior Software Engineer</div><div>Basho Technologies, Inc.</div><div><a href="mailto:cmeiklejohn@basho.com" target="_blank">cmeiklejohn@basho.com</a></div><br></div></div><div><br></div></font></span></div><br></div></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://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Mark Nijhof<br><div><div>t: <a href="https://twitter.com/MarkNijhof" target="_blank">@MarkNijhof</a><br>s: marknijhof</div></div><div><br></div></div></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Mark Nijhof<br><div><div>t: <a href="https://twitter.com/MarkNijhof" target="_blank">@MarkNijhof</a><br>s: marknijhof</div></div><div><br></div></div></div>
</div>
</div></div></blockquote></div><br></div>