<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 12/03/2012 16:48, Matthew Rudy Jacobs wrote:<br>
    <blockquote
cite="mid:CAADxtW-jTsz8HnqPyeY5zpWDigTataYAF3RYN3x32rYOOxRVtw@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">On 13 March 2012 00:11, Andrew Stewart <span
          dir="ltr"><<a moz-do-not-send="true"
            href="mailto:boss@airbladesoftware.com">boss@airbladesoftware.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Hola El Rug,<br>
          <br>
          What sort of capacity do people run their servers at?<br>
          <br>
          I have a Rails app on a 1-core Ubuntu 10.04 VPS with 1GB RAM.
           Everything runs on that box: web server (Nginx), app servers
          (Unicorn with 5 workers), MySQL, background jobs etc etc.<br>
          <br>
        </blockquote>
        <div><br>
        </div>
        <div>
          Passenger suggests a 256mb VPS also running MySQL should be
          able to run 2 passenger processes.</div>
        <div>By that logic a 1gb VPS should be able to run 8 passenger
          processes.</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    They also recommend running 30 on a 2Gig VPS
(<a class="moz-txt-link-freetext" href="http://www.modrails.com/documentation/Users%20guide%20Nginx.html#PassengerMaxPoolSize">http://www.modrails.com/documentation/Users%20guide%20Nginx.html#PassengerMaxPoolSize</a>).<br>
    <br>
    Having said that, I've found that in practice the number of workers
    you can run is more constrained by the number of CPU cores
    available.  You reach a point where adding more workers just
    increases the CPU contention, and the internal response times just
    end up increasing, so the net gain is zero (or even negative).  In
    the past, I found that the sweet spot for a particular (old Rails
    2.1) app was around 1.5 workers per CPU core.  Obviously this will
    vary with the app, and the hardware, but it's worth experimenting
    with various numbers to find the sweet spot before the Rails
    response times start climbing significantly.<br>
    <br>
    Also, bear in mind that any "free" memory is actually used for disk
    cache, so you want to make sure that there's a reasonable amount
    available.<br>
    <br>
    Alex<br>
    <br>
    <div class="moz-signature">-- <br>
      <table style="width: 98%; margin-top: 10px; font-family: arial,
        sans;" border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="border-bottom: solid 1px black; font-size: 20px;
              line-height: 28px; font-family: Trebuchet MS, arial, sans"
              valign="bottom">Alex Tomlins</td>
            <td style="border-bottom: solid 1px black;" align="right">
              <table style="width: 145px;" align="right" border="0"
                cellpadding="0" cellspacing="0" width="145px">
                <tbody>
                  <tr>
                    <td style="font-family: Trebuchet MS, arial, sans;
                      font-weight: bold; font-size: 35px; color:
                      #000000; letter-spacing: -1px; height: 27px;
                      line-height: 27px;" align="right" height="27px"
                      valign="top"> Unboxed </td>
                  </tr>
                  <tr>
                    <td style="font-family: Trebuchet MS, arial, sans;
                      font-weight: bold; font-size: 30px; color:
                      #92278F; letter-spacing: -1px; height: 42px;
                      line-height: 27px;" align="right" height="42px;"
                      valign="top"> Consulting </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
          <tr>
            <td style="border-top: solid 4px white;" align="left"
              valign="top">
              <table style="font-size: 12px; font-family: arial;"
                align="left" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td style="width: 16px; color: #92278F;">E:</td>
                    <td> <a
                        href="mailto:alex.tomlins@unboxedconsulting.com"
                        style="color: black; text-decoration: none;">alex.tomlins@unboxedconsulting.com</a></td>
                  </tr>
                  <tr>
                    <td style="width: 16px; color: #92278F;">M:</td>
                    <td>+44 7824 696 890</td>
                  </tr>
                  <tr>
                    <td style="width: 16px; color: #92278F;">T:</td>
                    <td>+44 20 3137 2930</td>
                  </tr>
                  <tr>
                    <td style="width: 16px; color: #92278F;">F:</td>
                    <td>+44 20 7183 4251</td>
                  </tr>
                </tbody>
              </table>
            </td>
            <td style="font-size: 12px; font-family: arial; border-top:
              solid 4px white;" align="right" valign="top">
              <table style="font-size: 12px; font-family: arial;"
                align="right" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                  <tr>
                    <td align="right">17 Blossom Street</td>
                  </tr>
                  <tr>
                    <td align="right">London, E1 6PL</td>
                  </tr>
                  <tr>
                    <td align="right">United Kingdom</td>
                  </tr>
                  <tr>
                    <td align="right"><a style="color: #92278F;
                        text-decoration: none;"
                        href="http://www.unboxedconsulting.com">www.unboxedconsulting.com</a></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>