We have three dedicated servers at our company, one runs Nginx and acts as the web server (php), another handles MySQL and Memcached and the other is used to serve static files: css, js and images.
All servers show up as performing great on New Relic, specially the static files server:
- CPU continuously under 10%
- Network IO Received very low, transmitted is around 10 Mb/s tops, but the MySQL server has the same specs and routinely peaks at 20 mb/s, so doubt this is an issue.
- Load average under 0.5
The problem is, at peak times, apparently the pictures (which can be 100kb - 200kb in size) take a long time to load for some users (many many seconds, even up to a minute sometimes, when usually it would take just a few seconds at worst).
Any idea what we could do? Ideally, if neither the CPU, RAM or bandwidth has reached any kind of limit, this shouldn't happen.
Any key Nginx config parameters we should be looking at (and probably changing)?