Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-29415

status and variables history via system-versioned tables parttion

    XMLWordPrintable

Details

    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

          Activity

            People

              Unassigned Unassigned
              stephane@skysql.com VAROQUI Stephane
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.