Innodb Purge Lag

Diagnose MySQL InnoDB undo growth and purge lag: measure the history list length (SHOW ENGINE INNODB STATUS or trx_rseg_history_len) as a trend over hours, find the oldest read view that purge cannot pass (information_schema.innodb_trx ordered by trx_started, Sleep-state threads holding an open transaction, mysqldump --single-transaction, a long REPEATABLE READ report), remove or reroute that session, only then consider innodb_purge_threads, and reclaim space with innodb_undo_log_truncate on 8.0, stating that ibdata1 never shrinks without a rebuild. Use for "History list length is millions", "ibdata1 keeps growing", "MySQL gets slower every hour until we kill something" or "undo tablespace is huge". Not for lock waits (lock-queue-triage), one slow statement (sql-performance) or PostgreSQL bloat (vacuum-bloat-triage).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit cda20046f0

Frequently asked questions

npx get-skill add greenblacked/innodb-purge-lag