summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-10-26 13:57:08 +0100
committerMarkos Chandras <mchandras@suse.de>2018-10-26 14:01:02 +0100
commit592cb54d3c5b5251b421de290dbde6dbba5e6c61 (patch)
tree52f3e9e1bd1502013d58d9f43fe37131fcea3357
parente4291422027c3abf606ff24cd76d77014e9c5e73 (diff)
test-log-collect: Improve rsync performance for log collection
When collecting logs we do not care about file deltas so we can use the --whole-file option to not perform any kind of diff between the source and the destination. The --inplace option can also improve performance by copying files directly on the destination instead of creating intermediate ones first. Change-Id: I044cd2d56b9b907e5948be1d3bd11ce4a876b1a2
Notes
Notes (review): Code-Review+2: Jesse Pretorius (odyssey4me) <jesse.pretorius@rackspace.co.uk> Code-Review+2: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk> Workflow+1: Jonathan Rosser <jonathan.rosser@rd.bbc.co.uk> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 26 Oct 2018 19:26:33 +0000 Reviewed-on: https://review.openstack.org/613573 Project: openstack/openstack-ansible-tests Branch: refs/heads/master
-rwxr-xr-xtest-log-collect.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-log-collect.sh b/test-log-collect.sh
index dc8f990..aa08d67 100755
--- a/test-log-collect.sh
+++ b/test-log-collect.sh
@@ -28,7 +28,7 @@
28export WORKING_DIR=${WORKING_DIR:-$(pwd)} 28export WORKING_DIR=${WORKING_DIR:-$(pwd)}
29export TESTING_HOME=${TESTING_HOME:-$HOME} 29export TESTING_HOME=${TESTING_HOME:-$HOME}
30 30
31export RSYNC_CMD="rsync --archive --safe-links --ignore-errors --quiet --no-perms --no-owner --no-group" 31export RSYNC_CMD="rsync --archive --safe-links --ignore-errors --quiet --no-perms --no-owner --no-group --whole-file --inplace"
32 32
33# NOTE(cloudnull): This is a very simple list of common directories in /etc we 33# NOTE(cloudnull): This is a very simple list of common directories in /etc we
34# wish to search for when storing gate artifacts. When adding 34# wish to search for when storing gate artifacts. When adding