Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: engine-backup: Added performance wrappers
......................................................................

packaging: engine-backup: Added performance wrappers

Added --fast-restore, --small-size, --fast-backup .

Change-Id: I95e91f1228082ea0266630d09511aaac42e000ca
Bug-Url: https://bugzilla.redhat.com/1213153
Signed-off-by: Yedidyah Bar David <d...@redhat.com>
---
M packaging/bin/engine-backup.sh
1 file changed, 70 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/43/42443/1

diff --git a/packaging/bin/engine-backup.sh b/packaging/bin/engine-backup.sh
index b5a4e5d..34f6738 100755
--- a/packaging/bin/engine-backup.sh
+++ b/packaging/bin/engine-backup.sh
@@ -235,6 +235,46 @@
  --reports-db-secured               set a secured connection for the Reports 
database
  --reports-db-secured-validation    validate host for Reports database
 
+ --fast-restore                     the default for backup, equivalent to:
+         --archive-compressor=gzip \\
+         --files-compressor=xz \\
+         --db-dump-format=custom \\
+         --db-compressor=None \\
+         --dwh-db-dump-format=custom \\
+         --dwh-db-compressor=None \\
+         --reports-db-dump-format=custom \\
+         --reports-db-compressor=None
+
+    In addition, you should pass, when restoring:
+        --db-restore-jobs=N \\
+        --dwh-db-restore-jobs=N \\
+        --reports-db-restore-jobs=N
+        where 'N' is around 150% of available cpu cores.
+
+ --small-size                       for a small backup file, equivalent to:
+         --archive-compressor=xz \\
+         --files-compressor=xz \\
+         --db-dump-format=plain \\
+         --db-compressor=xz \\
+         --dwh-db-dump-format=plain \\
+         --dwh-db-compressor=xz \\
+         --reports-db-dump-format=plain \\
+         --reports-db-compressor=xz
+
+ --fast-backup                      for a fast backup, equivalent to:
+         --archive-compressor=gzip \\
+         --files-compressor=xz \\
+         --db-dump-format=custom \\
+         --db-compressor=None \\
+         --dwh-db-dump-format=custom \\
+         --dwh-db-compressor=None \\
+         --reports-db-dump-format=custom \\
+         --reports-db-compressor=None
+
+ You can use one of --fast-restore, --small-size, --fast-backup, and after that
+ one of the other compressor/format options for further fine-tuning.
+
+
  ENVIRONMENT VARIABLES
 
  OVIRT_ENGINE_DATABASE_PASSWORD
@@ -586,6 +626,36 @@
                        --reports-db-sec-validation)
                                MY_REPORTS_DB_SECURED_VALIDATION="True"
                        ;;
+                       --fast-restore)
+                               ARCHIVE_COMPRESS_OPTION=z
+                               FILES_COMPRESS_OPTION=J
+                               DB_DUMP_FORMAT=custom
+                               DB_DUMP_COMPRESSOR=
+                               DWH_DB_DUMP_FORMAT=custom
+                               DWH_DB_DUMP_COMPRESSOR=
+                               REPORTS_DB_DUMP_FORMAT=custom
+                               REPORTS_DB_DUMP_COMPRESSOR=
+                       ;;
+                       --small-size)
+                               ARCHIVE_COMPRESS_OPTION=J
+                               FILES_COMPRESS_OPTION=J
+                               DB_DUMP_FORMAT=plain
+                               DB_DUMP_COMPRESSOR=xz
+                               DWH_DB_DUMP_FORMAT=plain
+                               DWH_DB_DUMP_COMPRESSOR=xz
+                               REPORTS_DB_DUMP_FORMAT=plain
+                               REPORTS_DB_DUMP_COMPRESSOR=xz
+                       ;;
+                       --fast-backup)
+                               ARCHIVE_COMPRESS_OPTION=z
+                               FILES_COMPRESS_OPTION=J
+                               DB_DUMP_FORMAT=custom
+                               DB_DUMP_COMPRESSOR=
+                               DWH_DB_DUMP_FORMAT=custom
+                               DWH_DB_DUMP_COMPRESSOR=
+                               REPORTS_DB_DUMP_FORMAT=custom
+                               REPORTS_DB_DUMP_COMPRESSOR=
+                       ;;
                        --help)
                                usage
                                exit 0


-- 
To view, visit https://gerrit.ovirt.org/42443
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I95e91f1228082ea0266630d09511aaac42e000ca
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yedidyah Bar David <d...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to