Details
-
Task
-
Status: Open (View Workflow)
-
Trivial
-
Resolution: Unresolved
-
None
-
None
Description
This can allow DBA to navigate historical global status and variables history and offer a post mortem analyse without any monitoring in place
A new SQL service plugin
The plugin schedule no bin logged queries
CREATE TABLE mysql.versioning_status(
|
(
|
VARIABLE_NAME varchar(64) PRIMARY KEY NOT NULL,
|
VARIABLE_VALUE varchar(2048) NOT NULL
|
) ENGINE=ARIA DEFAULT CHARSET=utf8mb3
|
WITH SYSTEM VERSIONING
|
PARTITION BY SYSTEM_TIME INTERVAL 1 MONTH AUTO;
|
 |
REPLACE INTO mysql.versioning_status FROM SELECT * FROM information_schema.GLOBAL_STATUS ;
|
REPLACE INTO mysql.versioning_variables FROM SELECT * FROM information_schema.GLOBAL_VARIABLES;
|
Thanks to auto partition and purge the size and fragmentation could be avoid and enabling compression on old partitions or storage in remote S3 can be a future improvement .
A cloud take care package can be offer from SkySQL or foundation to generate extra revenu and store metrics out of the user infrastructure
In case the plugin is unconnected to cloud storage
ALTER TABLE versioning_XXX DROP PARTITON pX to limit the table size
Attachments
Issue Links
- is blocked by
-
MDEV-22168 Supporting multiple engines with table partitioning
- Stalled