Skip to content

Commit dd58aa6

Browse files
Repl lag series part 3: Monitoring Multi-threaded Replication Lag With Performance Schema. Fix some inconsistent tags.
1 parent 7aec503 commit dd58aa6

7 files changed

Lines changed: 474 additions & 21 deletions

content/book-8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ type: "page"
33
date: "2022-08-28T13:29:00-04:00"
44
title: "Mining the MySQL Performance Schema for Transactions"
55
subtitle: "Chapter 8"
6-
tags: ["mysql", "transactions", "performance_schema", "book", "efficient-mysql-performance"]
6+
tags: ["mysql", "transactions", "performance-schema", "book", "efficient-mysql-performance"]
77
comments: true
88
aliases:
99
- /post/book-8/

content/database-scalability-contention-and-crosstalk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ date: "2018-01-28T11:20:00-07:00"
44
lastMod: "2024-06-07T11:00:00-04:00"
55
title: "Database Scalability: Contention and Crosstalk"
66
subtitle: "Do more with less"
7-
tags: ["database", "scalability", "Universal Scalability Law", "Schwartz", "Gunther"]
7+
tags: ["database", "scalability", "Universal Scalability Law"]
88
comments: true
99
aliases:
1010
- /post/database-scalability-contention-and-crosstalk/

content/group-commit-and-trx-dependency-tracking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This is a three-part series on replication lag with MTR and the Performance Sche
2323
|2|Replica preserve commit order (RPCO)|
2424
|3|Monitoring MTR lag with the Performance Schema|
2525

26-
Links to each part (once they're published) are in the upper right ↗ (or top on small screens).
26+
Links to each part are in the upper right ↗ (or top on small screens).
2727

2828
These topics are closely related—they depend on each other.
2929
If you're new to these topics, start here (part 1).

content/monitoring-repl-lag-with-performance-schema.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

content/monitoring-replication-lag-with-performance-schema.md

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.

content/mysql-transaction-reporting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: "2022-08-28T13:28:00-04:00"
33
title: "MySQL Transaction Reporting"
4-
tags: ["mysql", "transactions", "performance_schema"]
4+
tags: ["mysql", "transactions", "performance-schema"]
55
menu:
66
main:
77
parent: "MySQL"

content/replica-preserve-commit-order.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
date: "2024-11-21T19:01:00-05:00"
3+
lastMod: "2024-12-22T15:08:00-04:00"
34
title: "Replica Preserve Commit Order and Measuring Lag"
45
tags: ["mysql", "replication", "lag", "preserve-commit-order"]
56
comments: true
@@ -22,7 +23,7 @@ This is a three-part series on replication lag with MTR and the Performance Sche
2223
|2|Replica preserve commit order (RPCO)|
2324
|3|Monitoring MTR lag with the Performance Schema|
2425

25-
Links to each part (once they're published) are in the upper right ↗ (or top on small screens).
26+
Links to each part are in the upper right ↗ (or top on small screens).
2627
This part presumes you've read part 1.
2728

2829
<div class="note">
@@ -150,7 +151,7 @@ Transaction gaps are a challenge for replication lag: is the lag 8s (measured fr
150151
([Recall](#diagram-conventions) that each trx takes 1s to execute and trx 10 represents the current time.)
151152
DBAs tend to agree that the conservative, low watermark is the better answer: 8s.
152153

153-
<mark>With MTR, replication lag is measured from the _oldest_ applying (or applied) transaction.</mark>
154+
<mark>With MTR, replication lag is measured from the _oldest_ applying (or last applied) transaction.</mark>
154155
There's additional nuance to this approach that part 3, once published, will explain.
155156

156157
Without careful consideration of application logic, `replica_preserve_commit_order = OFF` is _not_ a safe assumption.
@@ -322,4 +323,4 @@ Have you?
322323

323324
To investigate further and better, MTR metrics and instrumentation are needed.
324325
It'd be really nice if there was a status variable like `Repl_commit_order_waits`, but there isn't.
325-
The forthcoming part 3 of this series will look at what metrics and instrumentation are available, especially in terms of monitoring replication lag which, at the end of the day, is the primary objective: to keep replication lag as close to zero as possible.
326+
[Part 3]({{< ref "monitoring-replication-lag-with-performance-schema" >}}) of this series looks at what metrics and instrumentation are available, especially in terms of monitoring replication lag which, at the end of the day, is the primary objective: to keep replication lag as close to zero as possible.

0 commit comments

Comments
 (0)