Skip to content

First iteration of the automatic task executor#476

Open
gabocic wants to merge 2 commits intomasterfrom
feature/task-automator
Open

First iteration of the automatic task executor#476
gabocic wants to merge 2 commits intomasterfrom
feature/task-automator

Conversation

@gabocic
Copy link
Copy Markdown
Collaborator

@gabocic gabocic commented Nov 3, 2025

Works in two phases

Phase 1: Validation

  • Connects to MySQL/MariaDB database server
  • Retrieves database flavor and version
  • Validates binary log is enabled
  • Checks storage engine (must be InnoDB for Online DDL)
  • Validates if Online DDL (ALGORITHM=INPLACE, LOCK=NONE) is possible
  • Checks table size (rows and megabytes)

Phase 2: Execution

  • Performs table backups (mysqldump, xtrabackup)
  • Estimates backup size and checks that there is enough space in the filesystem
  • Executes schema changes using
    • pt-online-schema-change (if requested)
    • Falls back to Online DDL when pt-online-schema-change is not used
    • Direct execution for operations that don't support Online DDL

@gabocic gabocic force-pushed the feature/task-automator branch from a041816 to e58ea0c Compare November 3, 2025 12:53
@gabocic gabocic force-pushed the feature/task-automator branch from e58ea0c to a78dd67 Compare November 30, 2025 23:38
@gabocic gabocic force-pushed the feature/task-automator branch from a78dd67 to 778c3f6 Compare November 30, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant