Page MenuHomePhabricator

mariadb replication source health monitoring
Open, MediumPublic

Description

As stated in T372943#10083764 and T372943#10088802 we can create a first iteration of a python scripts that provides monitoring signals for:

What to get probably on a first iteration:

  • Show engine innodb status
  • Show global status
  • iostat/top
  • processlist

Event Timeline

ABran-WMF triaged this task as Medium priority.Oct 25 2024, 9:52 AM

After a bit of thinking around how this script should be done:

  • iostat/top should be based on a set alerts that would cover:
    • rate(node_disk_io_time_seconds_total{}[5m]) → above 0.3s of activity we could consider a disk stressed, wdyt?
    • rate(node_disk_read_time_seconds_total{}[5m]) / rate(node_disk_reads_completed_total{}[5m]) → will give us the r_await time, what would be a good threshold for this?
    • rate(node_disk_write_time_seconds_total{}[5m]) / rate(node_disk_writes_completed_total{}[5m]) → will give us the w_await time, what would be a good threshold for this?

Here's an example of the baselines on db2203 (s1 current source): https://grafana.wikimedia.org/goto/zYhRtdnNg?orgId=1
Should the first iteration of this script aim to produce a cookbook (e.g., sre.mysql.is-this-source-healthy) or a monitoring probe? Or both?

@Marostegui, could you please help me identify patterns we could look for in:

  • SHOW ENGINE INNODB STATUS
  • SHOW GLOBAL STATUS
  • SHOW PROCESSLIST (should we show it FULLy?)

Some of these aspects are probably already covered by certain metrics, which might support the "monitoring" approach.