vitessio / vitess

Vitess is a database clustering system for horizontal scaling of MySQL.
http://vitess.io
Apache License 2.0
18.7k stars 2.1k forks source link

Multi-metrics throttler: adding InnoDB `history_list_length` metric #17262

Open shlomi-noach opened 1 day ago

shlomi-noach commented 1 day ago

Description

Adding a new and useful throttling metric: InnoDB's history_list_length. This is fetched via

select count as history_len from information_schema.INNODB_METRICS where name = 'trx_rseg_history_len'

The default threshold is 1,000,000,000 (read: high enough)

Related Issue(s)

https://github.com/vitessio/vitess/issues/15624

Checklist

Deployment Notes

vitess-bot[bot] commented 1 day ago

Review Checklist

Hello reviewers! :wave: Please follow this checklist when reviewing this Pull Request.

General

Tests

Documentation

New flags

If a workflow is added or modified:

Backward compatibility

codecov[bot] commented 1 day ago

Codecov Report

Attention: Patch coverage is 28.57143% with 15 lines in your changes missing coverage. Please review.

Project coverage is 67.37%. Comparing base (fb79106) to head (952a7eb). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...tle/base/self_metric_innodb_history_list_length.go 28.57% 15 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #17262 +/- ## ========================================== - Coverage 67.39% 67.37% -0.03% ========================================== Files 1573 1574 +1 Lines 253058 253131 +73 ========================================== - Hits 170542 170537 -5 - Misses 82516 82594 +78 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: