Current time: 12-10-2018, 04:18 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
First byte time on first run
11-28-2017, 01:45 PM
Post: #7
RE: First byte time on first run
Performance is always poor first time through: you have to prime all of the caches as well as deliver the code. If it wasn't slow, you wouldn't need to do all of this caching!

A few comments:

- if you want to speed up MySQL, then use the tuner scripts available on the net. Remember that - even though you have a dedicated server - disk access is the killer of performance. Bung in more memory and use that wherever you can. MySQL usually uses little CPU if it can deliver from caches
- if you want to speed up access to MySQL , then don't fart about with IP addresses: dump the whole TCP stack and just access it via a socket. Usually it's something like /var/lib/mysql/mysql.sock, so you add

define('DB_HOST', ':/var/lib/mysql/mysql.sock');

in wp-config.php.

DNSMASQ does far more than just providing DNS, and things like DHCP are really unwanted on a server. Just install a BIND caching server - there are plenty examples on the net. I'd ensure ports 53/TCP and 53/UDP are blocked from the net though.

Don't forget to tune PHP - and use the latest version that you can: 7.0 or even 7.1 if possible. Tune the Zend Optimiser and possibly even look at using the APCu Opcacher. ALso ensure there's plenty of memory allocated to share stuff within FPM. I now use ondemand mode and tend to overallocate memory / workers: the important thing is to keep the timeouts as low as you can.

You have many caches available in nginx too: open file and fastcgi are 2 you may want to play with. Also, use http2!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
First byte time on first run - Cloudmaster - 11-14-2017, 09:17 PM
RE: First byte time on first run - dfavor - 11-16-2017, 03:16 AM
RE: First byte time on first run - dfavor - 11-22-2017, 10:38 AM
RE: First byte time on first run - GreenGecko - 11-28-2017 01:45 PM

Forum Jump:


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