June 19, 2013

Post: MVCC: Transaction IDs, Log Sequence numbers and Snapshots

for transaction depending if it was committed or not. Log Sequence Number (LSN) Log Sequence Numbers correspond to given position in the log files and typically incremented for each log

Post: How to calculate a good InnoDB log file size

… give you a formula for choosing a configuration …queries at your server’s peak usage time: mysql> pager grep sequence PAGER set to ‘grep sequenceLog sequence number 84 3838334638 1 row in set (0.05 sec) Notice the log sequence number. That’s the total number of bytes written to the transaction log

Post: SHOW INNODB STATUS walk through

… OF TRANSACTIONS FOR EACH SESSION: —TRANSACTION 0 0, not started, process no 3396, OS thread id 1152440672 MySQL thread id 8080, query… much for informational purposes only. — LOGLog sequence number 84 3000620880 Log flushed up to 84 3000611265 Last checkpoint at 84 2939889199 0 pending log

Post: Recovery deleted ibdata1

For that we will monitor checkpoint age. The checkpoint age is a difference between current log sequence number… global innodb_max_dirty_pages_pct=0; Query OK, 0 rows affected (0.01 sec…all transactions up to very last ———— TRANSACTIONS ———— Trx id counter 0 16644 Purge done for trx’s …

Post: How to debug long-running transactions in MySQL

sequence of queries in an easy-to-view format, rather than aggregating the worst queries together. This has worked forlogging. There was a transaction that was blocking others and had locks and undo log records, yet had only run SELECT queries