<div dir="ltr">+1 Shimi<div>And my 2c:</div><div><br></div><div>Short answer: depends</div><div><br></div><div>Long answer: depends, and get a DBA, because a large site like you describe, that has already invested a lot, and is about to invest more in some monster server, should probably invest a bit more in an expert before their whole operation slows down to a halt, due to horrendous queries - no matter how monstrous the machine. <br>

<br></div><div>Sorry there isn&#39;t an easier answer,</div><div><br></div><div>Tom</div><div><br><div class="gmail_quote">2011/8/23 shimi <span dir="ltr">&lt;<a href="mailto:linux-il@shimi.net">linux-il@shimi.net</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><br><div class="gmail_quote"><div class="im">2011/8/23 Hetz Ben Hamo <span dir="ltr">&lt;<a href="mailto:hetzbh@gmail.com" target="_blank">hetzbh@gmail.com</a>&gt;</span><br>

</div><div class="im"><blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex">

<div dir="ltr">Hi,<div><br></div><div>I&#39;m thinking about some project, and I was wondering about something: lets say I&#39;m setting up a really-big-web site. Something in the scale of Walla or Ynet.</div><div>My question is about the DB: Where are exactly my limitations that I need to go master/slave, replications etc.</div>




<div>Is it related to memory? processor? I know that many uses replication etc due to shortage or RAM and/or CPU power.</div><div><br></div><div>Lets say I have a machine with 512GB RAM, 20 cores, 20TB disks. Such a machine should handle a huge load without any issue. With such a machine, theoretically, can a single MySQL / PostgreSQL handle such a load? (few hundred thousands connected users at once).</div>




<div><br><br></div></div></blockquote><div> </div></div></div>It really depends on *what* you do, like has been said, ACID consideration, and of course, the ratio between read/write operations. <br><br>There is a certain point where &quot;a bigger box&quot; simply won&#39;t cut it, for various reasons in the way hardware and software are designed. <br>



<br>It would probably be better to scale vertically than horizontally... For example, if you talk about a site like Ynet - most of Ynet are read operations (I assume...) - you would be better off with running one master, to which you&#39;ll write updates, and many nodes running slave replication from the master (and not receiving any updates themselves), and each backend processing web server, would connect to a matching SQL backend, so the load is spread between them all... <br>



<br>It&#39;s also smart to just avoid accessing SQL altogether where possible (with caches like memcached, and caches on the web frontends where possible) - and use low resource-consuming frontends / load balancers (I know you didn&#39;t ask about it, but you would probably return here and ask about it if you would choose Apache ;)) - I like nginx, which is a performance beast.<br>



<br>NoSQL has been mentioned here - and I re-iterate about ACID considerations again, see the funny <a href="http://www.youtube.com/watch?v=URJeuxI7kHo" target="_blank">http://www.youtube.com/watch?v=URJeuxI7kHo</a> :)<br>

<br>To sum it all - you need to design what type (and volume, per user, multiplied by the number of users) of queries you&#39;ll be doing... and... hire a professional DB consultant ;-) Such questions cannot be answered &quot;on one foot&quot;... Proper queries and indices can change the load on a DB by orders of magnitude, too.<br>



<br>So I say, &quot;no, this machine would probably not work with the load you mentioned&quot;, simply because I don&#39;t think it scales in a linear manner as one might imagine...<br><br>HTH,<br><font color="#888888"><br>

-- Shimi<br></font></div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div></div>