MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
Optimizing nginx Time to First Byte
Current time: 03-09-2021, 09:18 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimizing nginx Time to First Byte
04-06-2013, 11:41 PM
Post: #1
Optimizing nginx Time to First Byte
Hey guys,

Excellent resource this site is. I've used it to really optimize page loading times but have come across an issue and am a little bit stumped.

Serving static content with nginx can be improved, but I don't know where to start. Images are being served directly by nginx, yet I can't get TTFB below ~120ms. The small delay seems to affect both dynamic (php-fpm) content or static content (pure nginx).

Hardware is top notch with 24 cores (E5-2620) with 64GB of DDR3 served from an Intel SSD -- all brand new and in working order. mySQL databases are all in memory.

I'm convinced that the issue is with nginx or some OS-related issues nginx might be running into.

What I've tried with virtually no difference observed:
  • Disabling gzip compression
  • Changing gzip compression levels
  • Optimizing sysctl
  • Disabled logging, both error_log and access_log
  • worker_processes & worker_connections
  • Nginx microcaching
  • keepalive_timeout / keepalive_requests

I don't believe there should really be much delay in serving content, especially when keepalive is on.

Here's a test representing average load times for an example page: http://www.webpagetest.org/result/130406_H5_FNB/
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Optimizing nginx Time to First Byte - Andem - 04-06-2013 11:41 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)