I did set up slow query logging today, and since then, we've experienced two load spikes. The most recent was at around 01:53 (server time).
Here is the slow query log from around that time:
# Time: 101117 1:40:22
# User@Host: x_] @ localhost []
# Query_time: 2 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT tt.term_id, tt.term_taxonomy_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy as tt ON tt.term_id = t.term_id WHERE t.term_id = 1532 AND tt.taxonomy = 'link_category';
# Time: 101117 1:55:12
# User@Host: x_] @ localhost []
# Query_time: 2 Lock_time: 0 Rows_sent: 1 Rows_examined: 0
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('category') AND t.slug = 'book-reviews' ORDER BY t.name ASC;
# Time: 101117 1:58:11
# User@Host: x_] @ localhost []
# Query_time: 8 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
SELECT tt.term_id, tt.term_taxonomy_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy as tt ON tt.term_id = t.term_id WHERE t.term_id = 1532 AND tt.taxonomy = 'link_category';
# User@Host: x_] @ localhost []
# Query_time: 8 Lock_time: 0 Rows_sent: 5 Rows_examined: 3646
SELECT *, ((0.1800 * (MATCH (<code>title</code>) AGAINST ( "alternative medicine's flawed reasoning one_ true cause all_ disease " ))) + (2.4429 * (MATCH (<code>content</code>) AGAINST ( " medicine disease alternative treat science pain energy true causation infection claims genetic evidence bacteria practitioners strep simple life underlying treatment" ))) ) as score FROM <code>wp_similar_posts</code> LEFT JOIN <code>wp_posts</code> ON <code>pID</code> = <code>ID</code> WHERE (MATCH (<code>title</code>) AGAINST ( "alternative medicine's flawed reasoning one_ true cause all_ disease " ) OR MATCH (<code>content</code>) AGAINST ( " medicine disease alternative treat science pain energy true causation infection claims genetic evidence bacteria practitioners strep simple life underlying treatment" )) AND post_status IN ('publish') AND post_type='post' AND ID != 13757 AND post_password ='' ORDER BY score DESC LIMIT 0, 5;
The longest query here 8 seconds, and was completed 5 mins after the load spike. This is my first time using slow query log, but it doesn't seem to me like this is the issue, plz correct me if I'm wrong.
Edit: took out the server name to protect my client's anonymity. :)