<p>Will the write fail if the master node is down?</p>
<div class="gmail_quote">On Oct 14, 2011 2:48 AM, "Michael Connors" <<a href="mailto:connorsml@gmail.com">connorsml@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Barco,<div><br></div><div>I have spent sometime thinking about this, but I have not actually needed to do it yet. </div><div><br></div><div>If I was attempting to do it, I would probably be using the following tools.<br>

<div><br></div><div>You could put Zotonic behind nginx and use nginx as a load balancer with sticky sessions, so that the user gets sent to the site that has their session. </div><div><br></div><div>You could replicate Postgresql using Slony so you have your database distributed, and use pgpool to ensue that all writes go to the master database and all reads come from the local database.</div>

<div><br></div><div>You could replicate the images and other files using rsync.</div><div><br></div><div><a href="http://nginx.org/" target="_blank">http://nginx.org/</a></div><div><a href="http://slony.info/" target="_blank">http://slony.info/</a></div>

<div><a href="http://pgpool.projects.postgresql.org/" target="_blank">http://pgpool.projects.postgresql.org/</a></div></div><div><br></div><div>Michael</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>