Skip to content

Commit 81f5dd2

Browse files
jmsperuclaude
andcommitted
Allow parallel execution of backup and delete commands
Change executeInSequence() to return false for TakeBackupCommand and DeleteBackupCommand, allowing the KVM agent to process multiple backup/delete operations concurrently via its worker thread pool. Previously, all backup commands were serialized — a large VM backup (e.g. 100+ GB taking 2+ hours) would block all other backup and delete operations on the same host. Since each backup mounts its own temporary NFS directory and operates on independent VM disks, there is no shared state requiring serialization. Restore and PrepareForBackupRestoration commands remain sequential as they modify VM state that should not be concurrent. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 61afb4c commit 81f5dd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/org/apache/cloudstack/backup/DeleteBackupCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ public void setMountOptions(String mountOptions) {
7171

7272
@Override
7373
public boolean executeInSequence() {
74-
return true;
74+
return false;
7575
}
7676
}

core/src/main/java/org/apache/cloudstack/backup/TakeBackupCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ public void setVolumePaths(List<String> volumePaths) {
8989

9090
@Override
9191
public boolean executeInSequence() {
92-
return true;
92+
return false;
9393
}
9494
}

0 commit comments

Comments
 (0)