From 5d8b78cd62fc4d773855a4974b46fc5970d5331e Mon Sep 17 00:00:00 2001 From: Erica Vellanoweth Date: Wed, 24 Jun 2026 14:26:58 -0700 Subject: [PATCH] Add database cleanup step before populating MySQL Sysbench databases Adds a SysbenchConfiguration Cleanup action immediately before the PopulateMySQLDatabase step in the PERF-MYSQL-SYSBENCH-OLTP and PERF-MYSQL-SYSBENCH-TPCC profiles. This drops any tables left over from a previous run before a new database is populated, preventing stale-state issues across repeated executions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../profiles/PERF-MYSQL-SYSBENCH-OLTP.json | 13 +++++++++++++ .../profiles/PERF-MYSQL-SYSBENCH-TPCC.json | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/VirtualClient/VirtualClient.Main/profiles/PERF-MYSQL-SYSBENCH-OLTP.json b/src/VirtualClient/VirtualClient.Main/profiles/PERF-MYSQL-SYSBENCH-OLTP.json index e96bb72fbd..27cd86e1df 100644 --- a/src/VirtualClient/VirtualClient.Main/profiles/PERF-MYSQL-SYSBENCH-OLTP.json +++ b/src/VirtualClient/VirtualClient.Main/profiles/PERF-MYSQL-SYSBENCH-OLTP.json @@ -243,6 +243,19 @@ "Role": "Server" } }, + { + "Type": "SysbenchConfiguration", + "Parameters": { + "Scenario": "CleanupMySQLDatabase", + "Action": "Cleanup", + "DatabaseSystem": "MySQL", + "Benchmark": "OLTP", + "DatabaseName": "$.Parameters.DatabaseName", + "DatabaseScenario": "$.Parameters.DatabaseScenario", + "PackageName": "sysbench", + "Role": "Server" + } + }, { "Type": "SysbenchConfiguration", "Parameters": { diff --git a/src/VirtualClient/VirtualClient.Main/profiles/PERF-MYSQL-SYSBENCH-TPCC.json b/src/VirtualClient/VirtualClient.Main/profiles/PERF-MYSQL-SYSBENCH-TPCC.json index f8f7077f13..b23b59b725 100644 --- a/src/VirtualClient/VirtualClient.Main/profiles/PERF-MYSQL-SYSBENCH-TPCC.json +++ b/src/VirtualClient/VirtualClient.Main/profiles/PERF-MYSQL-SYSBENCH-TPCC.json @@ -131,6 +131,19 @@ "Role": "Server" } }, + { + "Type": "SysbenchConfiguration", + "Parameters": { + "Scenario": "CleanupMySQLDatabase", + "Action": "Cleanup", + "DatabaseSystem": "MySQL", + "Benchmark": "TPCC", + "DatabaseName": "$.Parameters.DatabaseName", + "DatabaseScenario": "$.Parameters.DatabaseScenario", + "PackageName": "sysbench", + "Role": "Server" + } + }, { "Type": "SysbenchConfiguration", "Parameters": {