Webserver - nolanhergert/notes GitHub Wiki

The Immigrant Story

Image quality

For whatever reason, the Jetpack image caching/CDN (called Photon) didn't have great image quality. Bumped it up to 90% by adding the below to functions.php: https://theimmigrantstory.org/wp-admin/theme-editor.php?file=functions.php&theme=sydney-child

function jeherve_custom_photon( $args ) {
    $args['quality'] = 90;
    return $args;
}
add_filter( 'jetpack_photon_pre_args', 'jeherve_custom_photon' );

Dec 11

  • Crashed again, this time from someone spamming wp-login.
  • Lots of errors from mysql. Was able to repair though?!
The wp_postmeta table is not okay. It is reporting the following error: 28 clients are using or haven't closed the table properly. WordPress will attempt to repair this table…
    Successfully repaired the wp_postmeta table.

Watchdog timer for mysql? Really, I'd like a lower ram version. Why does it take so much RAM? Especially if so much of our stuff is cached and not in mysql? Weird.

Digital Ocean's recommendations on load testing tools: https://www.digitalocean.com/community/tutorials/an-introduction-to-load-testing

  • They don't recommend turning on swap for SSDs for making them last longer

As proxy for performance improvements apparently.

Currently have WP Rocket set up minifying and combining all CSS and JS files into one. I'm seeing some sequentialness in the responses from the server.

I think HTTP2 might improve this, but the the server barfed using the tutorial here: (in the disabling MPM part) https://www.tecmint.com/enable-http2-in-apache-on-ubuntu/

Results May 2021 on a story page (quite good, 1.5s LCP): https://www.webpagetest.org/result/210512_AiDcFT_3895b115fda455eabf1f2efb7745fc06/