Welcome! Log In Create A New Profile

Advanced

Why is my server response time over 400 ms for a fully cached site?

Quintin Par
October 25, 2018 05:00PM
Cross-posted at Stackoverflow
https://serverfault.com/questions/936873/nginx-optimizing-server-response-time-for-a-http-cached-website



I have a website with all of the pages served from nginx’s http cache and
rarely invalidated or expired.

The average total page download size is around 2 MB But despite being a
static site with no funny logic my server response is around a second



https://d.pr/NUxu2a



I recorded nginx’s $request_time and it comes to around 400 milliseconds
from the server



https://d.pr/HGhZZy



and each file at 20-30 KB average



https://d.pr/kSSUkB



400 millisecond seems to be absurd.



I am behind *Cloudflare* and



sendfile on;

tcp_nopush off;

tcp_nodelay on;

keepalive_timeout 300s;

keepalive_requests 10000;



What should I be doing to bring down the response time to the
150-millisecond range?



- Quintin
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Why is my server response time over 400 ms for a fully cached site?

Quintin Par October 25, 2018 05:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready