WordPress Developer Ukraine, Kyiv
MySQL Performance Schema: Query Profiling and Wait Event Analysis

MySQL Performance Schema: Query Profiling and Wait Event Analysis

MySQL Performance Schema: query profiling and wait analysis for WordPress The Performance Schema is MySQL’s built-in instrumentation: it records statement times, lock waits, I/O waits and memory use per query pattern, with far less overhead than the general query log. It is enabled by default since MySQL 5.6, and the sys schema (MySQL 5.7+) gives…
MySQL Replication Monitoring and Failover with GTID

MySQL Replication Monitoring and Failover with GTID

MySQL replication with GTID for WordPress: set up, monitor, fail over A replica of the WordPress database gives a second copy that is seconds behind, a place to run heavy reports and backups without touching the primary, and a server to switch to when the primary fails. GTID-based replication (global transaction identifiers) makes the last…
Linux cgroups v2 and Systemd Slices for PHP-FPM Resource Control

Linux cgroups v2 and Systemd Slices for PHP-FPM Resource Control

Limit PHP-FPM, cron and imports with systemd slices and cgroups v2 On a server that runs several WordPress sites, one site’s runaway import or a crawler storm on another can take all CPU and memory, and every site becomes slow. Linux cgroups v2 can cap a group of processes, and systemd exposes them through simple…
Linux OOM Killer and Swap Tuning for WordPress Servers

Linux OOM Killer and Swap Tuning for WordPress Servers

The Linux OOM killer and swap on a WordPress server When a Linux server runs out of memory, the kernel’s out-of-memory killer picks a process and kills it. On a WordPress server, the process with the most memory is usually MySQL, so the site goes down with “Error establishing a database connection”, although the real…
MySQL InnoDB Buffer Pool Tuning and Monitoring

MySQL InnoDB Buffer Pool Tuning and Monitoring

InnoDB buffer pool for WordPress: size it, then check that it works The InnoDB buffer pool is MySQL’s memory cache for table and index pages. When the working set of a WordPress database (the posts, the meta, the options, the WooCommerce lookup tables that are actually read) fits into it, queries are served from RAM.…
WordPress File Integrity Monitoring and Backdoor Detection

WordPress File Integrity Monitoring and Backdoor Detection

File integrity checks for WordPress: find modified and injected files After a hack, the first question is “which files were changed?”. Without a reference, nobody can say whether wp-includes/functions.php is original or has three extra lines at the end. WordPress publishes checksums for every core release, WP-CLI compares against them, and for plugins and themes…