Note that there are some explanatory texts on larger screens.

plurals
  1. POApache to slow to responde, but CPU and memory not max out
    primarykey
    data
    text
    <p><strong>The problem</strong></p> <p>2 <code>apache</code> servers have a long response time, but I do not see CPU or memory max out.</p> <p><strong>Details</strong></p> <p>I have 2 <code>apache</code> server servering static content for client.</p> <ul> <li>This web site has a lot of traffic. </li> <li>At high traffic I have ~10 request per second (html, css, js, images).</li> <li>Each HTML is making 30 other request to the servers for loading js, css, and images.</li> <li>Safari developer tool show that 2MB of that is getting transfer each time I hit a html page</li> <li>These two server are running on <code>Amazon Web Service</code></li> <li>both instances are m1.large (2 CPUS, 7.5 RAM)</li> <li>I'm serving images in the same server</li> <li>server are in US but a lot of traffic comes from Europe</li> </ul> <p><strong>I tried</strong></p> <ul> <li>changing from prefork to worker</li> <li>increasing processses</li> <li>increasing threads</li> <li>increasing time out</li> </ul> <p>I'm running benchmarks with <code>ab</code> (apachebench) and I do not see improvement.</p> <p><strong>My question are:</strong></p> <ul> <li>Is it possible that serving the images and large resorouces like js (400k) might be slowing down the server?</li> <li>Is it possible that 5 request per second per server is just too much traffic and there is no tuning I can do, so only solution is to add more servers?</li> <li>does <code>amazon web services</code> have a problem with bandwidth?</li> </ul> <h2>New Info</h2> <p><strong>My files are being read from a mounted directory on GlusterFS</strong></p> <p>Metrics collected with ab (apache bench) run on a EC2 instance on same network</p> <pre><code>Connections: 500 Concurrency: 200 Server with files on mounted directory (files on glusterfs) Request per second: 25.26 Time per request: 38.954 Transfer rate: 546.02 Server without files on mounted directory (files on local storage) Request per second: 1282.62 Time per request: 0.780 Transfer rate: 27104.40 </code></pre> <h2>New Question</h2> <p><strong>Is it possible that a reading the resources (htmls, js, css, images) from a mounted directory (NFS or GlusterFS) might slow down <em>dramatically</em> the performance of Apache?</strong></p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload