Something kills/freezes MySQL once per cron by executing:
INSERT INTO civicrm_tmp_e_dedupe_301d41956c9e2bd93bf184f95b40adef (id1, id2, weight) SELECT id1, id2, weight FROM (SELECT t1.contact_id id1, t2.contact_id id2, 20 weight FROM civicrm_email t1 INNER JOIN civicrm_email t2 ON ((t1.email IS NOT NULL AND t2.email IS NOT NULL AND t1.email = t2.email AND t1.email <> '' AND t2.email <> '')) WHERE t1.contact_id < t2.contact_id AND t1.contact_id IN (3,5,9,11,19,21,25,28,38....SOME 100K IDs here .....102486,102487,102488,102489,102490,102498,102499)) subunion GROUP BY id1, id2, weight ON DUPLICATE KEY UPDATE weight = weight + VALUES(weight)
There are only about 70K contacts in the database, nothing related in Scheduled Jobs, nor any custom Wordpress Plugin. CiviCRM Rules not installed nor any extensions which would look like possible interceptors. There is only one crontab entry:
/usr/local/bin/php /home/username/cv api job.execute --user=civicrm
It feels like some "duplicate finder" script has been launched from somewhere and forgotten.
There is something possible related: a few (not all, just 3 or 4 out of a dozen total) Wordpress admins, having CiviCRM administrator role, got thousands duplicated contact records in CiviCRM.
Ran out of ideas currently apart from the database search - wish I knew what to search for though.
Wordpress the latest, CiviCRM 5.76.2,