[MDEV-15706] Remove information_schema.innodb_metrics, innodb_monitor_enable, innodb_monitor_disable Created: 2018-03-28 Updated: 2023-08-01 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Marko Mäkelä | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | performance_schema | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
The InnoDB monitor was a precursor of PERFORMANCE_SCHEMA in InnoDB, added in MySQL 5.5.
We should evaluate all the INNODB_METRICS counters and construct a mapping to the PERFORMANCE_SCHEMA or GLOBAL_STATUS counters correspond to them. There may be some obscure counters that can be removed; also these must be documented. Some counters may need to be added to PERFORMANCE_SCHEMA or GLOBAL_STATUS. If updating some status is not expensive, we might as well update it all the time and expose via GLOBAL_STATUS. |
| Comments |
| Comment by Marko Mäkelä [ 2020-10-07 ] |
|
Related to this task, I think that we should remove MONITOR_SET() and simply always export the values via export_vars or even more directly via innodb_status_variables[]. And for compatibility, until the monitor counters have been removed, the monitors should reflect the above-mentioned global variables. The monitors would basically be always enabled. |
| Comment by Daniel Black [ 2021-02-15 ] |
|
Note the current community maintained MariaDB sys schema uses information_schema.INNODB_METRICS to complement INFORMATION_SCHEMA.GLOBAL_STATUS information; ref: https://github.com/FromDual/mariadb-sys/blob/master/views/p_s/metrics_56.sql#L22 I'm sure |