I once took over an application that was running on a 2-CPU webserver w/4GB RAM going against a 4-CPU DB server with 8GB RAM running a tuned Oracle database with a real DBA administering it. It was dog-slow, like 4 minutes a page. I rewrote it to go against an untuned MySQL database I randomly threw together running on a hyperthreaded single-cpu desktop w/2GB that was also running the webserver and some other stuff. Every page returned under 5 seconds, most under 2 seconds. We noticed zero improvement when we split the database onto its own server-class machine. In other words, the number and quality of servers make very little difference if the application is crap and may do little to improve performance for a well-written application.

As for performance reasons to split your stuff - do it only when your single machine is IO-bound.


  • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
  • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"

In reply to Re^5: LAMP svrs - 1 or 2 is best ? by dragonchild
in thread LAMP svrs - 1 or 2 is best ? by j_c

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.